/* ==========================================================================
   Aurora — site header
   Sticky glass bar, mega dropdown, theme / language / cart tools, mobile drawer.
   ========================================================================== */

:root {
    --header-height: 88px;
    --header-height-compact: 64px;
    --header-ease: cubic-bezier(.22, 1, .36, 1);
    --header-focus: 0 0 0 3px rgba(var(--a-brand-rgb), .32);
}

.site-header,
.mobile-menu {
    --h-text: var(--a-text, #e9edf9);
    --h-muted: var(--a-muted, #98a2bd);
    --h-line: var(--a-border, rgba(255, 255, 255, .09));
    --h-surface: var(--a-surface, rgba(255, 255, 255, .05));
    --h-surface-2: var(--a-surface-2, rgba(255, 255, 255, .09));
    --h-panel: var(--a-bg-soft, #0e1530);
    --h-bg: var(--a-bg, #0b1020);
    --h-shadow: var(--a-shadow-sm, 0 10px 30px rgba(2, 6, 23, .28));
    --h-brand: var(--a-brand);
    --h-brand-2: var(--a-brand-2, #06b6d4);
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */
.site-header {
    --h-glass: rgba(11, 16, 32, .82);
    position: sticky;
    top: 0;
    z-index: 1000;
    isolation: isolate;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    animation: header-drop .6s var(--header-ease) both;
}

[data-theme="light"] .site-header {
    --h-glass: rgba(255, 255, 255, .84);
}

.site-header.is-scrolled {
    background-color: var(--h-glass);
    border-bottom-color: var(--h-line);
    box-shadow: 0 12px 36px rgba(2, 6, 23, .14);
    -webkit-backdrop-filter: blur(20px) saturate(1.35);
    backdrop-filter: blur(20px) saturate(1.35);
}

[data-theme="light"] .site-header.is-scrolled {
    box-shadow: 0 12px 36px rgba(11, 16, 32, .08);
}

.site-header__wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    height: var(--header-height);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
    transition: height .42s var(--header-ease);
}

.site-header.is-scrolled .site-header__wrap {
    height: var(--header-height-compact);
}

@keyframes header-drop {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Brand
   -------------------------------------------------------------------------- */
.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--h-text);
    text-decoration: none;
}

.brand:focus-visible {
    outline: none;
    box-shadow: var(--header-focus);
    border-radius: 6px;
}

.brand__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(var(--logo-width, 156px), 200px);
    max-height: min(var(--logo-height, 38px), 48px);
    object-fit: contain;
}

.brand__logo--dark {
    display: none;
}

[data-theme="dark"] .brand__logo--light {
    display: none;
}

[data-theme="dark"] .brand__logo--dark {
    display: block;
}

/* --------------------------------------------------------------------------
   Desktop navigation
   -------------------------------------------------------------------------- */
.primary-nav {
    display: flex;
    align-items: center;
    align-self: stretch;
    margin-inline: auto;
    min-width: 0;
}

.primary-nav__list {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav__item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--h-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .005em;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease;
}

.nav__link::after {
    content: "";
    position: absolute;
    inset-inline: 10px;
    bottom: 1px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--h-brand), var(--h-brand-2));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .32s var(--header-ease);
}

[dir="rtl"] .nav__link::after {
    transform-origin: right center;
}

.nav__link:hover,
.nav__link:focus-visible,
.nav__link.is-active {
    color: var(--h-text);
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link.is-active::after {
    transform: scaleX(1);
}

.nav__link:focus-visible {
    outline: none;
    box-shadow: var(--header-focus);
}

.nav__chevron {
    width: 14px;
    height: 14px;
    transition: transform .28s var(--header-ease);
}

.primary-nav__item--mega:hover .nav__chevron,
.primary-nav__item--mega:focus-within .nav__chevron {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Mega dropdown
   -------------------------------------------------------------------------- */
.mega {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 30;
    width: min(600px, calc(100vw - 48px));
    padding-top: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity .2s ease, transform .3s var(--header-ease), visibility 0s .3s;
}

.primary-nav__item--mega:hover > .mega,
.primary-nav__item--mega:focus-within > .mega,
.primary-nav__item--mega.is-open > .mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition-delay: 0s;
}

.primary-nav__item--mega:last-child .mega {
    left: auto;
    right: 0;
    transform: translateY(10px);
}

.primary-nav__item--mega:last-child:hover > .mega,
.primary-nav__item--mega:last-child:focus-within > .mega,
.primary-nav__item--mega:last-child.is-open > .mega {
    transform: translateY(0);
}

[dir="rtl"] .mega {
    left: auto;
    right: 50%;
    transform: translate(50%, 10px);
}

[dir="rtl"] .primary-nav__item--mega:hover > .mega,
[dir="rtl"] .primary-nav__item--mega:focus-within > .mega,
[dir="rtl"] .primary-nav__item--mega.is-open > .mega {
    transform: translate(50%, 0);
}

[dir="rtl"] .primary-nav__item--mega:last-child .mega {
    right: auto;
    left: 0;
    transform: translateY(10px);
}

[dir="rtl"] .primary-nav__item--mega:last-child:hover > .mega,
[dir="rtl"] .primary-nav__item--mega:last-child:focus-within > .mega,
[dir="rtl"] .primary-nav__item--mega:last-child.is-open > .mega {
    transform: translateY(0);
}

.mega__panel {
    padding: 24px;
    border: 1px solid var(--h-line);
    border-radius: 16px;
    background: var(--h-panel);
    box-shadow: 0 24px 64px rgba(2, 6, 23, .32);
}

[data-theme="light"] .mega__panel {
    box-shadow: 0 24px 64px rgba(11, 16, 32, .12);
}

.mega__head {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--h-line);
}

.mega__eyebrow {
    display: block;
    color: var(--h-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.mega__lead {
    max-width: 44ch;
    margin: 6px 0 0;
    color: var(--h-muted);
    font-size: 13px;
    line-height: 1.6;
}

.mega__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.mega__card {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .24s ease, transform .3s var(--header-ease);
}

.primary-nav__item--mega:hover .mega__card,
.primary-nav__item--mega:focus-within .mega__card,
.primary-nav__item--mega.is-open .mega__card {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--i) * 45ms + 60ms);
}

.mega__card-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--h-text);
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.mega__card-link:hover,
.mega__card-link:focus-visible {
    border-color: var(--h-line);
    background: var(--h-surface);
    outline: none;
}

