/* ─── AQUA MALACCA — Hero & header responsive (front page) ─── */

:root {
    --hero-break-lg: 1280px;
    --hero-break-md: 1024px;
    --hero-break-sm: 768px;
    --hero-break-xs: 480px;
}

/* ─── Mobile header shell ─── */

.site-header__menu-toggle,
.site-header__backdrop {
    display: none;
}

body.is-mobile-nav-open {
    overflow: hidden;
}

/* ─── Large laptop ─── */

@media (max-width: 1280px) {
    :root {
        --hero-pad-x: 28px;
    }

    .hero {
        min-height: 760px;
    }

    .hero__glass {
        width: min(480px, 50vw);
        padding: 38px 36px 32px 32px;
    }

    .hero__headline {
        font-size: clamp(38px, 4.2vw, 58px);
    }

    .hero__desc {
        max-width: 320px;
    }
}

/* ─── Tablet landscape ─── */

@media (max-width: 1024px) {
    :root {
        --hero-pad-x: 24px;
        --hero-pad-y: 20px;
    }

    .hero {
        min-height: 720px;
    }

    .hero__overlay {
        background:
            linear-gradient(112deg, rgba(12, 18, 22, 0.58) 0%, rgba(12, 18, 22, 0.32) 42%, rgba(12, 18, 22, 0.12) 68%, rgba(0, 0, 0, 0.08) 100%),
            radial-gradient(ellipse at 80% 50%, transparent 28%, rgba(0, 0, 0, 0.14) 100%);
    }

    .hero__main {
        gap: 20px;
    }

    .hero__glass {
        width: min(440px, 58vw);
        padding: 34px 30px 28px 28px;
    }

    .hero__headline {
        font-size: clamp(34px, 5vw, 52px);
        margin-bottom: 18px;
    }

    .hero__desc {
        font-size: 12.5px;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .hero__counter-wrap {
        margin-top: 28px;
        padding-top: 20px;
    }

    .hero__controls .hero__arrow {
        width: 42px;
        height: 42px;
    }

    .hero__info {
        max-width: 320px;
    }
}

/* ─── Tablet — compact header nav ─── */

@media (max-width: 1280px) {
    .site-header__nav {
        gap: 20px;
    }

    .site-header__nav-links {
        gap: 18px;
    }

    .site-header__nav-link {
        font-size: 10px;
        letter-spacing: 0.16em;
    }
}

@media (max-width: 1024px) {
    .site-header {
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
        padding-bottom: 12px;
    }

    .site-header__inner {
        align-items: center;
        gap: 12px;
    }

    .site-header__menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-inline-start: auto;
        margin-inline-end: 0;
        flex-shrink: 0;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        cursor: pointer;
        color: rgba(255, 255, 255, 0.92);
        transition:
            transform 0.35s var(--theme-ease, cubic-bezier(0.22, 1, 0.36, 1)),
            border-color 0.35s ease,
            background 0.35s ease;
        z-index: 1002;
    }

    .site-header--scrolled .site-header__menu-toggle,
    body.has-site-header .site-header__menu-toggle {
        border-color: var(--header-btn-border, rgba(44, 48, 46, 0.12));
        background: var(--header-btn-bg, rgba(255, 255, 255, 0.72));
        color: var(--header-text, rgba(44, 48, 46, 0.92));
    }

    .site-header__menu-bar {
        display: block;
        width: 18px;
        height: 1.5px;
        border-radius: 999px;
        background: currentColor;
        transition:
            transform 0.4s var(--theme-ease, cubic-bezier(0.22, 1, 0.36, 1)),
            opacity 0.3s ease,
            width 0.3s ease;
    }

    body.is-mobile-nav-open .site-header__menu-bar:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    body.is-mobile-nav-open .site-header__menu-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    body.is-mobile-nav-open .site-header__menu-bar:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .site-header__backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(8, 10, 12, 0.52);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 0.45s ease,
            visibility 0.45s ease;
    }

    body.is-mobile-nav-open .site-header__backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-header__nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(340px, 88vw);
        height: 100dvh;
        height: 100svh;
        margin: 0;
        padding:
            calc(88px + env(safe-area-inset-top, 0px))
            24px
            calc(24px + env(safe-area-inset-bottom, 0px));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background:
            linear-gradient(165deg, rgba(18, 20, 22, 0.96) 0%, rgba(10, 12, 14, 0.98) 100%);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -24px 0 64px rgba(0, 0, 0, 0.28);
        transform: translateX(105%);
        transition: transform 0.55s var(--theme-ease, cubic-bezier(0.22, 1, 0.36, 1));
        z-index: 1001;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    html[dir="rtl"] .site-header__nav {
        right: auto;
        left: 0;
        border-left: none;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 24px 0 64px rgba(0, 0, 0, 0.28);
        transform: translateX(-105%);
    }

    body.is-mobile-nav-open .site-header__nav {
        transform: translateX(0);
    }

    body.has-site-header .site-header__nav,
    .site-header--scrolled .site-header__nav {
        background:
            linear-gradient(165deg, rgba(252, 251, 250, 0.98) 0%, rgba(243, 239, 232, 0.98) 100%);
        border-left-color: rgba(44, 48, 46, 0.08);
    }

    html[data-theme="dark"] body.has-site-header .site-header__nav,
    html[data-theme="dark"] .site-header--scrolled .site-header__nav {
        background:
            linear-gradient(165deg, rgba(18, 20, 18, 0.98) 0%, rgba(10, 11, 10, 0.98) 100%);
    }

    .site-header__nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin-bottom: 8px;
    }

    .site-header__nav-link {
        display: block;
        padding: 16px 0;
        font-size: 12px;
        letter-spacing: 0.2em;
        color: rgba(255, 255, 255, 0.88);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-header__nav-link.is-current {
        color: var(--amber);
    }

    body.has-site-header .site-header__nav-link,
    .site-header--scrolled .site-header__nav-link {
        color: var(--header-nav, rgba(44, 48, 46, 0.72));
        border-bottom-color: rgba(44, 48, 46, 0.08);
    }

    body.has-site-header .site-header__nav-link.is-current,
    .site-header--scrolled .site-header__nav-link.is-current {
        color: var(--amber);
    }

    .site-header__nav-link::after {
        display: none;
    }

    .site-header__nav-tools {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        width: 100%;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.has-site-header .site-header__nav-tools,
    .site-header--scrolled .site-header__nav-tools {
        border-top-color: rgba(44, 48, 46, 0.08);
    }

    .site-header__theme-toggle,
    .site-header__lang-toggle {
        margin-top: 0;
        margin-inline-start: 0;
        align-self: center;
    }

    .site-header--intro .site-header__nav-link,
    .site-header--intro .site-header__theme-toggle,
    .site-header--intro .site-header__lang-toggle {
        opacity: 1;
    }

    .site-header--intro .site-header__menu-toggle {
        opacity: 1;
    }
}

/* ─── Tablet portrait & mobile header ─── */

@media (max-width: 768px) {
    :root {
        --hero-pad-x: 20px;
        --hero-pad-y: 16px;
    }

    .site-header {
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
        padding-bottom: 12px;
    }

    .site-header__inner {
        align-items: center;
        gap: 12px;
    }

    .site-header__logo {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    .site-header__logo-icon {
        width: 30px;
        height: 30px;
    }

    .site-header__logo-text {
        font-size: 10px;
        letter-spacing: 0.24em;
    }

    .site-header__menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-inline-start: auto;
        margin-inline-end: 0;
        flex-shrink: 0;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        cursor: pointer;
        color: rgba(255, 255, 255, 0.92);
        transition:
            transform 0.35s var(--theme-ease, cubic-bezier(0.22, 1, 0.36, 1)),
            border-color 0.35s ease,
            background 0.35s ease;
        z-index: 1002;
    }

    .site-header--scrolled .site-header__menu-toggle,
    body.has-site-header .site-header__menu-toggle {
        border-color: var(--header-btn-border, rgba(44, 48, 46, 0.12));
        background: var(--header-btn-bg, rgba(255, 255, 255, 0.72));
        color: var(--header-text, rgba(44, 48, 46, 0.92));
    }

    .site-header__menu-bar {
        display: block;
        width: 18px;
        height: 1.5px;
        border-radius: 999px;
        background: currentColor;
        transition:
            transform 0.4s var(--theme-ease, cubic-bezier(0.22, 1, 0.36, 1)),
            opacity 0.3s ease,
            width 0.3s ease;
    }

    body.is-mobile-nav-open .site-header__menu-bar:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    body.is-mobile-nav-open .site-header__menu-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    body.is-mobile-nav-open .site-header__menu-bar:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .site-header__backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(8, 10, 12, 0.52);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 0.45s ease,
            visibility 0.45s ease;
    }

    body.is-mobile-nav-open .site-header__backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-header__nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(340px, 88vw);
        height: 100dvh;
        height: 100svh;
        margin: 0;
        padding:
            calc(88px + env(safe-area-inset-top, 0px))
            24px
            calc(24px + env(safe-area-inset-bottom, 0px));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background:
            linear-gradient(165deg, rgba(18, 20, 22, 0.96) 0%, rgba(10, 12, 14, 0.98) 100%);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -24px 0 64px rgba(0, 0, 0, 0.28);
        transform: translateX(105%);
        transition: transform 0.55s var(--theme-ease, cubic-bezier(0.22, 1, 0.36, 1));
        z-index: 1001;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    html[dir="rtl"] .site-header__nav {
        right: auto;
        left: 0;
        border-left: none;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 24px 0 64px rgba(0, 0, 0, 0.28);
        transform: translateX(-105%);
    }

    body.is-mobile-nav-open .site-header__nav {
        transform: translateX(0);
    }

    body.has-site-header .site-header__nav,
    .site-header--scrolled .site-header__nav {
        background:
            linear-gradient(165deg, rgba(252, 251, 250, 0.98) 0%, rgba(243, 239, 232, 0.98) 100%);
        border-left-color: rgba(44, 48, 46, 0.08);
    }

    html[data-theme="dark"] body.has-site-header .site-header__nav,
    html[data-theme="dark"] .site-header--scrolled .site-header__nav {
        background:
            linear-gradient(165deg, rgba(18, 20, 18, 0.98) 0%, rgba(10, 11, 10, 0.98) 100%);
    }

    .site-header__nav-link {
        display: block;
        padding: 18px 0;
        font-size: 12px;
        letter-spacing: 0.2em;
        color: rgba(255, 255, 255, 0.88);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.has-site-header .site-header__nav-link,
    .site-header--scrolled .site-header__nav-link {
        color: var(--header-nav, rgba(44, 48, 46, 0.72));
        border-bottom-color: rgba(44, 48, 46, 0.08);
    }

    .site-header__nav-link::after {
        display: none;
    }

    .site-header__theme-toggle,
    .site-header__lang-toggle {
        margin-top: 0;
        margin-inline-start: 0;
        align-self: center;
    }

    .site-header--intro .site-header__nav-link,
    .site-header--intro .site-header__theme-toggle,
    .site-header--intro .site-header__lang-toggle {
        opacity: 1;
    }

    .site-header--intro .site-header__menu-toggle {
        opacity: 1;
    }

    /* Hero layout */

    .hero {
        height: 100dvh;
        height: 100svh;
        min-height: 640px;
        max-height: none;
    }

    .hero__slide:nth-child(1) .hero__bg { object-position: 58% 40%; }
    .hero__slide:nth-child(2) {
        --hero-zoom: 1.42;
        --hero-zoom-end: 1.32;
        --hero-origin: 44% 46%;
    }

    .hero__slide:nth-child(2) .hero__bg {
        object-position: 44% 46%;
        transform-origin: 44% 46%;
    }
    .hero__slide:nth-child(3) .hero__bg { object-position: 48% 58%; }

    .hero__overlay {
        background:
            linear-gradient(180deg, rgba(8, 12, 14, 0.42) 0%, rgba(8, 12, 14, 0.28) 38%, rgba(8, 12, 14, 0.62) 100%),
            linear-gradient(105deg, rgba(12, 18, 22, 0.52) 0%, rgba(12, 18, 22, 0.18) 55%, transparent 100%);
    }

    .hero__light {
        opacity: 0.55;
    }

    .hero__ui {
        padding-top: calc(76px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .hero__main {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
        gap: 0;
        padding: 0;
    }

    .hero__product-zone {
        display: none;
    }

    .hero__slide-nav-wrap {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 15;
    }

    .hero__slide-nav {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        flex-direction: row;
        align-items: center;
        width: auto;
        gap: 0;
        padding: 8px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .hero__slide-nav-item {
        padding: 6px 10px;
        font-size: 12px;
    }

    .hero__slide-nav-line {
        width: 18px;
        height: 1px;
    }

    .hero__slide-nav-line::after {
        width: 0%;
        height: 100%;
        transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .hero__slide-nav-line.is-filled::after {
        width: 100%;
        height: 100%;
    }

    .hero__glass {
        width: 100%;
        max-width: none;
        margin: 52px 0 0;
        padding: 28px 22px 22px;
    }

    .hero__glass-shape {
        clip-path: none;
        border-radius: 22px;
    }

    .hero__glass-edge {
        display: none;
    }

    .hero__eyebrow {
        margin-bottom: 14px;
        gap: 10px;
    }

    .hero__eyebrow-text {
        white-space: normal;
        letter-spacing: 0.18em;
        font-size: 9px;
    }

    .hero__headline {
        font-size: clamp(32px, 9vw, 46px);
        line-height: 1.02;
        margin-bottom: 14px;
    }

    .hero__desc {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 22px;
        max-width: none;
    }

    .hero__cta {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .hero__cta-inner {
        width: 100%;
        justify-content: center;
        padding: 5px 18px 5px 5px;
    }

    .hero__cta-label {
        white-space: normal;
        text-align: center;
    }

    .hero__counter-wrap {
        margin-top: 22px;
        padding-top: 18px;
        gap: 12px;
    }

    .hero__progress {
        flex: 1;
        width: auto;
        max-width: none;
    }

    .hero__controls {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 16px;
        padding-top: 4px;
    }

    .hero__controls .hero__arrows {
        flex-direction: row;
        gap: 10px;
    }

    .hero__controls .hero__arrow {
        width: 44px;
        height: 44px;
    }

    .hero__swipe-hint {
        display: inline-flex;
    }

    html[dir="rtl"] .hero__swipe-hint svg {
        transform: scaleX(-1);
    }

    .hero__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 12px;
        min-height: 0;
    }

    .hero__scroll {
        display: none;
    }

    .hero__info {
        width: 100%;
        max-width: none;
        padding: 12px 14px;
        animation: none;
    }

    .hero__info-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .hero__info-title {
        font-size: 9px;
    }

    .hero__info-sub {
        font-size: 11px;
    }
}

/* ─── Small phones ─── */

@media (max-width: 480px) {
    :root {
        --hero-pad-x: 16px;
        --hero-pad-y: 14px;
    }

    .site-header__logo-text {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero {
        min-height: 580px;
    }

    .hero__glass {
        margin-top: 46px;
        padding: 24px 18px 18px;
    }

    .hero__headline {
        font-size: clamp(28px, 10vw, 38px);
    }

    .hero__desc {
        font-size: 12px;
    }

    .hero__cta-icon {
        width: 36px;
        height: 36px;
    }

    .hero__counter {
        font-size: 18px;
    }

    .hero__counter-current {
        font-size: 22px;
    }

    .hero__slide-nav {
        padding: 6px 10px;
    }

    .hero__slide-nav-item {
        padding: 4px 8px;
        font-size: 11px;
    }

    .hero__swipe-hint span {
        display: none;
    }
}

/* ─── Ultra-compact ─── */

@media (max-width: 360px) {
    .hero__glass {
        padding: 20px 16px 16px;
    }

    .hero__controls .hero__arrow {
        width: 40px;
        height: 40px;
    }

    .site-header__nav {
        width: min(340px, 88vw);
    }
}

/* ─── Hero redesign overrides (later in the cascade) ─── */

@media (max-width: 1280px) {
    .hero {
        height: 100svh;
        min-height: 100svh;
        max-height: 100svh;
    }
}

@media (max-width: 1024px) {
    .hero__overlay {
        background: linear-gradient(
            90deg,
            rgba(42, 28, 16, 0.2) 0%,
            rgba(42, 28, 16, 0.06) 36%,
            transparent 68%
        );
    }

    .hero__panel {
        width: min(38rem, 62vw);
        padding: 30px 28px 22px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100svh;
        min-height: 100svh;
        max-height: 100svh;
    }

    .hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(42, 28, 16, 0.12) 0%,
            transparent 28%,
            rgba(42, 28, 16, 0.22) 100%
        );
    }

    .hero__panel {
        width: 100%;
        padding: 22px 18px 16px;
        border-radius: 22px;
    }

    .hero__ui {
        gap: 16px;
    }

    html[dir="rtl"] .hero__overlay {
        transform: none;
    }

    .hero__copy {
        max-width: 100%;
    }

    .hero__headline {
        font-size: clamp(2.4rem, 10vw, 3.5rem);
        line-height: 1.05;
        margin-bottom: 12px;
    }

    .hero__desc {
        max-width: 36ch;
        margin-bottom: 18px;
    }

    .hero__cta {
        width: auto;
        max-width: none;
    }

    .hero__arrow {
        width: 36px;
        height: 36px;
    }

    .hero__scroll {
        display: flex;
    }
}

.site-header--overlay:not(.site-header--scrolled) .site-header__menu-toggle {
    border-color: rgba(42, 33, 24, 0.28);
    background: transparent;
    color: #2a2118;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Open drawer is dark. Overlay ink colors must not follow it in. */
@media (max-width: 1024px) {
    body.is-mobile-nav-open .site-header__nav,
    body.is-mobile-nav-open .site-header--overlay .site-header__nav,
    body.is-mobile-nav-open .site-header--scrolled .site-header__nav,
    body.is-mobile-nav-open.has-site-header .site-header__nav {
        background: linear-gradient(165deg, rgba(18, 20, 22, 0.98) 0%, rgba(10, 12, 14, 0.98) 100%);
        border-left-color: rgba(255, 255, 255, 0.1);
    }

    body.is-mobile-nav-open .site-header__nav-link,
    body.is-mobile-nav-open .site-header--overlay .site-header__nav-link,
    body.is-mobile-nav-open .site-header--overlay.site-header--scrolled .site-header__nav-link,
    body.is-mobile-nav-open .site-header--scrolled .site-header__nav-link,
    body.is-mobile-nav-open.has-site-header .site-header__nav-link {
        color: rgba(245, 240, 234, 0.86);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    body.is-mobile-nav-open .site-header__nav-link.is-current,
    body.is-mobile-nav-open .site-header--overlay .site-header__nav-link.is-current,
    body.is-mobile-nav-open .site-header--scrolled .site-header__nav-link.is-current {
        color: var(--amber);
    }

    body.is-mobile-nav-open .site-header__nav-tools,
    body.is-mobile-nav-open.has-site-header .site-header__nav-tools {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    body.is-mobile-nav-open .site-header__menu-toggle,
    body.is-mobile-nav-open .site-header--overlay:not(.site-header--scrolled) .site-header__menu-toggle,
    body.is-mobile-nav-open .site-header--scrolled .site-header__menu-toggle {
        color: rgba(245, 240, 234, 0.94);
        border-color: rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.08);
    }

    body.is-mobile-nav-open .site-header__theme-toggle,
    body.is-mobile-nav-open .site-header--overlay:not(.site-header--scrolled) .site-header__theme-toggle {
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.06);
        box-shadow: none;
    }

    body.is-mobile-nav-open .site-header--overlay:not(.site-header--scrolled) .site-header__theme-track,
    body.is-mobile-nav-open .site-header__theme-track {
        background: rgba(255, 255, 255, 0.1);
    }

    body.is-mobile-nav-open .site-header__theme-icon,
    body.is-mobile-nav-open .site-header--overlay:not(.site-header--scrolled) .site-header__theme-icon {
        color: rgba(245, 240, 234, 0.72);
    }

    body.is-mobile-nav-open .site-header__lang-toggle,
    body.is-mobile-nav-open .site-header--overlay .site-header__lang-toggle,
    body.is-mobile-nav-open .site-header--overlay:not(.site-header--scrolled) .site-header__lang-toggle {
        border-color: rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.08);
    }

    body.is-mobile-nav-open .site-header__lang-btn,
    body.is-mobile-nav-open .site-header--overlay .site-header__lang-btn {
        color: rgba(245, 240, 234, 0.62);
    }

    body.is-mobile-nav-open .site-header__lang-btn.is-active,
    body.is-mobile-nav-open .site-header--overlay .site-header__lang-btn.is-active {
        color: rgba(245, 240, 234, 0.96);
    }

    body.is-mobile-nav-open .site-header__lang-thumb,
    body.is-mobile-nav-open .site-header--overlay .site-header__lang-thumb {
        background: linear-gradient(145deg, rgba(245, 240, 234, 0.96) 0%, rgba(245, 240, 234, 0.78) 100%);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__light,
    .hero__scroll,
    .hero__scroll-line,
    .hero__info,
    .hero__bg {
        animation: none;
    }

    .hero__bg {
        transform: none;
    }

    .site-header__nav,
    .site-header__backdrop,
    .site-header__menu-bar {
        transition-duration: 0.01ms;
    }
}

@media (max-width: 1024px) {
    .site-header__nav {
        margin-inline-start: 0;
        width: min(372px, 90vw);
        padding:
            calc(78px + env(safe-area-inset-top, 0px))
            18px
            calc(18px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
    }

    .site-header__menu-toggle {
        margin-inline-start: auto;
    }

    .site-header__nav .site-header__drawer-brand,
    body.is-mobile-nav-open .site-header__nav .site-header__drawer-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 0 4px 10px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-decoration: none;
        color: rgba(245, 240, 234, 0.94);
    }

    .site-header__nav .site-header__drawer-mark {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        color: #e8942a;
    }

    .site-header__nav .site-header__drawer-name {
        font-family: "Cormorant Garamond", "Markazi Text", serif;
        font-size: 1.35rem;
        font-weight: 500;
        letter-spacing: 0.04em;
        line-height: 1;
    }

    .site-header__nav .site-header__nav-links {
        gap: 6px;
        margin: 8px 0 0;
    }

    .site-header__nav .site-header__nav-link,
    body.is-mobile-nav-open .site-header__nav .site-header__nav-link,
    body.is-mobile-nav-open .site-header--overlay .site-header__nav .site-header__nav-link,
    body.is-mobile-nav-open.has-site-header .site-header__nav .site-header__nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 52px;
        padding: 8px 10px;
        border: 0;
        border-radius: 16px;
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
        color: rgba(245, 240, 234, 0.88);
    }

    .site-header__nav .site-header__nav-link::after,
    body.is-mobile-nav-open .site-header__nav .site-header__nav-link::after {
        display: none;
    }

    .site-header__nav .site-header__nav-ico,
    body.is-mobile-nav-open .site-header__nav .site-header__nav-ico {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        flex-shrink: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
        color: rgba(245, 240, 234, 0.82);
    }

    .site-header__nav .site-header__nav-ico svg {
        width: 20px;
        height: 20px;
    }

    .site-header__nav .site-header__nav-label {
        line-height: 1.3;
    }

    .site-header__nav .site-header__nav-link.is-current,
    body.is-mobile-nav-open .site-header__nav .site-header__nav-link.is-current,
    body.is-mobile-nav-open .site-header--overlay .site-header__nav .site-header__nav-link.is-current {
        background: rgba(232, 148, 42, 0.14);
        color: #f6d7a8;
    }

    .site-header__nav .site-header__nav-link.is-current .site-header__nav-ico {
        background: rgba(232, 148, 42, 0.22);
        color: #e8942a;
    }

    .site-header__nav .site-header__nav-tools,
    body.is-mobile-nav-open .site-header__nav .site-header__nav-tools,
    body.is-mobile-nav-open.has-site-header .site-header__nav .site-header__nav-tools {
        margin-top: auto;
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.04);
        justify-content: space-between;
    }

    body.is-mobile-nav-open .aqua-chat__launcher {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}
