body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #333;
}

/* Шапка */
header {
  background-color: #003366;
  color: white;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navigation {
  display: flex;
  justify-content: space-between; /* Центрирование меню */
  align-items: center;
  background-color: #003366; /* Цвет фона */
  padding: 20px;
}

.navigation a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 16px;
  font-weight: bold;
}

.navigation a:hover {
  color: #f1c40f; /* Эффект при наведении */
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo img {
  width: 200px; /* Размер логотипа */
  height: auto; /* Автоматическая высота */
  object-fit: contain; /* Гарантирует, что логотип не обрежется */
  margin-right: 20px; /* Отступ справа от логотипа */
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffcc00; /* Цвет при наведении */
}

.logo-container {
  display: flex; /* Выравнивание логотипа */
  align-items: center;
  justify-content: center; /* Центрирование */
  height: 80px; /* Высота контейнера, можно изменить */
  padding: 10px;
  
}

.logo-container img {
  width: 250px; /* Размер логотипа */
  max-width: 100%;
  height: auto; /* Автоматическая высота */
  object-fit: contain; /* Гарантирует, что логотип не обрежется */
}

.social-icons {
  display: flex;
  gap: 15px;
}

.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #444;
  color: white;
  font-size: 18px;
  transition: background-color 0.3s, transform 0.3s;
}

.icon:hover {
  background-color: #ffcc00;
  transform: scale(1.1);
}

.social-media a {
  color: #0fcc5e;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}
.social-media a:hover {
  color: #e90e0e; /* Цвет при наведении */
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }

  .social-icons {
    margin-top: 10px;
  }
}

header nav {
  margin-bottom: 10px;
}

header h1 {
  font-size: 24px;
  margin: 0;
}


/* Основные стили */
main {
  background-color: #ffffff;
  padding: 40px;
  max-width: 1200px;
  margin: 30px auto;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.p {
  font-size: 18px;
  color: #003366;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: #003366;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.5;
  padding: 10px;
  background-color: #ffffff;  
}


.product-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.product-category h2 {
  color: #003366;
  font-size: 24px;
  margin-bottom: 15px;
  text-align: center;
}

@media (max-width: 768px) {
  .product-category {
    flex: 1 1 100%; /* Один раздел в строке на маленьких экранах */
  }
}

/* Категории */
.categories {
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  padding: 10px;
  margin: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  background-color: #fff;
  text-decoration: none;
  color: inherit;
}

.icon-image {
  width: 32px;
  height: 32px;
}

/* Товары и предложения */
.product-section, .offers-section, .deals {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.product-item {
  display: flex;
  flex-direction: row; /* Разделение на две части */
  align-items: center;
  justify-content: space-between;
  width: 600px; /* Установите нужную ширину */
  padding: 10px;
  margin: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.product-item, .offer-item, .deal-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover, .offer-item:hover, .deal-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-image {
  flex: 1; /* Занимает одну часть */
  max-width: 200px; /* Ограничение максимальной ширины */
}

.product-image img {
  width: 100%;
  height: auto;
  border-bottom: 2px solid #ffffff;
  border-radius: 8px;
}

.product-details {
  flex: 2; /* Занимает две части */
  padding-left: 20px;
  text-align: left;
}

.product-name {
  font-size: 22px;
  margin-bottom: 10px;
  color: #003366;
  font-weight: bold;
}

.product-features {
  list-style: none;
  padding-left: 0;
}

.product-features li {
  margin-bottom: 5px;
}

.whatsapp-contact {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.whatsapp-contact i {
  margin-right: 8px;
}

.whatsapp-contact:hover {
  background-color: #1DA851;
}

.button {
  background-color: #003366;
  color: white;
}

.button:hover {
  background-color: #001d4a;
}

/* Адаптивность */
@media (max-width: 768px) {
  main {
      padding: 20px;
  }

  .product-item {
      flex-direction: column; /* Вертикальное расположение на маленьких экранах */
      width: 100%;
  }

  .product-image {
      max-width: 100%;
  }

  .whatsapp-contact, .button {
      font-size: 14px;
      padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  header nav a {
      font-size: 14px;
      margin: 0 10px;
  }

  .whatsapp-contact, .button {
      font-size: 12px;
      padding: 6px 12px;
  }
}

/* Стили для секции "Специальные предложения" */
.product-news {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.product-new1 {
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-new2 {
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}




/* Подвал */
footer {
  background-color: #343a40;
  color: white;
  padding: 15px;
  text-align: center;
}

/* Социальные иконки */
.social-icons {
  display: flex;
  gap: 15px;
}

.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #333;
  color: white;
  font-size: 20px;
  text-decoration: none;
  transition: 0.3s;
}

.icon:hover {
  background-color: #777;
}



.instagram { background: #E4405F; }
.linkedin { background: #0077B5; }
.facebook { background: #1877F2; }
.youtube { background: #09b809; }

.image-slider {
  position: relative;
  width: 100%;
  height: 200px; /* Установите фиксированную высоту */
  overflow: hidden; /* Скрыть выходящие за рамки изображения */
}

.image-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Установите высоту в 100% */
  object-fit: cover; /* Сохранить пропорции изображения */
  display: none;
}

.image-slider img:first-child {
  display: block;
}