.tb-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--border-default);
    backdrop-filter: blur(12px);
}

.tb-header__inner { min-height: 68px; display: flex; align-items: center; gap: 20px; }
.tb-logo { display: block; flex: 0 0 auto; }
.tb-logo img { width: 148px; height: auto; }
.tb-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tb-nav > a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: .6rem .75rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 650;
    text-decoration: none;
}

.tb-nav > a:hover,
.tb-nav > a.is-active { color: var(--brand-primary-active); background: var(--brand-soft); }
.tb-header__actions { display: flex; align-items: center; gap: 7px; }
.tb-account,
.tb-locale summary {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .6rem .8rem;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--surface-primary);
    font-weight: 700;
    text-decoration: none;
}

.tb-locale { position: relative; }
.tb-locale summary { list-style: none; }
.tb-locale summary::-webkit-details-marker { display: none; }
.tb-locale__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 150px;
    padding: 6px;
    background: var(--surface-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.tb-locale__menu a { display: block; padding: .65rem .75rem; border-radius: var(--radius-sm); text-decoration: none; }
.tb-locale__menu a:hover,
.tb-locale__menu a.is-active { background: var(--surface-secondary); color: var(--brand-primary-active); }
.tb-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--surface-primary);
}

.tb-menu-button span:not(.tb-visually-hidden) { display: block; height: 2px; margin: 4px 0; background: var(--text-primary); }
.tb-footer { margin-top: 64px; background: var(--surface-secondary); border-top: 1px solid var(--border-default); }
.tb-footer__inner {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, .7fr));
    gap: clamp(28px, 5vw, 64px);
    padding: 48px 0 38px;
}

.tb-logo--footer img { width: 140px; }
.tb-footer__brand p { max-width: 270px; margin: 14px 0 0; color: var(--text-muted); }
.tb-footer__group { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.tb-footer__group h2 { margin: 0 0 4px; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.tb-footer__group a { color: var(--text-secondary); text-decoration: none; }
.tb-footer__group a:hover { color: var(--brand-primary-active); }
.tb-footer__bottom { padding: 18px 0 24px; border-top: 1px solid var(--border-default); }
.tb-footer__bottom p { margin: 0; color: var(--text-muted); font-size: .875rem; }

@media (max-width: 900px) {
    .tb-header__inner { min-height: 62px; }
    .tb-logo img { width: 128px; }
    .tb-menu-button { display: block; margin-left: auto; }
    .tb-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 8px);
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        background: var(--surface-primary);
        border: 1px solid var(--border-default);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
    }

    .tb-nav.is-open { display: flex; }
    .tb-nav > a { min-height: 44px; }
    .tb-footer__inner { grid-template-columns: repeat(3, 1fr); }
    .tb-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .tb-footer__inner { grid-template-columns: repeat(2, 1fr); }
    .tb-footer__group:last-child { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
    .tb-container { width: min(calc(100% - 24px), var(--container-width)); }
    .tb-account { padding: .55rem .65rem; }
    .tb-header__actions { gap: 5px; }
    .tb-footer__inner { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
}
