/* SINGLE MOBILE PACKAGE - legacy alignment/product-card fix followed by the integrated mobile UX layer. */
/* SputnikovoeTV.by - точечное исправление мобильного отображения
   Основано на трёх скриншотах от 24.11.2026 и сохранённых исходниках MODX.
   Десктопная компоновка и логика miniShop2 не затрагиваются. */

@media screen and (max-width: 767px) {
  /* 1. Убираем desktop full-bleed hack, который смещает шапку на телефоне.
     Исходный блок: left:50%; width:100vw; margin-left:-50vw. */
  html body .header {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  html body .header .header-shell,
  html body .header .header-top-inner,
  html body .header .header-main,
  html body .header #sputnik-navigation,
  html body .header #sputnik-navigation .top-bar-container,
  html body .header #sputnik-navigation .nav-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Логотип не должен выходить за правую границу шапки. */
  html body .header .header-main > .logo,
  html body .header .stv-logo-link {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  html body .header .stv-logo-svg {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* 2. Сбрасываем возможное смещение основного контента на главной.
     Не меняем ширину секций/сетки больше ширины viewport. */
  html body.index-template,
  html body.index-template .main-wrapper,
  html body.index-template .main-wrapper > .container,
  html body.index-template .top-slider-adv-wrapper,
  html body.index-template .top-slider-adv-wrapper > .container,
  html body.index-template .new-hero,
  html body.index-template .catalog,
  html body.index-template .brands-section,
  html body.index-template .about-section {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html body.index-template .main-wrapper,
  html body.index-template .main-wrapper > .container {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body.index-template .new-hero-inner,
  html body.index-template .new-hero-heading,
  html body.index-template .new-hero-intro,
  html body.index-template .stv-trust-stats,
  html body.index-template .stv-trust-stat {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html body.index-template .new-hero-heading,
  html body.index-template .new-hero-intro {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  html body.index-template .stv-trust-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  /* 3. Полное название товара без line-clamp и наложения цены.
     Сохраняем существующий HTML-чанк и miniShop2 hooks. */
  html body .catalog .stv-product-column,
  html body .catalog .stv-product-card,
  html body .catalog .stv-product-form,
  html body .catalog .stv-product-content,
  html body .catalog .stv-product-buy-row {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html body .catalog .stv-product-title {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 0 12px !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    line-height: 1.38 !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
  }

  html body .catalog .stv-product-buy-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "price" "buy" !important;
    align-items: start !important;
    gap: 9px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  html body .catalog .stv-product-buy-row > [class*="col-"],
  html body .catalog .stv-product-price-wrap,
  html body .catalog .stv-product-buy-column {
    float: none !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  html body .catalog .stv-product-price-wrap {
    grid-area: price !important;
    display: block !important;
    text-align: left !important;
    padding: 0 !important;
  }
  html body .catalog .stv-product-old-price {
    display: block !important;
    position: static !important;
    height: auto !important;
    margin: 0 0 4px !important;
    line-height: 1.25 !important;
  }
  html body .catalog .stv-product-price {
    display: block !important;
    position: static !important;
    margin: 0 !important;
    text-align: left !important;
    line-height: 1.25 !important;
  }
  html body .catalog .stv-product-buy-column {
    grid-area: buy !important;
  }

  /* Никакой горизонтальной прокрутки из-за дочерних элементов. */
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}

/* MOBILE HEADER REFINEMENT - оставляем телефоны и мессенджеры без изменений.
   Только адресный блок, логотип и служебные отступы. */
@media screen and (max-width: 767px) {
  /* Верхняя информационная полоса: компактнее, но оба адреса остаются видимыми. */
  html body .header .header-top {
    display: block !important;
    min-height: 0 !important;
  }

  html body .header .header-top-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    padding: 7px 12px !important;
  }

  html body .header .header-top-inner .slogan {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  html body .header .header-addresses {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  html body .header .header-address-line {
    display: flex !important;
    align-items: flex-start !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  /* Логотип ограничиваем только в своей колонке, не затрагивая телефонный блок. */
  html body .header .header-main > .logo {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  html body .header .header-main .stv-logo-link {
    display: block !important;
    width: 100% !important;
    max-width: 190px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  html body .header .header-main .stv-logo-svg {
    display: block !important;
    width: 100% !important;
    max-width: 190px !important;
    height: auto !important;
  }

  /* Режим работы - компактная строка без изменения текста и индикатора. */
  html body .header .shedule {
    max-width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  /* Поиск сохраняет прежнюю ширину и функциональность. */
  html body .header .header-center,
  html body .header .search_header {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media screen and (max-width: 390px) {
  html body .header .header-main .stv-logo-link,
  html body .header .header-main .stv-logo-svg {
    max-width: 165px !important;
  }
}


/* SPUTNIKOVOETV.BY - COMPLETE MOBILE HEADER + NAV + HOME BENTO + FOOTER CHAT FIX
   Scope: mobile only. Desktop styles and existing MODX commerce handlers are preserved. */
@media (max-width: 768px) {
  /* Compact address strip: keep both real addresses, shorten the upper area */
  .header .header-top-inner {
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:3px !important;
    padding:6px 12px !important;
  }
  .header .header-top-inner .slogan { display:none !important; }
  .header .header-addresses { display:flex !important; flex-direction:column !important; gap:3px !important; max-width:100% !important; width:100% !important; font-size:10px !important; line-height:1.2 !important; }
  .header .header-address-line { display:flex !important; align-items:flex-start !important; gap:5px !important; white-space:normal !important; line-height:1.2 !important; }
  .header .header-address-line span { min-width:0 !important; overflow-wrap:anywhere !important; }

  /* Compact header: logo + phone icon; original numbers/messengers remain in drawer */
  html, body { max-width:100% !important; overflow-x:clip !important; }
  body { padding-bottom:calc(76px + env(safe-area-inset-bottom,0px)) !important; }
  .header .header-main.stv-mobile-header-enhanced {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 46px !important;
    grid-template-areas:"logo contact" "center center" !important;
    align-items:center !important;
    gap:9px 10px !important;
    min-height:0 !important;
    padding:10px 0 11px !important;
  }
  .header .header-main.stv-mobile-header-enhanced > .logo {
    grid-area:logo !important;
    min-width:0 !important;
    max-width:100% !important;
    justify-content:flex-start !important;
  }
  .header .header-main.stv-mobile-header-enhanced .stv-logo-link,
  .header .header-main.stv-mobile-header-enhanced .stv-logo-svg {
    display:block !important;
    width:min(100%,225px) !important;
    max-width:225px !important;
    height:auto !important;
  }
  .stv-mobile-contact-trigger {
    grid-area:contact !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:44px !important;
    min-width:44px !important;
    height:44px !important;
    padding:0 !important;
    border:1px solid #dce7f5 !important;
    border-radius:14px !important;
    background:#f3f8ff !important;
    color:#0877e8 !important;
    box-shadow:0 3px 12px rgba(17,70,130,.08) !important;
    cursor:pointer !important;
    -webkit-tap-highlight-color:transparent !important;
  }
  .stv-mobile-contact-trigger svg { width:22px !important; height:22px !important; display:block !important; }
  .stv-mobile-contact-trigger[aria-expanded="true"] { background:#087cff !important; color:#fff !important; border-color:#087cff !important; }
  .header .header-main.stv-mobile-header-enhanced > .header-center {
    grid-area:center !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:7px !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  /* Phone / messenger drawer - actual original nodes are moved by JS, not duplicated */
  .stv-mobile-contact-panel {
    display:none !important;
    width:100% !important;
    padding:0 14px !important;
    border-top:1px solid #e9eff7 !important;
    background:#fff !important;
    box-sizing:border-box !important;
  }
  .stv-mobile-contact-panel.is-open {
    display:block !important;
    padding:12px 14px 14px !important;
    box-shadow:0 12px 22px rgba(15,40,70,.08) !important;
  }
  .stv-mobile-contact-panel .header-tel {
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
  }
  .stv-mobile-contact-panel .phone-list {
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    gap:7px !important;
    width:100% !important;
  }
  .stv-mobile-contact-panel .phone-line {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    min-height:24px !important;
    white-space:nowrap !important;
  }
  .stv-mobile-contact-panel .phone-line > a { font-size:15px !important; font-weight:750 !important; color:#172235 !important; }
  .stv-mobile-contact-panel .header-messengers {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:12px !important;
    width:100% !important;
    margin:0 !important;
  }
  .stv-mobile-contact-panel .header-messenger { width:34px !important; height:34px !important; flex-basis:34px !important; }
  .stv-mobile-contact-panel .header-messenger img { width:22px !important; height:22px !important; }

  /* Online request badge */
  .header .shedule.stv-old-schedule-hidden { display:none !important; }
  .header .stv-online-request-badge {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    align-self:flex-start !important;
    gap:8px !important;
    width:fit-content !important;
    max-width:100% !important;
    min-height:32px !important;
    margin:0 0 1px !important;
    padding:7px 11px !important;
    border:1px solid rgba(22,182,106,.20) !important;
    border-radius:999px !important;
    background:#effbf4 !important;
    color:#147a45 !important;
    font:700 12px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important;
    text-align:left !important;
    text-decoration:none !important;
    box-shadow:0 2px 8px rgba(22,182,106,.07) !important;
    cursor:pointer !important;
    -webkit-tap-highlight-color:transparent !important;
  }
  .header .stv-online-request-badge__dot {
    display:block !important; flex:0 0 8px !important; width:8px !important; height:8px !important;
    border-radius:50% !important; background:#16b66a !important;
    box-shadow:0 0 0 3px rgba(22,182,106,.12) !important;
  }

  /* Search: short placeholder and a magnifier instead of the large blue submit block */
  .header .search_header,
  .header .search_header form { width:100% !important; min-width:0 !important; }
  .header .search_header form {
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    min-height:46px !important;
    height:46px !important;
    padding:0 44px 0 0 !important;
    border:1px solid #dce5f0 !important;
    border-radius:14px !important;
    background:#fff !important;
    box-shadow:0 5px 16px rgba(15,23,42,.055) !important;
    overflow:visible !important;
  }
  .header .search_header form input[type="text"],
  .header .search_header form input[type="search"],
  .header .search_header form input:not([type]),
  .header .search_header form .form-control {
    flex:1 1 auto !important;
    width:1% !important;
    min-width:0 !important;
    height:44px !important;
    padding:0 12px !important;
    border:0 !important;
    background:transparent !important;
    color:#172235 !important;
    font-size:13px !important;
    box-shadow:none !important;
  }
  .header .search_header form button,
  .header .search_header form input[type="submit"],
  .header .search_header form .btn {
    position:absolute !important;
    top:4px !important;
    right:4px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:36px !important;
    min-width:36px !important;
    max-width:36px !important;
    height:36px !important;
    min-height:36px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:10px !important;
    background-color:#eef5ff !important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230877e8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") !important;
    background-repeat:no-repeat !important;
    background-position:center !important;
    background-size:20px 20px !important;
    color:transparent !important;
    font-size:0 !important;
    text-indent:-9999px !important;
    box-shadow:none !important;
  }

  /* Bottom thumb navigation: Home / Catalog / Contact / Cart */
  html body #sputnik-navigation {
    position:fixed !important;
    inset:auto 0 0 0 !important;
    top:auto !important;
    bottom:0 !important;
    z-index:10000 !important;
    overflow:visible !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px)) !important;
    border-top:1px solid #e3eaf3 !important;
    border-bottom:0 !important;
    border-radius:16px 16px 0 0 !important;
    background:rgba(255,255,255,.97) !important;
    box-shadow:0 -8px 25px rgba(19,44,75,.10) !important;
    backdrop-filter:blur(16px) saturate(160%) !important;
    -webkit-backdrop-filter:blur(16px) saturate(160%) !important;
  }
  #sputnik-navigation .top-bar-container { padding:0 !important; width:100% !important; max-width:100% !important; }
  #sputnik-navigation .nav-inner {
    position:relative !important;
    display:grid !important;
    overflow:visible !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    align-items:center !important;
    justify-content:stretch !important;
    gap:5px !important;
    width:100% !important;
    min-height:54px !important;
    margin:0 !important;
    padding:0 !important;
  }
  #sputnik-navigation .top-menu { display:none !important; }
  #sputnik-navigation .mobile-menu {
    position:absolute !important;
    top:auto !important;
    bottom:calc(100% + 9px) !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-height:75vh !important;
    height:auto !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    overscroll-behavior:contain !important;
    z-index:10001 !important;
    border:1px solid #dfe7f1 !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:0 14px 36px rgba(15,35,60,.18) !important;
  }
  #sputnik-navigation .mobile-menu.is-active {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    transform:none !important;
    max-height:75vh !important;
    overflow-y:auto !important;
    padding:8px !important;
    border-color:#dfe7f1 !important;
  }
  #sputnik-navigation .stv-mobile-tab,
  #sputnik-navigation .mob-menu-btn {
    position:static !important;
    display:flex !important;
    flex:1 1 0 !important;
    align-items:center !important;
    justify-content:center !important;
    flex-direction:column !important;
    gap:3px !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    min-height:52px !important;
    height:52px !important;
    margin:0 !important;
    padding:4px 2px !important;
    border:1px solid transparent !important;
    border-radius:12px !important;
    background:transparent !important;
    color:#53647a !important;
    box-shadow:none !important;
    font:650 10px/1.1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important;
    text-decoration:none !important;
    white-space:nowrap !important;
    cursor:pointer !important;
    -webkit-tap-highlight-color:transparent !important;
  }
  #sputnik-navigation .stv-mobile-tab svg,
  #sputnik-navigation .mob-menu-btn .mobile-catalog-icon { display:block !important; width:21px !important; height:21px !important; flex:0 0 21px !important; }
  #sputnik-navigation .mob-menu-btn .mobile-catalog-label { display:block !important; overflow:visible !important; max-width:none !important; color:inherit !important; font-size:10px !important; font-weight:700 !important; line-height:1.1 !important; text-overflow:clip !important; }
  #sputnik-navigation .stv-mobile-tab-home { grid-column:1; }
  #sputnik-navigation .mob-menu-btn { grid-column:2; max-width:none !important; }
  #sputnik-navigation .stv-mobile-tab-contact { grid-column:3; }
  #sputnik-navigation .header-actions { grid-column:4; display:flex !important; width:100% !important; min-width:0 !important; max-width:none !important; margin:0 !important; padding:0 !important; }
  #sputnik-navigation .header-cart,
  #sputnik-navigation #msMiniCart { display:flex !important; width:100% !important; min-width:0 !important; max-width:none !important; margin:0 !important; padding:0 !important; }
  #sputnik-navigation #msMiniCart a,
  #sputnik-navigation #msMiniCart .modern-mini-cart-link,
  #sputnik-navigation #msMiniCart .sputnik-cart-v2__link {
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:3px !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:52px !important;
    min-height:52px !important;
    margin:0 !important;
    padding:4px 2px !important;
    border:1px solid transparent !important;
    border-radius:12px !important;
    background:transparent !important;
    color:#53647a !important;
    box-shadow:none !important;
    font-size:10px !important;
    white-space:nowrap !important;
  }
  #sputnik-navigation #msMiniCart .modern-mini-cart-icon,
  #sputnik-navigation #msMiniCart .sputnik-cart-v2__icon { display:block !important; width:21px !important; height:21px !important; font-size:0 !important; background-position:center !important; }
  #sputnik-navigation #msMiniCart .modern-mini-cart-label,
  #sputnik-navigation #msMiniCart .sputnik-cart-v2__label { color:inherit !important; font-size:10px !important; line-height:1.1 !important; }
  #sputnik-navigation #msMiniCart .modern-mini-cart-count,
  #sputnik-navigation #msMiniCart .sputnik-cart-v2__count { position:absolute !important; transform:translate(13px,-13px) !important; min-width:16px !important; height:16px !important; font-size:9px !important; }
  .top-bar-push-md { display:none !important; }
}

/* First screen: H1 first, followed immediately by four clean typographic Bento links. */
@media (max-width: 768px) {
  body.index-template .stv-home-hero {
    padding:14px 0 16px !important;
    background:#fff !important;
  }
  body.index-template .stv-home-hero-inner {
    display:block !important;
    padding-left:14px !important;
    padding-right:14px !important;
  }
  body.index-template .stv-home-hero-copy { max-width:none !important; }
  body.index-template .stv-home-hero-visual,
  body.index-template .stv-home-eyebrow,
  body.index-template .stv-home-hero-lead,
  body.index-template .stv-home-hero-actions,
  body.index-template .stv-home-hero-trust { display:none !important; }
  body.index-template .stv-home-hero h1 {
    max-width:none !important;
    margin:0 0 12px !important;
    color:#0f172a !important;
    font-size:clamp(25px,6.6vw,31px) !important;
    line-height:1.12 !important;
    font-weight:850 !important;
    letter-spacing:-.04em !important;
    text-wrap:balance !important;
  }
  body.index-template .stv-home-hero-copy > .new-hero-grid { display:none !important; }
  /* Hide only the optional carousel, not the existing advantages block below the hero. */
  body.index-template .top-slider-wrapper { display:none !important; }

  body.index-template .stv-home-hero-copy > .new-hero-grid {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
  }
  body.index-template .stv-home-hero-copy > .new-hero-grid > .new-hero-card {
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
    min-width:0 !important;
    min-height:104px !important;
    margin:0 !important;
    padding:14px 28px 29px 14px !important;
    overflow:hidden !important;
    border:1px solid #e2e8f0 !important;
    border-radius:16px !important;
    background:#f8fafc !important;
    box-shadow:none !important;
    text-decoration:none !important;
    transform:none !important;
  }
  body.index-template .stv-home-hero-copy > .new-hero-grid > .new-hero-card:before { content:none !important; }
  body.index-template .stv-home-hero-copy > .new-hero-grid > .new-hero-card:after {
    content:"" !important;
    position:absolute !important;
    top:auto !important;
    right:13px !important;
    bottom:10px !important;
    width:auto !important;
    height:auto !important;
    border:0 !important;
    border-radius:0 !important;
    background:none !important;
    color:#2563eb !important;
    font-size:16px !important;
    line-height:1 !important;
    font-weight:750 !important;
    pointer-events:none !important;
  }
  body.index-template .stv-home-hero-copy > .new-hero-grid > .new-hero-card .new-hero-card-title {
    display:block !important;
    margin:0 0 6px !important;
    color:#0f172a !important;
    font-size:14px !important;
    line-height:1.25 !important;
    font-weight:800 !important;
    letter-spacing:-.015em !important;
  }
  body.index-template .stv-home-hero-copy > .new-hero-grid > .new-hero-card .new-hero-card-text {
    display:block !important;
    margin:0 !important;
    color:#64748b !important;
    font-size:11px !important;
    line-height:1.35 !important;
    font-weight:500 !important;
  }
  body.index-template .new-hero { padding:14px 0 !important; }
}

@media (min-width: 769px) {
  body.index-template .stv-home-hero-copy > .new-hero-grid { display:none !important; }
}

/* Footer contact launcher is defined in footer. Keep it above the new bottom tab bar. */
@media (max-width: 768px) {
  html body #contactHub {
    position:fixed !important;
    right:12px !important;
    bottom:calc(82px + env(safe-area-inset-bottom,0px)) !important;
    left:auto !important;
    top:auto !important;
    z-index:9990 !important;
  }
  html body #contactHubToggle.contact-hub__launcher {
    width:52px !important; min-width:52px !important; max-width:52px !important;
    height:52px !important; min-height:52px !important; max-height:52px !important;
  }
}

@media (min-width: 769px) {
  body.index-template .stv-mobile-bento { display:none !important; }
  .stv-mobile-contact-trigger,
  .stv-mobile-contact-panel,
  #sputnik-navigation .stv-mobile-tab { display:none !important; }
  .header .stv-online-request-badge { display:none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .stv-mobile-contact-panel,
  .stv-mobile-contact-trigger,
  #contactHub,
  #sputnik-navigation .stv-mobile-tab { transition:none !important; animation:none !important; }
}


/* Smart search mobile fix: the existing footer JS reparents .stv-smart-dropdown to document.body.
   These selectors intentionally target the moved node, not only .search_header descendants. */
@media (max-width: 767px) {
  body > .stv-smart-dropdown {
    position:fixed !important;
    display:none !important;
    top:var(--stv-smart-top,120px) !important;
    left:10px !important;
    right:10px !important;
    bottom:auto !important;
    width:auto !important;
    max-width:none !important;
    max-height:var(--stv-smart-max-height,60vh) !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    overscroll-behavior:contain !important;
    box-sizing:border-box !important;
    z-index:2147483000 !important;
    padding:0 !important;
    border:1px solid #dce5f2 !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:0 24px 64px rgba(15,23,42,.22),0 4px 14px rgba(15,23,42,.07) !important;
    color:#172235 !important;
    text-align:left !important;
  }
  body > .stv-smart-dropdown.is-open {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
  }
  body > .stv-smart-dropdown .stv-smart-item { min-width:0 !important; }
  body > .stv-smart-dropdown .stv-smart-price { white-space:nowrap !important; }
}

@media (max-width: 768px) {
  html body #sputnik-navigation,
  html body #sputnik-navigation .top-bar-container,
  html body #sputnik-navigation .nav-inner {
    overflow:visible !important;
    height:auto !important;
    max-height:none !important;
  }
  html body #sputnik-navigation .mobile-menu {
    z-index:10001 !important;
    max-height:75vh !important;
  }
  html body #contactHub {
    bottom:calc(82px + env(safe-area-inset-bottom,0px)) !important;
    right:14px !important;
    z-index:9990 !important;
  }
}


/* FINAL SAFETY / REAL SELECTORS FROM THE CURRENT HEADER CHUNK */
.stv-mobile-contact-trigger { display:none !important; }
@media (max-width: 768px) {
  /* Keep the real address strip visible; only the decorative slogan is compacted. */
  html body .header .header-top { display:block !important; min-height:0 !important; }
  html body .header .header-top-inner {
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
    gap:4px !important;
    min-height:0 !important;
    padding:7px 12px !important;
  }
  html body .header .header-top-inner .slogan { display:none !important; }
  html body .header .header-addresses {
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:3px !important;
    width:100% !important;
    max-width:100% !important;
    font-size:10px !important;
    line-height:1.25 !important;
  }
  html body .header .header-address-line {
    display:flex !important;
    align-items:flex-start !important;
    width:100% !important;
    gap:5px !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }
  html body .header .header-address-line span { min-width:0 !important; overflow-wrap:anywhere !important; }

  html body .header .header-main.stv-mobile-header-enhanced > .logo {
    overflow:visible !important;
    justify-content:flex-start !important;
  }
  html body .header .header-main.stv-mobile-header-enhanced .stv-logo-link,
  html body .header .header-main.stv-mobile-header-enhanced .stv-logo-svg {
    width:100% !important;
    max-width:205px !important;
    height:auto !important;
    overflow:visible !important;
  }
  html body .header .stv-mobile-contact-trigger {
    grid-area:contact !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:44px !important;
    min-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid #dce7f5 !important;
    border-radius:14px !important;
    background:#f3f8ff !important;
    color:#0877e8 !important;
    box-shadow:0 3px 12px rgba(17,70,130,.08) !important;
    cursor:pointer !important;
    -webkit-tap-highlight-color:transparent !important;
  }
  html body .header .stv-mobile-contact-trigger svg { display:block !important; width:22px !important; height:22px !important; }
  html body .header .stv-mobile-contact-trigger[aria-expanded="true"] { background:#087cff !important; color:#fff !important; border-color:#087cff !important; }

  /* The schedule text is hidden only when the mobile online-request badge is present. */
  html body .header .shedule.stv-old-schedule-hidden { display:none !important; }
  html body .header .stv-online-request-badge {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    width:max-content !important;
    max-width:100% !important;
    min-height:31px !important;
    margin:0 0 1px !important;
    padding:7px 11px !important;
    border:1px solid rgba(22,182,106,.20) !important;
    border-radius:999px !important;
    background:#effbf4 !important;
    color:#147a45 !important;
    font:700 12px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important;
    cursor:pointer !important;
  }
  html body .header .stv-online-request-badge__dot {
    display:block !important;
    flex:0 0 8px !important;
    width:8px !important;
    height:8px !important;
    border-radius:50% !important;
    background:#16b66a !important;
    box-shadow:0 0 0 3px rgba(22,182,106,.12) !important;
  }

  /* Keep the smart-search dropdown visible after the existing footer script moves it to body. */
  html body > .stv-smart-dropdown { z-index:2147483000 !important; }
}

/* CURRENT HOMEPAGE TEMPLATE (2026-11-24 upload): compact H1 + four text-only Bento links.
   The actual template has a standalone H1 followed by .top-slider-adv-wrapper,
   not the legacy .stv-home-hero markup. Keep these selectors scoped to the homepage. */
.stv-mobile-bento { display:none !important; }
@media (max-width: 768px) {
  body.index-template .main-wrapper > .container:has(> h1) {
    padding-top:12px !important;
    padding-bottom:0 !important;
  }
  body.index-template .main-wrapper > .container:has(> h1) > h1 {
    max-width:100% !important;
    margin:0 0 12px !important;
    color:#172235 !important;
    font-size:clamp(22px,5.9vw,26px) !important;
    line-height:1.17 !important;
    font-weight:800 !important;
    letter-spacing:-.035em !important;
    text-wrap:balance !important;
  }
  body.index-template .stv-mobile-bento {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:9px !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
  }
  body.index-template .stv-mobile-bento__card {
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
    min-width:0 !important;
    min-height:94px !important;
    margin:0 !important;
    padding:13px 28px 13px 13px !important;
    border:1px solid #E2E8F0 !important;
    border-radius:16px !important;
    background:#F8FAFC !important;
    box-shadow:none !important;
    color:#0F172A !important;
    text-decoration:none !important;
    transform:none !important;
    -webkit-tap-highlight-color:transparent !important;
  }
  body.index-template .stv-mobile-bento__card:before,
  body.index-template .stv-mobile-bento__card:after { content:none !important; display:none !important; }
  body.index-template .stv-mobile-bento__title {
    display:block !important;
    margin:0 0 6px !important;
    color:#0F172A !important;
    font-size:14px !important;
    line-height:1.25 !important;
    font-weight:800 !important;
    letter-spacing:-.015em !important;
  }
  body.index-template .stv-mobile-bento__text {
    display:block !important;
    margin:0 !important;
    color:#64748B !important;
    font-size:11px !important;
    line-height:1.35 !important;
    font-weight:500 !important;
  }
  body.index-template .stv-mobile-bento__arrow {
    position:absolute !important;
    right:12px !important;
    bottom:10px !important;
    display:block !important;
    color:#2563EB !important;
    font-size:16px !important;
    line-height:1 !important;
    font-weight:750 !important;
  }
  body.index-template .stv-mobile-bento__card:active {
    border-color:#BFDBFE !important;
    background:#F1F5F9 !important;
  }
  /* Hide only the slider image carousel; preserve the existing advantages row beneath it. */
  body.index-template .top-slider-wrapper { display:none !important; }
}
@media (min-width: 769px) {
  body.index-template .stv-mobile-bento { display:none !important; }
}



/* ============================================================
   REFINED MOBILE NAVIGATION / FIRST SCREEN
   Scoped to <=768px; desktop rules are intentionally unchanged.
============================================================ */
@media (max-width: 768px) {
  body { padding-bottom: 0 !important; }

  html body #sputnik-navigation,
  html body #sputnik-navigation.top-bar {
    position: sticky !important;
    inset: auto !important;
    top: 0 !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 9998 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-bottom: 1px solid #E2E8F0 !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, .95) !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .055) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
  }

  html body #sputnik-navigation .top-bar-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 10px !important;
    overflow: visible !important;
  }

  html body #sputnik-navigation .nav-inner {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: 60px !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 60px !important;
    height: 60px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body #sputnik-navigation .top-menu { display: none !important; }

  html body #sputnik-navigation .stv-mobile-tab-home,
  html body #sputnik-navigation .mob-menu-btn,
  html body #sputnik-navigation .header-actions {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    margin: 0 !important;
    padding: 5px 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #475569 !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transform: none !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  html body #sputnik-navigation .stv-mobile-tab-home { grid-column: 1 !important; }
  html body #sputnik-navigation .mob-menu-btn { grid-column: 2 !important; }
  html body #sputnik-navigation .header-actions { grid-column: 3 !important; }

  html body #sputnik-navigation .mob-menu-btn.is-active,
  html body #sputnik-navigation .stv-mobile-tab-home[aria-current="page"] {
    color: #2563EB !important;
    background: #F1F5F9 !important;
  }

  html body #sputnik-navigation .stv-mobile-tab-home svg,
  html body #sputnik-navigation .mob-menu-btn .mobile-catalog-icon,
  html body #sputnik-navigation #msMiniCart .stv-mobile-cart-svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    flex: 0 0 22px !important;
    color: currentColor !important;
    stroke: currentColor !important;
    fill: none !important;
  }

  html body #sputnik-navigation .mob-menu-btn .mobile-catalog-label,
  html body #sputnik-navigation .stv-mobile-tab-home > span,
  html body #sputnik-navigation #msMiniCart .modern-mini-cart-label,
  html body #sputnik-navigation #msMiniCart .sputnik-cart-v2__label {
    display: block !important;
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font: 500 11px/1.1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
  }

  /* The old red miniShop2 cart artwork is hidden only visually. The real link and count remain. */
  html body #sputnik-navigation #msMiniCart .modern-mini-cart-icon,
  html body #sputnik-navigation #msMiniCart .sputnik-cart-v2__icon,
  html body #sputnik-navigation #msMiniCart .sputnik-cart-v2__icon i,
  html body #sputnik-navigation #msMiniCart .modern-mini-cart-link > i,
  html body #sputnik-navigation #msMiniCart .sputnik-cart-v2__link > i,
  html body #sputnik-navigation #msMiniCart .modern-mini-cart-link > img,
  html body #sputnik-navigation #msMiniCart .sputnik-cart-v2__link > img,
  html body #sputnik-navigation #msMiniCart a > svg:not(.stv-mobile-cart-svg) {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    color: transparent !important;
  }

  html body #sputnik-navigation .header-actions,
  html body #sputnik-navigation .header-cart,
  html body #sputnik-navigation #msMiniCart {
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body #sputnik-navigation #msMiniCart a,
  html body #sputnik-navigation #msMiniCart .modern-mini-cart-link,
  html body #sputnik-navigation #msMiniCart .sputnik-cart-v2__link {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    margin: 0 !important;
    padding: 5px 2px !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #475569 !important;
    box-shadow: none !important;
    font: 500 11px/1.1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  html body #sputnik-navigation #msMiniCart a:hover,
  html body #sputnik-navigation #msMiniCart a:focus {
    color: #2563EB !important;
    background: #F1F5F9 !important;
    outline: none !important;
  }

  html body #sputnik-navigation #msMiniCart .stv-mobile-cart-icon {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #1E293B !important;
    overflow: visible !important;
    background: none !important;
  }

  html body #sputnik-navigation #msMiniCart .stv-mobile-cart-count,
  html body #sputnik-navigation #msMiniCart .ms2_total_count,
  html body #sputnik-navigation #msMiniCart .modern-mini-cart-count,
  html body #sputnik-navigation #msMiniCart .sputnik-cart-v2__count {
    position: absolute !important;
    top: -4px !important;
    right: -8px !important;
    left: auto !important;
    bottom: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #2563EB !important;
    color: #FFFFFF !important;
    font: 700 10px/16px Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    text-align: center !important;
    text-indent: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    z-index: 2 !important;
  }

  /* Catalog dropdown overlays the page and is not clipped by the nav ancestors. */
  html body #sputnik-navigation,
  html body #sputnik-navigation .top-bar-container,
  html body #sputnik-navigation .nav-inner { overflow: visible !important; }

  html body #sputnik-navigation .mobile-menu {
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 0 !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    z-index: 9999 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(-5px) !important;
    border: 1px solid transparent !important;
    border-radius: 0 0 16px 16px !important;
    background: #FFFFFF !important;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.10) !important;
    transition: max-height .24s ease, opacity .18s ease, transform .18s ease, visibility .18s ease !important;
  }

  html body #sputnik-navigation .mobile-menu.is-active {
    display: block !important;
    max-height: 75vh !important;
    overflow-y: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    padding: 8px !important;
    border-color: #E2E8F0 !important;
  }

  /* Fixed chat launcher has clear spacing from the viewport edges. */
  html body #contactHub {
    position: fixed !important;
    right: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
    top: auto !important;
    z-index: 9990 !important;
  }
  html body #contactHubToggle.contact-hub__launcher {
    right: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 9990 !important;
  }
}

