 /* === RESET & VARIABLES === */
:root {
    --primary-red: #ED1E28; /* Обновленный красный цвет */
    --white: #ffffff;
    --text-dark: #585858;
    --font-main: 'Open Sans', sans-serif; /* Подключенный шрифт */
}
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-main);
            color: var(--text-dark);
            line-height: 1.5;
            overflow-x: hidden;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
html {
    scroll-behavior: smooth;
}
sup {
    font-size: 0.6em; /* Делает значок еще меньше относительно основного текста (по умолчанию там около 0.8em) */
    vertical-align: super; /* Убеждаемся, что он поднят наверх */
}
.container {
    width: 100%;
    max-width: 1160px; /* Точная ширина по макету */
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
header {
    background-color: var(--primary-red);
    width: 100%; /* Фон на 100% ширины экрана */
    padding: 10px 0; 
    position: relative;
    z-index: 10;
}

.header-inner {
    display: flex;
    justify-content: space-between; /* Логотип прижимается влево, меню - вправо */
    align-items: center;
    min-height: 70px;
}

/* Стили для логотипа */
.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px; /* Высота логотипа */
    width: auto;
    display: block;
}

/* Стили для десктопного меню */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px; /* Расстояние между ссылками и разделителями */
}

.desktop-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px; 
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    transition: opacity 0.3s ease;
}

.desktop-nav a:hover {
    opacity: 0.8; 
}

/* Вертикальные линии (разделители) */
.nav-divider {
    width: 1px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.7); /* Белый с 70% прозрачности */
}
/* === НОВЫЙ БУРГЕР (КРЕСТИК) === */
.burger-btn {
    display: none; /* Скрыт на ПК */
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.burger-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease-in-out; /* Плавная анимация */
}

/* Позиционируем палочки */
.burger-btn span:nth-child(1) { top: 0; }
.burger-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger-btn span:nth-child(3) { bottom: 0; }

/* Анимация превращения в крестик при добавлении класса .active */
.burger-btn.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
    opacity: 0; /* Прячем среднюю палочку */
}
.burger-btn.active span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Скрываем мобильную обертку на ПК */
.mobile-nav-wrapper {
    display: none;
}

/* === АДАПТИВ === */
@media (max-width: 992px) { /* Включаем мобильное меню на планшетах и телефонах */
    .desktop-nav {
        display: none;
    }

    .burger-btn {
        display: block;
    }
    
    header {
        position: relative; /* Чтобы меню позиционировалось относительно шапки */
    }

    /* Выпадающее меню */
    .mobile-nav-wrapper {
        display: block;
        position: absolute;
        top: 100%; /* Выезжает ровно из-под нижней границы шапки */
        left: 0;
        width: 100%;
        background-color: var(--primary-red);
        overflow: hidden; /* Прячем контент, который выходит за рамки */
        max-height: 0; /* По умолчанию высота 0 - меню скрыто */
        transition: max-height 0.4s ease-in-out; /* Анимация выпадания */
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); /* Легкая тень снизу */
    }

    .mobile-nav-wrapper.active {
        max-height: 600px; /* Раскрываем меню (высота должна быть больше контента) */
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 0 30px;
        gap: 35px;
        margin-top: 100px;
        margin-bottom: 150px;
    }

    .mobile-nav a {
        color: var(--white);
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        line-height: 1.4;
    }
}

        /* === HERO SECTION === */
/* === HERO SECTION === */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden; /* Обрезаем всё, что выходит за рамки экрана */
    display: flex;
    justify-content: center; /* Центрируем картинку, чтобы она обрезалась равномерно по бокам */
    padding-bottom: 60px;
}

