.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    left: 0;
    position: sticky;
    right: 0;
    top: 0;
    z-index: 50;
}

.header-inner {
    align-items: center;
    display: flex;
    gap: 1.2rem;
    justify-content: space-between;
    min-height: 72px;
    position: relative;
}

.brand {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
}

.brand-logo {
    display: block;
    height: auto;
    max-height: 56px;
    width: auto;
}

.main-nav {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.nav-list {
    align-items: center;
    display: flex;
    gap: 0.12rem;
    justify-content: flex-end;
    list-style: none;
}

.nav-list > li {
    position: relative;
}

.nav-item-row {
    align-items: center;
    display: flex;
}

.nav-list a {
    border-radius: var(--radius);
    color: var(--color-ink);
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.15;
    padding: 0.66rem 0.5rem;
    white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    background: var(--color-gold-soft);
}

.nav-cta {
    background: var(--color-ink);
    color: #fff !important;
    margin-left: 0.25rem;
    padding-inline: 0.85rem !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: #000 !important;
}

.submenu-toggle {
    background: transparent;
    border: 0;
    border-radius: 4px;
    display: inline-grid;
    height: 28px;
    margin-left: -0.25rem;
    place-items: center;
    width: 24px;
}

.submenu-toggle::after {
    border: solid var(--color-muted);
    border-width: 0 1.5px 1.5px 0;
    content: "";
    height: 6px;
    transform: rotate(45deg) translateY(-2px);
    width: 6px;
}

.submenu {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.05rem;
    left: 0;
    list-style: none;
    min-width: 220px;
    opacity: 0;
    padding: 0.55rem;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 10px);
    z-index: 80;
    transform: translateY(6px);
    transition: opacity 150ms ease, transform 150ms ease;
}

.submenu a {
    display: flex;
    padding: 0.62rem 0.72rem;
    white-space: normal;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-list > li:nth-last-child(-n + 3) .submenu {
    left: auto;
    right: 0;
}

.menu-toggle {
    background: transparent;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    display: none;
    height: 42px;
    padding: 0;
    width: 44px;
}

.menu-toggle span:not(.sr-only) {
    background: var(--color-ink);
    display: block;
    height: 2px;
    margin: 5px auto;
    transition: opacity 150ms ease, transform 150ms ease;
    width: 22px;
}

body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-footer {
    background: var(--color-dark);
    color: #fff;
    padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
}

.site-footer p,
.site-footer a,
.site-footer address {
    color: rgba(255, 255, 255, 0.76);
}

.site-footer h2 {
    color: #fff;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    grid-template-columns: 1.35fr repeat(3, 1fr);
}

.footer-grid ul {
    display: grid;
    gap: 0.45rem;
    list-style: none;
}

.footer-brand {
    background: #fff;
    border-radius: var(--radius);
    display: inline-flex;
    margin-bottom: 1.2rem;
    padding: 0.42rem 0.55rem;
}

.footer-brand .brand-logo {
    max-height: 46px;
}

.geo-line {
    margin-top: 1rem;
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2.6rem;
    padding-top: 1.2rem;
}

@media (max-width: 1100px) {
    .header-inner {
        min-height: 70px;
    }

    .brand-logo {
        max-height: 50px;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
        position: relative;
        z-index: 65;
    }

    .nav-list {
        background: var(--color-cream);
        border-left: 1px solid var(--color-line);
        bottom: 0;
        box-shadow: -18px 0 40px rgba(32, 32, 32, 0.08);
        display: block;
        max-width: 420px;
        opacity: 0;
        overflow-y: auto;
        padding: 5.5rem 1rem 1.2rem;
        pointer-events: none;
        position: fixed;
        right: 0;
        top: 0;
        transform: translateX(18px);
        transition: opacity 170ms ease, transform 170ms ease;
        width: min(90vw, 420px);
        z-index: 60;
    }

    body.menu-open .nav-list {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .nav-list > li {
        border-bottom: 1px solid var(--color-line);
    }

    .nav-item-row {
        justify-content: space-between;
    }

    .nav-list a {
        display: flex;
        flex: 1 1 auto;
        font-size: 0.95rem;
        padding: 0.9rem 0.2rem;
        white-space: normal;
    }

    .nav-cta {
        background: transparent;
        color: var(--color-ink) !important;
        margin-left: 0;
        padding-inline: 0.2rem !important;
    }

    .submenu-toggle {
        height: 42px;
        margin-left: 0.5rem;
        width: 42px;
    }

    .submenu-toggle[aria-expanded="true"]::after {
        transform: rotate(225deg) translate(-2px, -1px);
    }

    .submenu {
        background: transparent;
        border: 0;
        box-shadow: none;
        display: none;
        margin: 0 0 0.6rem 0.6rem;
        min-width: 0;
        opacity: 1;
        padding: 0 0 0 0.75rem;
        pointer-events: auto;
        position: static;
        transform: none;
    }

    .has-submenu.submenu-open > .submenu {
        display: grid;
    }

    .submenu a {
        color: var(--color-text);
        font-size: 0.91rem;
        padding: 0.45rem 0;
    }
}

@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 62px;
    }

    .brand-logo {
        max-height: 44px;
    }

    .footer-grid,
    .footer-bottom {
        display: grid;
        grid-template-columns: 1fr;
    }
}
