body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

header {
    background: #ff5e5e;
    color: white;
    padding: 20px;
}

.cta-button {
    display: inline-block;
    background: black;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    margin-top: 10px;
}

.gallery .grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.gallery img {
    width: 100%; /* Теперь растягивается на ширину блока */
    max-width: 500px; /* Ограничиваем максимальную ширину */
    height: auto; /* Сохраняем пропорции */
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.reviews, .discount {
    margin-top: 30px;
}

footer {
    margin-top: 20px;
    padding: 10px;
    background: #222;
    color: white;
}

/* Правильное применение к изображению товаров */
.item img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Картинки в слайдере */
.swiper-slide img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    flex-shrink: 0; /* Чтобы картинки не уменьшались внутри flex-контейнера */
}

/* Фото людей в отзывах */
.review-img {
    width: 120px !important; /* Увеличенный размер */
    height: 120px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Запрещаем уменьшение в flex-контейнере */
}

.reviews-container {
    display: flex;
    align-items: flex-start; /* Выравниваем элементы по верхнему краю */
    justify-content: center;
    gap: 40px;
    flex-wrap: nowrap; /* Запрещаем перенос на новую строку */
}

.video-review {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px; /* Фиксированная ширина для видео */
}

.video-text {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.text-reviews {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px; /* Чтобы отзывы не растягивались слишком сильно */
}

.review {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* Для мобильных устройств */
@media only screen and (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 10px;
  }

  /* Пример для изменения размеров изображений */
  img {
    width: 100%;
    height: auto;
  }

  /* Дополнительно: можно настроить скрытие или изменение стилей для элементов */
  .menu {
    display: none; /* Пример скрытия меню на мобильных */
  }

  .reviews-container {
    flex-direction: column;
    gap: 20px; /* Увеличиваем зазор между элементами */
  }

  .video-review {
    width: 100%; /* Делаем видео адаптивным */
  }

  .review-img {
    width: 100px; /* Увеличиваем размеры для мобильных устройств */
    height: 100px;
  }
}

/* Для планшетов */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 20px;
  }
}

/* Для десктопов (стандартное отображение) */
@media only screen and (min-width: 1025px) {
  body {
    font-size: 18px;
  }

  .container {
    padding: 30px;
  }
}

.product-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.product-block {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 280px;
    max-width: 32%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Равномерное распределение контента */
    height: 100%; /* Все блоки будут одинаковой высоты */
}

.product-block h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.product-block p {
    font-size: 16px;
    color: #555;
    flex-grow: 1; /* Основной текст растягивается, заполняя пространство */
}

.product-block a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background: #ff5a5f;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.product-block a:hover {
    background: #e0484c;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .product-info {
        flex-direction: column;
        align-items: center;
    }

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

.product-info {
    min-height: 500px; /* Подставь реальное значение */
}

.swiper-container {
    min-height: 300px; /* Или подбери своё значение */
}

body {
    font-family: 'Roboto', sans-serif;
}
