.site-header {
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 26px;
    padding: 12px 24px;
    border-bottom: 1px solid #282d36;
    background: #101319;
}

.site-brand {
    display: flex;
    min-width: max-content;
    align-items: center;
    gap: 10px;
    color: #f5f7fa;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -.03em;
    text-decoration: none;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.site-navigation {
    display: flex;
    align-self: stretch;
    align-items: stretch;
    gap: 4px;
}

.site-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    color: #9ca4b2;
    font-size: .92rem;
    text-decoration: none;
}

.site-nav-link:hover,
.site-nav-link.active {
    color: #f5f7fa;
}

.site-nav-link.active::after {
    position: absolute;
    right: 12px;
    bottom: -12px;
    left: 12px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #ef3340;
    content: '';
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.header-primary,
.header-secondary {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 9px 14px;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.header-primary {
    border: 1px solid transparent;
    background: #ef3340;
    color: #fff;
}

.header-primary svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.header-secondary {
    border: 1px solid #3f4652;
    background: transparent;
    color: #f5f7fa;
}

@media (max-width: 640px) {
    .site-header {
        flex-wrap: wrap;
        gap: 10px 14px;
        padding: 10px 12px 0;
    }

    .site-navigation {
        order: 3;
        width: 100%;
        min-height: 42px;
    }

    .site-nav-link {
        flex: 1;
        justify-content: center;
    }

    .site-nav-link.active::after {
        bottom: 0;
    }

    .header-primary span {
        display: none;
    }

    .header-primary {
        width: 40px;
        padding-inline: 8px;
    }
}
