/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 99999; /* Поверх всего */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 150px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.loader-bar {
    width: 0;
    height: 3px;
    background-color: #25F4EE;
    animation: loadingBar 2s ease-in-out forwards;
    margin: 0 auto;
    border-radius: 2px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes loadingBar {
    0% { width: 0; }
    100% { width: 200px; }
}

/* Класс для скрытия */
#preloader.hide {
    opacity: 0;
    visibility: hidden;
}


/* =========================================
   1. Imports & Fonts
   ========================================= */
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans:300,400');
@import url('https://fonts.googleapis.com/css2?family=Jura:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500&display=swap');

/* =========================================
   2. Variables (:root)
   ========================================= */
:root {
    /* Colors */
    --primary-color: #001F3F;
    --accent-color: #00eaff;
    --text-color: #FFFFFF;
    --secondary-text: #CCCCCC;
    --bg-color: #F8F8F8;
    /* Font Families */
    --font-family-galano: "GalanoGrotesque", sans-serif;
    --font-family-galano-alt: "GalanoGrotesqueAlt", sans-serif;
    /* Palette */
    --color-white: #fff;
    --color-white-dark: #fefefe;
    --color-black: #000;
    --color-alabaster: #f9f9f9;
    --color-alto: #dadada;
    --color-scorpion: #5c5c5c;
    --color-main-shaft: #282828;
    --color-dove-gray: #6c6c6c;
    --color-gray: #848484;
    --color-main-shaft-light: #353535;
    --color-tundora: #4e4e4e;
    --color-tundora-dark: #494949;
    --color-shamrock: #0f2b46;
    --color-shamrock-dark: #32bc8a;
    --color-silver: #cacaca;
    --color-silver-dark: #bababa;
    --color-dusty-gray: #9b9b9b;
    --color-silver-chalice: #b0b0b0;
    --color-silver-chalice-dark: #9f9f9f;
    --color-mercury: #e8e8e8;
    --color-boulder: #787878;
    /* Animation & Gradients */
    --bg: #f7f8fa;
    --bg2: #ebf2fa;
    --fg: #2f5380;
    --link: hsl(var(--canvas), 95%, 60%);
    --linkh: hsl(150, 90%, 50%);
    --cubic: cubic-bezier(0.65, 0, 0.35, 1);
    --cubic-in: cubic-bezier(0.32, 0, 0.67, 0);
    --cubic-out: cubic-bezier(0.33, 1, 0.68, 1);
    --d: 2500ms;
    --angle: 90deg;
    --gradX: 100%;
    --gradY: 50%;
    --c1: rgba(168, 239, 255, 1);
    --c2: rgba(168, 239, 255, 0.1);
    /* Orb Colors */
    --color-bg1: rgb(108, 0, 162);
    --color-bg2: rgb(0, 17, 82);
    --color1: 18, 113, 255;
    --color2: 221, 74, 255;
    --color3: 100, 220, 255;
    --color4: 200, 50, 50;
    --color5: 180, 180, 50;
    --color-interactive: 140, 100, 255;
    --circle-size: 80%;
    --blending: hard-light;
}

/* =========================================
   2.1. Mobile & Browser Styling (New)
   ========================================= */

/* 1. Сглаживание шрифтов (делает текст четким и дорогим) */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 2. Кастомный скроллбар (Webkit: Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px; /* Ширина скролла */
}

::-webkit-scrollbar-track {
    background: var(--primary-color); /* Фон дорожки (темно-синий) */
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent-color); /* Ползунок (золотой) */
    border-radius: 5px; /* Скругление */
    border: 2px solid var(--primary-color); /* Отступ внутрь, создающий эффект "парящего" ползунка */
}

/* Кастомный скроллбар (Firefox) */
* {
    scrollbar-width: thin;
    scrollbar-color: rgb(107 157 209);
}

/* 3. Выделение текста (Selection) */
::selection {
    background: var(--accent-color); /* Золотой фон */
    color: var(--primary-color); /* Темный текст */
}


/* =========================================
   3. Houdini Properties
   ========================================= */
@property --angle {
    syntax: '<angle>';
    initial-value: 90deg;
    inherits: true;
}

@property --gradX {
    syntax: '<percentage>';
    initial-value: 50%;
    inherits: true;
}

@property --gradY {
    syntax: '<percentage>';
    initial-value: 0%;
    inherits: true;
}

/* =========================================
   4. Base Styles & Reset
   ========================================= */
/* ВАЖНОЕ ИСПРАВЛЕНИЕ: Box-sizing предотвращает увеличение ширины из-за padding */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--primary-color);
    line-height: 1.6;
    width: 100%;
    /* ВАЖНОЕ ИСПРАВЛЕНИЕ: Запрет горизонтальной прокрутки на уровне страницы */
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

