.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 16px 0;
    backdrop-filter: blur(18px);
    background: rgba(252, 252, 253, 0.82);
    border-bottom: 1px solid rgba(231, 235, 241, 0.85);
    transition: box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    background: rgba(252, 252, 253, 0.92);
    border-bottom-color: rgba(231, 235, 241, 1);
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.logo img {
    width: 120px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform .2s ease;
    transform-origin: left center;
}

.site-header.is-scrolled .logo img {
    transform: scale(0.96);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
    margin-left: auto;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-color);
    transition: color .2s ease, opacity .2s ease, background .2s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--accent);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(23, 55, 95, 0.18);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    flex-shrink: 0;
}

.header-action:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: #fff;
}

.site-header.is-scrolled .header-action {
    box-shadow: 0 10px 22px rgba(23, 55, 95, 0.14);
}

.mobile-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    font-size: 22px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.mobile-menu-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

.mobile-menu-toggle i {
    line-height: 1;
}

@media (max-width: 980px) {
    .site-header-inner {
        gap: 18px;
    }

    .nav-wrap {
        position: relative;
        flex: 1 1 auto;
        justify-content: flex-end;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        left: auto;
        width: min(320px, calc(100vw - 28px));
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--border);
        border-radius: 22px;
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(16px);
        z-index: 60;
    }

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

    .nav-links a {
        padding: 12px 14px;
        border-radius: 14px;
        background: #f8fafc;
    }

    .nav-links a:hover,
    .nav-links a.is-active {
        background: rgba(200, 160, 106, 0.10);
        color: var(--accent);
    }

    .mobile-menu-toggle {
        display: inline-flex;
        flex: 0 0 48px;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 12px 0;
    }

    .site-header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .logo {
        flex: 0 0 auto;
        min-width: 0;
    }

    .logo img {
        width: 92px;
        max-width: 92px;
    }

    .nav-wrap {
        flex: 1 1 auto;
        justify-content: flex-end;
        min-width: 0;
    }

    .header-controls {
        width: auto;
        justify-content: flex-end;
        gap: 10px;
    }

    .header-action {
        min-height: 44px;
        padding: 11px 14px;
        font-size: 13px;
        gap: 6px;
        max-width: 220px;
    }

    .header-action span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        flex: 0 0 44px;
    }

    .nav-links {
        top: calc(100% + 10px);
        right: 0;
        width: min(300px, calc(100vw - 28px));
        padding: 12px;
        border-radius: 18px;
    }
}

@media (max-width: 420px) {
    .logo img {
        width: 84px;
        max-width: 84px;
    }

    .header-action {
        padding: 11px 12px;
        font-size: 12px;
        max-width: 190px;
    }

    .header-action i {
        font-size: 13px;
    }

    .nav-links {
        width: min(280px, calc(100vw - 20px));
        right: 0;
    }
}