/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-darker: #0c4a6e;
    --primary-light: #bae6fd;
    --primary-bg: #f0f9ff;
    --white: #ffffff;
    --black: #0f172a;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --shadow-sm: 0 2px 8px rgba(14, 165, 233, 0.08);
    --shadow-md: 0 8px 24px rgba(14, 165, 233, 0.12);
    --shadow-lg: 0 20px 60px rgba(14, 165, 233, 0.18);
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 12px;
    --radius-lg: 20px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== PRELOADER (3 точки) ==================== */
.preloader {
    position: fixed;
    inset: 0;
    background: #0ea5e9; /* твой фирменный голубой */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__dots {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.dot {
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-24px);
    }
}

/* ==================== HEADER ==================== */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 20px 0;
    z-index: 10001; /* ✅ ПОДНЯТ ВЫШЕ ЖИДКОГО МЕНЮ */
    transition: var(--transition);
}

.header--scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 14px 0;
}
.header--scrolled .logo { color: var(--primary-dark); }
.header--scrolled .nav__menu a { color: var(--black); }
.header--scrolled .burger span { background: var(--black); }

.nav {
    display: flex; justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}
.logo--light { color: var(--white); }

/* ═══════════════════════════════════════════════════ */
/* 🍔 BURGER MENU                                      */
/* ═══════════════════════════════════════════════════ */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    width: 32px;
    height: 24px;
    z-index: 10002; /* ✅ САМЫЙ ВЕРХНИЙ — ВСЕГДА ПОВЕРХ МЕНЮ */
    cursor: pointer;
    padding: 0;
    background: transparent;
    border: none;
    position: relative;
}

.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

/* Когда меню открыто - превращаем в крестик */
.burger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Когда header scrolled - меняем цвет бургера */
.header--scrolled .burger span {
    background: var(--black);
}
.header--scrolled .burger.active span {
    background: var(--white);
}

/* Мобильное меню */
.nav__menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__menu a {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    text-decoration: none;
    transition: color 0.3s;
}

.nav__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav__menu a:hover::after {
    width: 100%;
}

/* ═══════════════════════════════════════════════════ */
/* 📱 RESPONSIVE - МОБИЛЬНОЕ МЕНЮ (КОМПАКТНОЕ)         */
/* ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 20px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        overflow-y: auto;
        counter-reset: menu-counter;
    }

    .nav__menu.active {
        transform: translateX(0);
    }

    .nav__menu li {
        list-style: none;
        width: 90%;
        max-width: 400px;
        margin-bottom: 6px;
    }

    .nav__menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--white) !important;
        font-size: 14px;
        font-weight: 500;
        padding: 10px 14px;
        border-radius: 10px;
        transition: all 0.3s;
        width: 100%;
        text-align: left;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Нумерация пунктов меню (компактная) */
    .nav__menu a::before {
        counter-increment: menu-counter;
        content: counter(menu-counter, decimal-leading-zero);
        font-size: 11px;
        font-weight: 700;
        color: var(--primary-light);
        background: rgba(255, 255, 255, 0.12);
        width: 24px;
        height: 24px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.3s;
    }

    .nav__menu a:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(4px);
        border-color: rgba(255, 255, 255, 0.25);
    }

    .nav__menu a:hover::before {
        background: var(--primary);
        color: var(--white);
    }

    .nav__menu a::after {
        content: '→';
        margin-left: auto;
        font-size: 14px;
        opacity: 0;
        transform: translateX(-6px);
        transition: all 0.3s;
    }

    .nav__menu a:hover::after {
        opacity: 1;
        transform: translateX(0);
    }

    /* Overlay когда меню открыто */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        animation: fadeIn 0.3s;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Блокируем скролл когда меню открыто */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .nav__menu a {
        font-size: 13px;
        padding: 8px 12px;
        gap: 8px;
    }
    .nav__menu a::before {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .nav__menu li {
        margin-bottom: 5px;
    }
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    border: 2px solid transparent;
}
.btn--primary {
    background: var(--primary);
    color: var(--white);
}
.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14,165,233,0.4);
}
.btn--ghost {
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
}
.btn--ghost:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}
.btn--full { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 24px;
}
.link-arrow svg { transition: transform 0.3s; }
.link-arrow:hover svg { transform: translateX(8px); }

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute; inset: 0;
    z-index: -1;
}
.hero__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(14,165,233,0.75) 0%, rgba(12,74,110,0.85) 100%);
}

