/* №150: the existing Smmuzi palette and Manrope, arranged into three supported rows. */
.header.header-layout { position: relative; z-index: 120; margin: 0 auto 24px; padding: 0; background: transparent; }
.main:has(.header.header-layout) { padding-top: 10px; }
.header-layout > .main-container { position: relative; background: transparent; }
.header-layout__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 0 18px 6px; }
.header-layout__links ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.header-layout__links a, .header-layout__auth a { color: var(--site-text, #444); font-size: 14px; white-space: nowrap; text-decoration: none; }
.header-layout__links a:hover, .header-layout__auth a:hover { color: var(--site-mark, #fd5a3c); }
.header-layout__settings { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--site-text, #444); font-size: 14px; }
.header-layout__settings .theme-switch { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; width: auto; height: 30px; padding: 5px; border: 0; background: transparent; border-radius: 8px; white-space: nowrap; font-size: 14px; }
.header-layout__settings .theme-switch svg { flex: 0 0 18px; }
.header-layout__settings .header-preferences--desktop { gap: 10px; flex-direction: row; }
.header-layout__settings .header-preferences__toggle { min-height: 32px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; }
.header-layout__settings .header-user-label { max-width: 150px; min-height: 0; padding: 0; font-size: 14px; }
.header-layout__balance { white-space: nowrap; color: var(--site-title, #222); font-weight: 600; }
.header-layout__balance-label { color: var(--site-text-dim, #666); font-weight: 400; }
/* 25.10 владелец: у гостя «Регистрация/Войти» только во втором ряду (иконки), в верхней строке не дублируем — как в новом дизайне. */
.header-layout__auth { display: none; }
.header-layout__bell-top { display: flex; align-items: center; }
/* разделители между блоками верхней строки, как в новом дизайне */
.header-layout .header-layout__settings > * + *, .header-layout__settings .header-preferences--desktop > .header-preferences__group + .header-preferences__group { position: relative; padding-left: 14px; }
.header-layout__settings > * + *::before, .header-layout__settings .header-preferences--desktop > .header-preferences__group + .header-preferences__group::before { content: ''; position: absolute; left: 0; top: 50%; width: 1px; height: 18px; transform: translateY(-50%); background: var(--site-text-dim, #666); opacity: .4; }
.header-layout__bell-top .client-notification-bell { margin: 0; }
@media (min-width: 1024px) { .header-layout__mobile-tools .client-notification-bell { display: none; } }
.header-layout__main { display: flex; align-items: center; gap: 20px; min-height: 80px; padding: 14px 18px; background: var(--site-card, #fff); border-radius: 15px; }
.header-layout__logo { display: flex; flex: 0 0 150px; max-width: 150px; color: var(--site-title, #222); }
.header-layout__logo img { width: 100%; height: 52px; object-fit: contain; }
.header-layout .header-discovery { flex: 1; min-width: 0; padding: 0; }
.header-layout .header-catalog-toggle, .header-layout .header-search__field { height: 48px; min-height: 48px; border-radius: 10px; }
.header-layout .header-catalog-toggle { padding: 0 16px; font-size: 15px; font-weight: 600; }
.header-layout .header-search__field { background: var(--site-surface, #f7f5f6); }
.header-layout .header-search input { height: 46px; font-size: 14px; }
.header-layout__actions { display: flex; align-items: center; flex: 0 0 auto; gap: 16px; }
.header-layout__action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--site-text, #444); font-size: 12px; text-decoration: none; white-space: nowrap; }
.header-layout__action-icon { width: 25px; height: 25px; fill: currentColor; }
.header-layout__action:hover { color: var(--site-mark, #fd5a3c); }
.header-layout__badge { display: inline-flex; justify-content: center; align-items: center; min-width: 17px; height: 17px; padding: 0 4px; background: var(--site-mark, #fd5a3c); color: #fff; border-radius: 20px; font-size: 10px; line-height: 1; }
.header-layout__badge[hidden] { display: none; }
.header-layout__action > .header-layout__badge { position: absolute; top: -5px; right: 8px; }
.header-layout__mobile-tools { display: flex; align-items: center; gap: 12px; }
.header-layout__mobile-tools .header-mobile-menu-toggle { display: none; }
.header-layout__mobile-tools .client-notification-bell { margin: 0; }
.header-layout .header-catalog-directions { padding: 4px 4px 0; gap: 4px; overflow: visible; justify-content: space-between; background: transparent; }
.header-layout .header-catalog-directions > button { border-radius: 10px; }
.header-layout .header-catalog-directions > button:hover { color: var(--site-mark, #fd5a3c); }
.header-layout .header-catalog-directions .header-direction-icon { color: var(--site-mark, #fd5a3c); }
.header-layout:has(.header-search__dropdown:not([hidden])) .header-catalog-directions { z-index: 1; }
.header-layout .header-catalog-toggle__open svg { display: block; }
/* кнопка «Каталог» одного размера в обоих состояниях: значок и крестик в одинаковой коробке 20×20 */
.header-layout .header-catalog-toggle > .header-catalog-toggle__open, .header-layout .header-catalog-toggle[aria-expanded="true"] > .header-catalog-toggle__close { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-size: 22px; line-height: 20px; }
.header-layout .header-catalog-toggle[aria-expanded="true"] > .header-catalog-toggle__open { display: none; }
.header-layout .header-catalog-directions > button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; font-size: 14px; white-space: nowrap; }
.header-layout a:focus-visible, .header-layout button:focus-visible { outline: 2px solid var(--site-accent, #ffbe40); outline-offset: 3px; }
@media (min-width: 1024px) and (max-width: 1240px) {
 .header-layout__top { gap: 10px; padding: 0 8px; }
 .header-layout__links ul { gap: 12px; }
 .header-layout__settings { gap: 8px; font-size: 13px; }
 .header-layout__settings .header-user-label { max-width: 90px; font-size: 13px; }
 .header-layout__balance-label { display: none; }
 .header-layout__logo { flex-basis: 120px; max-width: 120px; }
 .header-layout__main { gap: 12px; padding: 14px 8px; }
 .header-layout__actions { gap: 10px; }
 .header-layout .header-catalog-directions > button { font-size: 13px; gap: 5px; padding: 8px 4px; white-space: normal; text-align: left; }
}
@media (max-width: 1023px) {
 .header.header-layout { margin: 12px 0 0; }
 .header-layout > .main-container { display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; gap: 12px; align-items: center; background: transparent; border-radius: 0; }
 .header-layout__top, .header-layout__settings, .header-layout__main { display: contents; }
 .header-layout__links, .header-layout__auth, .header-layout__actions, .header-layout .header-user-label, .header-layout__bell-top { display: none; }
 .header-layout__settings .theme-switch { position: static; grid-column: 3; grid-row: 1; width: 30px; height: 30px; }
 .header-layout__settings .theme-switch span { display: none; }
 .header-layout__settings .theme-switch .header-spec-theme-light, .header-layout__settings .theme-switch .header-spec-theme-dark { display: none !important; }
 .header-layout__balance { position: static; grid-column: 2; grid-row: 1; font-size: 12px; }
 .header-layout__balance-label { display: none; }
 .header-layout__logo { grid-column: 1; grid-row: 1; width: 120px; max-width: 120px; }
 .header-layout__logo img { height: 42px; }
 .header-layout .header-discovery { grid-column: 1 / -1; grid-row: 2; width: 100%; padding: 0 0 12px; }
 .header-layout__mobile-tools { grid-column: 4; grid-row: 1; gap: 12px; }
 .header-layout__mobile-tools .header-mobile-menu-toggle { display: flex; width: 30px; height: 30px; }
 .header-layout .header-catalog-toggle, .header-layout .header-search__field { height: 44px; min-height: 44px; }
 .header-layout .header-search input { height: 42px; }
 .header-layout .header-catalog-toggle { padding: 0 12px; font-size: 14px; }
 .header-layout .header-catalog-directions { display: none; }
}
@media (max-width: 400px) {
 .header-layout > .main-container { gap: 10px; }
 .header-layout__logo { width: 100px; max-width: 100px; }
 .header-layout__balance { font-size: 11px; }
 .header-layout__mobile-tools { gap: 10px; }
}
.header-layout__action.active, .header-layout__links a.active { color: var(--site-mark, #fd5a3c); }
.header-spec-theme-light { display: none; }
:root[data-theme="dark"] .header-spec-theme-dark { display: none; }
:root[data-theme="dark"] .header-spec-theme-light { display: inline; }
/* Экран поддержки для гостя: компактная карточка, кнопки как у гостя на главной (жёлтая «Регистрация» + «Войти» с рамкой). */
.guest-support { padding: 16px 0 48px; }
.guest-support__card { max-width: 460px; margin: 0 auto; padding: 32px 28px 28px; background: var(--site-card, #fff); border-radius: 15px; text-align: center; }
.guest-support__icon { display: block; margin: 0 auto 14px; color: var(--site-mark, #fd5a3c); }
.guest-support__title { margin: 0 0 22px; color: var(--site-title, #222); font-size: 18px; font-weight: 600; line-height: 1.4; }
.guest-support__actions { gap: 12px; }
.guest-support__actions .btn { display: block; padding: 13px 15px; color: var(--site-title, #222); font-size: 15px; font-weight: 600; line-height: 18px; text-align: center; text-decoration: none; }
.guest-support__actions .sign-up__link { color: var(--site-on-accent, #222); border-radius: 14px; background: linear-gradient(to bottom, var(--site-accent-softer, #fdcc6e) 0%, var(--site-accent-amber, #fdc861) 50%, var(--site-accent, #ffbe40) 100%); }
.guest-support__actions .sign-in__link { border: 2px solid var(--site-border-mute, #e3e3e3); border-radius: 14px; background: var(--site-card, #fff); padding: 11px 15px; }
@media (max-width: 576px) { .guest-support__card { padding: 24px 18px; } .guest-support__actions { flex-direction: column; } }
/* 25.10 владелец: наведение на элементы верхней строки — акцентный цвет, как у ссылок разделов и колокола. */
.header-layout__settings .theme-switch, .header-layout__settings .header-preferences__toggle, .header-layout__balance, .header-layout__balance *, .header-layout__settings .header-user-label { transition: color .15s; }
.header-layout__settings .theme-switch:hover, .header-layout__settings .header-preferences__toggle:hover, .header-layout__balance:hover, .header-layout__balance:hover *, .header-layout__settings .header-user-label:hover, .header-layout__settings a.header-user-label:hover { color: var(--site-mark, #fd5a3c); cursor: pointer; }
/* 25.10 владелец (утверждено по предпросмотру): логотипу больше места, поиск уже, второй этаж и его элементы на 4px меньше по высоте. Только компьютер. */
@media (min-width: 1241px) {
 .header-layout__logo { flex: 0 0 185px; max-width: 185px; }
 .header-layout__logo img { height: 56px; }
 .header-layout .header-discovery { flex: 0 1 860px; }
 .header-layout__actions { margin-left: auto; gap: 19px; }
 .header-layout__main { gap: 22px; min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
 .header-layout .header-catalog-toggle, .header-layout .header-search__field { height: 44px; min-height: 44px; }
 .header-layout .header-search input { height: 42px; }
}
