.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    min-height: var(--header-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(2, 17, 21, 0.94);
    backdrop-filter: blur(18px);
}

.site-header.scrolled {
    background: rgba(2, 17, 21, 0.97);
}

.site-header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.brand-logo {
    width: 230px;
    height: 76px;
    object-fit: contain;
    object-position: left center;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.92rem;
    font-weight: 600;
}

.nav-links a,
.footer-links a {
    text-decoration: none;
}

.nav-links a {
    position: relative;
    padding: 10px 2px;
    color: rgba(255, 255, 255, 0.84);
    white-space: nowrap;
    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
    box-shadow: 0 0 8px rgba(215, 155, 50, 0.34);
    transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--color-white);
    text-shadow: 0 0 14px rgba(24, 164, 170, 0.42);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.nav-links a.active {
    color: #ffffff;
    text-shadow: none;
}

.nav-links a.active::after {
    transform: scaleX(1);
}

/*
 * Keep the primary navigation stationary between full-page loads. Each desktop
 * label owns a fixed slot, so fallback-font rendering and the active state
 * cannot push the links that follow it sideways.
 */
@media (min-width: 1081px) {
    .nav-links {
        display: grid;
        grid-template-columns: 44px 67px 82px 78px 68px 58px;
        column-gap: 28px;
        line-height: 1.25;
        font-synthesis: none;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }
}

.has-menu::after {
    content: "v";
    position: static;
    display: inline;
    height: auto;
    margin-left: 5px;
    background: none;
    transform: none;
}

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

.header-search {
    position: relative;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(24, 164, 170, 0.55);
    border-radius: 8px;
    background: rgba(0, 20, 25, 0.75);
    text-decoration: none;
}

.header-search::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 13px;
    width: 15px;
    height: 15px;
    border: 2px solid var(--color-white);
    border-radius: 50%;
}

.header-search::after {
    content: "";
    position: absolute;
    left: 29px;
    top: 29px;
    width: 10px;
    height: 2px;
    background: var(--color-white);
    transform: rotate(45deg);
}

.header-cta,
.button,
.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--radius-md);
    color: var(--color-charcoal);
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-bright));
    box-shadow: var(--shadow-gold);
    cursor: pointer;
    font: 700 0.92rem var(--font-heading);
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.header-cta:hover,
.button:hover,
.search-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.button-secondary {
    color: var(--color-white);
    background:
        linear-gradient(135deg, rgba(15, 111, 115, 0.55), rgba(15, 111, 115, 0.24));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--color-white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.search-suggestions {
    display: none !important;
}

.search-wrapper {
    max-width: 930px;
    margin: var(--space-xl) auto 0;
}

.search-panel {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-premium);
}

.global-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.search-input {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-md);
    color: var(--color-white);
    background: rgba(5, 12, 15, 0.86);
    font: 500 1rem var(--font-body);
    outline: none;
}

.search-input::placeholder {
    color: rgba(244, 251, 251, 0.48);
}

.search-input:focus {
    border-color: rgba(215, 155, 50, 0.55);
    box-shadow: 0 0 0 4px rgba(215, 155, 50, 0.12);
}

.search-results {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.search-result-card,
.search-empty {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
}

.search-result-card h3,
.search-empty h3 {
    margin: 0 0 8px;
    color: var(--color-white);
    font-family: var(--font-heading);
}

.search-result-card p,
.search-empty p {
    margin: 0;
    color: var(--color-text-muted);
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.result-meta span {
    padding: 5px 9px;
    border-radius: var(--radius-sm);
    color: var(--color-charcoal);
    background: rgba(215, 155, 50, 0.92);
    font-size: 0.78rem;
    font-weight: 700;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: var(--space-xl);
}

.resource-card {
    min-height: 172px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
    color: var(--color-text);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    border-color: rgba(215, 155, 50, 0.36);
    background:
        linear-gradient(180deg, rgba(15, 111, 115, 0.16), rgba(255, 255, 255, 0.045));
}

.resource-card span {
    display: block;
    margin-bottom: 16px;
    color: var(--color-gold);
    font: 700 0.86rem var(--font-heading);
    text-transform: uppercase;
}

.resource-card strong {
    display: block;
    color: var(--color-white);
    font-size: 1.05rem;
    line-height: 1.45;
}

.premium-band,
.catalog-banner,
.about-panel {
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 20% 20%, rgba(15, 111, 115, 0.18), transparent 36%),
        radial-gradient(circle at 80% 80%, rgba(215, 155, 50, 0.12), transparent 32%),
        rgba(255, 255, 255, 0.045);
    box-shadow: var(--shadow-premium);
}

.premium-band,
.catalog-banner {
    padding: clamp(40px, 7vw, 82px);
    text-align: center;
}

.about-panel {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding: clamp(32px, 5vw, 58px);
}

.about-panel p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1.06rem;
}