.hero__content {
    max-width: 800px;
    padding: 100px 0;
    color: var(--white);
}

.hero__badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 7vw, 80px);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 24px;
}
.hero__title span { display: block; }

.hero__address {
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
}
.hero__scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
    position: relative;
    overflow: hidden;
}
.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%; left: 0;
    width: 100%; height: 50%;
    background: var(--white);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 100px 0;
    position: relative;
}
.section:nth-child(even) { background: var(--primary-bg); }

.section__header {
    text-align: center;
    margin-bottom: 60px;
}
.section__label {
    display: inline-block;
    padding: 6px 18px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--primary-darker);
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto;
}

/* ==================== ABOUT ==================== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about__text p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.8;
}
.about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}
.stat {
    text-align: center;
    padding: 32px 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.stat:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.stat__number {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}
.stat__label {
    font-size: 13px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ==================== GALLERY ==================== */
.gallery__tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.gallery__tab {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}
.gallery__tab:hover, .gallery__tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gallery__item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery__item:nth-child(1),
.gallery__item:nth-child(6) { grid-column: span 2; grid-row: span 2; }

.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.gallery__item:hover img { transform: scale(1.1); }

.gallery__overlay {
    position: absolute; inset: 0;
    background: rgba(14,165,233,0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery__item:hover .gallery__overlay { opacity: 1; }

/* ═══════════════════════════════════════════════════ */
/* 💰 PRICES TABLE                                      */
/* ═══════════════════════════════════════════════════ */
.prices__table {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.prices__table table {
    width: 100%;
    border-collapse: collapse;
}
.prices__table th {
    background: var(--primary-darker);
    color: var(--white);
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.prices__table td {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 15px;
    color: var(--gray-800);
}
.prices__table tr:hover td {
    background: var(--primary-bg);
}
.prices__table tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════ */
/* 📱 МОБИЛЬНАЯ ВЕРСИЯ - КАРТОЧКИ                       */
/* ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .prices__table {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }
    .prices__table thead {
        display: none;
    }

    .prices__table table,
    .prices__table tbody,
    .prices__table tr,
    .prices__table td {
        display: block;
        width: 100%;
    }

    .prices__table tbody {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }

    .prices__table tr {
        background: var(--white);
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
        border: 2px solid transparent;
        transition: all 0.3s;
        margin-bottom: 0;
    }

    .prices__table tr:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(14, 165, 233, 0.2);
        border-color: var(--primary);
    }

    .prices__table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border: none;
        border-bottom: 1px solid var(--gray-200);
        font-size: 14px;
    }

    .prices__table td:last-child {
        border-bottom: none;
        padding-top: 16px;
        margin-top: 8px;
        border-top: 2px solid var(--primary-light);
    }

    .prices__table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-600);
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-right: 12px;
    }

    .prices__table td:last-child {
        justify-content: center;
        font-size: 20px;
    }

    .prices__table td:last-child::before {
        display: none;
    }

    .prices__table td:last-child strong {
        color: var(--primary);
        font-size: 24px;
        font-weight: 700;
    }

    /* Иконка для типа квартиры */
    .prices__table td:first-child {
        font-size: 18px;
        font-weight: 700;
        color: var(--primary-darker);
        padding-bottom: 16px;
        margin-bottom: 8px;
        border-bottom: 2px solid var(--gray-200);
    }

    .prices__table td:first-child::before {
        content: '🏠 ' attr(data-label);
        font-size: 12px;
        color: var(--gray-400);
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .prices__table tbody {
        grid-template-columns: 1fr;
    }
    .prices__table tr {
        padding: 20px;
    }

    .prices__table td {
        font-size: 13px;
    }

    .prices__table td:last-child strong {
        font-size: 22px;
    }
}

/* ==================== ADVANTAGES ==================== */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.advantage-card {
    padding: 40px 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.advantage-card__icon {
    width: 80px; height: 80px;
    background: var(--primary-bg);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition);
}
.advantage-card:hover .advantage-card__icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(-5deg);
}
.advantage-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-darker);
}
.advantage-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ==================== INFRASTRUCTURE ==================== */
.infrastructure__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.infrastructure__content p {
    font-size: 16px;
    color: var(--gray-600);
    margin: 20px 0 24px;
    line-height: 1.8;
}
.infrastructure__list { margin-bottom: 32px; }
.infrastructure__list li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: var(--gray-800);
    font-size: 15px;
    border-bottom: 1px solid var(--gray-200);
}
.infrastructure__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}
.infrastructure__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.infrastructure__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.infrastructure__image:hover img { transform: scale(1.05); }

