.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px clamp(16px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(33, 31, 28, 0.06);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--brand-dark);
    font-weight: 800;
    text-decoration: none;
}

.brand:hover {
    transform: translateY(-1px);
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.brand:hover .brand-logo {
    box-shadow: none;
    transform: translateY(-1px);
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-name {
    color: var(--brand);
    font-size: 22px;
    line-height: 1.05;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.nav a,
.text-link {
    border-radius: 999px;
    padding: 8px 11px;
    text-decoration: none;
}

.nav a:hover,
.text-link:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px clamp(16px, 4vw, 40px) 72px;
}

.section {
    padding: 28px 0;
}

.narrow {
    max-width: 760px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
@media (max-width: 760px) {
    .site-header {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 10px 12px 8px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin: 0 -4px;
        padding: 2px 4px 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .nav a,
    .nav-form button {
        white-space: nowrap;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }
}