li {
    display: list-item;
    unicode-bidi: isolate;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   5. Components (Header, Nav, Buttons)
   ========================================= */

header {
    background-color: rgb(0 0 0 / 62%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

    header.scrolled {
        padding: 10px 0; /* Уменьшаем отступы */
        background-color: rgba(0, 31, 63, 0.95); /* Чуть более плотный фон */
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    }

    /* Анимация логотипа */
    header .logo img {
        transition: width 0.3s ease-in-out;
        display: block; /* Убираем лишние отступы картинки */
        /* Исходный размер (можно задать в CSS вместо HTML атрибута для контроля) */
        width: 200px; /* Оптимальный размер для десктопа, 300px часто слишком много */
        max-width: 100%;
    }

    /* Уменьшенный логотип при скролле */
    header.scrolled .logo img {
        width: 140px; /* Размер при скролле */
    }


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

    nav ul li {
        margin-left: 20px;
    }

        /* --- 3. Анимация подчеркивания ссылок --- */
        nav ul li a {
            position: relative;
            padding-bottom: 5px;
        }
            /* Создаем псевдоэлемент для линии */
            nav ul li a::after {
                content: '';
                position: absolute;
                width: 0;
                height: 2px;
                bottom: 0;
                left: 0;
                background-color: #ffffff; /* Золотой цвет */
                transition: width 0.3s ease;
            }
            /* Линия появляется при наведении */
            nav ul li a:hover::after {
                width: 100%;
            }
            /* Линия остается для активной ссылки (добавим класс .active через JS) */
            nav ul li a.active-link::after {
                width: 100%;
            }


            nav ul li a:hover {
                color: #ffffff;
            }

/* --- 4. Кнопка "Наверх" (Scroll to Top) --- */
#scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    /* Скрыта по умолчанию */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10000;
    pointer-events: none;
}

    /* Класс для показа кнопки */
    #scroll-top-btn.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    #scroll-top-btn:hover {
        background-color: #fff;
        color: var(--primary-color);
        transform: translateY(-5px);
    }



.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-color);
}

.book-btn {
    background-color: #f9f9f9;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

    .book-btn:hover {
        background-color: #b0cae3;
    }

.view-all-btn {
    display: block;
    margin: 40px auto 0;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

    .view-all-btn:hover {
        background-color: #E6C200;
    }

.hero-btn {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-image: conic-gradient(from var(--angle), var(--c2), var(--c1) 0.1turn, var(--c1) 0.15turn, var(--c2) 0.25turn) 30;
    animation: borderRotate var(--d) linear infinite forwards;
    color: #FFFFFF;
    padding: 20px 80px;
    font-weight: bold;
    text-decoration: none;
}

    .hero-btn:hover {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

.box {
    font-size: 3vw;
    margin: max(1rem, 3vw);
    border: 0.35rem solid;
    padding: 3vw;
    border-image: conic-gradient(from var(--angle), var(--c2), var(--c1) 0.1turn, var(--c1) 0.15turn, var(--c2) 0.25turn) 30;
    animation: borderRotate var(--d) linear infinite forwards;
}

    .box:nth-child(2) {
        border-image: radial-gradient(ellipse at var(--gradX) var(--gradY), var(--c1), var(--c1) 10%, var(--c2) 40%) 30;
        animation: borderRadial var(--d) linear infinite forwards;
    }


    

/* =========================================
   6. Hero Section & Backgrounds
   ========================================= */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../img/bg.png') no-repeat center center/cover;
    color: var(--text-color);
    position: relative;
    /* Убедимся, что Hero не вылезает по ширине */
    width: 100%;
    overflow: hidden;
}

    #hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 31, 63, 0.6);
    }

.hero-content {
    position: relative;
    z-index: 1;
}

    .hero-content h1 {
        font-family: "Jura", sans-serif;
        font-size: 55px;
        margin-bottom: 20px;
        text-shadow: 2px 2px 5px #000000c2;
    }

    .hero-content p {
        font-size: 24px;
        margin-bottom: 30px;
    }

/* ВАЖНОЕ ИСПРАВЛЕНИЕ: Меняем 100vw на 100%, чтобы не считался скроллбар */
.gradient-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
    background: linear-gradient(40deg, rgb(108 0 162 / 47%), rgb(0 17 82 / 0%));
    top: 0;
    left: 0;
}

svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}

.gradients-container {
    filter: url(#goo) blur(40px);
    width: 100%;
    height: 100%;
}

.g1 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: center center;
    animation: moveVertical 30s ease infinite;
    opacity: 1;
}

.g2 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: calc(50% - 400px);
    animation: moveInCircle 20s reverse infinite;
    opacity: 1;
}

.g3 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2 + 200px);
    left: calc(50% - var(--circle-size) / 2 - 500px);
    transform-origin: calc(50% + 400px);
    animation: moveInCircle 40s linear infinite;
    opacity: 1;
}

.g4 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: calc(50% - 200px);
    animation: moveHorizontal 40s ease infinite;
    opacity: 0.7;
}

.g5 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: calc(var(--circle-size) * 2);
    height: calc(var(--circle-size) * 2);
    top: calc(50% - var(--circle-size));
    left: calc(50% - var(--circle-size));
    transform-origin: calc(50% - 800px) calc(50% + 200px);
    animation: moveInCircle 20s ease infinite;
    opacity: 1;
}

.interactive {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: 100%;
    height: 100%;
    top: -50%;
    left: -50%;
    opacity: 0.7;
}

/* Scroll Down Indicator (Кнопка Price) */
.demo a {
    position: absolute;
    bottom: 30px; /* Чуть поднял от самого низа */
    left: 50%;
    z-index: 2;
    display: inline-block;
    
    /* ГЛАВНОЕ ИСПРАВЛЕНИЕ: Центрирование по оси X */
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    
    color: #fff;
    font: normal 400 20px/1 'Josefin Sans', sans-serif;
    letter-spacing: .1em;
    text-decoration: none;
    transition: opacity .3s;
    text-align: center; /* На всякий случай */
    padding-top: 80px; /* Место для стрелок */
}