/* ==================== LOCATION ==================== */
.location__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: stretch;
}
.location__info { padding: 24px 0; }
.location__info > p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 32px;
}
.location__features {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}
.location__feature {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px;
    background: var(--primary-bg);
    border-radius: var(--radius);
}
.location__feature-value {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.location__feature-label {
    color: var(--gray-600);
    font-size: 14px;
}
.location__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}
.location__map iframe { width: 100%; height: 100%; min-height: 400px; }

/* ==================== NEWS ==================== */
.news__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.news__card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.news__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.news__image { aspect-ratio: 16/9; overflow: hidden; }
.news__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.news__card:hover .news__image img { transform: scale(1.08); }
.news__content { padding: 32px; }
.news__date {
    display: block;
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
}
.news__content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-darker);
    margin-bottom: 12px;
    line-height: 1.3;
}
.news__content p {
    color: var(--gray-600);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ==================== REVIEWS ==================== */
.reviews__slider { position: relative; overflow: hidden; }
.reviews__track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}
.review-card {
    flex: 0 0 calc(33.333% - 16px);
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}
.review-card__stars {
    display: flex;
    gap: 4px;
    color: #fbbf24;
    margin-bottom: 16px;
}
.review-card__text {
    font-size: 15px;
    color: var(--gray-800);
    line-height: 1.7;
    margin-bottom: 20px;
}
.review-card__author strong {
    display: block;
    color: var(--primary-darker);
    margin-bottom: 4px;
}
.review-card__author span {
    font-size: 12px;
    color: var(--gray-400);
}
.reviews__controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}
.reviews__btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    font-size: 18px;
    color: var(--primary-dark);
    transition: var(--transition);
    border: 2px solid var(--primary);
}
.reviews__btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* ==================== CONTACTS ==================== */
.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-item { margin-bottom: 24px; }
.contact-item__label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    font-weight: 600;
    margin-bottom: 4px;
}
.contact-item__value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-darker);
    display: block;
}
a.contact-item__value:hover { color: var(--primary); }

.contacts__socials {
    display: flex;
    gap: 12px;
    margin: 32px 0;
}
.social-link {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-dark);
    transition: var(--transition);
}
.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
}

.contacts__documents {
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}
.contacts__documents h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
    margin-bottom: 16px;
}
.contacts__documents li {
    padding: 8px 0;
}
.contacts__documents a {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 500;
}
.contacts__documents a:hover { text-decoration: underline; }

.contacts__form {
    background: var(--primary-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
}
.contacts__form h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-darker);
    margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--white);
    background: var(--white);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.form-privacy {
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
    margin-top: 12px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-darker);
    color: var(--white);
    padding: 60px 0 30px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer__brand p {
    color: rgba(255,255,255,0.7);
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 400px;
}
.footer h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--primary-light);
}
.footer__nav ul { display: grid; gap: 10px; }
.footer__nav a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}
.footer__nav a:hover { color: var(--white); }
.footer__contact p { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 8px; }
.footer__contact a:hover { color: var(--white); }
.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center; justify-content: center;
    z-index: 9998;
    padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox__close {
    position: absolute;
    top: 24px; right: 24px;
    width: 48px; height: 48px;
    color: white;
    font-size: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
}

