.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-height);
    background: #f8f8f8;
    border-bottom: 1px solid #f0f0f0;
    padding-inline: clamp(24px, 3.125vw, 60px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
}

.wordmark {
    justify-self: start;
    font-size: clamp(18px, 1.1458vw, 22px);
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #222;
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(22px, 2.1875vw, 42px);
}

.site-nav__link {
    display: block;
    padding: 15px 0;
    background: transparent;
    font-size: clamp(12px, 0.8333vw, 16px);
    font-weight: 700;
    line-height: 1.4;
    color: #222;
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-active {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

.site-header a[aria-disabled='true'] {
    cursor: default;
}

.submenu-expander {
    display: none;
}

.header-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    color: #fff;
}

.header-submenu__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    min-height: 96px;
    padding: 20px 24px;
}

.header-submenu a {
    display: block;
    padding-block: 10px;
    color: #eee;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
}

.header-submenu a:hover,
.header-submenu a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 16px;
}

.header-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 130px;
    height: 32px;
    background: #050505;
    color: #fff;
    border-radius: 4px;
    font-size: clamp(12px, 0.8333vw, 16px);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.menu-toggle {
    position: relative;
    display: none;
    width: 28px;
    height: 36px;
    background: transparent;
    border: none;
    padding: 0;
}

.menu-toggle span {
    position: absolute;
    top: 50%;
    left: 2px;
    display: block;
    width: 24px;
    height: 1px;
    margin: 0;
    background: #111;
    transition: transform 0.2s;
}

.menu-toggle span:first-child {
    transform: translateY(-4px);
}

.menu-toggle span:last-child {
    transform: translateY(4px);
}

@media (min-width: 761px) and (max-width: 1100px) {
    .site-nav {
        gap: 20px;
    }

    .site-nav__link {
        font-size: 13px;
    }

    .header-contact {
        width: 112px;
        font-size: 12px;
    }
}

@media (max-width: 820px) {
    .site-header {
        padding-inline: 20px;
    }
}

@media (max-width: 760px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .wordmark {
        font-size: 18px;
    }

    .menu-toggle {
        display: block;
    }

    .header-contact {
        width: auto;
        padding-inline: 12px;
        font-size: 12px;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 16px 24px 24px;
        border-bottom: 1px solid #ddd;
        background: #f8f8f8;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav__link {
        width: 100%;
        padding-block: 16px;
        border-bottom: 1px solid #e5e5e5;
        text-align: left;
        font-size: 16px;
    }

    .site-nav > div {
        position: relative;
    }

    .site-nav > div > .site-nav__link {
        padding-right: 52px;
    }

    .submenu-expander {
        position: absolute;
        top: 0;
        right: 0;
        display: block;
        width: 48px;
        height: 55px;
        border: 0;
        padding: 0;
        background: transparent;
        color: #222;
        cursor: pointer;
    }

    .submenu-expander::after {
        content: '+';
        font-size: 18px;
        font-weight: 400;
    }

    .submenu-expander[aria-expanded='true']::after {
        content: '−';
    }

    .header-submenu {
        position: static;
        margin-inline: -24px;
    }

    .header-submenu__inner {
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px;
    }

    .header-submenu a {
        padding-block: 12px;
        font-size: 14px;
    }

    .menu-toggle[aria-expanded='true'] span:first-child {
        transform: rotate(45deg);
    }

    .menu-toggle[aria-expanded='true'] span:last-child {
        transform: rotate(-45deg);
    }
}