/* Small title-only quicklinks: compact, balanced two-by-two grid. */
.stv-mobile-bento { display: none !important; }
@media (max-width: 768px) {
  body.index-template .main-wrapper > .push20:first-child { display:none !important; }
  body.index-template .stv-homepage-h1-wrap + .push10 { display:none !important; }
  body.index-template .main-wrapper > .stv-homepage-h1-wrap {
    padding-top: 10px !important;
    padding-bottom: 0 !important;
  }
  body.index-template .main-wrapper > .stv-homepage-h1-wrap > h1 {
    margin: 16px 0 12px !important;
    color: #0F172A !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: -.02em !important;
  }
  body.index-template .stv-mobile-bento {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.index-template .stv-mobile-bento__card {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 7px !important;
    min-width: 0 !important;
    min-height: 60px !important;
    height: 60px !important;
    margin: 0 !important;
    padding: 9px 10px 9px 11px !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    background: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04) !important;
    color: #0F172A !important;
    text-decoration: none !important;
    transform: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  body.index-template .stv-mobile-bento__title {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #0F172A !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -.01em !important;
  }
  body.index-template .stv-mobile-bento__arrow {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #2563EB !important;
  }
  body.index-template .stv-mobile-bento__arrow svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
    fill: none !important;
  }
  body.index-template .stv-mobile-bento__card:active {
    transform: scale(.98) !important;
    border-color: #BFDBFE !important;
    background: #F8FAFC !important;
  }
  body.index-template .stv-mobile-bento__text { display: none !important; }
  body.index-template .top-slider-wrapper { display: none !important; }
}
@media (min-width: 769px) {
  body.index-template .stv-mobile-bento { display: none !important; }
}