/* Обертка picture тоже должна вести себя предсказуемо */
.hero picture {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero img {
    width: auto; /* Сохраняем оригинальные пропорции */
    max-width: none; /* Отменяем глобальный max-width: 100% из сброса стилей */
    flex-shrink: 0; /* Строго запрещаем сжиматься — это заставит картинку обрезаться краями экрана */
    display: block;
}

/* === АДАПТИВ HERO === */

/* Начинаем масштабировать картинку, когда экран достигает ширины контейнера (1160px) */
@media (max-width: 1160px) {
    .hero img {
        width: 130%; /* Картинка начинает занимать 100% ширины экрана и уменьшаться */
        height: auto; /* Сохраняем пропорции при уменьшении */
        flex-shrink: 1; /* Разрешаем сжиматься */
    }
}
@media (max-width: 720px) {
    .hero img {
        width: 100%; /* На мобильных картинка занимает всю ширину экрана */
        height: auto; /* Сохраняем пропорции */
        flex-shrink: 1; /* Запрещаем сжиматься, так как картинка уже адаптирована для мобильного */
    }
    
}
/* На 720px тег <picture> сам подставит hero_mob.jpg благодаря атрибуту source media. 
   Дополнительные стили здесь не требуются, так как ширина 100% уже задана в медиазапросе выше. */

.hero-badge {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--white);
            color: var(--primary-red);
            padding: 15px 30px;
            border-radius: 50px;
            font-weight: bold;
            text-transform: uppercase;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-products {
            display: flex;
            gap: 10px;
            height: 200px; /* Placeholder height */
}

/* === VIDEO SECTION === */
.video-section {

    padding-bottom: 60px; /* ვიდეოს ქვედა დაშორება */
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* ავტომატურად ინარჩუნებს ვიდეოს სწორ პროპორციას */
    border-radius: 12px; /* მსუბუქად მომრგვალებული კუთხეები დიზაინში უკეთ ჩასასმელად (სურვილისამებრ) */
    overflow: hidden; /* აუცილებელია, რომ iframe-მაც მიიღოს მომრგვალებული კუთხეები */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); /* მსუბუქი ჩრდილი მეტი ესთეტიკისთვის */
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover; /* Гарантирует, что видео заполнит контейнер без искажений */
    outline: none; /* Убирает стандартную рамку при клике */
}
/* Оверлей (заглушка), который лежит поверх видео */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center; /* Центрируем кнопку по горизонтали */
    align-items: center;     /* Центрируем кнопку по вертикали */
    background-color: #000;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.3s ease; /* Плавное исчезновение */
}

/* Картинка на фоне */
.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Делаем картинку чуть темнее, чтобы кнопка выделялась */
    transition: opacity 0.3s ease;
}

.video-overlay:hover .video-poster {
    opacity: 0.6; /* При наведении затемняем еще сильнее */
}

/* Кастомная кнопка Play */
.custom-play-btn {
    position: relative;
    z-index: 3;
    background-color: var(--primary-red);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(237, 30, 40, 0.4); /* Красная тень */
    transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Чуть-чуть сдвигаем треугольник (SVG) правее для визуального баланса */
.custom-play-btn svg {
    margin-left: 4px;
}

/* Анимация кнопки при наведении */
.video-overlay:hover .custom-play-btn {
    transform: scale(1.1);
    background-color: #c1181e;
}

/* Класс, который JS добавит для скрытия заглушки */
.video-overlay.hidden {
    opacity: 0;
    pointer-events: none; /* Отключаем клики по скрытой заглушке */
}

/* თუ გინდა, რომ მობილურზე (768px-ზე ქვევით) ვიდეომ ეკრანის კიდეებამდე 100%-ით გაშალოს და კონტეინერის 20px-იანი padding-ი არ ჰქონდეს, დაამატე ეს: */
@media (max-width: 768px) {
    .video-section {
        padding-left: 0;
        padding-right: 0;
    }
    .video-wrapper {
        border-radius: 0; /* მობილურზე, როცა კიდეებზეა მიბჯენილი, კუთხეების მომრგვალება ჯობია მოიხსნას */
    }
}

        /* === ABOUT SECTION === */
.section-padding {
            padding-bottom: 60px;
}
.row {
            display: flex;
            gap: 40px;
            align-items: center;
            margin-bottom: 60px;
}

.row_spray {
            display: flex;
            gap: 40px;
            align-items: start;
            margin-bottom: 60px;
}

.col-half {
            flex: 1;
}

h2 {
            color: var(--text-dark);
            margin-bottom: 20px;
            font-size: 40px;
}

        h2 span {
            color: var(--primary-red);
}

p {
            color: var(--text-gray);
            margin-bottom: 15px;
            font-size: 18px;
}



        /* === УПРАВЛЕНИЕ ЗАГОЛОВКАМИ (DESKTOP) === */
.mobile-only-title {
    display: none; /* Скрываем мобильный заголовок на больших экранах */
    font-size: 40px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.mobile-only-title span {
    color: var(--primary-red);
}

.desktop-only-title {
    display: block; /* Показываем десктопный заголовок */
}

/* === ДОПОЛНИТЕЛЬНЫЙ АДАПТИВ (ДЛЯ 720px) === */
@media (max-width: 720px) {
    .mobile-only-title {
        display: block; /* Включаем мобильный заголовок */
        text-align: center; /* Центрируем для красоты на мобилках */
    }

    .desktop-only-title {
        display: none; /* Выключаем десктопный заголовок в колонке текста */
    }
}

@media (max-width: 480px) {
    .mobile-only-title {
        font-size: 28px; /* Уменьшаем размер заголовков на очень маленьких экранах */
    }
    .col-half p {
        font-size: 16px; /* Уменьшаем размер текста для лучшей читаемости на маленьких экранах */
        text-align: left;
        margin-left: 20px;
        margin-right: 20px;
    }
    .btn_prod {
        margin: 20px;
    }
    .col_img {
        width: 80%; /* Картинка занимает всю ширину колонки на маленьких экранах */
        height: auto; /* Сохраняем пропорции */
    }

    .btn-icon {
        width: 20px; /* Уменьшаем размер иконки в кнопке на маленьких экранах */ 
        height: auto;
    }
}

.row_spray {
            display: flex;
            gap: 40px;
            align-items: start;
            margin-bottom: 60px;
}

.highlight-red {
    color: var(--primary-red); /* Используем твой фирменный красный цвет */
    /* font-weight: bold; - можно раскомментировать, если нужно еще и выделить жирным */
}

.btn_prod {
    display: inline-flex;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 10px;
    transition: background 0.3s;
    align-items: center; /* Выравниваем элементы по вертикали строго по центру */
    justify-content: center; /* Центрируем содержимое по горизонтали */
    gap: 10px; /* Задаем красивое расстояние между иконкой и текстом */
}

.btn_prod:hover {
    background-color: #c1181e;
}


.btn {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #c1181e;
}




/* === STATS BANNER === */
        .stats-banner {
            background-color: var(--primary-red);
            color: var(--white);
            text-align: center;
            padding: 60px 20px;
            font-size: 120px;
            font-weight: bold;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
        }
        
        .stats-banner .plus {
            font-size: 60px;
            font-weight: normal;
        }

        /* === FEATURES / ICONS === */
/* === FEATURES / ICONS === */
.features-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px; /* Отступ между столбцами */
    padding: 60px 0;
    flex-wrap: nowrap; /* Запрещаем перенос строк на больших экранах */
}

/* Настройки каждого столбца */
.feature-col {
    width: 360px; /* Заданная тобой ширина */
    flex-shrink: 1; /* Позволяем слегка сжиматься на планшетах, если 3 по 360px не влезают */
}

/* === ШАПКА СТОЛБЦА (ИКОНКА + ФОН) === */
.feature-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

/* Белый круг с обводкой */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Важно: позиционирование для z-index */
    z-index: 2; /* Иконка должна быть поверх плашки с текстом */
    flex-shrink: 0;
}