/* ==================== ARTICLE ==================== */
.article__hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}
.article__hero img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
}
.article__hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(12,74,110,0.95), rgba(14,165,233,0.5));
    z-index: 0;
}
.article__hero-content {
    position: relative; z-index: 1;
    padding: 60px 0;
    color: white;
}
.article__category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.article__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.2;
    max-width: 800px;
}
.article__date {
    display: block;
    margin-top: 16px;
    opacity: 0.8;
}
.article__content {
    max-width: 800px;
    padding: 60px 24px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-800);
}
.article__lead {
    font-size: 20px;
    color: var(--primary-darker);
    font-weight: 500;
    margin-bottom: 32px;
}
.article__content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--primary-darker);
    margin: 48px 0 20px;
}
.article__content p { margin-bottom: 20px; }
.article__content ul, .article__content ol { margin: 20px 0 20px 24px; }
.article__content li { margin-bottom: 12px; }
.article__content ol { list-style: decimal; }
.article__content ul { list-style: disc; }
.article__cta {
    margin-top: 60px;
    padding: 40px;
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
    text-align: center;
}
.article__cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--primary-darker);
    margin-bottom: 16px;
}
.article__cta p { margin-bottom: 24px; }

/* ==================== ANIMATIONS ==================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.social-link--viber:hover { background: #7360f2; color: white; }
.social-link--whatsapp:hover { background: #25d366; color: white; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .gallery__grid { grid-template-columns: repeat(2, 1fr); }
    .advantages__grid { grid-template-columns: repeat(2, 1fr); }
    .about__stats { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }

    .nav__menu {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--primary-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transform: translateX(100%);
        transition: var(--transition);
    }
    .nav__menu.active { transform: translateX(0); }
    .nav__menu a {
        color: var(--white) !important;
        font-size: 24px;
    }
    .burger { display: flex; }

    .hero__content { padding: 120px 0 80px; }
    .hero__title { font-size: 40px; }

    .about__grid,
    .infrastructure__grid,
    .location__grid,
    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about__stats { grid-template-columns: 1fr 1fr; }

    .gallery__grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .gallery__item:nth-child(1),
    .gallery__item:nth-child(6) { grid-column: span 2; grid-row: span 1; }

    .advantages__grid { grid-template-columns: 1fr; }

    .prices__table { overflow-x: auto; }
    .prices__table thead { display: none; }
    .prices__table tr {
        display: block;
        margin-bottom: 16px;
        background: var(--white);
        border-radius: var(--radius);
        padding: 16px;
        box-shadow: var(--shadow-sm);
    }
    .prices__table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid var(--gray-200);
    }
    .prices__table td:last-child { border: none; }
    .prices__table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-400);
        font-size: 13px;
        text-transform: uppercase;
    }

    .news__grid { grid-template-columns: 1fr; }

    .review-card { flex: 0 0 100%; }

    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { justify-content: center; text-align: center; }

    .contacts__form { padding: 24px; }
    .btn { padding: 12px 24px; font-size: 13px; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section__title { font-size: 28px; }
    .hero__title { font-size: 32px; }
    .hero__address { font-size: 14px; }
    .about__stats { grid-template-columns: 1fr; }
    .stat__number { font-size: 36px; }
    .gallery__grid { grid-template-columns: 1fr; }
    .gallery__item:nth-child(1),
    .gallery__item:nth-child(6) { grid-column: span 1; }
    .reviews__btn { width: 40px; height: 40px; }
}

/* Print styles */
@media print {
    .header, .footer, .hero__scroll, .lightbox, .preloader { display: none !important; }
    .section { padding: 20px 0; break-inside: avoid; }
}