.demo a:hover {
    opacity: .5;
}

#section07 a {
    padding-top: 80px;
}

    #section07 a span {
        position: absolute;
        top: 0;
        left: 50%;
        width: 24px;
        height: 24px;
        margin-left: -12px;
        border-left: 1px solid #fff;
        border-bottom: 1px solid #fff;
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
        -webkit-animation: sdb07 2s infinite;
        animation: sdb07 2s infinite;
        opacity: 0;
        box-sizing: border-box;
    }

        #section07 a span:nth-of-type(1) {
            -webkit-animation-delay: 0s;
            animation-delay: 0s;
        }

        #section07 a span:nth-of-type(2) {
            top: 16px;
            -webkit-animation-delay: .15s;
            animation-delay: .15s;
        }

        #section07 a span:nth-of-type(3) {
            top: 32px;
            -webkit-animation-delay: .3s;
            animation-delay: .3s;
        }

/* =========================================
   UPDATED Price Card Styling
   ========================================= */

#services {
    /* Возвращаем картинку на фон */
    background: url('../img/bg-services.webp') no-repeat center center / cover;
    color: var(--primary-color);
    padding-bottom: 80px;
    position: relative;
}

/* Контейнер списка услуг - выравниваем в ряд */
.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Центрируем содержимое по горизонтали */
    gap: 30px;
    
    /* ВАЖНО: Убираем стандартный отступ слева, из-за которого всё съезжало */
    padding: 0; 
    margin: 0 auto;
    list-style: none;
    width: 100%;
}

.services-list__item {
    /* flex-basis: 300px; */
    flex: 1 1 300px; /* Позволяем сжиматься/растягиваться */
    
    /* Уменьшаем минимальную ширину до 280px для узких телефонов (iPhone SE и т.д.) */
    min-width: 280px; 
    max-width: 400px;
    
    display: flex; 
    
    /* Гарантированное центрирование, если карточка одна в строке */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

/* Сама карточка */
.price-card {
    width: 100%;
    display: flex;
    flex-direction: column; /* Вертикальная ориентация */
    justify-content: space-between; /* Раскидываем контент */
    
    /* Стеклянный эффект */
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Занимает всю высоту родителя */
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-color: var(--accent-color);
}

/* Заголовок с картинкой */
.price-card__header {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Затемнение картинки снизу, чтобы текст читался */
.price-card__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,31,63,0.9), transparent);
}

.price-card__title-wrap {
    position: absolute;
    bottom: 15px;
    left: 20px;
    right: 20px;
    z-index: 2;
}

.price-card__title-wrap h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-family: 'Jura', sans-serif;
}

.price-card__title-wrap h3 {
    color: var(--accent-color);
    font-size: 14px;
    margin: 5px 0 0 0;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Секция с ценами */
.price-block {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f4f8fb;
    border-bottom: 1px solid #e0e0e0;
}

.price-item {
    text-align: center;
    flex: 1;
}

.price-item:first-child {
    border-right: 1px solid #ddd;
}

.price-val {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.price-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #777;
    margin-top: 5px;
    font-weight: 600;
}

/* Список услуг */
.price-card__body {
    padding: 20px;
    flex-grow: 1; /* Заставляет этот блок занимать свободное место */
}

.price-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    color: #333;
}

.price-card__list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    font-size: 15px;
    line-height: 1.4;
}

/* Иконка галочки вместо буллитов */
.price-card__list li::before {
    content: '\f00c'; /* FontAwesome Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-shamrock-dark); /* Зеленоватый или золотой цвет */
    font-size: 14px;
}

/* Разделитель для Extras */
.extras-divider {
    margin: 15px 0;
    border-top: 1px dashed #ccc;
    position: relative;
    text-align: center;
}

.extras-divider span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    top: -10px;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
}

.price-card__list.extras li {
    color: #666;
    font-size: 14px;
}
.price-card__list.extras li::before {
    content: '+';
    color: var(--accent-color);
    font-size: 16px;
    font-weight: bold;
}

/* Футер карточки (Кнопка) */
.price-card__footer {
    padding: 20px;
    background-color: #fff;
    text-align: center;
    margin-top: auto; /* Прижимает футер к низу */
}

.price-card-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background 0.3s;
    text-decoration: none;
}

.price-card-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* =========================================
   8. Convenience Section
   ========================================= */
#convenience {
    background-color: var(--primary-color);
    padding: 80px 0;
    display: flex;
    align-items: center;
}

.convenience-content {
    display: flex;
    gap: 50px;
}

.convenience-text {
    flex: 1;
}

    .convenience-text h2 {
        font-size: 36px;
        margin-bottom: 20px;
        text-align: center;
    }

