/* ==========================================
   1. ОСНОВНЫЕ НАСТРОЙКИ
========================================== */

:root {
    --green-dark: #102d24;
    --green: #174b39;
    --green-light: #23674c;
    --gold: #c9a45c;
    --gold-light: #e5d09c;
    --cream: #f8f6f0;
    --white: #ffffff;
    --text: #303a34;
    --muted: #727b74;
    --border: #e7e6df;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container {
    width: min(90%, 1240px);
    margin: 0 auto;
}

.section-padding {
    padding: 105px 0;
}


/* ==========================================
   2. ШАПКА САЙТА
========================================== */

.header {
    position: relative;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid #eeeee8;
}

.header-container {
    min-height: 92px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--green-dark);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.logo-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 26px;
    flex-shrink: 0;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    display: inline-block;
    padding: 12px 14px;
    border-radius: 4px;
    color: #46534b;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--green);
    color: var(--white);
}

.nav-login {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 10px 20px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    background: var(--gold);
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease;
}

.nav-login:hover,
.nav-login.active {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--gold-light);
}


/* ==========================================
   3. ГЛАВНЫЙ ЭКРАН
========================================== */

.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #071d16;
    color: var(--white);
}

/* --- Анимированный фон главного экрана ---
   1) изображение проявляется из темноты и медленно «дышит» (приближение);
   2) проступает сетка восьмиконечных звёзд;
   3) золотая розетка прорисовывается линиями и медленно вращается;
   4) текст появляется по очереди. */

.hero-bg {
    position: absolute;
    inset: -3%;
    opacity: 0;
    transform: scale(1.14);
    animation:
        heroBgIn 2.2s cubic-bezier(.2, .7, .2, 1) forwards,
        heroBgBreath 26s ease-in-out 2.2s infinite alternate;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23c9a45c' stroke-width='0.8'%3E%3Crect x='24' y='24' width='36' height='36'/%3E%3Crect x='24' y='24' width='36' height='36' transform='rotate(45 42 42)'/%3E%3Ccircle cx='42' cy='42' r='6'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 84px 84px;
    -webkit-mask-image: radial-gradient(ellipse at 80% 45%, #000 0%, transparent 62%);
    mask-image: radial-gradient(ellipse at 80% 45%, #000 0%, transparent 62%);
    opacity: 0;
    animation: heroGridIn 3s ease 1.2s forwards, heroGridDrift 60s linear 4.2s infinite;
    pointer-events: none;
}

.hero-scene {
    display: block;
    width: 100%;
    height: 100%;
}

/* Затемнение слева — чтобы текст читался поверх сцены */
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 30, 23, 0.97) 0%,
        rgba(8, 30, 23, 0.88) 34%,
        rgba(8, 30, 23, 0.35) 58%,
        rgba(8, 30, 23, 0) 78%
    );
    pointer-events: none;
}

/* Звёзды мерцают */
.tw { animation: twinkle 3.2s ease-in-out infinite alternate; }
.tw.t2 { animation-delay: 1.1s; animation-duration: 2.6s; }
.tw.t3 { animation-delay: 0.5s; animation-duration: 4s; }
.tw.t4 { animation-delay: 1.8s; }
.moon { filter: drop-shadow(0 0 12px rgba(243, 223, 166, 0.45)); }

/* Окна загораются одно за другим */
.win-light {
    fill: #ffd77a;
    opacity: 0;
    animation: windowOn 0.8s ease forwards;
}
.win-light.w1 { animation-delay: 2.4s; }
.win-light.w2 { animation-delay: 2.7s; }
.win-light.w3 { animation-delay: 3.0s; }
.win-light.w4 { animation-delay: 3.3s; }
.win-light.w5 { animation-delay: 3.6s; }
.win-light.w6 { animation-delay: 3.9s; }

.lamp-glow { animation: lampFlicker 2.8s ease-in-out infinite alternate; }

/* Свет в дверях: вспыхивает, когда студент входит */
.door-light {
    opacity: 0.5;
    animation: doorPulse 18s ease-in-out 3s infinite;
}