/* ═══════════════════════════════════════════════════ */
/* 📰 ОДИНОЧНАЯ НОВОСТЬ - ЦЕНТРИРОВАНИЕ                */
/* ═══════════════════════════════════════════════════ */
.news__grid > a:only-child {
    max-width: 800px;
    margin: 0 auto;
    grid-column: 1 / -1;
}
.news__grid > a:only-child .news__image {
    aspect-ratio: 21/9;
}
.news__grid > a:only-child .news__content {
    padding: 40px;
}
.news__grid > a:only-child h3 {
    font-size: 28px;
}
.news__grid > a:only-child p {
    font-size: 17px;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .news__grid > a:only-child {
        max-width: 100%;
    }
    .news__grid > a:only-child .news__content {
        padding: 24px;
    }

    .news__grid > a:only-child h3 {
        font-size: 22px;
    }
}

/* ═══════════════════════════════════════════════════ */
/* 🌊 ЖИДКОЕ МЕНЮ (ЭФФЕКТ КРАСКИ)                      */
/* ═══════════════════════════════════════════════════ */
.liquid-menu {
    position: fixed;
    inset: 0;
    z-index: 9999; /* ✅ НИЖЕ header(10001) и burger(10002) */
    pointer-events: none;
    overflow: hidden;
    visibility: hidden;
}

.liquid-menu.active {
    pointer-events: auto;
    visibility: visible;
}

/* Капли краски с gooey эффектом */
.liquid-blobs {
    position: absolute;
    inset: 0;
    filter: url(#gooey);
    z-index: 1;
}

.blob {
    position: absolute;
    background: #0ea5e9;
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s;
}

/* Начальная позиция — правый верхний угол (где бургер) */
.blob-1 {
    width: 150vmax;
    height: 150vmax;
    top: -75vmax;
    right: -75vmax;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}
.blob-2 {
    width: 120vmax;
    height: 120vmax;
    top: -40vmax;
    right: -30vmax;
    background: #0c4a6e;
    transition-delay: 0.05s;
}
.blob-3 {
    width: 140vmax;
    height: 140vmax;
    top: 10vmax;
    right: -60vmax;
    background: #0284c7;
    transition-delay: 0.1s;
}
.blob-4 {
    width: 160vmax;
    height: 160vmax;
    top: -20vmax;
    right: 10vmax;
    background: linear-gradient(135deg, #0ea5e9, #0c4a6e);
    transition-delay: 0.15s;
}
.blob-5 {
    width: 180vmax;
    height: 180vmax;
    top: 30vmax;
    right: -80vmax;
    background: #0284c7;
    transition-delay: 0.2s;
}

/* Когда меню открыто — капли расширяются */
.liquid-menu.active .blob {
    transform: scale(1.5);
    opacity: 1;
}

/* Фоновое изображение появляется после краски */
.liquid-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/fone.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease 1s;
    z-index: 2;
}
.liquid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 74, 110, 0.88), rgba(14, 165, 233, 0.78));
}
.liquid-menu.active .liquid-bg {
    opacity: 1;
}

/* Контент меню - скрыт по умолчанию */
.liquid-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease 1.2s, visibility 0.5s ease 1.2s;
}
.liquid-menu.active .liquid-content {
    opacity: 1;
    visibility: visible;
}

.liquid-wrapper {
    max-width: 700px;
    width: 100%;
}

/* Кнопка закрытия */
.liquid-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: rotate(-90deg);
    transition: opacity 0.4s ease 1.6s, transform 0.4s ease 1.6s, background 0.3s;
}
.liquid-menu.active .liquid-close {
    opacity: 1;
    transform: rotate(0);
}
.liquid-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}
.liquid-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
}
.liquid-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}
.liquid-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Секции меню */
.liquid-section {
    margin-bottom: 48px;
}
.liquid-section:last-child {
    margin-bottom: 0;
}

.liquid-title {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 7vw, 56px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.liquid-menu.active .liquid-section:nth-child(1) .liquid-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.4s;
}
.liquid-menu.active .liquid-section:nth-child(2) .liquid-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.7s;
}

/* Кнопки в меню */
.liquid-buttons {
    display: grid;
    gap: 12px;
}
.liquid-buttons--2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Кнопки в меню - БЕЗ РАМОК И ФОНА */
.liquid-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.5px;
    transition: all 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

