.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    transition: transform .4s var(--ease);
}
.topbar {
    max-height: 42px;
    overflow: hidden;
    color: rgba(255,255,255,.82);
    background: #111;
    transition: max-height .45s var(--ease), opacity .35s ease;
}
.site-header.is-compact .topbar { max-height: 0; opacity: 0; }
.topbar__inner {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.topbar__contacts { display: flex; align-items: center; gap: 22px; }
.topbar__contacts a { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; transition: color .2s ease; }
.topbar__contacts a:hover { color: var(--brand); }
.topbar__contacts svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar__rotator { position: relative; display: flex; align-items: center; padding-left: 0; font-size: 12px; font-weight: 700; }
.topbar__rotator::before { display: none; }
.topbar__rotator [data-topbar-phrase] { transition: opacity .25s ease, transform .25s ease; }
.topbar__rotator [data-topbar-phrase].is-changing { opacity: 0; transform: translateY(5px); }

.navbar {
    border-bottom: 1px solid rgba(17,17,17,.08);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 25px rgba(17,17,17,.04);
}
.navbar__grid {
    display: grid;
    min-height: 92px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.navbar__side { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.navbar__side--right { justify-content: flex-end; }
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    border: 0;
    color: #2b2b2b;
    background: transparent;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 6px;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s ease; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.brand { position: relative; z-index: 3; display: block; width: 190px; transition: transform .3s var(--ease); }
.brand:hover { transform: translateY(-2px) rotate(-1deg); }
.brand .custom-logo-link { display: block; }
.brand img, .brand .custom-logo { width: 100%; height: auto; }
.button--header {
    min-height: 46px;
    gap: 9px;
    padding: 0 18px;
    font-size: 14px;
}
.button--header .whatsapp-icon { width: 20px; height: 20px; }

.nav-dropdown { position: relative; }
.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 20;
    width: 342px;
    padding: 0;
    overflow: visible;
    border: 1px solid rgba(17,17,17,.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px) scale(.97);
    transform-origin: top center;
    transition: opacity .25s ease, transform .3s var(--ease);
}
.nav-dropdown.is-open .nav-dropdown__menu { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.nav-dropdown__menu::before { content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; background: #fff; border-top: 1px solid rgba(17,17,17,.08); border-left: 1px solid rgba(17,17,17,.08); transform: translateX(-50%) rotate(45deg); }
.nav-dropdown__scroll {
    position: relative;
    z-index: 1;
    max-height: min(68vh, 520px);
    padding: 10px 8px 10px 10px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 21px;
    background: #fff;
    clip-path: inset(0 round 21px);
    scrollbar-width: thin;
    scrollbar-color: rgba(17,17,17,.28) transparent;
}
.nav-dropdown__scroll::-webkit-scrollbar { width: 9px; }
.nav-dropdown__scroll::-webkit-scrollbar-track {
    margin-block: 13px;
    background: transparent;
}
.nav-dropdown__scroll::-webkit-scrollbar-thumb {
    min-height: 52px;
    border: 3px solid transparent;
    border-radius: 999px;
    background: rgba(17,17,17,.28);
    background-clip: padding-box;
}
.nav-dropdown__scroll::-webkit-scrollbar-thumb:hover { background-color: rgba(17,17,17,.46); }
.nav-dropdown__menu a { position: relative; display: block; padding: 13px 14px; border-radius: 14px; transition: background-color .2s ease, transform .2s ease; }
.nav-dropdown__menu a:hover { color: var(--ink); background: var(--brand); transform: translateX(3px); }
.nav-dropdown__menu a:hover small { color: rgba(17, 17, 17, .68); }
.nav-dropdown__menu a::after { content: "→"; position: absolute; right: 14px; top: 50%; color: var(--ink); font-weight: 800; opacity: 0; transform: translate(-5px,-50%); transition: opacity .2s ease, transform .2s ease; }
.nav-dropdown__menu a:hover::after { opacity: 1; transform: translate(0,-50%); }
.nav-dropdown__menu span, .nav-dropdown__menu small { display: block; padding-right: 22px; }
.nav-dropdown__menu span { font-family: var(--font-display); font-weight: 800; }
.nav-dropdown__menu small { color: var(--muted); font-size: 11px; }

.mobile-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    place-content: center;
    gap: 5px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    cursor: pointer;
}
.mobile-menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; }
.mobile-drawer { position: fixed; inset: 0; z-index: 2000; visibility: hidden; }
.mobile-drawer__overlay { position: absolute; inset: 0; background: rgba(17,17,17,.58); opacity: 0; transition: opacity .3s ease; }
.mobile-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(410px, 92vw);
    height: 100%;
    padding: 24px;
    overflow-y: auto;
    background: #fff;
    transform: translateX(100%);
    transition: transform .42s var(--ease);
}
.mobile-drawer.is-open { visibility: visible; }
.mobile-drawer.is-open .mobile-drawer__overlay { opacity: 1; }
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.mobile-drawer__head img { width: 170px; }
.mobile-drawer__head button { display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--ink); cursor: pointer; }
.mobile-drawer__head svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.mobile-nav { display: grid; gap: 4px; padding: 22px 0; }
.mobile-nav > a, .mobile-accordion > button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 4px; border: 0; border-bottom: 1px solid rgba(17,17,17,.08); background: transparent; font-family: var(--font-display); font-size: 20px; font-weight: 800; text-align: left; cursor: pointer; }
.mobile-accordion button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s ease; }
.mobile-accordion.is-open button svg { transform: rotate(180deg); }
.mobile-accordion__content { display: grid; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.mobile-accordion.is-open .mobile-accordion__content { max-height: min(60vh, 480px); overflow-y: auto; overscroll-behavior: contain; }
.mobile-accordion__content a { padding: 10px 12px; color: var(--muted); font-size: 14px; }
