body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
   background-image: url('img/seafon.jpg');
  background-size: cover; /* Фон будет растянут на весь экран */
  background-position: center center; /* Центрирует изображение */
  background-attachment: fixed; /* Фон останется фиксированным при прокрутке */
  background-repeat: no-repeat; /* Убирает повторение изображения */


}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
  background: linear-gradient(to right, #2E8BC0, #145DA0, #0C2D48);

    color: white;
    flex-direction: column;
}

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

nav {
    display: flex;
    gap: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 2px solid white; /* Белая линия */
    margin-bottom: 20px;
}


.contact {
    font-size: 18px;
    font-weight: bold;
}

.cart {
    font-size: 24px;
    cursor: pointer;
}


#benefits {
    background: #f8f8f8;
    padding: 30px 0;
}

#benefits h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.benefit-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.benefit-item i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 10px;
}

#banner {
    padding: 40px 20px;
   background: linear-gradient(to right, #00a2ff, #0085ff, #00ffe2);
}

#products {
    padding: 20px;
    background: linear-gradient(to right, #2E8BC0, #145DA0, #0C2D48);

}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}

.product {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product img {
    max-width: 100%;
    border-radius: 10px;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: #d9534f; /* Красный цвет, символизирующий цену */
    background: #fff3f3; /* Светлый фон для выделения */
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #d9534f;
    transition: transform 0.2s ease-in-out;
}

.product-price:hover {
    transform: scale(1.05);
}

/* Центрируем кнопку */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
 
}

/* Стили кнопки */
.buy-now {
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #ff416c, #ff4b2b); /* Градиентный фон */
    border: none;
    padding: 15px 30px;
    border-radius: 50px; /* Закругленные углы */
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

/* Анимация нажатия */
.buy-now:active {
    transform: scale(0.95);
}

/* Добавляем иконку */
.buy-now i {
    margin-right: 10px;
    font-size: 22px;
}

/* Эффект свечения */
.buy-now:hover {
    box-shadow: 0 8px 20px rgba(255, 75, 43, 0.5);
}

/* Анимированные вспышки внутри кнопки */
.buy-now::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 10%, transparent 50%);
    transition: opacity 0.6s, transform 0.6s;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.buy-now:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}



footer {
    padding: 10px;
    background: #333;
    color: white;
    text-align: center;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

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

    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}




.features {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    text-align: center;
}

.features h2 {
    color: #007BFF;
    margin-bottom: 20px;
}

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

.features li {
    font-size: 18px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    text-align: left;
    border-bottom: 1px solid #ddd; /* Разделительная линия */
    padding-bottom: 12px; /* Дополнительный отступ снизу */
}
.features li:last-child {
    border-bottom: none; /* Убираем линию у последнего пункта */
}

.features li i {
    color: #007BFF;
    margin-right: 10px;
    font-size: 22px;
}





.premium-quality {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #d2232a;
    background: #fff4f4;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.premium-quality i {
    margin-right: 8px;
    font-size: 20px;
    color: #d2232a;
    margin-left: 8px;
}





.tovarh2{
    color: white;
}








.advantages {
    background: linear-gradient(135deg, #ffffff, #f3f3f3);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 40px auto;
    transition: transform 0.3s ease-in-out;
}

.advantages:hover {
    transform: scale(1.02);
}

.advantages h2 {
    font-size: 26px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.advantages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantages li {
    font-size: 18px;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 8px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
}

.advantages li:hover {
    background: #eafaf1;
    transform: translateX(5px);
}

.advantages li i {
    color: #27ae60;
    font-size: 22px;
    margin-right: 12px;
}

.advantages h2 i {
    color: #27ae60;
    margin-right: 8px; /* по желанию */
}





.slider {
  position: relative;
  width: 300px; /* уменьшаем ширину */
  height: 270px; /* пропорциональная высота */
  margin: 20px auto; /* центрирование и отступ сверху и снизу */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 50%;
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}

/* Отступы вокруг других блоков */
.container {
  paddingп: 20px;
}