.convenience-benefits {
    display: grid;
    /* Вернул minmax 250px, чтобы карточки были компактнее и влезали по 4 в ряд на широких экранах */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.benefit {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Центрируем всё по горизонтали */
    text-align: center; /* Центрируем текст */

    min-height: 250px;
    padding: 30px 20px;
    border-radius: 10px;
    /* ФОН: Полное затемнение поверх картинки */
    /* rgba(0, 31, 63, 0.85) — это ваш основной синий цвет с прозрачностью 85% для читаемости */
    background: linear-gradient(rgba(0, 31, 63, 0.85), rgba(0, 31, 63, 0.75)), url('../img/ba/1.webp');
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s;
    position: relative;
}

    .benefit:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
        /* При наведении можно чуть осветлить фон, чтобы картинку было лучше видно */
        background: linear-gradient(rgba(0, 31, 63, 0.75), rgba(0, 31, 63, 0.65)), url('../img/ba/1.webp');
        background-size: cover;
        background-position: center;
    }

    .benefit i {
        font-size: 3rem;
        color: #ffffff;
        margin-bottom: 20px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }

    .benefit h3 {
        font-size: 20px; /* Чуть компактнее шрифт */
        margin-bottom: 10px;
        color: #fff;
        text-transform: uppercase;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
        width: 100%;
    }

    .benefit p {
        font-size: 16px;
        color: #e0e0e0;
        text-shadow: 0 1px 2px rgba(0,0,0,0.8);
        line-height: 1.5;
        width: 100%;
    }

.convenience-img {
    flex: 1;
}

    .convenience-img img {
        width: 100%;
        border-radius: 10px;
    }

/* =========================================
   9. How It Works Section
   ========================================= */
#how-it-works {
    background-color: var(--bg-color); /* Основной цвет фона */
    background-image: url('../img/howitworks.jpeg');
    background-repeat: no-repeat;
    
    background-size: cover;
    color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    #how-it-works {
        background-size: inherit;
        background-position: center bottom; /* Строго внизу */
    }
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 30px; /* Отступы между блоками */
    position: relative;
    padding: 20px 0;
    counter-reset: step-counter;
}

/* Стеклянный блок шага */
.step {
    flex: 1;
    position: relative;
    padding: 40px 20px;
    border-radius: 20px;
    width: 100%; /* На всю ширину */
    /* Эффект Темного Стекла (Dark Glass) */
    background: linear-gradient(90deg, rgb(0 31 63) 50%, #001f3fbd);
    /*backdrop-filter: blur(10px);*/
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: #fff; /* Белый текст на темном стекле */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

    .step::before {
        /* Логика счетчика */
        counter-increment: step-counter;
        content: "0" counter(step-counter); /* Добавляет 0 перед цифрой: 01, 02... */
        /* Позиционирование в углу */
        position: absolute;
        top: 1px; /* Чуть выше края, чтобы красиво нависало или внутри */
        left: 15px; /* Отступ слева */
        /* Стилизация цифры */
        font-size: 60px;
        font-weight: 900;
        font-family: 'Montserrat', sans-serif; /* Или шрифт заголовков Jura */
        color: #ffffff;
        opacity: 0.15; /* Делаем полупрозрачным, как водяной знак */
        line-height: 1;
        z-index: 0; /* На заднем плане, чтобы не перекрывать текст */
        pointer-events: none;
    }

    .step:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 31, 63, 0.3);
        border-color: #c4f5fb; /* Золотая рамка при наведении */
    }

/* Иконки */
    .step i {
        font-size: 3rem;
        color: #dcdcdc; /* Золотой цвет */
        margin-bottom: 20px;
        display: block;
        transition: transform 0.3s ease;
    }

    .step:hover i {
        transform: scale(1.1); /* Увеличение иконки при наведении */
        color: #c4f5fb; /* Золотой цвет */
    }

.step h3 {
    font-size: 22px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.step p {
    font-size: 16px;
    color: #e0e0e0; /* Чуть приглушенный белый */
    line-height: 1.5;
}

/* СТРЕЛКИ МЕЖДУ БЛОКАМИ (Desktop) */
.step::after {
    content: '\f061'; /* FontAwesome код стрелки вправо */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: -25px; /* Выносим за пределы блока */
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary-color); /* Стрелка темная, так как фон секции светлый */
    z-index: 0;
}

/* Убираем стрелку у последнего элемента */
.step:last-child::after {
    display: none;
}

/* =========================================
   10. Gallery & Modal
   ========================================= */
#gallery {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
}

.gallery-preview {
    display: flex; /* Включаем Flexbox */
    flex-direction: row; /* ВАЖНО: Строго в ряд */
    flex-wrap: nowrap; /* Запрещаем перенос на новую строку */
    justify-content: center; /* Центрируем по горизонтали */
    align-items: center; /* Центрируем по вертикали */
    gap: 30px;
    margin-bottom: 40px;
    width: 100%; /* На всю ширину контейнера */
}

/* НОВЫЙ КЛАСС: Обертка для каждой картинки */
.gallery-preview__item {
    position: relative;
    width: 45%; /* Занимает чуть меньше половины экрана */
    min-width: 300px; /* Минимальная ширина, чтобы не сплющило */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    flex-shrink: 0; /* Запрещаем сжатие блока */
}

    /* Стили для картинки */
    .gallery-preview__item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        aspect-ratio: 4 / 3; /* Фиксируем пропорции, чтобы были одинаковыми */
    }

    /* Градиент (Тень внизу) */
    .gallery-preview__item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
        pointer-events: none;
    }

/* Текст (BEFORE/AFTER) */
.gallery-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}


.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.94);
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: auto;
    animation: fadeIn 0.3s;
}

.modal-content, .gallery-modal-content {
    background-color: #FFFFFF;
    color: var(--primary-color);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    animation: zoomIn 0.3s;
}

