/* Общие стили */
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: 15px;
}

.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;
}

.social-media a {
  color: #0fcc5e;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}
.social-media a:hover {
  color: #e90e0e; /* Цвет при наведении */
}

.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);
}

@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: #f9f9f9;
  padding: 20px;
}

/* Категории */
.categories-section {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 15px;
}

.category-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  text-decoration: none;
  color: #333;
}

.category-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.category-item .icon-image {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  object-fit: contain;
}

.category-item span {
  font-size: 14px;
  font-weight: 500;
}

/* Акции */
.offers-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    background-color: #f9f9f9;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: stretch;
}

.offers-section h2 {
  width: 100%;
  text-align: center;
  color: #003366;
  font-size: 28px;
  margin-bottom: 20px;
}

.offer-item {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 220px;
  position: relative;
}

.offer-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.offer-image {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 8px;
}

.offer-item .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff4b5c;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 5px;
}

.description {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  margin: 10px 0 15px;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #003366;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #001d4a;
}

/* Лучшие предложения */
.deals-section {
  padding: 30px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.deals-section h3 {
  color: #003366;
  font-size: 28px;
  margin-bottom: 20px;
}

.deals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.deal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  width: 180px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.deal-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.deal-icon {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
  border-radius: 8px;
}

.product-name {
  font-size: 16px;
  color: #003366;
  font-weight: bold;
  margin-bottom: 8px;
}

.availability {
  font-size: 14px;
  color: #555;
}

/* Медиа-запросы для планшетов */
@media (max-width: 1024px) {
  .categories {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .offers-section {
    justify-content: center;
  }
  
  .offer-item {
    width: calc(50% - 20px);
  }
}

/* Медиа-запросы для мобильных */
@media (max-width: 480px) {
  .categories {
    grid-template-columns: 1fr;
  }
  
  .offer-item {
    width: 100%;
  }
  
  .nav-logo img {
    width: 150px;
    height: 150px;
  }
}

/* Подвал */
.footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.footer a {
  color: #00aaff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

