/* UST Snax Appearance — site chrome: off-canvas menu, header search and the
   layouts that follow the page theme. Loaded on every page, independent of
   the Snax quiz styles. */

/* ===== Меню (off-canvas) — версия 5 ===== */
#ast-mobile-popup .ast-mobile-popup-inner{left:0!important;right:auto!important;transform:none!important;width:min(100%,380px)!important;max-width:380px!important;background:#fff!important;box-shadow:24px 0 60px -30px rgb(10 16 24 / 45%)!important}
@media (max-width:767px){#ast-mobile-popup .ast-mobile-popup-inner{width:100%!important;max-width:100%!important;box-shadow:none!important}}
body.admin-bar #ast-mobile-popup .ast-mobile-popup-inner{top:32px!important}
@media (max-width:782px){body.admin-bar #ast-mobile-popup .ast-mobile-popup-inner{top:46px!important}}
#ast-mobile-popup .ast-mobile-popup-overlay{background:rgb(10 16 24 / 35%)!important}
#ast-mobile-popup .ast-mobile-popup-header{position:sticky!important;top:0!important;z-index:3!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;padding:10px 12px!important;background:#fff!important;border-bottom:1px solid rgba(20,32,51,.08)!important}
#ast-mobile-popup .menu-toggle-close{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;min-height:0!important;padding:0!important;border:0!important;border-radius:14px!important;background:#f4f6f9!important;color:#142033!important}
#ast-mobile-popup .menu-toggle-close:hover{background:#e9eef6!important}
#ast-mobile-popup .menu-toggle-close:focus{outline:none!important}
#ast-mobile-popup .menu-toggle-close:focus-visible{outline:2px solid #2563eb!important;outline-offset:2px!important;border-radius:14px!important}
#ast-mobile-popup .menu-toggle-close svg{width:18px!important;height:18px!important}
#ast-mobile-popup .ast-mobile-popup-content{padding:18px 20px 30px!important;background:#fff!important}
#ast-mobile-popup .main-header-menu{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;overflow:visible!important}
#ast-mobile-popup .search-form{display:flex!important;align-items:center!important;gap:8px!important;height:46px!important;margin:0 0 22px!important;padding:0 1px 0 16px!important;border:1px solid rgba(20,32,51,.1)!important;border-radius:999px!important;background:#fff!important;box-shadow:0 8px 22px rgba(31,44,71,.06)!important}
#ast-mobile-popup .search-form .search-field{flex:1!important;min-height:44px!important;height:44px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:15px!important;color:#142033!important}
#ast-mobile-popup .search-form .search-field:focus{box-shadow:none!important;outline:none!important}
#ast-mobile-popup .search-field::placeholder{color:#6b7785!important}
#ast-mobile-popup .search-form .search-submit{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;min-height:0!important;padding:0!important;border:0!important;border-radius:999px!important;background:#2563eb!important;color:#fff!important;box-shadow:0 8px 18px rgba(37,99,235,.25)!important}
#ast-mobile-popup .search-form .search-submit:hover{background:#1d4ed8!important}
#ast-mobile-popup .search-submit svg{width:18px!important;height:18px!important}
#ast-mobile-popup .main-header-menu li{position:relative!important;background:transparent!important;border:0!important;margin:0!important;padding:0!important}
#ast-mobile-popup .main-header-menu li + li{margin-top:2px!important}
#ast-mobile-popup .main-header-menu li a.menu-link{display:flex!important;align-items:center!important;min-height:52px!important;padding:8px 48px 8px 12px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#142033!important;font-weight:600!important;font-size:16px!important;line-height:1.35!important;text-decoration:none!important}
#ast-mobile-popup .main-header-menu li a.menu-link:hover{background:#f4f7fa!important}
#ast-mobile-popup .main-header-menu li.current-menu-item > a.menu-link,#ast-mobile-popup .main-header-menu li.current_page_item > a.menu-link{background:#eff6ff!important;box-shadow:inset 3px 0 0 #2563eb!important;color:#1d4ed8!important;font-weight:800!important}
#ast-mobile-popup .ast-menu-toggle,#ast-mobile-popup .dropdown-menu-toggle{position:absolute!important;right:14px!important;top:50%!important;transform:translateY(-50%)!important;display:grid!important;place-items:center!important;width:32px!important;height:32px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#64748b!important}
#ast-mobile-popup .ast-menu-toggle:hover{background:#f4f7fa!important}
#ast-mobile-popup .ast-menu-toggle .ast-icon{display:none!important}
#ast-mobile-popup .ast-menu-toggle::after{content:""!important;display:block!important;width:8px!important;height:8px!important;border:2px solid currentColor!important;border-top:0!important;border-left:0!important;transform:rotate(45deg)!important;margin-top:-4px!important;transition:transform .2s ease!important}
#ast-mobile-popup .ast-menu-toggle[aria-expanded="true"]::after{transform:rotate(-135deg)!important;margin-top:2px!important}
#ast-mobile-popup .sub-menu{margin:4px 0 6px!important;padding:0 0 0 12px!important;border-left:1px solid rgba(20,32,51,.1)!important}
#ast-mobile-popup .sub-menu li a.menu-link{min-height:44px!important;font-size:15px!important;color:#42505f!important}
/* ===== Меню в темах оформления ===== */
html[data-ust-snax-page-theme]{--um-bg:#ffffff;--um-ink:#142033;--um-accent:#2563eb}
html[data-ust-snax-page-theme="night"],html[data-ust-snax-page-theme="night"] #ast-mobile-popup{--um-bg:#14192d;--um-ink:#f6f7ff;--um-accent:#42b9ff}
html[data-ust-snax-page-theme="fantasy"],html[data-ust-snax-page-theme="fantasy"] #ast-mobile-popup{--um-bg:#6755ad;--um-ink:#ffffff;--um-accent:#ffdf45}
html[data-ust-snax-page-theme="poster"],html[data-ust-snax-page-theme="poster"] #ast-mobile-popup{--um-bg:#f3efdf;--um-ink:#161b18;--um-accent:#264ed0}
html[data-ust-snax-page-theme="impulse"],html[data-ust-snax-page-theme="impulse"] #ast-mobile-popup{--um-bg:#f8f6ef;--um-ink:#20221e;--um-accent:#3524dc}
html[data-ust-snax-page-theme="balance"],html[data-ust-snax-page-theme="balance"] #ast-mobile-popup{--um-bg:#ffffff;--um-ink:#202735;--um-accent:#6241ce}
html[data-ust-snax-page-theme="warmth"],html[data-ust-snax-page-theme="warmth"] #ast-mobile-popup{--um-bg:#f5f1eb;--um-ink:#36271f;--um-accent:#805039}
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .ast-mobile-popup-inner,
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .ast-mobile-popup-header,
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .ast-mobile-popup-content{background:var(--um-bg)!important;color:var(--um-ink)!important}
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .ast-mobile-popup-header{border-bottom:1px solid color-mix(in srgb,var(--um-ink) 14%,transparent)!important}
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .main-header-menu,
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .main-header-menu li{background:transparent!important}
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .menu-toggle-close{background:color-mix(in srgb,var(--um-ink) 10%,transparent)!important;color:var(--um-ink)!important}
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .menu-toggle-close:hover{background:color-mix(in srgb,var(--um-ink) 16%,transparent)!important}
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .main-header-menu li a.menu-link{color:var(--um-ink)!important}
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .main-header-menu li a.menu-link:hover{background:color-mix(in srgb,var(--um-ink) 8%,transparent)!important}
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .main-header-menu li.current-menu-item > a.menu-link,
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .main-header-menu li.current_page_item > a.menu-link{background:color-mix(in srgb,var(--um-accent) 18%,transparent)!important;box-shadow:inset 3px 0 0 var(--um-accent)!important;color:var(--um-accent)!important}
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .ast-menu-toggle,
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .dropdown-menu-toggle{color:color-mix(in srgb,var(--um-ink) 65%,transparent)!important}
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .sub-menu{border-left:1px solid color-mix(in srgb,var(--um-ink) 14%,transparent)!important}
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .search-form{background:color-mix(in srgb,var(--um-ink) 6%,transparent)!important;border:1px solid color-mix(in srgb,var(--um-ink) 16%,transparent)!important;box-shadow:none!important}
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .search-field{color:var(--um-ink)!important}
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .search-field::placeholder{color:color-mix(in srgb,var(--um-ink) 55%,transparent)!important}
html[data-ust-snax-page-theme]:not([data-ust-snax-page-theme="native"]) #ast-mobile-popup .search-form .search-submit{background:var(--um-accent)!important;color:var(--um-bg)!important;box-shadow:none!important}
/* ===== Полноэкранный поиск в шапке ===== */
#ast-seach-full-screen-form{background:rgb(10 16 24 / 50%)!important;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
#ast-seach-full-screen-form .ast-search-wrapper{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;inset:0!important;width:100%!important;height:100%!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:24px!important;overflow:auto!important}
#ast-seach-full-screen-form .ast-container{width:100%!important;max-width:640px!important;margin:0!important;padding:28px 28px 26px!important;background:#fff!important;border-radius:24px!important;box-shadow:0 24px 60px -20px rgb(10 16 24 / 35%)!important;position:relative!important;text-align:left!important}
#ast-seach-full-screen-form .large-search-text{font-size:13px!important;line-height:1.3!important;font-weight:700!important;letter-spacing:.02em!important;color:#6b7785!important;margin:0 0 14px!important;padding:0!important;text-transform:none!important;text-align:left!important}
#ast-seach-full-screen-form .search-form{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
#ast-seach-full-screen-form .search-form fieldset{display:contents!important;border:0!important;margin:0!important;padding:0!important;min-width:0!important}
#ast-seach-full-screen-form .search-form label.text{flex:1 1 auto!important;min-width:0!important;margin:0!important;padding:0!important;display:block!important;width:auto!important}
#ast-seach-full-screen-form .search-field{width:100%!important;height:54px!important;padding:0 20px!important;border:1px solid rgba(20,32,51,.12)!important;border-radius:999px!important;background:#fff!important;color:#142033!important;font-size:17px!important;line-height:1.2!important;box-shadow:none!important;outline:none!important}
#ast-seach-full-screen-form .search-field::placeholder{color:#8a95a3!important}
#ast-seach-full-screen-form .search-field:focus{border-color:rgba(37,99,235,.45)!important;box-shadow:0 0 0 4px rgba(37,99,235,.12)!important}
#ast-seach-full-screen-form .search-submit{flex:0 0 auto!important;width:54px!important;height:54px!important;min-height:0!important;padding:0!important;border:0!important;border-radius:999px!important;background:#2563eb!important;color:#fff!important;display:grid!important;place-items:center!important;box-shadow:0 8px 18px rgba(37,99,235,.28)!important;cursor:pointer!important}
#ast-seach-full-screen-form .search-submit:hover{background:#1d4ed8!important}
#ast-seach-full-screen-form .search-submit svg{width:20px!important;height:20px!important;fill:currentColor!important}
#ast-seach-full-screen-form .close{position:fixed!important;top:20px!important;right:20px!important;width:40px!important;height:40px!important;display:grid!important;place-items:center!important;border-radius:12px!important;background:#fff!important;color:#142033!important;cursor:pointer!important;z-index:1000!important;opacity:1!important;margin:0!important;padding:0!important;box-shadow:0 8px 20px rgba(10,16,24,.18)!important}
#ast-seach-full-screen-form .close:hover{background:#f4f6f9!important}
#ast-seach-full-screen-form .close svg{width:16px!important;height:16px!important;fill:currentColor!important}
@media (max-width:544px){
  #ast-seach-full-screen-form .ast-container{padding:22px 18px 18px!important;border-radius:20px!important}
  #ast-seach-full-screen-form .search-field{height:48px!important;font-size:16px!important}
  #ast-seach-full-screen-form .search-submit{width:48px!important;height:48px!important}
  #ast-seach-full-screen-form .close{top:14px!important;right:14px!important;width:36px!important;height:36px!important}
}
/* лупа: оставляем SVG Astra, убираем только глиф шрифта и свою маску */
#ast-mobile-popup .search-submit > *,#ast-seach-full-screen-form .search-submit > *{display:block!important}
#ast-mobile-popup .search-submit::after,#ast-seach-full-screen-form .search-submit::after{display:none!important;content:none!important}
#ast-mobile-popup .search-submit::before,#ast-seach-full-screen-form .search-submit::before{content:none!important;display:none!important;background:none!important}
#ast-mobile-popup .search-submit .ast-icon::before,#ast-seach-full-screen-form .search-submit .ast-icon::before{content:none!important;display:none!important}
#ast-mobile-popup .search-submit .ast-icon,#ast-seach-full-screen-form .search-submit .ast-icon{display:grid!important;place-items:center!important;font-size:0!important;line-height:0!important}
#ast-mobile-popup .search-submit svg,#ast-seach-full-screen-form .search-submit svg{display:block!important;width:18px!important;height:18px!important;fill:currentColor!important}
/* кнопка поиска внутри поля: абсолютно справа, поверх поля */
#ast-mobile-popup .search-form{position:relative!important}
#ast-mobile-popup .search-form label{width:auto!important;flex:1 1 auto!important;min-width:0!important;margin:0!important;padding:0!important}
#ast-mobile-popup .search-form .search-field{padding-right:54px!important;width:100%!important}
#ast-mobile-popup .search-form .search-submit{position:absolute!important;right:1px!important;top:50%!important;transform:translateY(-50%)!important;z-index:3!important;margin:0!important}
#ast-seach-full-screen-form .search-form{display:block!important;position:relative!important}
#ast-seach-full-screen-form .search-form fieldset{display:contents!important}
#ast-seach-full-screen-form .search-field{padding-right:66px!important;width:100%!important}
#ast-seach-full-screen-form .search-submit{position:absolute!important;right:4px!important;top:50%!important;transform:translateY(-50%)!important;z-index:3!important;margin:0!important}