.gallery-modal-content {
    background: rgb(0 31 63 / 13%);
    backdrop-filter: blur(3px);
    border-radius: 16px;
    width: 100%;
    max-width: 1450px;
    max-height: 96vh;
    margin: 0 auto;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.65);
    border: 1px solid rgba(255,215,0,0.1);
}

    .gallery-modal-content h2 {
        text-align: center;
        margin: 0 0 1.4rem;
        color: #fff;
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        text-transform: uppercase;
        letter-spacing: 1.5px;
    }

#services-modal table {
    width: 100%;
    border-collapse: collapse;
}

#services-modal th, #services-modal td {
    padding: 10px;
    border: 1px solid #DDD;
    text-align: left;
}

#services-modal th {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
}

    .gallery-grid img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 3px 12px rgba(0,0,0,0.35);
        border: 1px solid rgba(255,255,255,0.06);
    }

        .gallery-grid img:hover {
            transform: scale(1.035);
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.98);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.lightbox-img {
    max-width: 98vw;
    max-height: 94vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgb(71 153 255 / 20%);
    border: 1px solid rgb(2 89 105 / 12%);
    transition: transform 0.35s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

/* Close Buttons */
.close,
.lightbox-close,
.gallery-modal-content .close {
    position: fixed;
    top: 15px;
    right: 15px;
    font-size: 38px;
    color: white;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    transition: all 0.25s ease;
    z-index: 10;
    touch-action: manipulation;
}

    .lightbox-close:hover,
    .gallery-modal-content .close:hover {
        background: #FFFFFF;
        color: var(--primary-color);
    }

/* =========================================
   11. Contacts & Footer
   ========================================= */

/* --- CONTACTS SECTION --- */
#contacts {
    /* Фоновая картинка с темным перекрытием для стиля */
    background: linear-gradient(rgba(0, 31, 63, 0.85), rgba(0, 31, 63, 0.9)), url('../img/contacts-bg.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Параллакс эффект (фон стоит на месте) */
    padding: 100px 0;
    position: relative;
}

.contacts-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0; /* Убрал gap, так как теперь это единый блок */
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); /* Тень стала чуть контрастнее на темном фоне */
    overflow: hidden;
    position: relative;
    z-index: 2; /* Поверх фона */
}

/* Левая колонка (Инфо) */
.contact-details {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .contact-details h2 {
        font-size: 42px;
        color: var(--primary-color);
        margin-bottom: 10px;
    }

.contact-subtitle {
    font-size: 18px;
    color: var(--secondary-text);
    margin-bottom: 40px;
}

.contact-list {
    margin-bottom: 40px;
}

    .contact-list li {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 31, 63, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #032241;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-list li:hover .icon-box {
    background-color: var(--primary-color);
    color: #fff;
}

.contact-list h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-list p, .contact-list a {
    color: var(--color-dove-gray);
    font-size: 16px;
    line-height: 1.5;
    transition: color 0.3s;
}

    .contact-list a:hover {
        color: var(--accent-color);
    }

/* Социальные сети */
.social-connect h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

    .social-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

.inst {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.tiktok {
    background: #000;
}

    .tiktok i {
        text-shadow: 2px 2px 0px #FE2C55, -2px -2px 0px #25F4EE;
    }


/* Контейнер карты */
.map-container {
    flex: 1;
    position: relative; /* Важно для наложения */
    min-height: 500px;
    overflow: hidden; /* Обрезаем лишнее */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    /* Делаем карту чуть темнее и в синих тонах, чтобы сочеталась с сайтом */
    filter: grayscale(20%) contrast(1.1) brightness(0.9); 
}

/* Эффект "Области обслуживания" (Виньетка) */
.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Чтобы можно было двигать карту сквозь наложение */
    
    /* ГРАДИЕНТ: Центр прозрачный (видно карту), края - темно-синие */
    background: radial-gradient(
        circle at center, 
        transparent 20%, /* Радиус чистого центра (сам город) */
        rgba(0, 31, 63, 0.4) 65%, /* Полупрозрачная зона вокруг */
        rgba(0, 31, 63, 0.95) 80% /* Темные края (не обслуживаемая зона) */
    );
    
    /* Мягкая граница */
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

/* Добавляем надпись "Service Area" по центру (Опционально) */
.map-container::before {
    content: 'SERVICE AREA';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: bold;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}


/* --- STYLISH FOOTER --- */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding-top: 80px;
    font-size: 15px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr; /* Логотип занимает больше места */
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    font-size: 18px;
    color: #b4f7fffc;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links li, .footer-contact li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: inline-block;
}

    .footer-links a:hover {
        color: #b4f7fffc;
        transform: translateX(5px); /* Сдвиг вправо при наведении */
    }

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: #ffffff;
}

/* Нижняя часть футера */
.footer-bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .footer-bottom p {
        color: rgba(255, 255, 255, 0.5);
        font-size: 14px;
    }

.footer-socials {
    display: flex;
    gap: 15px;
}

    .footer-socials a {
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #fff;
        transition: background-color 0.3s;
    }

        .footer-socials a:hover {
            background-color: #000;
            color: #FFFFFF;
        }


/* --- АДАПТИВНОСТЬ ДЛЯ НОВЫХ СЕКЦИЙ --- */

