.home-header { --scrolled-header-height: 82px; position: fixed; z-index: 30; inset: 0 0 auto; border-bottom: 1px solid rgb(242 238 229 / 14%); background: transparent; transition: background-color .25s, border-color .25s; }
.home-header.is-scrolled { background: var(--ink); border-color: var(--line); }
.header-inner { height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 32px; transition: height 350ms var(--ease-out); }
.is-scrolled .header-inner { height: var(--scrolled-header-height); }
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; flex-shrink: 0; }
.brand img { width: 190px; height: 70px; object-fit: contain; }
.header-brand { position: relative; width: 190px; }
.header-brand .brand-wordmark { transform-origin: left center; transition: transform 350ms var(--ease-out); }
.is-scrolled .header-brand .brand-wordmark { transform: scale(.82); }
.brand span { font-size: 14px; line-height: 1.2; letter-spacing: .01em; color: var(--paper); text-align: center; }
.desktop-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.desktop-nav a { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 400; color: #e4e0d6; transition: color .2s; }
.home-header:not(.is-scrolled) .desktop-nav a { font-weight: 600; color: #fafafa; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-phone { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 600; }
.header-phone .icon { width: 19px; height: 19px; color: var(--gold); font-size: 19px; }
.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: transparent; }
.menu-toggle span { width: 24px; height: 1px; background: var(--paper); }
.mobile-menu { position: fixed; inset: 0 0 0 auto; max-width: 600px; width: 100%; height: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 32px var(--page-gutter); border: 0; color: var(--paper); background: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu[open] { display: flex; flex-direction: column; animation: menu-enter .35s var(--ease-out); }
.mobile-menu::backdrop { background: rgb(0 0 0 / 60%); transition: background-color .35s var(--ease-out); }
.mobile-menu.is-closing::backdrop { background: transparent; }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.menu-close { display: grid; place-items: center; width: 48px; height: 48px; background: transparent; border: 1px solid var(--line); border-radius: 50%; }
.mobile-menu.is-pointer-opened .menu-close:focus-visible { outline: none; }
.mobile-menu nav { margin-block: 0; padding-block: 28px; }
.menu-external { margin-top: 0; padding-top: 0; }
.mobile-menu nav a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 17px; border-bottom: 1px solid var(--line); font-size: clamp(16px, 2.8vw, 22px); line-height: 1.5; }
.mobile-menu nav .icon { color: var(--gold); width: 20px; height: 20px; font-size: 20px; }
.menu-cta { flex-shrink: 0; margin-top: auto; margin-bottom: env(safe-area-inset-bottom); }
@keyframes menu-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (hover: hover) {
    .home-header .desktop-nav a:hover, .header-phone:hover, .mobile-menu nav a:hover { color: var(--gold-light); }
}
@media (max-width: 1050px) { .desktop-nav { gap: 20px; } .header-phone span { display: none; } .header-actions { gap: 10px; } }
@media (max-width: 760px) {
    .home-header { --scrolled-header-height: 74px; }
    .mobile-menu { padding: max(24px, env(safe-area-inset-top)) var(--page-gutter) max(24px, env(safe-area-inset-bottom)); overflow: hidden; }
    .menu-top { flex-shrink: 0; }
    .menu-top .brand img { width: 144px; height: 53px; }
    .menu-close { width: 46px; height: 46px; flex-shrink: 0; }
    .mobile-menu nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-block: 20px; }
    .mobile-menu nav a { min-height: 44px; padding-block: 13.5px; gap: 16px; font-size: clamp(15px, calc(1.4vw + 7px), 18px); line-height: 1.45; }
    .mobile-menu nav .icon { width: 19px; height: 19px; font-size: 19px; }
    .menu-cta { margin-top: 4px; margin-bottom: 0; min-height: 52px; padding: 13.5px 18px; font-size: 12px; gap: 12px; }
    .header-inner { position: relative; width: calc(100% - 32px); height: 96px; gap: 18px; }
    .is-scrolled .header-inner { height: var(--scrolled-header-height); }
    .desktop-nav { display: none; }
    .menu-toggle { display: flex; }
    .brand img { width: 156px; height: 58px; }
    .header-brand { position: absolute; left: 50%; width: clamp(172px, 50vw, 208px); transform: translateX(-50%); }
    .header-brand .brand-wordmark { width: 100%; height: auto; transform-origin: center; }
    .header-actions { display: contents; }
    .header-phone, .menu-toggle { position: absolute; top: 50%; transform: translateY(-50%); }
    .header-phone { left: 0; }
    .menu-toggle { right: 0; }
    .brand span { font-size: 13px; }
    .header-phone { width: 44px; justify-content: center; }
}