/* Студент идёт по дорожке к входу (с перспективой — уменьшается) и заходит внутрь */
.student {
    opacity: 0;
    transform: translate(615px, 704px) scale(1.05);
    animation: studentWalk 18s linear 3s infinite;
}
.student-bob { animation: studentBob 0.42s ease-in-out infinite alternate; }
.leg {
    transform-box: fill-box;
    transform-origin: 50% 0;
    animation: legSwing 0.84s ease-in-out infinite alternate;
}
.leg-back { animation-direction: alternate-reverse; }

.rosette-spin {
    transform-box: fill-box;
    transform-origin: center;
    animation: rosetteSpin 140s linear 3.6s infinite;
}

.r-line {
    fill: none;
    stroke: var(--gold);
    stroke-width: 0.55;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: 0.75;
    animation: rosetteDraw 2.4s cubic-bezier(.65, 0, .35, 1) forwards;
}

.r-line.r1 { animation-delay: 0.3s; opacity: 0.4; }
.r-line.r2 { animation-delay: 0.6s; stroke-width: 0.8; }
.r-line.r2b { animation-delay: 0.9s; stroke-width: 0.8; }
.r-line.r3 { animation-delay: 1.2s; opacity: 0.45; }
.r-line.r4 { animation-delay: 1.5s; }
.r-line.r4b { animation-delay: 1.8s; }
.r-line { opacity: 0.5; }
.r-line.r1, .r-line.r3 { opacity: 0.3; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse at 85% 20%,
            rgba(201, 164, 92, 0.16),
            transparent 45%
        );
    pointer-events: none;
    animation: heroGlow 7s ease-in-out 2.5s infinite alternate;
}

/* Поочерёдное появление текста */
.hero-content > * {
    opacity: 0;
    animation: heroRise 0.9s cubic-bezier(.2, .7, .2, 1) forwards;
}
.hero-content > .hero-label { animation-delay: 0.5s; }
.hero-content > h1 { animation-delay: 0.8s; }
.hero-content > .gold-line { animation: heroLine 0.9s cubic-bezier(.2, .7, .2, 1) 1.4s forwards; transform-origin: left; }
.hero-content > .hero-description { animation-delay: 1.6s; }
.hero-content > .hero-text { animation-delay: 1.8s; }
.hero-content > .gold-button { animation-delay: 2.1s; }
.hero-bottom { opacity: 0; animation: heroFade 1.2s ease 2.6s forwards; }

@keyframes heroBgIn {
    to { opacity: 1; transform: scale(1.04); }
}
@keyframes heroBgBreath {
    from { transform: scale(1.04); }
    to { transform: scale(1.1) translateX(-1.5%); }
}
@keyframes heroGridIn { to { opacity: 0.14; } }
@keyframes heroGridDrift {
    from { background-position: 0 0; }
    to { background-position: 84px 168px; }
}
@keyframes rosetteDraw { to { stroke-dashoffset: 0; } }
@keyframes rosetteCore { to { fill: rgba(201, 164, 92, 0.35); } }
@keyframes rosetteSpin { to { transform: rotate(360deg); } }
@keyframes heroGlow { to { opacity: 0.55; } }
@keyframes heroRise {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}
@keyframes heroLine {
    from { opacity: 0; transform: scaleX(0); }
    to { opacity: 1; transform: scaleX(1); }
}
@keyframes heroFade { to { opacity: 1; } }
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 1; } }
@keyframes windowOn {
    0% { opacity: 0; }
    40% { opacity: 0.95; }
    55% { opacity: 0.55; }
    100% { opacity: 0.9; }
}
@keyframes lampFlicker { from { opacity: 0.65; } to { opacity: 1; } }
@keyframes doorPulse {
    0%, 62% { opacity: 0.5; }
    74% { opacity: 1; }
    90%, 100% { opacity: 0.5; }
}
@keyframes studentWalk {
    0% { opacity: 0; transform: translate(615px, 704px) scale(1.05); }
    5% { opacity: 1; transform: translate(632px, 699px) scale(1.02); }
    66% { opacity: 1; transform: translate(900px, 622px) scale(0.64); }
    72% { opacity: 1; transform: translate(900px, 602px) scale(0.6); }
    80% { opacity: 0; transform: translate(900px, 590px) scale(0.56); }
    100% { opacity: 0; transform: translate(900px, 590px) scale(0.56); }
}
@keyframes studentBob { from { transform: translateY(0); } to { transform: translateY(-1.6px); } }
@keyframes legSwing { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }

