* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
header {
  background-color: white;
  color: #fff;
  padding: 5px 0; /* Увеличили отступ сверху и снизу */
  display: flex;
  justify-content: center; /* Выравнивание по горизонтали */
  align-items: center; /* Выравнивание по вертикали */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 80px; /* Отступ слева от логотипа */
  margin-right: 80px; /* Отступ справа от логотипа */
}

.left-content {
    padding-right: 100px;
    font-weight: 300;
    font-size: 16px;
}

.right-content {
    padding-left: 100px;
    font-weight: 300;
    font-size: 16px;
}

.right-content b {
  margin-top: 10px; 
  margin-right: 20px; /* Добавьте отступ от иконки VK */
}

.left-content b {
  margin-top: 10px; /* Увеличили отступ между строками текста */
}

.nav-header {
  background-color: #333;
  color: #fff;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-header nav {
  display: flex; /* Делаем меню блочным элементом */
  align-items: center;
}

.nav-header nav ul {
  list-style: none;
  display: flex;
}

.nav-header nav li {
  margin-left: 20px;
}

.nav-header nav a {
  color: #fff;
  text-decoration: none;
}

.contact-info {
  display: flex;
  flex-direction: column; /* Выравниваем элементы по вертикали */
  align-items: flex-end; /* Выравниваем по правому краю */
  margin-left: 1500px;
}

.vk-logo-link {
  margin-bottom: 10px; /* Отступ между иконкой и текстом */
}

.contact-details {
  display: flex;
  flex-direction: column; /* Выстраиваем элементы по вертикали */
  align-items: flex-end; /* Выравниваем элементы по правому краю */
}

.contact-details p {
  margin-bottom: 5px; /* Отступ между строками */
}

.container-text img {
  margin-left: 1430px;
  height: auto;
  margin-top: 50px;
}

/* Выравнивание "demvel@gmail.com" и "+79250853404" справа */
.container-text {
  display: flex;
  align-items: center;
}

.container-text p {
  margin-bottom: 10px; 
}

/* Иконка VK сверху текста "demvel@gmail.com" */
header .vk-logo-link {
  display: block;
  margin-right: 10px; /* Добавлено, чтобы отделить от текста */
}

.logo {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
}

.hero {
  position: relative;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: white;
  text-align: center;
  padding: 20px;
}

.hero-images {
  position: relative;
  width: 100%;
  height: 500px; /* Настройте высоту слайдера */
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.slide.active {
  opacity: 1;
}

.header-content b {
  color: #333;
}

.hero-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
}

.hero-controls button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 24px;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); 
}

.brain li {
  margin-left: 1430px;
  height: auto;
  margin-top: 50px;
}

.btn {
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #555;
}


.about {
  padding: 80px 0;
}

.about h2 {
  font-size: 36px;
  margin-bottom: 20px;
}


.products {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.products h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 40px;
}

.product-card {
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
}

.product-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.product-more-btn {
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.product-details {
  display: none;
  margin-top: 20px;
}

.product-details.show {
  display: block;
}

        .product-description {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 20px;
            background-color: white;
            border: 1px solid black;
            border-radius: 5px;
            z-index: 100;
        }

/* Наша группа в ВК */
.vk-group {
  background-color: #f5f5f5;
  padding: 80px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vk-logo {
  max-width: 100px;
  margin-right: 20px;
}

.vk-group h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.vk-group p {
  font-size: 18px;
  margin-bottom: 40px;
}


.contact {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.contact h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

form {
  max-width: 600px;
  margin: 0 auto;
}

form label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 20px;
}


footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}


@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .about h2,
  .products h2,
  .contact h2 {
    font-size: 28px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .about,
  .products,
  .contact {
    padding: 60px 0;
  }

.product-carousel {
  display: flex;
  overflow-x: hidden;
  width: 100%;
  height: 400px;
}

.carousel-item {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


  .about h2,
  .products h2,
  .contact h2 {
    font-size: 24px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

.logo-image {
  margin-inline: 180px;
  height: 150px; /* Настройте высоту изображения */
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
}

.vk-logo-link {
  position: absolute; /* Позиционируем относительно родительского элемента */
  top: 10px; /* Отступ сверху */
  right: 10px; /* Отступ справа */
  display: inline-block; /* Или block, если нужно выравнивание по центру */
}

.vk-logo-link img {
  /* Добавьте стили для иконки VK, например: */
  width: 80px;
  height: 40px;
}