/* Шапка сайта LBL Studio — единый chrome для лендинга и отдельных страниц */

:root {
    --lbl-header-height: 60px;
    --header-height: var(--lbl-header-height);
    --idx-header-height: var(--lbl-header-height);
}

body.lbl-site-chrome {
    padding-top: calc(var(--lbl-header-height) + env(safe-area-inset-top, 0));
}

.lbl-site-header,
body:not(.fd-body) > header:has(.idx-nav-center),
.cat-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: var(--lbl-header-height);
    padding-top: env(safe-area-inset-top, 0);
    background: var(--surface-header, rgba(255, 255, 255, 0.88));
    backdrop-filter: var(--liquid-blur, blur(24px) saturate(180%));
    -webkit-backdrop-filter: var(--liquid-blur, blur(24px) saturate(180%));
    border-bottom: 1px solid var(--liquid-border, rgba(255, 255, 255, 0.4));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lbl-site-header .header-content,
body:not(.fd-body) > header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--lbl-header-height);
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .lbl-site-header .header-content,
    body:not(.fd-body) > header .header-content {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .lbl-site-header .header-content,
    body:not(.fd-body) > header .header-content {
        padding: 0 12px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
}

.lbl-site-header .logo,
body:not(.fd-body) > header .logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
    color: inherit;
}

.lbl-site-header .logo-mark,
body:not(.fd-body) > header .logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), 0 3px 10px rgba(37, 99, 235, 0.32);
}

.lbl-site-header .logo-wordmark,
body:not(.fd-body) > header .logo-wordmark {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    letter-spacing: -0.6px;
    line-height: 1;
}

.lbl-site-header .logo-wordmark em,
body:not(.fd-body) > header .logo-wordmark em {
    font-style: normal;
    font-weight: 400;
    color: var(--text-secondary, #475569);
}

.lbl-site-header .demo-badge,
body:not(.fd-body) > header .demo-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: lowercase;
    color: var(--text-muted, #64748b);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--liquid-border, rgba(255, 255, 255, 0.45));
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 2px;
    align-self: flex-start;
    margin-top: 1px;
}

.lbl-site-header .hdr-right,
body:not(.fd-body) > header .hdr-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.lbl-site-header .hdr-icon-btn,
body:not(.fd-body) > header .hdr-icon-btn {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--liquid-border, rgba(255, 255, 255, 0.4));
    background: var(--liquid-bg, rgba(255, 255, 255, 0.55));
    color: var(--text-secondary, #475569);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
}

.lbl-site-header .hdr-icon-btn:hover,
body:not(.fd-body) > header .hdr-icon-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-color, #2563eb);
}

.lbl-site-header .hdr-sep,
body:not(.fd-body) > header .hdr-sep {
    width: 1px;
    height: 24px;
    background: var(--liquid-border, rgba(148, 163, 184, 0.35));
    flex-shrink: 0;
}

.lbl-site-header .hdr-user,
body:not(.fd-body) > header .hdr-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lbl-site-header .hdr-avatar,
body:not(.fd-body) > header .hdr-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lbl-site-header .hdr-username,
body:not(.fd-body) > header .hdr-username {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .lbl-site-header .hdr-username,
    .lbl-site-header .header-balance-wrap,
    body:not(.fd-body) > header .hdr-username,
    body:not(.fd-body) > header .header-balance-wrap {
        display: none;
    }
}