/* Search submit control: preserve all existing form attributes and MODX output. */
.stv-search-submit-icon { display:none !important; }
@media (max-width: 767px) {
  html body .header .search_header { position: relative !important; z-index: 302 !important; width: 100% !important; min-width: 0 !important; overflow: visible !important; }
  html body .header .search_header form {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 3px !important;
    overflow: visible !important;
    border: 1px solid #DCE5F0 !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(15,23,42,.06) !important;
  }
  html body .header .search_header form input[type="text"],
  html body .header .search_header form input[type="search"],
  html body .header .search_header form input:not([type]),
  html body .header .search_header form .form-control {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 48px 0 12px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #172235 !important;
    font-size: 14px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }
  html body .header .search_header form input::placeholder { color: #8994A5 !important; opacity: 1 !important; }
  html body .header .search_header form button[type="submit"],
  html body .header .search_header form button:not([type]),
  html body .header .search_header form input[type="submit"] {
    position: absolute !important;
    top: 50% !important;
    right: 4px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #087CFF !important;
    color: transparent !important;
    font-size: 0 !important;
    text-indent: -9999px !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }
  html body .header .search_header form button[type="submit"] svg,
  html body .header .search_header form button:not([type]) svg,
  html body .header .search_header form .stv-search-submit-icon svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    stroke: #FFFFFF !important;
    fill: none !important;
  }
  html body .header .search_header form .stv-search-submit-icon {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    z-index: 2 !important;
    width: 18px !important;
    height: 18px !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
  }
}