.mega__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--h-line);
    border-radius: 10px;
    background: var(--h-surface);
    color: var(--h-brand);
}

.mega__icon svg,
.mega__icon img {
    display: block;
    width: 20px;
    height: 20px;
}

.mega__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding-top: 1px;
}

.mega__title {
    color: var(--h-text);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
}

.mega__desc {
    color: var(--h-muted);
    font-size: 12px;
    line-height: 1.5;
}

.mega__arrow {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 12px;
    margin-inline-start: auto;
    color: var(--h-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s ease, transform .25s var(--header-ease);
}

.mega__card-link:hover .mega__arrow,
.mega__card-link:focus-visible .mega__arrow {
    opacity: 1;
    transform: translateX(0);
}

.mega__foot {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--h-line);
}

.mega__foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--h-text);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.mega__foot a svg {
    width: 14px;
    height: 14px;
    transition: transform .25s var(--header-ease);
}

.mega__foot a:hover svg {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Tools
   -------------------------------------------------------------------------- */
.header-tools {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
    margin-inline-start: auto;
}

.tool {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--h-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.tool:hover,
.tool[aria-expanded="true"] {
    border-color: var(--h-line);
    background: var(--h-surface);
    color: var(--h-text);
}

.tool:focus-visible {
    outline: none;
    box-shadow: var(--header-focus);
}

.tool svg {
    width: 20px;
    height: 20px;
}

.tool--lang {
    width: auto;
    min-width: 52px;
    padding-inline: 8px;
    gap: 6px;
}

.tool__code {
    color: currentColor;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
}

.header-tools__divider {
    width: 1px;
    height: 24px;
    margin-inline: 8px;
    background: var(--h-line);
}

/* Theme switch */
.theme-switch__icons {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
}

.theme-icon {
    position: absolute;
    inset: 0;
    width: 20px;
    height: 20px;
    transition: transform .5s var(--header-ease), opacity .25s ease;
}

[data-theme="dark"] .theme-icon--sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-icon--moon {
    opacity: 0;
    transform: rotate(-80deg) scale(.45);
}

[data-theme="light"] .theme-icon--sun {
    opacity: 0;
    transform: rotate(80deg) scale(.45);
}

[data-theme="light"] .theme-icon--moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Cart */
.cart-badge {
    position: absolute;
    top: 3px;
    inset-inline-end: 3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--h-brand);
    box-shadow: 0 0 0 2px var(--h-bg);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.cart-badge.is-empty {
    display: none;
}

.cart-badge.is-bumping {
    animation: cart-bump .5s var(--header-ease);
}

@keyframes cart-bump {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.38);
    }

    65% {
        transform: scale(.9);
    }

    100% {
        transform: scale(1);
    }
}