/* Картинка внутри круга */
.icon-circle img {
    width: 80px; /* Ограничиваем размер внутренней иконки */
    height: auto;
}

/* Цветная плашка с текстом */
.header-text {
    background-color: #2B8699; /* Заданный цвет */
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    padding: 15px 20px 15px 45px; /* Отступ слева больше, чтобы текст не прятался под кругом */
    border-radius: 0 40px 40px 0; /* Закругляем только правые углы */
    margin-left: -30px; /* Сдвигаем плашку под иконку */
    flex-grow: 1;
    display: flex;
    align-items: center;
    /* min-height: 60px; */
    height: 65px;
}

/* === СПИСОК ПРЕИМУЩЕСТВ === */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-item {
    display: flex;
    align-items: flex-start; /* Прижимаем иконку и текст к верхнему краю */
    gap: 15px;
}

.marker-icon {
    width: 32px; /* Размер иконки-маркера (красный пластырь) */
    height: auto;
    flex-shrink: 0; /* Чтобы иконка не сжималась, если текста много */
    margin-top: 2px; /* Небольшая корректировка для идеального выравнивания с первой строкой текста */
}

.list-item p {
    margin: 0;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.4;
    text-align: left; /* Жестко задаем левое выравнивание */
}

@media (max-width: 992px) {
    .features-wrapper {
        flex-direction: column; /* Выстраиваем вертикально */
        align-items: center;    /* Центрируем блоки */
    }

    .feature-col {
        width: 100%; /* Занимает всю ширину на мобилке */
        max-width: 360px; /* Но не больше 360px, чтобы не растягивалось уродливо */
        margin-bottom: 20px;
    }
    .feature {
        margin: 40px;
    }
}

        /* === WHERE TO BUY === */
/* === БЛОК ПОКУПКИ (АПТЕКИ) === */
.buy-section-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 60px 0;
}

.buy-col {
    width: 360px;
    display: flex;
    flex-direction: column;
}

/* Красный заголовок */
.buy-header {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    border-radius: 8px;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Обертка для кнопок */
.pharmacy-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Расстояние между кнопками */
}

/* Кнопка-ссылка на аптеку */
.pharmacy-link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px 0 rgba(24, 10, 154, 0.10);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pharmacy-link:hover {
    transform: translateY(-3px); /* Слегка приподнимается при наведении */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pharmacy-link img {
    max-height: 100px; /* Ограничиваем высоту логотипов */
    max-width: 80%;
}

/* Кнопка "Еще аптеки" */
.toggle-more-btn {
    background-color: transparent;
    border: 1.5px solid var(--primary-red);
    color: var(--primary-red);
    padding: 12px;
    border-radius: 30px; /* Скругленные края (пилюля) */
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
    font-family: var(--font-main);
}

.toggle-more-btn:hover {
    background-color: rgba(237, 30, 40, 0.05); /* Легкий красный фон при наведении */
}

/* Стрелочка в кнопке (нарисована на CSS) */
.arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--primary-red);
    border-left: 2px solid var(--primary-red);
    transform: rotate(45deg); /* Смотрит вверх */
    transition: transform 0.3s ease;
    margin-top: 4px;
}