@media (max-width: 992px) {
    .contacts-wrapper {
        flex-direction: column;
    }

    /* РЕШЕНИЕ ДЛЯ МОБИЛЬНЫХ:
       Делаем карту большой и высокой, чтобы удобно было пользоваться пальцем.
    */
    .map-container {
        width: 100%;
        height: 500px; /* Фиксированная большая высота для мобильных */
        min-height: 500px;
    }

        .map-container iframe {
            height: 100%; /* Ифрейм заполняет всю высоту контейнера */
        }
}

@media (max-width: 768px) {
    .contact-details {
        padding: 40px 20px; /* Чуть меньше отступы текста */
    }

        .contact-details h2 {
            font-size: 32px;
        }

    /* На маленьких экранах карта тоже остается большой (500px) для удобства */
    .map-container {
        height: 450px; /* Можно чуть меньше 500, но всё равно крупно */
        min-height: 450px;
    }
}

    .footer-top {
        grid-template-columns: 1fr; /* 1 колонка на телефонах */
        text-align: center;
    }

    .footer-desc {
        margin: 20px auto 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    /* Центрируем элементы в футере на мобильных */
    .footer-contact li {
        justify-content: center;
    }

/* =========================================
   12. Animations
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}

@keyframes borderRotate {
    100% {
        --angle: 420deg;
    }
}

@keyframes borderRadial {
    20% {
        --gradX: 100%;
        --gradY: 50%;
    }

    40% {
        --gradX: 100%;
        --gradY: 100%;
    }

    60% {
        --gradX: 50%;
        --gradY: 100%;
    }

    80% {
        --gradX: 0%;
        --gradY: 50%;
    }

    100% {
        --gradX: 50%;
        --gradY: 0%;
    }
}

@keyframes moveInCircle {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes moveVertical {
    0% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(50%);
    }

    100% {
        transform: translateY(-50%);
    }
}

@keyframes moveHorizontal {
    0% {
        transform: translateX(-50%) translateY(-10%);
    }

    50% {
        transform: translateX(50%) translateY(10%);
    }

    100% {
        transform: translateX(-50%) translateY(-10%);
    }
}

@-webkit-keyframes sdb07 {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes sdb07 {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* =========================================
   13. Media Queries
   ========================================= */
@media (max-width: 1200px) {
    .price-card {
        width: 96%;
    }
}

@media screen and (min-width: 960px) {
    .services-list {
        display: flex;
        justify-content: space-between;
    }

    .services-list__item {
        margin-bottom: 0;
        width: 31%;
    }

    .services-list--sm .services-list__item {
        margin-bottom: 0;
    }

    .price-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        width: 97%;
    }

    .price-card__footer {
        padding: 25px;
        margin-top: auto;
    }

    .price-card__sub-header {
        padding: 44px 25px;
    }

    .price-card__list {
        padding: 7px 25px;
        font-size: 16px;
    }
}

@media screen and (min-width: 460px) {
    .services-list__item {
        margin-bottom: 64px;
    }

    .price-card__sub-header h2 {
        font-size: 43px;
    }

    .price-card__price {
        font-size: 48px;
    }

    .price-card__footer {
        padding: 25px 45px;
    }

    .price-card__sub-header {
        padding: 44px 45px;
    }

    .price-card__list {
        padding: 7px 45px;
        font-size: 18px;
    }

    .price-card-link {
        font-size: 22px;
        padding: 14px 45px 16px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgb(0 0 0 / 75%);
        padding: 20px 0;
    }

        nav ul.active {
            display: flex;
        }

        nav ul li {
            margin: 10px 0;
            text-align: center;
        }

    .menu-toggle {
        display: block;
    }

    .book-btn {
        display: none;
    }

    .hero-content h1 {
        font-size: 45px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .steps {
        flex-direction: column;
        gap: 50px; /* Больше отступа, чтобы влезла стрелка */
    }

    .step::after {
        content: '\f063'; /* FontAwesome код стрелки вниз */
        top: auto;
        bottom: -40px; /* Сдвигаем вниз под блок */
        right: 50%;
        transform: translateX(50%); /* Центрируем */
        font-size: 30px;
    }

    .convenience-content, .contacts-content {
        flex-direction: column;
    }

    .gallery-preview {
        flex-direction: column;
    }
        .gallery-preview__item {
            width: 100%;
        }

        .gallery-preview__item:last-child {
            margin-bottom: 0;
        }

    .gallery-modal-content {
        padding: 1rem 0.8rem;
        border-radius: 12px;
        max-height: 98vh;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 0.9rem;
    }

        .gallery-grid img {
            aspect-ratio: 4 / 3;
        }
}

@media (max-width: 480px) {
    .modal {
        padding: 0px;
    }

    .gallery-modal-content {
        padding: 0.8rem 0.6rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 0.8rem;
    }

        .gallery-grid img {
            aspect-ratio: 3 / 2;
        }

    .gallery-modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .lightbox-close,
    .gallery-modal-content .close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 34px;
    }
}

@media (max-width: 360px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

        .gallery-grid img {
            height: 240px;
            aspect-ratio: auto;
        }
}


/* --- 2. Мобильное меню (Glassmorphism + Fix) --- */
@media (max-width: 768px) {
    header .logo img {
        width: 180px; /* Чуть меньше на старте для мобильных */
    }

    header.scrolled .logo img {
        width: 120px; /* Еще меньше при скролле на мобильных */
    }

    nav ul {
        /* Привязка к низу хедера (100% высоты хедера) */
        top: 100%;
        background-color: rgba(0, 31, 63, 0.85); /* Полупрозрачность */
        /* Эффект матового стекла */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
        transition: all 0.3s ease;
    }
}