@media (max-width: 700px) {
    .hero-shade {
        background: linear-gradient(
            180deg,
            rgba(8, 30, 23, 0.55) 0%,
            rgba(8, 30, 23, 0.82) 45%,
            rgba(8, 30, 23, 0.9) 100%
        );
    }
    .hero-grid { -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
}

/* Без анимации — для тех, кто отключил её в системе: сразу готовая картинка */
@media (prefers-reduced-motion: reduce) {
    .hero-bg, .hero-grid, .r-line, .hero-content > *, .hero-bottom, .rosette-spin, .hero-overlay,
    .tw, .win-light, .lamp-glow, .door-light, .student, .student-bob, .leg { animation: none !important; }
    .hero-bg { opacity: 1; transform: none; }
    .hero-grid { opacity: 0.14; }
    .r-line { stroke-dashoffset: 0; }
    .win-light { opacity: 0.9; }
    .student { opacity: 1; transform: translate(780px, 656px) scale(0.82); }
    .hero-content > *, .hero-bottom { opacity: 1; transform: none; }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    padding-bottom: 120px;
}

.hero-label {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hero h1 {
    max-width: 850px;
    margin-bottom: 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 6vw, 78px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1px;
}

.gold-line {
    width: 75px;
    height: 3px;
    margin: 28px 0;
    background: var(--gold);
}

.hero-description {
    margin-bottom: 15px;
    color: var(--gold-light);
    font-size: 21px;
    font-weight: 600;
}

.hero-text {
    max-width: 650px;
    margin-bottom: 35px;
    color: #e2e9e3;
    font-size: 16px;
    line-height: 1.9;
}

.gold-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 54px;
    padding: 14px 25px;
    background: var(--gold);
    color: var(--green-dark);
    border: 1px solid var(--gold);
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.gold-button:hover {
    background: transparent;
    color: var(--gold-light);
    transform: translateY(-2px);
}

.gold-button span {
    font-size: 20px;
}

.hero-bottom {
    position: absolute;
    z-index: 2;
    right: 5%;
    bottom: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    letter-spacing: 3px;
}


/* ==========================================
   4. ПРИВЕТСТВИЕ
========================================== */

.welcome {
    background: var(--white);
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 85px;
}

.welcome-image {
    position: relative;
    height: 480px;
    background: #e8ece7;
}

.welcome-image img {
    object-position: center;
}

.image-caption {
    position: absolute;
    right: -20px;
    bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 205px;
    padding: 18px 22px;
    background: var(--green-dark);
    color: var(--white);
    font-size: 13px;
}

.image-caption span:first-child {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 27px;
}

.section-label {
    display: block;
    margin-bottom: 16px;
    color: #9b7a38;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.welcome-content h2,
.section-heading h2,
.closing-content h2 {
    color: var(--green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.5vw, 43px);
    font-weight: 400;
    line-height: 1.3;
}

.dark-line {
    margin: 24px 0;
}

.welcome-content p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 15px;
}

.text-button {
    display: inline-block;
    margin-top: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--gold);
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.25s ease;
}

.text-button:hover {
    color: #9b7a38;
}


/* ==========================================
   5. УЧЕБНАЯ ЖИЗНЬ
========================================== */

.features {
    background: var(--cream);
}

.section-heading {
    max-width: 750px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading .section-label {
    margin-bottom: 15px;
}

.section-heading h2 {
    margin-bottom: 18px;
}

.section-heading > p {
    color: var(--muted);
    font-size: 15px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.feature-card {
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(16, 45, 36, 0.1);
}

.feature-image {
    position: relative;
    height: 265px;
    overflow: hidden;
    background: #e0e5df;
}

.feature-image img {
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.feature-number {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    background: var(--gold);
    color: var(--green-dark);
    font-family: Georgia, serif;
    font-size: 18px;
}

.feature-content {
    padding: 27px 25px 30px;
}

.feature-content h3 {
    margin-bottom: 13px;
    color: var(--green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 400;
}

.feature-content p {
    min-height: 105px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.feature-content a {
    display: inline-block;
    color: #8b6a2e;
    font-size: 13px;
    font-weight: 700;
}

.feature-content a:hover {
    color: var(--green-light);
}


/* ==========================================
   6. ЭЛЕКТРОННЫЕ СЕРВИСЫ
========================================== */

.services {
    position: relative;
    background:
        linear-gradient(
            135deg,
            rgba(13, 39, 30, 0.98),
            rgba(24, 75, 57, 0.97)
        );
    color: var(--white);
}

.light-heading h2 {
    color: var(--white);
}

.light-heading > p {
    color: #d0ddd5;
}

.light-heading .section-label {
    color: var(--gold-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    max-width: 950px;
    margin: 0 auto;
}

.service-card {
    display: block;
    padding: 38px;
    border: 1px solid rgba(229, 208, 156, 0.35);
    background: rgba(255, 255, 255, 0.035);
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 25px;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-family: Georgia, serif;
    font-size: 22px;
}

.service-card h3 {
    margin-bottom: 13px;
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 400;
}

.service-card p {
    min-height: 55px;
    margin-bottom: 25px;
    color: #d0ddd5;
    font-size: 14px;
}

.service-arrow {
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 700;
}


/* ==========================================
   7. ЗАКЛЮЧИТЕЛЬНЫЙ БЛОК
========================================== */

.closing-section {
    padding: 100px 0;
    background: #f0eee5;
    text-align: center;
}

.closing-content {
    max-width: 850px;
}

.closing-content h2 {
    margin-bottom: 20px;
}

.closing-content > p {
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 15px;
}

.closing-content .gold-button:hover {
    color: var(--green-dark);
    border-color: var(--green-dark);
}


/* ==========================================
   8. ПОДВАЛ САЙТА
========================================== */

.footer {
    padding: 55px 0 25px;
    background: #0b211a;
    color: #d8e2db;
    text-align: center;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.footer-content > p {
    color: #aebdb3;
    font-size: 13px;
}

.footer-line {
    width: 55px;
    height: 1px;
    margin: 28px auto;
    background: var(--gold);
}

.footer-content .copyright {
    color: #82968a;
    font-size: 12px;
}


/* ==========================================
   9. ПЛАНШЕТЫ
========================================== */

@media (max-width: 1050px) {

    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding-top: 20px;
        padding-bottom: 15px;
    }

    .logo {
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .navigation {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }

    .nav-link {
        flex-shrink: 0;
    }

    .welcome-grid {
        gap: 45px;
    }

    .welcome-image {
        height: 400px;
    }

    .feature-image {
        height: 220px;
    }

    .feature-content {
        padding: 22px 18px 25px;
    }

    .feature-content h3 {
        font-size: 21px;
    }
}


/* ==========================================
   10. ТЕЛЕФОНЫ
========================================== */

@media (max-width: 700px) {

    .container {
        width: 92%;
    }

    .section-padding {
        padding: 70px 0;
    }

    /* Шапка */

    .header-container {
        gap: 12px;
        padding-top: 16px;
        padding-bottom: 12px;
    }

    .logo {
        font-size: 18px;
        gap: 9px;
    }

    .logo-symbol {
    width: 36px;
    height: 36px;
    padding: 3px;
}

    .navigation {
        gap: 5px;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Главный экран */

    .hero {
        min-height: 590px;
        background-position: center;
    }

    .hero-content {
        padding-top: 80px;
        padding-bottom: 100px;
    }

    .hero-label {
        font-size: 10px;
        letter-spacing: 2px;
        line-height: 1.8;
    }

    .hero h1 {
        font-size: clamp(39px, 10vw, 55px);
        letter-spacing: 0;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-text {
        font-size: 14px;
    }

    .hero-bottom {
        right: 0;
        left: 0;
        padding: 0 10px;
        text-align: center;
        font-size: 9px;
        letter-spacing: 2px;
    }

    .gold-button {
        gap: 12px;
        padding: 13px 17px;
        font-size: 13px;
    }

    /* Приветствие */

    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .welcome-image {
        height: 330px;
        margin-right: 12px;
    }

    .image-caption {
        right: -12px;
        bottom: 15px;
        min-width: 175px;
        padding: 13px 16px;
    }

    .welcome-content h2,
    .section-heading h2,
    .closing-content h2 {
        font-size: 32px;
    }

    .welcome-content p {
        font-size: 14px;
    }

    /* Карточки */

    .section-heading {
        margin-bottom: 35px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-image {
        height: 260px;
    }

    .feature-content {
        padding: 25px;
    }

    .feature-content p {
        min-height: auto;
    }

    /* Сервисы */

    .service-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card {
        padding: 27px;
    }

    .service-card h3 {
        font-size: 23px;
    }

    .service-card p {
        min-height: auto;
    }

    /* Нижний блок */

    .closing-section {
        padding: 75px 0;
    }

    .closing-content h2 {
        font-size: 30px;
    }

    /* Подвал */

    .footer {
        padding-top: 40px;
    }

    .footer-logo {
        font-size: 21px;
    }
}


/* ==========================================
   11. МАЛЕНЬКИЕ ЭКРАНЫ
========================================== */

@media (max-width: 380px) {

    .logo {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-label {
        letter-spacing: 1px;
    }

    .feature-image {
        height: 220px;
    }

    .service-card {
        padding: 22px;
    }
}


/* ==========================================
   11а. МЕНЮ-«ГАМБУРГЕР» НА ТЕЛЕФОНАХ (js/nav.js)
========================================== */

.nav-toggle {
    display: none;
}

@media (max-width: 700px) {

    .header.has-toggle .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 68px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header.has-toggle .logo {
        justify-content: flex-start;
        text-align: left;
        min-width: 0;
        flex: 1;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0 11px;
        border: 1px solid var(--gold);
        border-radius: 6px;
        background: var(--white);
        cursor: pointer;
        flex-shrink: 0;
    }

    .nav-toggle span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: var(--green-dark);
        transition: transform 0.3s ease, opacity 0.2s ease;
    }

    .header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .header.has-toggle .navigation {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        overflow: visible;
        padding: 8px 0 4px;
        border-top: 1px solid #eeeee8;
    }

    .header.nav-open .navigation {
        display: flex;
        animation: navDrop 0.25s ease;
    }

    .header.has-toggle .nav-link {
        padding: 13px 14px;
        font-size: 15px;
    }

    .header.has-toggle .nav-login {
        justify-content: center;
        margin: 6px 0 0;
        padding: 13px 20px;
        font-size: 15px;
    }

    @keyframes navDrop {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: none; }
    }
}


/* ==========================================
   12. УВАЖЕНИЕ К НАСТРОЙКАМ ДВИЖЕНИЯ
========================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА (кыргызча / русский)
========================================== */

.lang-switch {
    order: 3;
    display: inline-flex;
    flex-shrink: 0;
    padding: 3px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: var(--white);
}

.header-container .navigation { order: 2; }
.header-container .logo { order: 1; }

.lang-switch button {
    min-width: 46px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--green-dark);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch button:hover { background: #f4ecd9; }
.lang-switch button.active { background: var(--green-dark); color: var(--white); }
.lang-switch button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 1050px) {
    .lang-switch { align-self: center; }
}

@media (max-width: 700px) {
    .header.has-toggle .header-container { column-gap: 8px; }
    .header.has-toggle .logo { font-size: 15px; gap: 8px; line-height: 1.25; }
    .header.has-toggle .logo span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
    .header.has-toggle .logo-symbol { width: 34px; height: 34px; }
    .header.has-toggle .lang-switch { order: 2; align-self: center; padding: 2px; }
    .header.has-toggle .nav-toggle { order: 3; flex-shrink: 0; }
    .header.has-toggle .navigation { order: 4; }
    .lang-switch button { min-width: 34px; padding: 5px 6px; font-size: 11px; letter-spacing: 0.3px; }
}