/* Стрелочка смотрит вниз, когда меню открыто */
.toggle-more-btn.active .arrow {
    transform: rotate(-135deg); 
    margin-top: -4px;
}

/* Контейнер для дополнительных аптек */
.extra-pharmacies {
    display: none; /* Скрыто по умолчанию */
    flex-direction: column;
    gap: 10px;
}

/* Класс, который будет добавляться скриптом для показа */
.extra-pharmacies.show {
    display: flex;
}

@media (max-width: 992px) {
    .buy-section-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .buy-col {
        width: 100%;
        max-width: 360px; /* Чтобы на планшетах не растягивалось на весь экран */
    }
}
/* === FOOTER === */
.site-footer {
    width: 100%;
    margin-top: 40px; /* Отступ от предыдущего блока */
}

/* --- КРАСНЫЙ БЛОК СО СРЕЗОМ --- */
.footer-main {
    background-color: var(--primary-red);
    /* Магия clip-path: рисуем многоугольник.
      Точки: (x y) -> Верх-лево(0 0), Верх-право(100% 8vw), Низ-право(100% 100%), Низ-лево(0 100%) 
      8vw значит, что срез зависит от ширины экрана и всегда остается пропорциональным
    */
    clip-path: polygon(0 0, 100% 8vw, 100% 100%, 0 100%);
    
    /* Добавляем верхний padding (8vw + базовый отступ), чтобы контент никогда не обрезался линией */
    padding-top: calc(8vw + 40px);
    padding-bottom: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* Левая колонка с текстом */
.footer-texts {
    max-width: 650px; /* Ограничиваем ширину, чтобы текст не тянулся на весь экран */
}

.footer-texts p {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 8px; /* Расстояние между строчками */
    line-height: 1.5;
}

.footer-texts .prescription {
    margin-bottom: 30px; /* Отступ после первого блока текста */
}

.address-block {
    margin-bottom: 30px;
}

.location-wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px; /* Расстояние от иконки до текста */
    margin-top: 5px;
}

.loc-icon {
    flex-shrink: 0; /* Запрещаем иконке сжиматься */
    margin-top: 2px; /* Чуть опускаем иконку, чтобы она была на уровне центра текста */
}

/* Ссылки */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    width: fit-content;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Правая колонка с логотипом */
.footer-logo-col {
    flex-shrink: 0;
    margin-top: 10px; /* Небольшая корректировка по высоте */
}

.egis-logo {
    max-width: 180px; /* Настрой размер логотипа под себя */
    height: auto;
}

/* --- БЕЛАЯ ПОЛОСА ВНИЗУ --- */
.footer-bottom {
    background-color: var(--white);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-dark);
    font-size: 15px;
    margin: 0;
    line-height: 1.4;
    font-weight: 600; /* В макете этот текст выглядит чуть жирнее */
}

/* --- АДАПТИВНОСТЬ ДЛЯ ФУТЕРА --- */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column; /* Меняем порядок: Логотип сверху, текст под ним (или наоборот, убери -reverse если хочешь лого внизу) */
        align-items: start;
        text-align: start
    }
    
    .footer-main {
        /* На мобилках делаем срез менее резким */
        clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 100%);
        padding-top: calc(4vw + 40px);
    }

    .location-wrap {
        justify-content: start; /* Центрируем строку с локацией */
    }
    
    .footer-links {
        align-items: start;
    }
    .footer-bottom p {
    text-align: left;
}
}

@media (max-width: 480px) {
    .footer-texts p, .footer-links a {
        font-size: 14px; /* Уменьшаем шрифты на телефонах */
    }
    .footer-bottom p {
        font-size: 12px;
    }
}

        /* === RESPONSIVE DESIGN === */
        @media (max-width: 768px) {
            .desktop-nav {
                display: none;
            }

            .burger-btn {
                display: block;
            }

            .row {
                flex-direction: column;
                gap: 20px;
                text-align: center;
            }

            .row_spray {
                flex-direction: column;
                gap: 20px;
                text-align: center;
            }
            .product-section h2 {
                font-size: 28px;
                text-align: center;
            }

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

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

            .stats-banner {
                font-size: 80px;
                padding: 40px 20px;
            }
            
            .stats-banner .plus {
                font-size: 40px;
            }

            .footer-inner {
                flex-direction: column;
                gap: 20px;
                text-align: center;
                align-items: center;
            }
        }