.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 40;
    background: rgba(8, 13, 23, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.22);
}

.site-header-inner {
    max-width: 86rem;
    min-height: 4.75rem;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.site-logo {
    display: block;
    width: 12.5rem;
    line-height: 0;
    flex-shrink: 0;
}

.site-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 0;
    white-space: nowrap;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    border-radius: 8px;
    padding: 0 0.62rem;
    color: #e5e7eb;
    background: transparent;
    border: 1px solid transparent;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.site-nav-link:hover {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.24);
    color: #ffffff;
}

.site-nav-link.is-active {
    background: #14b8a6;
    color: #082f49;
    border-color: #5eead4;
}

@media (max-width: 820px) {
    .site-header {
        position: sticky;
    }

    .site-header-inner {
        max-width: 100%;
        min-height: auto;
        padding: 0.55rem 0.75rem 0.45rem;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.45rem;
    }

    .site-logo {
        width: 10.75rem;
    }

    .site-nav {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0.1rem 0.05rem;
        scrollbar-width: none;
        scroll-padding-inline: 0.75rem;
        -webkit-overflow-scrolling: touch;
    }

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

    .site-nav-link {
        flex: 0 0 auto;
        min-height: 2.15rem;
        padding: 0 0.58rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 420px) {
    .site-logo {
        width: 9.6rem;
    }

    .site-nav-link {
        min-height: 2.05rem;
        padding: 0 0.5rem;
        font-size: 0.78rem;
    }
}