/* Language */
.lang {
    position: relative;
}

.lang__panel {
    position: absolute;
    top: calc(100% + 32px);
    inset-inline-end: 0;
    z-index: 40;
    width: 208px;
    padding: 8px;
    border: 1px solid var(--h-line);
    border-radius: 12px;
    background: var(--h-panel);
    box-shadow: 0 18px 48px rgba(2, 6, 23, .3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .25s var(--header-ease), visibility 0s .25s;
}

[data-theme="light"] .lang__panel {
    box-shadow: 0 18px 48px rgba(11, 16, 32, .12);
}

.lang.is-open .lang__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.lang__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lang__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--h-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease;
}

.lang__option:hover,
.lang__option:focus-visible {
    background: var(--h-surface);
    color: var(--h-text);
    outline: none;
}

.lang__option.is-current {
    color: var(--h-text);
    font-weight: 600;
}

.lang__option img {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

.lang__code {
    min-width: 18px;
    color: var(--h-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
}

.lang__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang__check {
    width: 16px;
    height: 16px;
    margin-inline-start: auto;
    color: var(--h-brand-2);
}

/* Quote CTA */
.header-badge {
    display: block;
    width: auto;
    height: auto;
    max-width: 104px;
    max-height: min(var(--badge-height, 24px), 28px);
    margin-inline-end: 8px;
    object-fit: contain;
}

.nav__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--a-brand), var(--a-brand-2));
    box-shadow: 0 8px 20px rgba(var(--a-brand-rgb), .22);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .005em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .22s var(--header-ease), box-shadow .22s ease;
}

.nav__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, transparent 28%, rgba(255, 255, 255, .26) 46%, transparent 62%);
    transform: translateX(-130%);
    transition: transform .65s var(--header-ease);
}

.nav__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(var(--a-brand-rgb), .3);
}

.nav__cta:hover::before {
    transform: translateX(130%);
}

.nav__cta:active {
    transform: translateY(0) scale(.985);
    box-shadow: 0 6px 16px rgba(var(--a-brand-rgb), .22);
}

.nav__cta:focus-visible {
    outline: none;
    box-shadow: var(--header-focus), 0 8px 20px rgba(var(--a-brand-rgb), .22);
}

.nav__cta svg {
    width: 15px;
    height: 15px;
    transition: transform .25s var(--header-ease);
}

.nav__cta:hover svg {
    transform: translateX(3px);
}

.nav__cta--block {
    width: 100%;
    height: 48px;
    font-size: 14px;
}

[dir="rtl"] .nav__cta:hover svg {
    transform: translateX(-3px);
}

/* Burger */
.burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--h-text);
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.burger:hover {
    border-color: var(--h-line);
    background: var(--h-surface);
}

.burger:focus-visible {
    outline: none;
    box-shadow: var(--header-focus);
}

.burger__icon {
    width: 22px;
    height: 22px;
}

.burger__line {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform .34s var(--header-ease), opacity .2s ease;
}

.burger.is-active .burger__line--top {
    transform: translateY(6px) rotate(45deg);
}

.burger.is-active .burger__line--middle {
    opacity: 0;
    transform: scaleX(.25);
}

.burger.is-active .burger__line--bottom {
    transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    padding: 0;
    border: 0;
    background: rgba(2, 6, 23, .48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    transition: opacity .3s ease, visibility 0s .3s;
}

body.site-menu-open .drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

body.site-menu-open {
    overflow: hidden;
}

.mobile-menu {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    width: min(368px, calc(100vw - 24px));
    border-inline-end: 1px solid var(--h-line);
    background: var(--h-panel);
    box-shadow: 20px 0 48px rgba(2, 6, 23, .34);
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform .32s var(--header-ease), visibility 0s .32s;
}

.mobile-menu.is-open {
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
}

[dir="rtl"] .mobile-menu {
    transform: translateX(100%);
    box-shadow: -20px 0 48px rgba(2, 6, 23, .34);
}

[dir="rtl"] .mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid var(--h-line);
}

