:root {
    --nb-header-primary: #6554f5;
    --nb-header-primary-dark: #4c3be0;
    --nb-header-text: #141626;
    --nb-header-muted: #7d8496;
    --nb-header-border: #e4e5ee;
    --nb-header-surface:
        radial-gradient(140% 180% at 0% 0%,rgba(111,86,255,.17) 0%,rgba(111,86,255,.065) 36%,transparent 59%),
        radial-gradient(140% 180% at 100% 0%,rgba(105,181,255,.17) 0%,rgba(105,181,255,.06) 38%,transparent 61%),
        linear-gradient(90deg,#f3f1ff 0%,#fcfbff 49%,#eef6ff 100%);
    --nb-header-soft: #f7f7fb;
    --nb-header-container: 1760px;
}

body.neirobase-header-design-active .wp-site-blocks > header:not(#nb-native-header),
body.neirobase-header-design-active header.wp-block-template-part,
body.neirobase-header-design-active .site-header:not(#nb-native-header) {
    display: none !important;
}

#nb-native-header {
    position: sticky;
    top: 0;
    z-index: 9990;
    width: 100%;
    border-bottom: 1px solid rgba(91,75,255,.12);
    background: var(--nb-header-surface);
    box-shadow: 0 5px 22px rgba(35,31,75,.05);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.admin-bar #nb-native-header { top: 32px; }

.nb-native-header__inner {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(420px,620px) minmax(0,1fr);
    align-items: center;
    justify-content: stretch;
    gap: 18px;
    min-height: 64px;
    width: min(calc(100% - clamp(32px,5vw,96px)),var(--nb-header-container));
    margin: 0 auto;
}

.nb-native-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nb-header-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.nb-native-header__brand:hover,.nb-native-header__brand:focus-visible { color: var(--nb-header-text); outline: none; }
.nb-native-header__brand-logo {
    display: block;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    max-width: none;
    border-radius: 8px;
    object-fit: contain;
}
.nb-native-header__brand-name {
    display: inline-flex;
    align-items: baseline;
    letter-spacing: -.035em;
    font-size: 18px;
    font-weight: 850;
}
.nb-native-header__brand-name span:first-child { color: #17192a; }
.nb-native-header__brand-name span:last-child { color: var(--nb-header-primary); }

.nb-native-header__beta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    margin-left: 2px;
    padding: 2px 7px;
    color: #5140ee;
    background: rgba(102, 84, 255, .08);
    border: 1px solid rgba(102, 84, 255, .16);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .02em;
    line-height: 1;
    text-transform: uppercase;
}

.nb-native-header__search { position: relative; width: 100%; min-width: 0; max-width: 100%; }
.nb-native-header__search-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 42px;
    border: 1px solid var(--nb-header-border);
    border-radius: 12px;
    background: var(--nb-header-soft);
    transition: border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.nb-native-header__search-form:focus-within {
    border-color: rgba(91,75,255,.65);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91,75,255,.10);
}
.nb-native-header__search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 12px 0 15px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--nb-header-text);
    font: inherit;
    font-size: 14px;
}
.nb-native-header__search-input::placeholder { color: #9aa0af; }
.nb-native-header__search-input::-webkit-search-cancel-button,
.nb-native-header__search-input::-webkit-search-decoration,
.nb-native-header__search-input::-webkit-search-results-button,
.nb-native-header__search-input::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}
.nb-native-header__search-input::-ms-clear,
.nb-native-header__search-input::-ms-reveal { display: none; width: 0; height: 0; }
.nb-native-header__search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #8b91a0;
    cursor: pointer;
}
.nb-native-header__search.has-value .nb-native-header__search-clear { display: inline-flex; }
.nb-native-header__search-clear:hover { background: #ececf4; color: var(--nb-header-text); }
.nb-native-header__search-submit {
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    box-sizing: border-box;
    margin-right: 3px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #777b8e;
    cursor: pointer;
    transition: color .16s ease,transform .16s ease;
}
.nb-native-header__search-submit:hover,.nb-native-header__search-submit:focus-visible { background: transparent; color: var(--nb-header-primary); outline: none; box-shadow: none; }
.nb-native-header__search-submit:active { transform: translateY(1px); }
.nb-native-header__search-submit svg { width: 17px; height: 17px; }

.nb-native-header__results {
    position: absolute;
    top: calc(100% + 11px);
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: auto;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    max-height: min(560px,calc(100vh - 105px));
    overflow: hidden;
    padding: 10px;
    border: 1px solid rgba(76,61,168,.14);
    border-radius: 22px;
    background: radial-gradient(circle at 100% 0%,rgba(119,215,255,.11),transparent 170px),linear-gradient(145deg,rgba(255,255,255,.995),rgba(248,247,255,.985));
    box-shadow: 0 28px 80px rgba(37,29,86,.18),inset 0 1px rgba(255,255,255,.98);
    transform: none;
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
}
.nb-native-header__results[hidden] { display: none; }
.nb-native-header__results-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:38px;
    padding:2px 8px 8px;
}
.nb-native-header__results-title {
    color:#555a6d;
    font-size:11px;
    font-weight:790;
    letter-spacing:.065em;
    text-transform:uppercase;
}
.nb-native-header__results-section {
    padding:8px 9px 4px;
    color:#898d9e;
    font-size:9px;
    font-weight:790;
    letter-spacing:.07em;
    text-transform:uppercase;
}
.nb-native-header__results-list {
    min-height:0;
    max-height:min(430px,calc(100vh - 150px));
    overflow-y:auto;
    padding:0;
    scrollbar-color:#777b86 transparent;
    scrollbar-width:thin;
}
.nb-native-header__results-list::-webkit-scrollbar { width:8px; }
.nb-native-header__results-list::-webkit-scrollbar-track { background:transparent; }
.nb-native-header__results-list::-webkit-scrollbar-thumb { border-radius:999px;background:#777b86; }
.nb-native-header__result {
    display:grid;
    grid-template-columns:54px minmax(0,1fr) 28px;
    align-items:center;
    gap:11px;
    min-height:70px;
    padding:7px 8px;
    border:1px solid transparent;
    border-radius:15px;
    color:var(--nb-header-text);
    text-decoration:none;
    transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.nb-native-header__result:hover,.nb-native-header__result:focus-visible,.nb-native-header__result.is-active {
    border-color:rgba(104,83,244,.14);
    background:#f4f1ff;
    box-shadow:0 8px 24px rgba(87,67,214,.08);
    color:var(--nb-header-text);
    outline:none;
}
.nb-native-header__result-media {
    display:grid;
    place-items:center;
    overflow:hidden;
    width:54px;
    height:54px;
    border-radius:13px;
    background:linear-gradient(145deg,#efedff,#f8f7ff);
    color:var(--nb-header-primary);
    font-size:20px;
    font-weight:850;
}
.nb-native-header__result-media img { width:100%;height:100%;object-fit:cover; }
.nb-native-header__result-text {
    display:block;
    box-sizing:border-box;
    width:100%;
    height:100%;
    padding:6px 5px 5px 7px;
    overflow:hidden;
    background:linear-gradient(155deg,#f7f7ff 0%,#f3f5fb 58%,#eef1f7 100%);
    color:#4b5367;
    text-align:left;
}
.nb-native-header__result-text::before {
    position:absolute;
    top:7px;
    bottom:7px;
    left:4px;
    width:2px;
    border-radius:999px;
    background:linear-gradient(180deg,#7c66ff,#73c6ec);
    opacity:.72;
    content:"";
}
.nb-native-header__result-media:has(.nb-native-header__result-text),
.nb-native-header__result-media.is-text {
    position:relative;
    background:transparent;
}
.nb-native-header__result-text-inner {
    display:-webkit-box;
    max-height:100%;
    overflow:hidden;
    margin-left:3px;
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
    font-size:7.5px;
    font-weight:560;
    letter-spacing:-.02em;
    line-height:1.28;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:6;
}
.nb-native-header__result-copy { min-width:0; }
.nb-native-header__result-title,.nb-native-header__result-meta { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.nb-native-header__result-title { display:block;font-size:14px;font-weight:750;letter-spacing:-.018em;line-height:1.2; }
.nb-native-header__result-meta { display:flex;align-items:center;gap:6px;margin-top:6px;color:#7e8497;font-size:11px;font-weight:610;line-height:1.2; }
.nb-native-header__result-tool { display:inline-flex;align-items:center;gap:6px;min-width:0; }
.nb-native-header__result-tool-logo { width:15px;height:15px;border-radius:4px;object-fit:contain; }
.nb-native-header__result-tool-fallback { color:var(--nb-header-primary);font-size:16px;line-height:1; }
.nb-native-header__result-dot { color:#b5b8c4; }
.nb-native-header__result-state { padding:34px 20px;color:var(--nb-header-muted);font-size:14px;text-align:center; }
.nb-native-header__results-footer {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    min-height:42px;
    margin:7px 0 0;
    padding:9px 12px;
    border:1px solid #e2ddff;
    border-radius:13px;
    background:#f4f1ff;
    color:var(--nb-header-primary-dark);
    font-size:12px;
    font-weight:730;
    letter-spacing:.025em;
    text-decoration:none;
    text-transform:uppercase;
}
.nb-native-header__results-footer:hover,.nb-native-header__results-footer:focus-visible { background:#ece7ff;color:var(--nb-header-primary-dark);outline:none; }

.nb-native-header__desktop-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-width: 0;
}
.nb-native-header__action,.nb-native-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .16s ease,background-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.nb-native-header__action {
    border: 1px solid var(--nb-header-border);
    background: #fff;
    color: #303343;
    box-shadow: 0 3px 10px rgba(26,24,61,.025);
}
.nb-native-header__action:hover,.nb-native-header__action:focus-visible { border-color:#d5d1ff;background:#f5f3ff;color:var(--nb-header-primary-dark);outline:none; }
.nb-native-header__cta {
    border: 1px solid var(--nb-header-primary);
    background: linear-gradient(135deg,#715fff,#5945ed);
    color: #fff;
    box-shadow: 0 8px 20px rgba(91,75,255,.24);
}
.nb-native-header__cta:hover,.nb-native-header__cta:focus-visible { color:#fff;box-shadow:0 10px 25px rgba(91,75,255,.32);transform:translateY(-1px);outline:none; }
.nb-native-header__cta-icon { margin-right:4px;font-size:17px;font-weight:500;line-height:1; }

.nb-native-header__avatar-wrap { position:relative;display:flex;align-items:center;margin-left:1px; }
.nb-native-header__avatar-button,.nb-native-header__menu-button { display:inline-grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:12px;background:transparent;cursor:pointer; }
.nb-native-header__avatar-button { box-shadow:0 0 0 1px rgba(91,75,255,.18),0 7px 18px rgba(27,24,67,.10); }
.nb-native-header__avatar-button:hover,.nb-native-header__avatar-button:focus-visible { box-shadow:0 0 0 3px rgba(91,75,255,.13),0 9px 22px rgba(27,24,67,.13);outline:none; }
.nb-native-header__avatar,.nb-native-header__avatar img { display:block;width:34px;height:34px;border-radius:10px; }
.nb-native-header__avatar { overflow:hidden;background:linear-gradient(145deg,#7163ff,#4635de);color:#fff;font-size:15px;font-weight:800;line-height:34px;text-align:center; }
.nb-native-header__avatar img { object-fit:cover; }

.nb-native-header__account-menu { position:absolute;top:calc(100% + 21px);right:0;z-index:60;width:220px;padding:10px;border:1px solid rgba(76,61,168,.12);border-radius:20px;background:rgba(255,255,255,.99);box-shadow:0 24px 70px rgba(18,21,37,.18);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px); }
.nb-native-header__account-menu[hidden] { display:none; }

@media (min-width:621px) {
    .nb-header-author .nb-native-header__account-menu { width:252px; }
}
.nb-native-header__account-links { display:grid;gap:2px;padding-top:0; }
.nb-native-header__account-link { display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:10px;min-height:50px;padding:7px 8px;border-radius:12px;color:var(--nb-header-text);text-decoration:none;transition:background-color .15s ease,color .15s ease,transform .15s ease; }
.nb-native-header__account-link:hover,.nb-native-header__account-link:focus-visible { background:#f5f3ff;color:var(--nb-header-primary-dark);outline:none; }
.nb-native-header__account-link:active { transform:translateY(1px); }
.nb-native-header__account-icon { display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#f5f3ff;color:var(--nb-header-primary);transition:background-color .15s ease,color .15s ease; }
.nb-native-header__account-icon svg { width:17px;height:17px; }
.nb-native-header__account-copy { min-width:0; }
.nb-native-header__account-copy strong { display:block;overflow:hidden;font-size:13.5px;font-weight:740;line-height:1.2;text-overflow:ellipsis;white-space:nowrap; }
.nb-native-header__account-link--logout { position:relative;grid-template-columns:32px minmax(0,1fr);margin-top:8px;padding-top:11px; }
.nb-native-header__account-link--logout::before { content:"";position:absolute;top:-4px;left:8px;right:8px;height:1px;background:#eceef3; }
.nb-native-header__account-link--logout:hover,.nb-native-header__account-link--logout:focus-visible { background:#fff2f3;color:#b93647; }
.nb-native-header__account-link--logout:hover .nb-native-header__account-icon,.nb-native-header__account-link--logout:focus-visible .nb-native-header__account-icon { background:#ffeaed;color:#c23c4d; }

.nb-native-header__menu-button { display:none;border-radius:11px;background:#f4f3f9;color:var(--nb-header-text); }
.nb-native-header__menu-button svg { width:20px;height:20px; }
.nb-native-header__mobile { display:none;border-top:1px solid var(--nb-header-border);background:#fff; }
.nb-native-header__mobile[hidden] { display:none; }
.nb-native-header__mobile-inner { display:grid;gap:7px;width:min(calc(100% - 32px),var(--nb-header-container));margin:0 auto;padding:14px 0 18px; }
.nb-native-header__mobile a { display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:11px;color:var(--nb-header-text);font-size:15px;font-weight:700;text-decoration:none; }
.nb-native-header__mobile a:hover { background:#f3f1ff;color:var(--nb-header-primary-dark); }
.nb-native-header__mobile .nb-native-header__mobile-primary { justify-content:center;background:linear-gradient(135deg,#715fff,#5945ed);color:#fff; }

/* Средняя колонка с жёстким минимумом — только для десктопа: ниже 921px её место занимает мобильная сетка. */
@media (min-width:921px) and (max-width:1280px) {
    .nb-native-header__inner { grid-template-columns:auto minmax(330px,470px) auto;justify-content:center; }
}
@media (max-width:1280px) {
    .nb-native-header__inner { gap:9px; }
    .nb-native-header__action { padding-inline:10px; }
}
@media (max-width:1040px) {
    .nb-native-header__action--authors { display:none; }
}
@media (max-width:920px) {
    .nb-native-header__inner { grid-template-columns:auto minmax(0,1fr) auto;width:min(calc(100% - 28px),var(--nb-header-container)); }
    .nb-native-header__brand-cluster { min-width:auto; }
    .nb-native-header__desktop-actions { width:auto;min-width:max-content;justify-content:flex-end; }
    .nb-native-header__desktop-actions > a { display:none; }
    .nb-native-header__menu-button { display:inline-grid; }
    .nb-native-header__mobile { display:block; }
}
@media (max-width:620px) {
    .admin-bar #nb-native-header { top:46px; }
    .nb-native-header__inner { grid-template-columns:auto minmax(0,1fr) auto;min-height:62px;gap:9px;width:min(calc(100% - 20px),var(--nb-header-container)); }
    .nb-native-header__brand-logo { width:30px;height:30px; }
    .nb-native-header__brand-name { font-size:16px; }
    .nb-native-header__search-form { min-height:40px; }
    .nb-native-header__search-input { height:38px;padding-left:11px;font-size:13px; }
    .nb-native-header__search-submit { flex:0 0 44px;width:44px;min-width:44px;max-width:44px;height:44px; }
    .nb-native-header__avatar-button,.nb-native-header__menu-button { width:38px;height:38px; }
    .nb-native-header__avatar,.nb-native-header__avatar img { width:34px;height:34px;line-height:34px; }
    .nb-native-header__account-menu { position:fixed;top:74px;right:10px;left:10px;width:auto; }
}
@media (max-width:420px) {
    .nb-native-header__brand-logo { width:28px;height:28px; }
    .nb-native-header__brand-name { display:none; }
    .nb-native-header__beta { min-height:18px;padding:2px 6px;font-size:9px; }
}

@media (max-width:720px) {
    .nb-native-header__results {
        position: fixed;
        top: 76px;
        left: 12px;
        right: 12px;
        width: auto;
        min-width: 0;
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 88px);
        padding: 8px;
        transform: none;
        box-sizing: border-box;
    }
    .admin-bar .nb-native-header__results { top:122px;max-height:calc(100vh - 134px); }
    .nb-native-header__results-top { padding:4px 8px 8px; }
    .nb-native-header__results-section { padding:7px 8px 4px; }
    .nb-native-header__results-list { padding:0; }
    .nb-native-header__result { grid-template-columns:50px minmax(0,1fr) 28px;min-height:66px;gap:10px;padding:7px; }
    .nb-native-header__result-media { width:50px;height:50px;border-radius:12px; }
    .nb-native-header__result-title { font-size:14px; }
    .nb-native-header__result-meta { font-size:11px; }
}

.nb-native-header__brand-cluster {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.nb-native-header__categories-wrap,
.nb-native-header__auth-wrap {
    position: relative;
}
.nb-native-header__nav-trigger,
.nb-native-header__auth-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid var(--nb-header-border);
    border-radius: 10px;
    background: rgba(255,255,255,.86);
    color: #343648;
    font: 700 13px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .16s ease,background-color .16s ease,color .16s ease;
}
.nb-native-header__nav-trigger:hover,
.nb-native-header__nav-trigger:focus-visible,
.nb-native-header__nav-trigger[aria-expanded="true"],
.nb-native-header__auth-trigger:hover,
.nb-native-header__auth-trigger:focus-visible,
.nb-native-header__auth-trigger[aria-expanded="true"] {
    border-color: rgba(101,84,245,.28);
    background: #f5f3ff;
    color: var(--nb-header-primary-dark);
    outline: none;
}

.nb-native-header__categories-menu {
    position: absolute;
    top: calc(100% + 21px);
    left: 0;
    z-index: 80;
    width: min(590px,calc(100vw - 28px));
    padding: 14px;
    border: 1px solid rgba(76,61,168,.13);
    border-radius: 22px;
    background: radial-gradient(circle at 100% 0%,rgba(126,112,255,.10),transparent 190px),rgba(255,255,255,.985);
    box-shadow: 0 28px 80px rgba(30,25,73,.19),inset 0 1px 0 rgba(255,255,255,.98);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
}
.nb-native-header__categories-menu[hidden],
.nb-native-header__auth-menu[hidden] { display: none; }
.nb-native-header__menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 3px 4px 12px;
    border-bottom: 1px solid #ececf3;
}
.nb-native-header__menu-heading--compact {
    justify-content: flex-end;
    min-height: 34px;
    padding: 0 0 6px;
}
.nb-native-header__menu-heading--sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    margin: 0 0 4px;
    padding: 0 0 12px;
    border-bottom: 1px solid #ececf3;
}
.nb-native-header__menu-heading--sort .nb-native-header__sort {
    margin: 0;
    padding: 0;
    border: 0;
    flex: 1 1 auto;
    min-width: 0;
}
.nb-native-header__menu-heading > span,
.nb-native-header__menu-heading strong,
.nb-native-header__menu-heading small { display: block; }
.nb-native-header__menu-heading strong { color: #191b2d;font-size: 15px;letter-spacing: -.02em; }
.nb-native-header__menu-heading small { margin-top: 4px;color: #858b9c;font-size: 11px;font-weight: 560; }
.nb-native-header__menu-close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #f3f3f8;
    color: #777d8d;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.nb-native-header__menu-close:hover,.nb-native-header__menu-close:focus-visible { background:#ebe8ff;color:var(--nb-header-primary-dark);outline:none; }
.nb-native-header__category-browser {
    display: grid;
    grid-template-columns: minmax(250px,1fr) minmax(220px,250px);
    align-items: start;
    gap: 12px;
    padding: 12px 0;
}
.nb-native-header__category-column {
    min-width: 0;
    align-self: start;
    padding: 8px;
    border: 1px solid #eeeeF5;
    border-radius: 17px;
    background: rgba(249,249,253,.72);
}
.nb-native-header__category-column h3,
.nb-native-header__model-panel h3 {
    margin: 0 0 7px;
    padding: 0 5px;
    color: #8a8f9e;
    font-size: 10px;
    font-weight: 790;
    letter-spacing: .075em;
    text-transform: uppercase;
}
.nb-native-header__taxonomy-item,
.nb-native-header__model-item {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 52px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: #26293a;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease,border-color .15s ease,color .15s ease;
}
.nb-native-header__taxonomy-item:hover,
.nb-native-header__taxonomy-item:focus-visible,
.nb-native-header__taxonomy-item.is-active,
.nb-native-header__model-item:hover,
.nb-native-header__model-item:focus-visible {
    border-color: rgba(101,84,245,.12);
    background: #f0edff;
    color: #3f31c8;
    outline: none;
}
.nb-native-header__taxonomy-item > span:nth-child(2),
.nb-native-header__taxonomy-item strong,
.nb-native-header__taxonomy-item small,
.nb-native-header__model-item > span:first-child,
.nb-native-header__model-item strong,
.nb-native-header__model-item small { display:block;min-width:0; }
.nb-native-header__taxonomy-item strong,.nb-native-header__model-item strong { overflow:hidden;color:inherit;font-size:13px;font-weight:730;text-overflow:ellipsis;white-space:nowrap; }
.nb-native-header__taxonomy-item small,.nb-native-header__model-item small { margin-top:3px;overflow:hidden;color:#8a90a1;font-size:10.5px;font-weight:560;text-overflow:ellipsis;white-space:nowrap; }
.nb-native-header__taxonomy-icon {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    color: var(--nb-header-primary);
    box-shadow: inset 0 0 0 1px rgba(73,65,135,.08);
}
.nb-native-header__taxonomy-icon img { display:block;width:24px;height:24px;object-fit:contain; }
.nb-native-header__model-item {
    grid-template-columns: minmax(0,1fr);
    min-height: 50px;
    padding-inline: 10px;
}
.nb-native-header__model-item--all { margin-bottom: 6px; background: #fff; }
.nb-native-header__model-empty { display:grid;place-content:center;min-height:190px;color:#858b9c;text-align:center; }
.nb-native-header__model-empty strong,.nb-native-header__model-empty span { display:block; }
.nb-native-header__model-empty strong { color:#3b3e50;font-size:14px; }
.nb-native-header__model-empty span { margin-top:5px;font-size:11px; }
.nb-native-header__topic-section { padding: 11px 4px 4px;border-top:1px solid #ececf3; }
.nb-native-header__sort {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0 4px 12px;
    padding: 0 2px 12px;
    border-bottom: 1px solid #ececf3;
}
.nb-native-header__sort-label {
    flex: 0 0 auto;
    color: #7d8496;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.nb-native-header__sort-select {
    min-width: 168px;
    max-width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0 34px 0 13px;
    color: #34394d;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.75 4.5 6 7.75 9.25 4.5' stroke='%237b8194' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    border: 1px solid rgba(76, 61, 168, .14);
    border-radius: 11px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}
.nb-native-header__sort-select::-ms-expand {
    display: none;
}
.nb-native-header__sort-select:hover {
    border-color: rgba(102, 84, 255, .22);
}
.nb-native-header__sort-select:focus-visible {
    outline: none;
    border-color: rgba(102, 84, 255, .44);
    box-shadow: 0 0 0 3px rgba(102, 84, 255, .1);
}
.nb-native-header__sort--mobile {
    width: 100%;
    margin: 0 0 10px;
    padding: 0 0 10px;
    box-sizing: border-box;
}
.nb-native-header__sort--mobile .nb-native-header__sort-select {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}
.nb-native-header__topic-heading { display:flex;align-items:baseline;gap:8px;margin-bottom:8px; }
.nb-native-header__topic-heading strong { color:#383b4d;font-size:12px; }
.nb-native-header__topic-heading span { color:#9297a7;font-size:10.5px; }
.nb-native-header__topic-list { display:flex;flex-wrap:wrap;gap:7px; }
.nb-native-header__topic-list button {
    display:inline-flex;
    align-items:center;
    gap:0;
    min-height:34px;
    padding:0 10px;
    border:1px solid #e7e7f0;
    border-radius:10px;
    background:#fff;
    color:#484b5d;
    font:680 11.5px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    cursor:pointer;
}
.nb-native-header__topic-list button:hover,.nb-native-header__topic-list button:focus-visible { border-color:#d6d0ff;background:#f5f3ff;color:var(--nb-header-primary-dark);outline:none; }
.nb-native-header__topic-list small { display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#f1f1f7;color:#858a99;font-size:9px; }
.nb-native-header__category-footer {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    min-height:40px;
    margin-top:10px;
    padding:0 12px;
    border-radius:12px;
    background:#f1eeff;
    color:var(--nb-header-primary-dark);
    font-size:12px;
    font-weight:730;
    text-decoration:none;
}
.nb-native-header__category-footer:hover,.nb-native-header__category-footer:focus-visible { background:#e8e3ff;color:var(--nb-header-primary-dark);outline:none; }

.nb-native-header__auth-menu {
    position: absolute;
    top: calc(100% + 21px);
    left: 0;
    z-index: 80;
    width: 224px;
    padding: 8px;
    border: 1px solid rgba(76,61,168,.13);
    border-radius: 18px;
    background: rgba(255,255,255,.985);
    box-shadow: 0 22px 60px rgba(29,25,68,.17);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.nb-native-header__auth-menu a {
    display:grid;
    grid-template-columns:38px minmax(0,1fr);
    align-items:center;
    gap:10px;
    min-height:58px;
    padding:7px 9px;
    border-radius:13px;
    color:#272a3c;
    text-decoration:none;
}
.nb-native-header__auth-menu a:hover,.nb-native-header__auth-menu a:focus-visible { background:#f2efff;color:var(--nb-header-primary-dark);outline:none; }
.nb-native-header__auth-icon { display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#f2efff;color:var(--nb-header-primary); }
.nb-native-header__auth-icon svg { width:19px;height:19px; }
.nb-native-header__auth-menu strong,.nb-native-header__auth-menu small { display:block; }
.nb-native-header__auth-menu strong { font-size:13px; }
.nb-native-header__auth-menu small { margin-top:3px;color:#8a8f9f;font-size:10.5px;font-weight:550; }
.nb-native-header__mobile-auth { border:1px solid var(--nb-header-border);border-radius:11px;background:#fff; }
.nb-native-header__mobile-auth summary { min-height:44px;padding:0 12px;display:flex;align-items:center;font-size:15px;font-weight:700;cursor:pointer;list-style:none; }
.nb-native-header__mobile-auth a { margin:0 7px 7px;background:#f7f6fc; }

@media (min-width:921px) and (max-width:1180px) {
    .nb-native-header__inner { grid-template-columns:auto minmax(300px,430px) auto; }
}
@media (max-width:1180px) {
    .nb-native-header__brand-name { font-size:17px; }
    .nb-native-header__nav-trigger { padding-inline:9px; }
}
@media (max-width:920px) {
    .nb-native-header__categories-wrap { display:none; }
}
@media (max-width:720px) {
    .nb-native-header__categories-menu { position:fixed;top:76px;left:12px;right:12px;width:auto;max-height:calc(100vh - 88px);overflow:auto; }
    .admin-bar .nb-native-header__categories-menu { top:122px;max-height:calc(100vh - 134px); }
    .nb-native-header__category-browser { grid-template-columns:minmax(0,1fr); }
}
.nb-native-header__mobile-categories,
.nb-native-header__mobile-taxonomy-list details {
    border: 1px solid var(--nb-header-border);
    border-radius: 11px;
    background: #fff;
}
.nb-native-header__mobile-categories > summary,
.nb-native-header__mobile-taxonomy-list details > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: var(--nb-header-text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.nb-native-header__mobile-categories > summary::-webkit-details-marker,
.nb-native-header__mobile-taxonomy-list details > summary::-webkit-details-marker,
.nb-native-header__mobile-auth > summary::-webkit-details-marker { display: none; }
.nb-native-header__mobile-taxonomy-list {
    display: grid;
    gap: 6px;
    padding: 0 7px 7px;
}
.nb-native-header__mobile-taxonomy-list button {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 11px;
    border: 0;
    border-radius: 9px;
    background: #f7f6fc;
    color: #404355;
    font: 680 13px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    text-align: left;
    cursor: pointer;
}
.nb-native-header__mobile-taxonomy-list button:hover,
.nb-native-header__mobile-taxonomy-list button:focus-visible { background:#eeebff;color:var(--nb-header-primary-dark);outline:none; }
.nb-native-header__mobile-taxonomy-list details { background:#faf9ff; }
.nb-native-header__mobile-taxonomy-list details > summary { min-height:40px;font-size:13px; }
.nb-native-header__mobile-taxonomy-list details button { width:calc(100% - 12px);margin:0 6px 6px;background:#fff; }
.nb-native-header__mobile-taxonomy-caption { padding:8px 4px 2px;color:#9297a7;font-size:10px;font-weight:760;letter-spacing:.06em;text-transform:uppercase; }


.nb-native-header__model-column {
    min-height: 0;
}
.nb-native-header__model-panel {
    display: grid;
    gap: 3px;
}
.nb-native-header__model-grid {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}
.nb-native-header__model-card {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ebe9f6;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #faf9ff);
    color: #2c3041;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(35,31,79,.05);
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.nb-native-header__model-card:hover,
.nb-native-header__model-card:focus-visible {
    border-color: rgba(101,84,245,.18);
    background: #f5f2ff;
    color: #3f31c8;
    box-shadow: 0 12px 24px rgba(49,40,112,.08);
    transform: translateY(-1px);
    outline: none;
}
.nb-native-header__model-card-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #efebff;
    color: #5e49ef;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.nb-native-header__model-card-copy,
.nb-native-header__model-card-copy strong,
.nb-native-header__model-card-copy small { display: block; min-width: 0; }
.nb-native-header__model-card-copy strong {
    overflow: hidden;
    color: inherit;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nb-native-header__model-card-copy small {
    margin-top: 4px;
    color: #868da0;
    font-size: 11px;
    font-weight: 560;
    line-height: 1.35;
}
.nb-native-header__model-panel[hidden] {
    display: none;
}
@media (max-width: 760px) {
    .nb-native-header__categories-menu { width: auto; }
    .nb-native-header__category-browser { grid-template-columns: minmax(0,1fr); }
}


@media (min-width:1281px){
  .nb-native-header__inner{
    grid-template-columns:max-content minmax(460px,560px) max-content;
    justify-content:center;
    gap:16px;
    width:min(calc(100% - clamp(32px,5vw,96px)),var(--nb-header-container));
  }
  .nb-native-header__brand-cluster{justify-self:auto;}
  .nb-native-header__search{width:100%;justify-self:auto;}
  .nb-native-header__desktop-actions{justify-self:auto;justify-content:flex-start;}
}
@media (max-width:920px){
  .nb-native-header__auth-wrap{display:none;}
}

/* Telegram subscribe strip */
.nb-tg-banner {
    border-bottom: 1px solid rgba(91, 75, 255, 0.1);
    background: linear-gradient(90deg, #f0edff 0%, #eef6ff 55%, #f7fbff 100%);
}

.nb-tg-banner.is-dismissed {
    display: none;
}

.nb-tg-banner__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(calc(100% - clamp(24px, 4vw, 96px)), var(--nb-header-container));
    margin: 0 auto;
    min-height: 40px;
    padding: 6px 0;
}

.nb-tg-banner__main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 0 1 auto;
}

.nb-tg-banner__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #2aabee;
    color: #fff;
}

.nb-tg-banner__text {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--nb-header-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nb-tg-banner__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(42, 171, 238, 0.35);
    background: #fff;
    color: #1490c7;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nb-tg-banner__cta:hover,
.nb-tg-banner__cta:focus-visible {
    background: #e8f7fe;
    border-color: #2aabee;
    color: #0b7fb0;
    outline: none;
}

.nb-tg-banner__close {
    flex: 0 0 auto;
    margin-left: auto;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--nb-header-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.nb-tg-banner__close:hover,
.nb-tg-banner__close:focus-visible {
    background: rgba(20, 22, 38, 0.06);
    color: var(--nb-header-text);
    outline: none;
}

@media (max-width: 720px) {
    .nb-tg-banner__inner {
        gap: 8px;
        min-height: 38px;
    }

    .nb-tg-banner__main {
        gap: 8px;
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    #nb-native-header *,
    #nb-native-header *::before,
    #nb-native-header *::after {
        scroll-behavior: auto;
        transition-duration: .01ms;
        animation-duration: .01ms;
        animation-iteration-count: 1;
    }
}


/* Mobile compositor budget: opaque surfaces avoid continuous backdrop recomposition while scrolling. */
@media (max-width: 1180px), (hover: none), (pointer: coarse) {
    #nb-native-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .nb-native-header__results,
    .nb-native-header__categories-menu,
    .nb-native-header__auth-menu,
    .nb-native-header__account-menu {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}