/* Эффект подсветки при наведении */
.liquid-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transform: translateX(-50%);
    transition: width 0.4s ease;
}
.liquid-btn:hover {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: white;
    letter-spacing: 1.5px;
}
.liquid-btn:hover::before {
    width: 100%;
}

/* Убираем hover-эффект с кругом */
.liquid-btn::after {
    display: none;
}

/* Последовательное появление кнопок */
.liquid-menu.active .liquid-section:nth-child(1) .liquid-btn:nth-child(1) {
    opacity: 1; transform: translateY(0); transition-delay: 1.5s;
}
.liquid-menu.active .liquid-section:nth-child(1) .liquid-btn:nth-child(2) {
    opacity: 1; transform: translateY(0); transition-delay: 1.6s;
}
.liquid-menu.active .liquid-section:nth-child(2) .liquid-btn:nth-child(1) {
    opacity: 1; transform: translateY(0); transition-delay: 1.8s;
}
.liquid-menu.active .liquid-section:nth-child(2) .liquid-btn:nth-child(2) {
    opacity: 1; transform: translateY(0); transition-delay: 1.9s;
}
.liquid-menu.active .liquid-section:nth-child(2) .liquid-btn:nth-child(3) {
    opacity: 1; transform: translateY(0); transition-delay: 2.0s;
}
.liquid-menu.active .liquid-section:nth-child(2) .liquid-btn:nth-child(4) {
    opacity: 1; transform: translateY(0); transition-delay: 2.1s;
}
.liquid-menu.active .liquid-section:nth-child(2) .liquid-btn:nth-child(5) {
    opacity: 1; transform: translateY(0); transition-delay: 2.2s;
}
.liquid-menu.active .liquid-section:nth-child(2) .liquid-btn:nth-child(6) {
    opacity: 1; transform: translateY(0); transition-delay: 2.3s;
}

/* Адаптивность жидкого меню */
@media (max-width: 480px) {
    .liquid-content {
        padding: 70px 16px 30px;
    }
    .liquid-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .liquid-buttons--2 {
        grid-template-columns: 1fr;
    }

    .liquid-btn {
        padding: 16px 20px;
        font-size: 15px;
    }

    .liquid-section {
        margin-bottom: 32px;
    }
}

/* Блокируем скролл когда меню открыто */
body.liquid-menu-open {
    overflow: hidden;
}