.brand--drawer .brand__logo {
    max-width: 136px;
    max-height: 32px;
}

.mobile-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--h-line);
    border-radius: 8px;
    background: transparent;
    color: var(--h-text);
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.mobile-menu__close:hover {
    border-color: var(--h-line);
    background: var(--h-surface);
}

.mobile-menu__close svg {
    width: 17px;
    height: 17px;
}

.mobile-menu__close:focus-visible {
    outline: none;
    box-shadow: var(--header-focus);
}

.mobile-menu__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .16) transparent;
}

.mobile-menu__body::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu__body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
}

.mobile-menu__body::-webkit-scrollbar-track {
    background: transparent;
}

[data-theme="light"] .mobile-menu__body {
    scrollbar-color: rgba(11, 16, 32, .16) transparent;
}

[data-theme="light"] .mobile-menu__body::-webkit-scrollbar-thumb {
    background: rgba(11, 16, 32, .14);
}

.drawer-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--h-line);
    border-radius: 8px;
    background: transparent;
    transition: border-color .2s ease;
}

.drawer-search:focus-within {
    border-color: var(--h-muted);
}

.drawer-search__icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-inline-start: 12px;
    color: var(--h-muted);
}

.drawer-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 10px;
    border: 0;
    background: transparent;
    color: var(--h-text);
    font: inherit;
    font-size: 13.5px;
    outline: none;
}

.drawer-search input::placeholder {
    color: var(--h-muted);
}

.drawer-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 38px;
    padding: 0;
    border: 0;
    border-start-end-radius: 7px;
    border-end-end-radius: 7px;
    background: transparent;
    color: var(--h-muted);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.drawer-search button:hover {
    background: var(--h-surface);
    color: var(--h-text);
}

.drawer-search button svg {
    width: 16px;
    height: 16px;
}

[dir="rtl"] .drawer-search button svg {
    transform: scaleX(-1);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.drawer-nav__item {
    border-bottom: 1px solid var(--h-line);
}

.drawer-nav__item:last-child {
    border-bottom: 0;
}

.drawer-nav__link,
.drawer-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 13px 2px;
    border: 0;
    background: transparent;
    color: var(--h-text);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
    transition: color .18s ease;
}

.drawer-nav__link:hover,
.drawer-nav__toggle:hover {
    color: var(--h-brand);
}

.drawer-nav__link:focus-visible,
.drawer-nav__toggle:focus-visible {
    outline: none;
    box-shadow: var(--header-focus);
}

.drawer-nav__main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.drawer-nav__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--h-muted);
    transition: color .18s ease;
}

.drawer-nav__icon svg,
.drawer-nav__icon img {
    display: block;
    width: 19px;
    height: 19px;
}

.drawer-nav__link:hover .drawer-nav__icon,
.drawer-nav__toggle:hover .drawer-nav__icon {
    color: var(--h-brand);
}

.drawer-nav__link.is-active,
.drawer-nav__toggle.is-active {
    color: var(--h-text);
    font-weight: 600;
}

.drawer-nav__link.is-active .drawer-nav__icon,
.drawer-nav__toggle.is-active .drawer-nav__icon {
    color: var(--h-brand);
}

.drawer-nav__label {
    min-width: 0;
}

.drawer-nav__chevron {
    display: grid;
    place-items: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: var(--h-muted);
    transition: transform .22s var(--header-ease), color .18s ease;
}

.drawer-nav__chevron svg {
    display: block;
    width: 16px;
    height: 16px;
}

.drawer-nav__link .drawer-nav__chevron {
    display: none;
}

.drawer-nav__toggle[aria-expanded="true"] .drawer-nav__chevron {
    color: var(--h-text);
    transform: rotate(180deg);
}

[dir="rtl"] .drawer-nav__chevron svg {
    transform: scaleX(-1);
}

.drawer-sub {
    padding: 2px 0 14px;
}

.drawer-sub[hidden] {
    display: none;
}

.drawer-sub:not([hidden]) {
    animation: drawer-sub-in .2s ease both;
}

