.tb-page-header {
    position: relative;
    z-index: 20;
    max-width: 1220px;
    margin: 0 auto;
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(14, 12, 10, 0.82) 0%, rgba(6, 6, 6, 0.58) 100%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.tb-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(520px 100px at 10% 0%, rgba(255, 212, 107, 0.12), transparent 72%),
        radial-gradient(340px 100px at 100% 0%, rgba(139, 26, 26, 0.18), transparent 72%);
    opacity: 0.9;
}

.tb-page-header a {
    position: relative;
    z-index: 1;
    color: inherit;
    text-decoration: none;
}

.tb-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.tb-brand-logo {
    width: min(430px, 64vw);
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 28px rgba(139, 26, 26, 0.42));
}

.tb-header-links {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.tb-header-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.86);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.tb-header-link:hover,
.tb-header-link:focus-visible {
    border-color: rgba(255,212,107,0.38);
    color: #ffd46b;
    outline: none;
}

@media (max-width: 720px) {
    .tb-page-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 14px 12px;
    }

    .tb-brand-logo {
        width: min(330px, 82vw);
    }

    .tb-header-links {
        width: 100%;
        justify-content: flex-start;
    }
}