/* =========================================
   14. Reviews Section
   ========================================= */
#reviews {
    background-color: var(--bg-color); /* Светлый фон секции, чтобы выделить темные карточки */
    padding: 80px 0;
    overflow: hidden; /* Скрываем то, что выезжает за экран */
}

/* Контейнер слайдера */
.reviews-slider {
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); /* Размытие краев слайдера */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Дорожка с карточками */
.reviews-track {
    display: flex;
    gap: 30px;
    width: max-content; /* Ширина по содержимому */
    animation: scrollReviews 40s linear infinite; /* Плавная бесконечная анимация */
}

    /* При наведении останавливаем прокрутку, чтобы можно было прочитать */
    .reviews-track:hover {
        animation-play-state: paused;
    }

/* Карточка отзыва */
.review-card {
    background-color: var(--primary-color); /* Темно-синий фон */
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    width: 350px; /* Фиксированная ширина */
    flex-shrink: 0; /* Чтобы не сжимались */
    border: 1px solid rgba(255, 215, 0, 0.2); /* Тонкая золотая рамка */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Шапка отзыва (Фото + Имя) */
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

/* Фото клиента */
.reviewer-img {
    width: 70px;
    height: 70px;
    border-radius: 50%; /* Идеальный круг */
    object-fit: cover;
    border: 2px solid #ffffff; 
}

/* Имя */
.review-header h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #ffffff;
}

/* Звезды */
.stars {
    color: #b89b00;
    font-size: 14px;
}

/* Текст отзыва */
.review-text {
    font-style: italic;
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.5;
}

/* Анимация прокрутки */
@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Сдвигаем на половину ширины трека (так как у нас 2 набора карточек) */
        /* Расчет: (350px ширина + 30px отступ) * 5 карточек = 1900px */
        transform: translateX(calc(-350px * 5 - 150px));
    }
}

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .review-card {
        width: 280px; /* Чуть уже на телефонах */
    }

    @keyframes scrollReviews {
        100% {
            /* Пересчет для мобильной ширины: (280 + 30) * 5 = 1550px */
            transform: translateX(calc(-280px * 5 - 150px));
        }
    }
}


/* =========================================
   15. Scroll Animations (Lazy Reveal) - FAST VERSION
   ========================================= */

.reveal {
    opacity: 0;
    transform: translateY(30px); /* Чуть меньше сдвиг (было 40), чтобы быстрее вставало на место */
    /* Ускорили с 0.8s до 0.5s */
    transition: opacity 0.5s cubic-bezier(0.5, 0, 0, 1), transform 0.5s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
    pointer-events: none;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- Ускоренная каскадная задержка (Stagger) --- */
/* Элементы будут вылетать пулеметной очередью, а не медленно по одному */

/* Для шагов How It Works */
.step:nth-child(1) { transition-delay: 0.0s; } /* Сразу */
.step:nth-child(2) { transition-delay: 0.1s; } /* Было 0.2 */
.step:nth-child(3) { transition-delay: 0.2s; } /* Было 0.3 */
.step:nth-child(4) { transition-delay: 0.3s; } /* Было 0.4 */

/* Для преимуществ Convenience */
.benefit:nth-child(1) { transition-delay: 0.0s; }
.benefit:nth-child(2) { transition-delay: 0.1s; }
.benefit:nth-child(3) { transition-delay: 0.2s; }
.benefit:nth-child(4) { transition-delay: 0.3s; }

/* Для карточек цен */
.services-list__item:nth-child(1) { transition-delay: 0.0s; }
.services-list__item:nth-child(2) { transition-delay: 0.15s; }
.services-list__item:nth-child(3) { transition-delay: 0.3s; }

/* Для контактов */
.contact-details { transition-delay: 0.1s; }
.map-container { transition-delay: 0.2s; }

/* Делаем интерфейс "твердым" */
.logo, 
nav a, 
.book-btn, 
.hero-btn, 
.service-card, 
.step,
.benefit,
h1, h2, h3 {
    /* Запрещаем выделение текста (синее выделение) */
    -webkit-user-select: none;
    user-select: none;
    
    /* Запрещаем меню при долгом нажатии (например, на картинки-ссылки) */
    -webkit-touch-callout: none;
}

/* Разрешаем выделять только полезный текст (например, в статьях или контактах) */
p, .contact-details {
    -webkit-user-select: text;
    user-select: text;
}

.modal, .gallery-modal-content, .reviews-track {
    -webkit-overflow-scrolling: touch; /* Включает "инерцию" */
}



/* =========================================
   IMPROVED Comparison Slider
   ========================================= */
.comparison-container {
    max-width: 900px; /* Чуть шире */
    margin: 0 auto 50px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border: 1px solid #ffffff; /* Белая рамка как у фотокарточки */
    user-select: none; /* Запрет выделения */
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; 
    overflow: hidden;
    cursor: col-resize; /* Курсор изменения ширины */
}

/* Картинка "После" (Фон) */
.comp-img-after {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Обертка картинки "До" (Сверху) */
.comp-img-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    will-change: width; /* Оптимизация анимации */
    border-right: 1px solid #ffffff; /* Золотая линия */
    box-shadow: 5px 0 20px rgba(0,0,0,0.5); /* Тень от линии */
}

/* Сама картинка "До" */
.comp-img-before {
    width: 100%; /* JS будет менять это значение */
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Скрытый ползунок (Input) --- */
.comp-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: col-resize;
    z-index: 10; /* Поверх всего */
    margin: 0;
    touch-action: pan-y; /* Разрешаем верт. скролл, блокируем гориз. для слайдера */
}

/* --- Декоративная кнопка по центру --- */
.comp-slider-button {
    position: absolute;
    top: 50%;
    left: 50%; /* JS меняет это */
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #001f3f; /* Золотой фон */
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
    pointer-events: none; /* Клик проходит сквозь неё */
    z-index: 5;
    transition: transform 0.1s;
}

/* Иконка внутри кнопки */
.comp-slider-button i {
    font-size: 18px;
}

/* Увеличение кнопки при нажатии (активный класс добавим JS-ом) */
.comparison-container.active .comp-slider-button {
    transform: translate(-50%, -50%) scale(1.2);
}

/* --- LABELS (Before / After) --- */
.slider-labels {
    position: absolute;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 3;
    pointer-events: none; /* Чтобы не мешали кликать */
}

.slider-label {
    background: rgba(0, 31, 63, 0.7); /* Темный полупрозрачный фон */
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease;
    opacity: 0.5; /* По умолчанию полупрозрачные */
}



/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: -100px; /* Спрятан внизу */
    left: 0;
    width: 100%;
    background-color: rgba(0, 31, 63, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10001;
    transition: bottom 0.5s ease;
    border-top: 1px solid rgba(255,255,255,0.1);
}

#cookie-banner p {
    margin: 0;
    color: #fff;
    font-size: 14px;
}

