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

.utility-bar {
    background: var(--brand-2);
    color: var(--bg);
    font-size: 13px;
}

[data-theme="dark"] .utility-bar {
    background: #050505;
    color: var(--text);
}

.utility-bar__inner,
.utility-bar nav,
.utility-bar__actions,
.main-nav__inner,
.language-links {
    display: flex;
    align-items: center;
}

.utility-bar__inner {
    min-height: 40px;
    justify-content: space-between;
    gap: 18px;
}

.utility-bar nav,
.utility-bar__actions {
    gap: 18px;
}

.language-links {
    gap: 4px;
}

.language-links a {
    border-radius: 4px;
    padding: 3px 6px;
}

.language-links .is-active {
    background: var(--brand);
    color: #111111;
}

.icon-link {
    width: 26px;
    height: 26px;
    justify-content: center;
}

.main-nav__inner {
    min-height: 82px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    width: 74px;
    height: 46px;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
}

.brand__mark {
    font-size: 25px;
}

.brand__sub {
    margin-top: 1px;
    background: var(--brand);
    color: #111111;
    padding: 1px 8px 2px;
    font-size: 10px;
}

.category-nav {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav a {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.support-link {
    color: var(--brand);
}

.site-search {
    display: flex;
    width: min(260px, 22vw);
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    overflow: hidden;
}

.site-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    padding: 0 10px;
}

.site-search button {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 24px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
}

@media (max-width: 980px) {
    .utility-bar__inner {
        display: none;
    }

    .main-nav__inner {
        min-height: 70px;
        justify-content: space-between;
    }

    .brand {
        margin-right: auto;
    }

    .nav-toggle {
        display: block;
        order: -1;
    }

    .category-nav {
        position: fixed;
        inset: 70px 0 auto 0;
        display: none;
        max-height: calc(100vh - 70px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: auto;
        border-bottom: 1px solid var(--line);
        background: var(--surface);
        padding: 10px 24px 24px;
        box-shadow: var(--shadow);
    }

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

    .category-nav a {
        border-bottom: 1px solid var(--line);
        padding: 16px 0;
    }

    .site-search {
        width: min(220px, 44vw);
    }
}

@media (max-width: 560px) {
    .site-search {
        width: 42px;
        border-color: transparent;
        background: transparent;
    }

    .site-search input {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
}
