/* Базові налаштування */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4; /* Світлий фон поза мобільним контейнером */
    color: #333;
}

/* Контейнер-імітація мобільного екрана */
.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    min-height: 100vh;
    overflow: hidden;
}

/* Загальні стилі секцій */
section {
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Шапка (Hero) */
.header-bg {
    background-color: #327599; 
    color: white;
    text-align: center;
    padding: 40px 15px 30px; /* Збільшили відступ зверху для кращого балансу */
    position: relative; 
}

.header-bg h1 {
    font-size: 28px; /* Трохи збільшили для солідності */
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    margin-bottom: 25px; /* Даємо більше простору до плашки */
    opacity: 0.9; /* Трохи приглушуємо колір, щоб виділити заголовок */
}

/* Оновлений дизайн для знижки з правильними відступами */
.discount-badge {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: #111;
    display: inline-block;
    padding: 12px 35px; /* Зробили плашку трохи ширшою і вирівняли висоту */
    border-radius: 50px;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 30px; /* Відсуваємо картинку нижче */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    line-height: 1.3; /* Акуратно центруємо два рядки тексту (Зі знижкою / 45%) */
}

/* Про всяк випадок гарантуємо, що абзац всередині плашки не ламає геометрію */
.discount-badge p {
    margin: 0;
}

/* Контейнер картинки розтягуємо за межі батьківського padding */
.hero-features {
    margin: 0 -15px; 
}

/* Сама картинка тепер займає 100% цього розтягнутого контейнера */
.features-img {
    width: 100%;
    height: auto;
    display: block; /* Прибирає мікро-відступ знизу, який буває у картинок */
    margin-bottom: 25px; 
}

.price-block {
    display: flex;
    background: #1a1a1a; /* Робимо єдиний темний фон для всього блоку */
    color: white;
    margin: 0 -15px; 
    position: relative;
}

.old-price { 
    flex: 1;
    padding: 15px 25px 15px 15px; /* Даємо трохи більше відступу справа */
    text-align: center;
    background: transparent; /* Фон тепер береться з батьківського блоку */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.new-price { 
    flex: 1.2; /* Робимо червоний блок трохи ширшим, бо він наповзає на лівий */
    padding: 15px 15px 15px 30px;
    text-align: center;
    background: #e52d2d;
    /* Створюємо скошений кут зліва */
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    margin-left: -10%; /* Насуваємо червоний блок на чорний */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.old-price s { font-size: 24px; color: #aaa; }
.new-price strong { font-size: 26px; } /* Трохи збільшив шрифт нової ціни для акценту */

/* Кнопки */
.btn {
    display: block;
    width: 100%;
    padding: 18px;
    background-color: #e52d2d;
    color: white;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
}

/* Картки характеристик (Features & Usage) */
.features, .usage {
    background-color: #e9f5fb; /* Світло-блакитний фон зі скріншотів */
}

.card {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card img {
    max-width: 100%;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card-list {
    display: inline-block; /* Робить контейнер списку рівно по ширині тексту */
    text-align: left; /* Притискає текст до булетів */
    margin: 15px auto 0; /* Додає відступ зверху та центрує блок */
    padding-left: 20px; /* Місце для самих крапок */
    font-size: 15px;
    line-height: 1.4;
}

.card-list li {
    margin-bottom: 10px; /* Відступ між пунктами */
}

/* Блок ОБЕРЕЖНО */
.warning {
    text-align: center;
}

.warning-title {
    color: #b50000;
    font-size: 24px;
    margin-bottom: 20px;
}

.warning-img {
    max-width: 80%;
    margin: 0 auto 20px;
}

.bad-list {
    list-style: none;
    text-align: left;
    display: inline-block;
}

.bad-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    font-size: 16px;
}

.bad-list li::before {
    content: "❌";
    color: red;
    position: absolute;
    left: 0;
    top: 0;
}

/* Відео */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Відгуки */
.review-slide {
    text-align: center;
    padding: 20px;
}

.avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.age-city {
    color: #777;
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
}

.slider-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 12px; height: 12px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background: #333;
}

/* Футер */
.site-footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
}

.site-footer p { margin-bottom: 10px; }

.privacy-link {
    color: #f00;
    text-decoration: underline;
}

/* --- Стилі для Слайдера --- */
.slider-container {
    position: relative;
    min-height: 250px; /* Фіксована висота, щоб сторінка не стрибала */
}

.review-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    text-align: center;
    padding: 10px 20px;
}

.review-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative; /* Робимо активний слайд відносним, щоб він задавав висоту контейнеру */
}

.slider-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #333; /* Темний колір для активної крапки */
}

/* --- Стилі для Форми --- */
.order-section {
    background-color: #f9f9f9;
    border-top: 2px solid #eee;
}

.main-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
}

.main-form input {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.main-form input:focus {
    outline: none;
    border-color: #e52d2d;
}

/* =========================================
   Анімація пульсації для кнопок
   ========================================= */

/* Створюємо ключові кадри анімації */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(229, 45, 45, 0.7); /* Тінь кольору кнопки */
    }
    70% {
        transform: scale(1.03); /* Трохи збільшуємо */
        box-shadow: 0 0 0 15px rgba(229, 45, 45, 0); /* Тінь розширюється і зникає */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(229, 45, 45, 0);
    }
}

/* Оновлюємо існуючий клас .btn (додаємо виклик анімації) */
.btn {
    /* Додаємо до існуючих стилів: */
    animation: pulse 2s infinite; /* 2 секунди на цикл, повторювати нескінченно */
    transition: all 0.3s ease; /* Для плавного ефекту при наведенні */
}

/* Гарний тон UX: зупиняємо пульсацію, коли користувач наводить мишку (або натискає пальцем) */
.btn:hover, .btn:active {
    animation: none; 
    transform: scale(1.05); /* Фіксуємо у трохи збільшеному стані */
    box-shadow: 0 5px 15px rgba(229, 45, 45, 0.4);
}