/* ================================================================
   SPUTNIKOVOETV.BY — FINAL MOBILE LAYER 2026-11-26
   One AI search, compact visible addresses, three-tab navigation.
   This block intentionally comes last to settle earlier overrides.
   ================================================================ */
@media (max-width: 767px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Keep both business addresses visible without a tall slogan strip. */
  html body .header .header-top {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  html body .header .header-top-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 4px 10px 5px !important;
    box-sizing: border-box !important;
  }
  html body .header .header-top-inner .slogan {
    display: none !important;
  }
  html body .header .header-addresses {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 2px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    color: #26384f !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
  }
  html body .header .header-address-line {
    display: flex !important;
    align-items: flex-start !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
  }
  html body .header .header-address-line .header-inline-icon {
    display: block !important;
    flex: 0 0 11px !important;
    width: 11px !important;
    height: 11px !important;
    margin: 1px 0 0 !important;
  }
  html body .header .header-address-line > span {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 15px) !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  /* AI input: keep the AI badge clear of its placeholder. */
  html body .header .search_header,
  html body .header .search_header form {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  html body .header .search_header form input[type="text"],
  html body .header .search_header form input[type="search"],
  html body .header .search_header form input:not([type]),
  html body .header .search_header form .form-control {
    padding-left: 64px !important;
    padding-right: 52px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    -webkit-text-size-adjust: 100% !important;
  }
  html body .header .search_header form input::placeholder {
    font-size: 14px !important;
    color: #8793a4 !important;
    opacity: 1 !important;
  }

  /* Exactly three equal navigation tabs: Home / Catalog / Cart. */
  html body #sputnik-navigation {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    top: auto !important;
    bottom: 0 !important;
    z-index: 10000 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  html body #sputnik-navigation .stv-mobile-nav-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: 58px !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  html body #sputnik-navigation .stv-mobile-nav-grid > .stv-mobile-tab-home { grid-column: 1 !important; }
  html body #sputnik-navigation .stv-mobile-nav-grid > .mob-menu-btn { grid-column: 2 !important; }
  html body #sputnik-navigation .stv-mobile-nav-grid > .header-actions { grid-column: 3 !important; }

  /* While the AI panel is open, nothing fixed may cover its content. */
  html body.stv-ai-search-open #sputnik-navigation,
  html body.stv-ai-search-open #contactHub {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  html body > .stv-smart-dropdown {
    position: fixed !important;
    z-index: 2147483647 !important;
    max-height: 64vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
  }
  html body > .stv-smart-dropdown.is-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  html body > .stv-smart-dropdown .stv-smart-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
}