#cookie-banner button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

#cookie-banner.show-cookie {
    bottom: 0;
}

.highlight {
    color: #25F4EE; /* Ваш акцентный голубой */
    border: 1px solid #25F4EE; /* Тонкая рамка */
    padding: 0 15px;
    border-radius: 4px;
    
    /* Эффект свечения */
    box-shadow: 0 0 15px rgba(37, 244, 238, 0.2), inset 0 0 10px rgba(37, 244, 238, 0.05);
    text-shadow: 0 0 10px rgba(37, 244, 238, 0.4);
    
    background: rgba(37, 244, 238, 0.05); /* Едва заметный фон */
    display: inline-block;
    margin-top: 5px;
}

/* Улучшение карточки Most Popular */
.price-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    z-index: 2;
}

/* Стили для Glassy Button и Extras */
.extras-section {
    margin-top: 40px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Добавьте анимацию в начало файла CSS или к другим @keyframes --- */
@keyframes iridescent-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* --- Обновленные стили для кнопки --- */
.extras-glass-btn {
    /* Создаем переливающийся градиент */
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.1),  /* Почти прозрачный белый */
        rgba(37, 244, 238, 0.25),  /* Ваш акцентный голубой (Cyan) */
        rgba(138, 43, 226, 0.2),   /* Мягкий фиолетовый для перелива */
        rgba(255, 215, 0, 0.15)    /* Немного золота */
    );
    /* Увеличиваем размер фона, чтобы было куда двигаться */
    background-size: 300% 300%;
    /* Запускаем медленную бесконечную анимацию */
    animation: iridescent-shift 10s ease infinite;

    /* Улучшаем эффект стекла */
    backdrop-filter: blur(12px) saturate(150%); /* saturate делает цвета за стеклом сочнее */
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    
    /* Более выразительная стеклянная рамка */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.5); /* Верхний край светлее, как блик */
    border-bottom-color: rgba(255, 255, 255, 0.1);

    /* Глубокая тень и внутреннее свечение */
    box-shadow: 
        0 8px 32px 0 rgba(0, 31, 63, 0.25), /* Тень цвета вашего фона */
        inset 0 0 15px rgba(255, 255, 255, 0.1); /* Внутренний блик */

    /* Остальные свойства */
    padding: 15px 40px;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5); /* Чтобы текст лучше читался на переливах */
}

/* Эффект при наведении */
.extras-glass-btn:hover {
    /* Делаем градиент чуть ярче и непрозрачнее при наведении */
    background-image: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.2),
        rgba(37, 244, 238, 0.35),
        rgba(138, 43, 226, 0.3),
        rgba(255, 215, 0, 0.25)
    );
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 45px 0 rgba(0, 31, 63, 0.35),
        inset 0 0 25px rgba(255, 255, 255, 0.2); /* Усиливаем внутреннее свечение */
    border-color: rgba(255, 255, 255, 0.6);
}

.extras-glass-btn i {
    transition: transform 0.4s ease;
    color: var(--accent-color); /* Иконку можно сделать акцентным цветом */
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.extras-glass-btn.active i {
    transform: rotate(180deg);
}

.extras-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.extras-content.show {
    max-height: 500px; /* Достаточно для всего списка */
    margin-bottom: 30px;
}

.extras-inner {
    padding: 30px;
    text-align: left;
}

.extras-inner h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
    letter-spacing: 1px;
}

.extras-full-list {
    list-style: none;
    padding: 0;
}

.extras-full-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 31, 63, 0.1);
    color: #ffffff;
    font-weight: 500;
}

.extras-full-list li span {
    font-weight: 700;
    color: #00eaff;
}