/* Скрываем старый мобильный список */
@media (max-width: 768px) {
    .nav__menu {
        display: none !important;
    }
    .burger {
        display: flex !important;
        z-index: 10002; /* ✅ Гарантированно выше меню */
    }

    .burger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Капли меню мгновенно исчезают при закрытии (без анимации) */
.liquid-menu:not(.active) .blob {
    opacity: 0 !important;
    transform: scale(0) !important;
    transition: none !important;
}

/* Контент меню мгновенно скрывается при закрытии */
.liquid-menu:not(.active) .liquid-content {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: none !important;
}

/* Крестик внутри меню мгновенно исчезает при закрытии */
.liquid-menu:not(.active) .liquid-close {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: none !important;
}

/* Фон меню мгновенно скрывается при закрытии */
.liquid-menu:not(.active) .liquid-bg {
    opacity: 0 !important;
    transition: none !important;
}

/* Бургер всегда кликабельный и поверх всего */
.burger {
    position: relative;
    z-index: 10002 !important;
}

/* Хедер всегда поверх жидкого меню */
.header {
    z-index: 10001 !important;
}

/* Убираем pointer-events с неактивного меню, чтобы бургер был кликабельным */
.liquid-menu:not(.active) {
    pointer-events: none !important;
}


/* ═══════════════════════════════════════════════════ */
/* 🎯 ПРЕЛОАДЕР ПОВЕРХ ВСЕГО + СКРЫТИЕ ХЕДЕРА В МЕНЮ  */
/* ═══════════════════════════════════════════════════ */

/* 1. Прелоадер теперь поверх всего (включая хедер) */
.preloader {
    z-index: 99999 !important;
}

/* 2. Хедер плавно уходит вверх при открытом меню */
.header {
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 0.5s ease !important;
}

body.liquid-menu-open .header {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* 3. Хедер появляется с анимацией после загрузки */
.header {
    opacity: 0;
    transform: translateY(-20px);
}

.header--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Но если меню открыто, скрываем хедер даже если он visible */
body.liquid-menu-open .header.header--visible {
    transform: translateY(-100%);
    opacity: 0;
}

/* ═══════════════════════════════════════════════════ */
/* 🎨 ИСПРАВЛЕНИЕ БЕЛОЙ ПОЛОСЫ                          */
/* ═══════════════════════════════════════════════════ */

/* 1. Фон жидкого меню — чтобы не просвечивал body */
.liquid-menu {
    background: var(--primary-darker) !important;
}

/* 2. Фон body при загрузке — тот же цвет, что прелоадер */
body {
    background: var(--primary) !important;
    transition: background 0.6s ease 0.3s !important;
}

/* После загрузки — обычный белый фон */
body.loaded {
    background: var(--white) !important;
}

/* 3. При открытом меню — тёмный фон body */
body.liquid-menu-open {
    background: var(--primary-darker) !important;
}

/* 4. Компенсируем исчезновение скроллбара (чтобы страница не дёргалась) */
body.liquid-menu-open {
    padding-right: calc(100vw - 100%) !important;
}

/* 5. Прелоадер покрывает всё полностью */
.preloader {
    background: var(--primary) !important;
}

/* ═══════════════════════════════════════════════════ */
/* 🩵 ГОЛУБОЕ МЕНЮ — ЗАЛИВКА ЯРКИМ ГОЛУБЫМ              */
/* ═══════════════════════════════════════════════════ */

/* 1. Капли (blobs) — все ярко-голубые */
.liquid-menu .blob {
    background: #0ea5e9 !important;
}

/* Разные оттенки голубого для эффекта глубины */
.liquid-menu .blob-1 {
    background: #38bdf8 !important; /* Светло-голубой */
}
.liquid-menu .blob-2 {
    background: #0ea5e9 !important; /* Основной голубой */
}
.liquid-menu .blob-3 {
    background: #7dd3fc !important; /* Небесно-голубой */
}
.liquid-menu .blob-4 {
    background: #0284c7 !important; /* Насыщенный голубой */
}
.liquid-menu .blob-5 {
    background: #38bdf8 !important; /* Светло-голубой */
}

/* 2. Фон меню — голубой */
.liquid-menu {
    background: #0ea5e9 !important;
}

/* 3. Оверлей на фоновой картинке — голубой */
.liquid-bg::after {
    background: linear-gradient(
        135deg,
        rgba(14, 165, 233, 0.95),
        rgba(56, 189, 248, 0.90)
    ) !important;
}

/* 4. Фон body при открытом меню — голубой */
body.liquid-menu-open {
    background: #0ea5e9 !important;
}

/* 5. Кнопки в меню — белый текст хорошо читается на голубом */
.liquid-btn {
    color: white !important;
    border-bottom-color: rgba(255, 255, 255, 0.25) !important;
}
.liquid-btn:hover {
    border-bottom-color: rgba(255, 255, 255, 0.6) !important;
    letter-spacing: 1.5px;
}
.liquid-btn::before {
    background: white !important;
}

/* 6. Заголовки в меню — белые с тенью для читаемости */
.liquid-title {
    color: white !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15) !important;
}

/* 7. Крестик закрытия — белее, чтобы было видно */
.liquid-close {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}
.liquid-close:hover {
    background: rgba(255, 255, 255, 0.4) !important;
}

/* 8. Бургер при открытом меню — остаётся белым (чтобы был виден) */
.header--scrolled .burger.active span {
    background: white !important;
}

/* ═══════════════════════════════════════════════════ */
/* 🎯 КНОПКИ ВЫЛЕТАЮТ С БОКОВ (СПРАВА/СЛЕВА ПО ОЧЕРЕДИ) */
/* ═══════════════════════════════════════════════════ */

/* Сбрасываем старые анимации */
.liquid-menu.active .liquid-btn,
.liquid-menu.active .liquid-title,
.liquid-menu.active .liquid-close {
    animation: none !important;
    transition: none !important;
}

/* Заголовки появляются первыми — с обеих сторон к центру */
.liquid-menu.active .liquid-section:nth-child(1) .liquid-title {
    animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both !important;
}
.liquid-menu.active .liquid-section:nth-child(2) .liquid-title {
    animation: slideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both !important;
}

/* ═══════════════════════════════════════════════════ */
/* 🚀 КНОПКИ ВЫЛЕТАЮТ ПО ОЧЕРЕДИ: ПРАВО → ЛЕВО → ПРАВО */
/* ═══════════════════════════════════════════════════ */

/* Первая секция - кнопки вылетают справа и слева */
.liquid-menu.active .liquid-section:nth-child(1) .liquid-btn:nth-child(1) {
    animation: slideInRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s both !important;
}
.liquid-menu.active .liquid-section:nth-child(1) .liquid-btn:nth-child(2) {
    animation: slideInLeft 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both !important;
}

/* Вторая секция - чередуем: право, лево, право, лево... */
.liquid-menu.active .liquid-section:nth-child(2) .liquid-btn:nth-child(1) {
    animation: slideInRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s both !important;
}
.liquid-menu.active .liquid-section:nth-child(2) .liquid-btn:nth-child(2) {
    animation: slideInLeft 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s both !important;
}
.liquid-menu.active .liquid-section:nth-child(2) .liquid-btn:nth-child(3) {
    animation: slideInRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both !important;
}
.liquid-menu.active .liquid-section:nth-child(2) .liquid-btn:nth-child(4) {
    animation: slideInLeft 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s both !important;
}
.liquid-menu.active .liquid-section:nth-child(2) .liquid-btn:nth-child(5) {
    animation: slideInRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.7s both !important;
}
.liquid-menu.active .liquid-section:nth-child(2) .liquid-btn:nth-child(6) {
    animation: slideInLeft 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s both !important;
}

/* Крестик закрытия вылетает сверху */
.liquid-menu.active .liquid-close {
    animation: slideInTop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s both !important;
}

/* ═══════════════════════════════════════════════════ */
/* ✨ АНИМАЦИИ ВЫЛЕТА С РАЗНЫХ СТОРОН                  */
/* ═══════════════════════════════════════════════════ */

/* Вылет СПРАВА с отскоком */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(120px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateX(-10px) scale(1.02);
    }
    80% {
        transform: translateX(5px) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Вылет СЛЕВА с отскоком */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-120px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateX(10px) scale(1.02);
    }
    80% {
        transform: translateX(-5px) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Вылет СВЕРХУ для крестика */
@keyframes slideInTop {
    0% {
        opacity: 0;
        transform: translateY(-60px) rotate(-180deg) scale(0.5);
    }
    70% {
        opacity: 1;
        transform: translateY(5px) rotate(10deg) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0) scale(1);
    }
}

/* ═══════════════════════════════════════════════════ */
/* 🌊 ПЛАВНОЕ ИСЧЕЗНОВЕНИЕ ПРИ ЗАКРЫТИИ               */
/* ═══════════════════════════════════════════════════ */

/* При закрытии — улетают в те же стороны, откуда пришли */
.liquid-menu:not(.active) .liquid-section:nth-child(1) .liquid-btn:nth-child(odd),
.liquid-menu:not(.active) .liquid-section:nth-child(2) .liquid-btn:nth-child(odd) {
    opacity: 0 !important;
    transform: translateX(80px) scale(0.9) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    animation: none !important;
}

.liquid-menu:not(.active) .liquid-section:nth-child(1) .liquid-btn:nth-child(even),
.liquid-menu:not(.active) .liquid-section:nth-child(2) .liquid-btn:nth-child(even) {
    opacity: 0 !important;
    transform: translateX(-80px) scale(0.9) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    animation: none !important;
}

.liquid-menu:not(.active) .liquid-title {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    animation: none !important;
}

.liquid-menu:not(.active) .liquid-close {
    opacity: 0 !important;
    transform: translateY(-40px) rotate(90deg) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    animation: none !important;
}