/* FINAL MOBILE REPAIR 2026-11-25 — direct 3-column navigation, no nested grid. */
@media (max-width: 768px) {
  html body #sputnik-navigation {
    position: sticky !important;
    top: 0 !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    display: block !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    z-index: 120 !important;
  }
  html body #sputnik-navigation > .top-bar-container {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 10px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  html body #sputnik-navigation > .top-bar-container > .nav-inner {
    display: grid !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: 60px !important;
    grid-auto-flow: row !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  html body #sputnik-navigation .nav-inner > .stv-mobile-tab-home { grid-column: 1 !important; grid-row: 1 !important; }
  html body #sputnik-navigation .nav-inner > .mob-menu-btn { grid-column: 2 !important; grid-row: 1 !important; }
  html body #sputnik-navigation .nav-inner > .header-actions { grid-column: 3 !important; grid-row: 1 !important; }
  html body #sputnik-navigation .nav-inner > .stv-mobile-tab-home,
  html body #sputnik-navigation .nav-inner > .mob-menu-btn,
  html body #sputnik-navigation .nav-inner > .header-actions {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  html body #sputnik-navigation .nav-inner > .stv-mobile-tab-home,
  html body #sputnik-navigation .nav-inner > .mob-menu-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 5px 2px !important;
    gap: 4px !important;
    color: #475569 !important;
    font: 500 11px/1.1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    text-align: center !important;
    white-space: nowrap !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }
  html body #sputnik-navigation .nav-inner > .stv-mobile-tab-home > span,
  html body #sputnik-navigation .nav-inner > .mob-menu-btn > .mobile-catalog-label,
  html body #sputnik-navigation .nav-inner > .header-actions #msMiniCart .modern-mini-cart-label,
  html body #sputnik-navigation .nav-inner > .header-actions #msMiniCart .sputnik-cart-v2__label {
    display: block !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    text-indent: 0 !important;
  }
  html body #sputnik-navigation .nav-inner > .header-actions,
  html body #sputnik-navigation .nav-inner > .header-actions .header-cart,
  html body #sputnik-navigation .nav-inner > .header-actions #msMiniCart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  html body #sputnik-navigation .nav-inner > .header-actions #msMiniCart a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 5px 2px !important;
    gap: 4px !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  html body #sputnik-navigation .nav-inner > .mobile-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 9999 !important;
  }
  html body #sputnik-navigation .nav-inner > .top-menu { display: none !important; }

  /* Short AI prompt fits phones; AI chip and submit button keep their own clear zones. */
  html body .header .search_header,
  html body .header .search_header form { width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
  html body .header .search_header form input[type="text"],
  html body .header .search_header form input[type="search"],
  html body .header .search_header form input:not([type]),
  html body .header .search_header form .form-control {
    padding-left: 48px !important;
    padding-right: 54px !important;
    font-size: 16px !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
  }
  html body .header .search_header form input::placeholder {
    font-size: 14px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }
}
