/* Постоянная полоса поиска в шапке. */
body .site-topbar { position: sticky; top: 0; z-index: 60; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
body.admin-bar .site-topbar { top: 32px; }
body .site-search { position: relative; max-width: 1240px; margin: auto; }
body .site-search__form { display: flex; gap: 8px; width: 100%; margin: 0; padding: 0; }
body .site-search__form input[type="search"] { flex: 1; min-width: 0; width: auto; height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); color: var(--ink); font: inherit; font-size: 16px; box-sizing: border-box; }
body .site-search__form input::placeholder { color: var(--muted); opacity: 1; }
body .site-search__form button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 90px; min-height: 46px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: var(--surface); font: inherit; font-weight: 600; cursor: pointer; }
body .site-search__form button i { display: inline-block; }
body .site-search__suggestions { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 5; margin: 0; padding: 8px; list-style: none; box-sizing: border-box; max-height: min(560px, 65dvh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 12px 32px #0002; }
body .site-search__suggestions[hidden] { display: none; }
body .site-search__suggestions li { list-style: none; margin: 0; padding: 0; }
body .site-search__suggestions a { display: flex; padding: 10px 12px; border-radius: 6px; color: var(--ink); font-size: 15px; line-height: 1.5; text-decoration: none; }
body .site-search__suggestions a:hover, body .site-search__suggestions a:focus { background: var(--page); }
body .site-search__suggestions .site-search__none { padding: 12px; color: var(--muted); font-size: 14px; }
body .site-search__suggestions .site-search__all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
body .site-search__suggestions .site-search__all a { color: var(--accent); font-weight: 600; }
body.menu-open #header { z-index: 100; }
body .desktop-promotions { display: none; }
body #header-bottom-bottom { justify-content: flex-start; }
@media (min-width: 1100px) {
    body .site-topbar { padding: 12px 32px; }
    body .desktop-promotions { display: block; }
    body .mobile-promotions { display: none; }
    body .site-topbar .header-promotions { padding: 12px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
    body .site-topbar .header-promotions > a { padding: 0; min-height: 0; box-sizing: border-box; }
    body .site-topbar .header-promotions img { max-height: none; aspect-ratio: 3 / 1; object-fit: contain; }
    html { scroll-padding-top: 176px; }
}
@media (max-width: 782px) { body.admin-bar .site-topbar { top: 46px; } }
@media print { body .site-topbar { display: none !important; } }

body .promo-caption { display: none; }
@media (min-width: 1100px) and (max-width: 1279px) {
    html { scroll-padding-top: 208px; }
    body .promo-caption { display: block; padding: 6px 8px; color: var(--ink); font-size: 11px; line-height: 1.35; font-weight: 600; }
}

@media (max-width: 1099px) {
    body #header-bottom, body #header-bottom-bottom { position: static; height: 0; padding: 0; border: 0; }
    body #theme-toggle { position: absolute; right: 118px; top: 25px; }
}

body .site-topbar { transition: transform 220ms ease; }
body:not(.menu-open) .site-topbar.is-scroll-hidden:not(:focus-within) { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
    body .site-topbar { transition: none; }
}