@keyframes drawer-sub-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.drawer-sub__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    margin-inline-start: 32px;
    padding: 2px 0 2px 14px;
    border-inline-start: 1px solid var(--h-line);
    list-style: none;
}

.drawer-sub__list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 6px;
    border-radius: 6px;
    color: var(--h-text);
    text-decoration: none;
    transition: background-color .18s ease;
}

.drawer-sub__list a:hover,
.drawer-sub__list a:focus-visible {
    background: var(--h-surface);
    outline: none;
}

.drawer-sub__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--h-muted);
}

.drawer-sub__icon svg,
.drawer-sub__icon img {
    display: block;
    width: 15px;
    height: 15px;
}

.drawer-sub__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.drawer-sub__title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.drawer-sub__desc {
    color: var(--h-muted);
    font-size: 11.5px;
    line-height: 1.45;
}

.drawer-sub__list a[aria-current="page"] .drawer-sub__title {
    font-weight: 600;
}

.drawer-sub__list a[aria-current="page"] .drawer-sub__icon {
    color: var(--h-brand);
}

.drawer-quote {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.drawer-quote__badge {
    width: auto;
    height: auto;
    max-width: 120px;
    max-height: 32px;
    object-fit: contain;
}

.drawer-quote .nav__cta--block {
    height: 42px;
    border-radius: 8px;
    background: var(--a-brand);
    box-shadow: none;
    font-size: 13.5px;
    transition: background-color .18s ease;
}

.drawer-quote .nav__cta::before {
    display: none;
}

.drawer-quote .nav__cta:hover {
    background: var(--a-brand-2);
    box-shadow: none;
    transform: none;
}

.drawer-quote .nav__cta:active {
    transform: none;
    box-shadow: none;
}

.drawer-account {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-account__primary,
.drawer-account__secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.drawer-account__primary {
    border: 1px solid var(--h-line);
    background: var(--h-surface);
    color: var(--h-text);
}

.drawer-account__secondary {
    border: 1px solid transparent;
    background: transparent;
    color: var(--h-muted);
}

.drawer-account__primary:hover {
    background: var(--h-surface-2);
}

.drawer-account__secondary:hover {
    color: var(--h-text);
}

.drawer-account svg {
    width: 16px;
    height: 16px;
}

.drawer-account__primary:focus-visible,
.drawer-account__secondary:focus-visible {
    outline: none;
    box-shadow: var(--header-focus);
}

.drawer-lang__label {
    display: block;
    margin-bottom: 9px;
    color: var(--h-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
}

.drawer-lang__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.drawer-lang__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--h-line);
    border-radius: 6px;
    background: transparent;
    color: var(--h-muted);
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.drawer-lang__item img {
    width: 16px;
    height: 11px;
    border-radius: 2px;
    object-fit: cover;
}

.drawer-lang__item:hover {
    color: var(--h-text);
    background: var(--h-surface);
}

.drawer-lang__item.is-current {
    border-color: var(--h-muted);
    background: var(--h-surface);
    color: var(--h-text);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .primary-nav {
        display: none;
    }

    .burger {
        display: inline-flex;
    }

    .lang {
        display: none;
    }
}

@media (max-width: 767.98px) {
    :root {
        --header-height: 64px;
        --header-height-compact: 56px;
    }

    .site-header__wrap {
        gap: 12px;
    }

    .brand__logo {
        max-width: 132px;
        max-height: 30px;
    }

    .header-tools .nav__cta,
    .header-tools__divider,
    .header-tools .header-badge {
        display: none;
    }

    .header-tools {
        gap: 2px;
    }

    .tool,
    .burger {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 479.98px) {
    .header-tools > .tool:not(.tool--cart):not(.theme-switch) {
        display: none;
    }

    .brand__logo {
        max-width: 112px;
        max-height: 28px;
    }

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

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

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .site-header {
        animation: none;
    }

    .site-header *,
    .site-header *::before,
    .site-header *::after,
    .mobile-menu,
    .mobile-menu *,
    .drawer-backdrop {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .mega__card {
        opacity: 1;
        transform: none;
        transition: none !important;
        transition-delay: 0s !important;
    }

    .mega {
        transition: none !important;
    }

    .mega__card {
        transition-delay: 0s !important;
    }
}
