
    :root {
      --bg: #ffffff;
      --text: #111;
      --muted: #666;
      --card: #f8f8f8;
      --accent: #0058a3;
      --add-btn: #0058a3;
      --border: #e8e8e8;
      --radius: 12px;
      --radius-card: 16px;
      --layout-max: 640px;
      --layout-pad-x: 12px;
    }
    @media (min-width: 900px) {
      :root {
        --layout-max: min(1320px, calc(100vw - 40px));
        --layout-pad-x: 24px;
      }
    }
    * { box-sizing: border-box; }
    body.route-pending .app { opacity: 0; }
    @keyframes dvzRoutePendingReveal { to { opacity: 1; } }
    body.route-pending .app { animation: dvzRoutePendingReveal 0.15s ease 4.5s forwards; }
    html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
      font: 16px/1.4 -apple-system, system-ui, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial;
      min-height: 100vh; max-width: 100vw; overflow-x: hidden;
      padding-bottom: env(safe-area-inset-bottom);
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
      -webkit-text-size-adjust: 100%;
      -webkit-tap-highlight-color: transparent;
      touch-action: pan-x pan-y;
      overscroll-behavior: none;
    }
    html { height: 100%; overflow: hidden; }
    body { height: 100%; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
    /* Тонкий скроллбар у правого края окна */
    html,
    body,
    .checkout-screen,
    .account-screen,
    .admin-screen {
      scrollbar-width: thin;
      scrollbar-color: rgba(0, 0, 0, 0.14) transparent;
    }
    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    .checkout-screen::-webkit-scrollbar,
    .account-screen::-webkit-scrollbar,
    .admin-screen::-webkit-scrollbar {
      width: 5px;
    }
    html::-webkit-scrollbar-track,
    body::-webkit-scrollbar-track,
    .checkout-screen::-webkit-scrollbar-track,
    .account-screen::-webkit-scrollbar-track,
    .admin-screen::-webkit-scrollbar-track {
      background: transparent;
    }
    html::-webkit-scrollbar-thumb,
    body::-webkit-scrollbar-thumb,
    .checkout-screen::-webkit-scrollbar-thumb,
    .account-screen::-webkit-scrollbar-thumb,
    .admin-screen::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, 0.13);
      border-radius: 999px;
    }
    html::-webkit-scrollbar-thumb:hover,
    body::-webkit-scrollbar-thumb:hover,
    .checkout-screen::-webkit-scrollbar-thumb:hover,
    .account-screen::-webkit-scrollbar-thumb:hover,
    .admin-screen::-webkit-scrollbar-thumb:hover {
      background: rgba(0, 0, 0, 0.22);
    }
    body.scroll-lock { overflow: hidden !important; }
    /* Листинг под модалкой: фиксируем скролл (iOS не сбрасывает позицию при pushState). */
    @media (min-width: 900px) {
      body.dvz-listing-scroll-frozen {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        left: 0;
        right: 0;
      }
      html.dvz-listing-scroll-soft-frozen body {
        overflow: hidden !important;
      }
      html.dvz-listing-scroll-soft-frozen {
        overflow: hidden !important;
      }
    }
    @media (max-width: 899px) {
      html.mobile-adaptive.dvz-listing-scroll-frozen {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        left: 0;
        right: 0;
        height: 100%;
      }
      html.mobile-adaptive.dvz-listing-scroll-frozen body {
        overflow: hidden !important;
      }
      /* Оверлей поверх листинга: только блокируем скролл, DOM не двигаем — фон на любой глубине. */
      html.mobile-adaptive.dvz-listing-scroll-soft-frozen {
        overflow: hidden !important;
        overscroll-behavior: none;
      }
      html.mobile-adaptive.dvz-listing-scroll-soft-frozen body {
        overflow: hidden !important;
        overscroll-behavior: none;
      }
    }
    body.dvz-product-info-open { overflow: hidden !important; }
    .modal.show .sheet.dvz-sheet-scroll-locked,
    .modal.show .modal-dialog.dvz-sheet-scroll-locked {
      overflow: hidden !important;
      touch-action: none;
      overscroll-behavior: none;
    }
    .product-info-overlay.show {
      overscroll-behavior: none;
      touch-action: none;
    }
    .product-info-overlay.show .product-info-body {
      touch-action: pan-y;
      overscroll-behavior: contain;
    }
    .app { max-width: var(--layout-max); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
    /* Мобильный адаптив: один вертикальный скролл на document (html).
       Если и html, и body имеют overflow-y: auto — в Chrome (device toolbar) часто не крутится
       ни колесо, ни тач-эмуляция: «чуть дёргается и всё». */
    @media (max-width: 899px) {
      html {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: auto;
      }
      body {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: visible;
        overscroll-behavior-y: auto;
      }
      .app { min-height: 100vh; min-height: 100dvh; }
      /* Telegram Mini App: overscroll-y: auto «пробивает» родительский WebView — жест со свайпом сворачивания (на листинге заметнее, чем на главной). */
      html.dvz-tg-webapp,
      html.dvz-tg-webapp body {
        overscroll-behavior-y: none;
      }
    }

    /* Поиск в стиле IKEA: крупная заметная строка */
    .search-wrap { padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
    .search-top {
      display: flex; align-items: center; gap: 12px;
      padding: 14px 16px; background: var(--card); border: 1px solid var(--border);
      border-radius: 24px; min-height: 48px; box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }
    .search-top .icon { font-size: 18px; color: var(--muted); flex-shrink: 0; transition: opacity 0.15s ease; }
    .search-top .search-icon-left { display: block; }
    .search-top .search-icon-right { display: none; }
    .search-top .placeholder { flex: 1; font-size: 16px; color: var(--muted); text-align: left; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .search-top .placeholder.has-draft { color: var(--text); }
    .search-top.expanded { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
    .search-top.expanded .placeholder { display: none; }
    .search-top.expanded .search-icon-left { display: none; }
    .search-top.expanded .search-icon-right { display: block; }
    .search-top .search-input { display: none; flex: 1; padding: 0; border: none; background: transparent; color: var(--text); font-size: 16px; outline: none; min-width: 0; caret-color: #000; }
    .search-top.expanded .search-input { display: block; }
    .search-top .search-input::placeholder { color: var(--muted); }
    .search-top .search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
    .search-top .search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
    .search-top .search-input::-ms-clear { display: none; width: 0; height: 0; }
    .search-top .search-close { display: none; padding: 4px 8px; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; flex-shrink: 0; transition: opacity 0.15s ease; }
    .search-top.expanded .search-close { display: flex; align-items: center; }

    /* Header */
    .header {
      position: sticky; top: 0; z-index: 10;
      display: flex; flex-direction: column; background: var(--bg);
      border-bottom: 1px solid var(--border);
    }
    .header .header-logo-row { order: 1; }
    .header .header-search-row { order: 2; }
    .header .header-price-toggle { order: 3; }
    .header-logo-row { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 9px 12px; gap: 10px; flex-shrink: 0; }
    .header-logo { display: flex; align-items: center; flex-shrink: 0; min-width: 0; height: 44px; text-decoration: none; color: inherit; max-width: 65%; }
    .header-logo img { height: auto; width: auto; max-width: 220px; max-height: 44px; display: block; object-fit: contain; }
    .header-logo-text { font-size: 32px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; line-height: 1; }
    .header .title { display: none; }
    .header-icons { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
    .header-icon-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 50%; color: var(--text); cursor: pointer; flex-shrink: 0; padding: 0; }
    .header-icon-btn:hover { background: rgba(0,0,0,0.06); }
    .header-icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; flex-shrink: 0; }
    .header-icon-btn.cart-btn { position: relative; }
    .header-icon-btn.cart-btn svg { transform: translateY(2px); }
    .header-burger-placeholder { width: 40px; height: 40px; opacity: 0.25; pointer-events: none; display: none; align-items: center; justify-content: center; }
    .header-burger-placeholder svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
    .header-search-row { display: flex; align-items: center; gap: 6px; padding: 0 10px 8px; position: relative; }
    .header-search-wrap { flex: 1; min-width: 0; position: relative; }
    .header-search-wrap .search-top { width: 100%; box-sizing: border-box; }
    .search-suggest {
      display: none;
      position: absolute;
      left: 0;
      right: 0;
      top: calc(100% + 4px);
      z-index: 22;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
      max-height: min(360px, 50vh);
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
      touch-action: pan-y;
    }
    @media (max-width: 899px) {
      .search-suggest.visible {
        position: fixed;
        right: auto;
        z-index: 120;
      }
      html.mobile-adaptive.dvz-search-suggest-open,
      html.mobile-adaptive.dvz-search-suggest-open body {
        overscroll-behavior: none;
      }
    }
    .search-suggest.visible { display: block; }
    .search-suggest-item {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      padding: 11px 14px;
      border: none;
      background: transparent;
      color: var(--text);
      font: inherit;
      font-size: 14px;
      text-align: left;
      cursor: pointer;
      box-sizing: border-box;
    }
    .search-suggest-item + .search-suggest-item { border-top: 1px solid rgba(0,0,0,0.05); }
    .search-suggest-item:hover,
    .search-suggest-item.active { background: #f3f6f9; }
    .search-suggest-item .sg-icon { width: 18px; flex-shrink: 0; opacity: 0.55; text-align: center; }
    .search-suggest-item .sg-label { flex: 1; min-width: 0; line-height: 1.3; word-break: break-word; }
    .search-suggest-item .sg-label mark { background: none; font-weight: 700; color: inherit; padding: 0; }
    .search-suggest-item .sg-hint { flex-shrink: 0; font-size: 11px; color: var(--muted); }
    .search-suggest-item .sg-hint { flex-shrink: 0; font-size: 11px; color: var(--muted); }
    .search-suggest-item--product { align-items: center; padding: 12px 14px; }
    .search-suggest-item--product .sg-thumb {
      width: 48px; height: 48px; flex-shrink: 0;
      background: #f5f5f5; border-radius: 4px; overflow: hidden;
      display: flex; align-items: center; justify-content: center;
    }
    .search-suggest-item--product .sg-thumb img {
      width: 100%; height: 100%; object-fit: contain; display: block;
    }
    .search-suggest-item--product .sg-thumb .sg-thumb-ph {
      width: 24px; height: 24px; color: #c8c8c8;
    }
    .search-suggest-item--product .sg-product-text {
      flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
    }
    .search-suggest-item--product .sg-product-series {
      font-weight: 700; font-size: 14px; line-height: 1.25;
      text-transform: uppercase; letter-spacing: 0.01em;
    }
    .search-suggest-item--product .sg-product-sub {
      font-size: 13px; color: var(--muted); line-height: 1.3;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .header-search-row .back {
      width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
      background: #f0f0f0; border: none; border-radius: 50%; color: var(--text); font-size: 16px; cursor: pointer; flex-shrink: 0;
    }
    .header-search-row .back[aria-hidden="true"] { display: none; }
    @media (max-width: 899px) {
      .header-search-row.dvz-search-focus .back {
        display: none !important;
        width: 0;
        min-width: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        pointer-events: none;
      }
      .header-search-row.dvz-search-focus {
        gap: 0;
      }
      .header-search-row.dvz-search-focus .header-search-wrap {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
      }
    }
    .header-search-row .search-top { flex: 1; margin: 0; border-radius: 20px; background: #f0f0f0; height: 38px; min-width: 0; border: 2px solid transparent; transition: border-color 0.15s ease; }
    .header-search-row .search-top.expanded { border-color: var(--accent); gap: 8px; padding-right: 10px; }
    .header-search-row .search-top.expanded .search-icon-left { display: none; }
    .header-search-row .search-top.expanded .search-icon-right { display: block; font-size: 16px; cursor: pointer; }
    .header-search-row .search-top .search-input { height: 38px; font-size: 14px; padding: 0 4px 0 0; min-width: 0;
      -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; touch-action: manipulation; }
    .header-search-row .search-top .search-close { padding: 0 8px; font-size: 18px; border-right: 1px solid #ccc; margin-right: 4px; }
    .header-search-row .search-top .search-icon-left { font-size: 16px; }
    .header .cart-btn .cart-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--add-btn); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
    .header .cart-btn:not(.has-items) .cart-badge { display: none; }
    .header-price-toggle { display: flex; align-items: center; justify-content: center; gap: 0; padding: 6px 12px; border-top: 1px solid var(--border); }
    .header-price-toggle .label { display: none; }
    .header-price-toggle .price-type-btn { padding: 6px 20px; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 0; font-size: 13px; cursor: pointer; }
    .header-price-toggle .price-type-btn:first-of-type { border-radius: 8px 0 0 8px; }
    .header-price-toggle .price-type-btn:last-of-type { border-radius: 0 8px 8px 0; margin-left: -1px; }
    .header-price-toggle .price-type-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

    /* Листинг на телефоне: fixed только .header (как раньше); крошки — в потоке под шапкой. */
    @media (max-width: 899px) {
      html.mobile-adaptive body.dvz-listing-header-float .top-chrome .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 100%;
        max-width: var(--layout-max);
        z-index: 18;
        transform: translate3d(0, 0, 0);
        transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding-top: env(safe-area-inset-top, 0px);
        box-sizing: border-box;
        will-change: transform;
        backface-visibility: hidden;
      }
      html.mobile-adaptive body.dvz-listing-header-float.dvz-listing-header-off .top-chrome .header {
        transform: translate3d(0, calc(-100% - 6px), 0);
        pointer-events: none;
      }
      html.mobile-adaptive body.dvz-listing-header-float .app {
        padding-top: var(--dvz-listing-header-h, 0px);
        transition: none;
      }
    }
    @media (max-width: 899px) and (prefers-reduced-motion: reduce) {
      html.mobile-adaptive body.dvz-listing-header-float .top-chrome .header,
      html.mobile-adaptive body.dvz-listing-header-float .app {
        transition: none;
      }
    }

    /* Десктоп листинг: sticky шапка; при скролле вниз — переключатель цен, крошки, фильтры; лого и поиск остаются */
    @media (min-width: 900px) {
      body:has(#screenProducts.active) .top-chrome {
        position: sticky;
        top: 0;
        z-index: 18;
        background: var(--card);
      }
      body:has(#screenProducts.active) .top-chrome .header {
        position: static;
        top: auto;
        z-index: auto;
        border-bottom: none;
      }
      body:has(#screenProducts.active) .screen-products .novinki-filter.visible,
      body:has(#screenProducts.active) .screen-products .series-filter.visible {
        position: static;
        top: auto;
        margin-left: 0;
        margin-right: 0;
      }
      body:has(#screenProducts.active) .top-chrome .header .header-price-toggle,
      body:has(#screenProducts.active) .top-chrome .breadcrumbs {
        overflow: hidden;
        transition: max-height 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
          opacity 0.18s ease,
          padding 0.22s ease,
          border-width 0.22s ease,
          margin 0.22s ease,
          min-height 0.22s ease;
        max-height: 160px;
        opacity: 1;
      }
      body:has(#screenProducts.active) .screen-products .novinki-filter.visible {
        overflow: visible;
        transition: max-height 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
          opacity 0.18s ease,
          padding 0.22s ease,
          border-width 0.22s ease,
          margin 0.22s ease,
          min-height 0.22s ease;
        max-height: 120px;
        opacity: 1;
      }
      body:has(#screenProducts.active) .screen-products .novinki-filter.visible.is-expanded {
        max-height: 360px;
      }
      body:has(#screenProducts.active) .screen-products .series-filter.visible {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        transition: max-height 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
          opacity 0.18s ease,
          padding 0.22s ease,
          border-width 0.22s ease,
          margin 0.22s ease,
          min-height 0.22s ease;
        max-height: none;
        opacity: 1;
      }
      body:has(#screenProducts.active) .top-chrome .breadcrumbs {
        margin-bottom: 4px;
      }
      body:has(#screenProducts.active).dvz-listing-chrome-compact .top-chrome .header .header-price-toggle,
      body:has(#screenProducts.active).dvz-listing-chrome-compact .top-chrome .breadcrumbs,
      body:has(#screenProducts.active).dvz-listing-chrome-compact .screen-products .novinki-filter.visible,
      body:has(#screenProducts.active).dvz-listing-chrome-compact .screen-products .series-filter.visible,
      body.listing-products-active.dvz-listing-chrome-compact .top-chrome .header .header-price-toggle,
      body.listing-products-active.dvz-listing-chrome-compact .top-chrome .breadcrumbs,
      body.listing-products-active.dvz-listing-chrome-compact .screen-products .novinki-filter.visible,
      body.listing-products-active.dvz-listing-chrome-compact .screen-products .series-filter.visible {
        max-height: 0;
        opacity: 0;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        border-top-width: 0;
        border-bottom-width: 0;
        margin-top: 0;
        margin-bottom: 0;
        min-height: 0 !important;
        pointer-events: none;
      }
      body:has(#screenProducts.active).dvz-listing-chrome-compact .top-chrome .header {
        border-bottom: 1px solid var(--border);
      }
    }

    /* Переключатель типа цены */
    .price-type-bar { display: flex; align-items: center; gap: 0; padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--border); font-size: 14px; }
    .price-type-bar .label { color: var(--muted); margin-right: 10px; }
    .price-type-bar .price-type-btn { padding: 8px 16px; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 0; font-size: 14px; cursor: pointer; }
    .price-type-bar .price-type-btn:first-of-type { border-radius: 8px 0 0 8px; }
    .price-type-bar .price-type-btn:last-of-type { border-radius: 0 8px 8px 0; margin-left: -1px; }
    .price-type-bar .price-type-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
    .price-type-bar .price-type-btn:focus { outline: none; }
    .breadcrumbs { padding: 4px var(--layout-pad-x); margin-top: 0; margin-bottom: 0; background: var(--card); border-bottom: 1px solid var(--border); font-size: 13px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    body:has(#screenProducts.active) .screen-products .series-filter.visible { margin-top: 6px; }
    .top-chrome .header { border-bottom: none; }
    .breadcrumbs a { color: var(--accent); text-decoration: none; }
    .breadcrumbs a:hover { text-decoration: underline; }
    .breadcrumbs span { color: var(--muted); margin: 0 4px; }
    .breadcrumbs .here { color: var(--text); pointer-events: none; }

    /* Category grid (main, sub, subsub) */
    .cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px var(--layout-pad-x); }
    @media (min-width: 480px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
    .cat-card {
      background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card);
      overflow: hidden; display: flex; flex-direction: column; cursor: pointer; text-decoration: none; color: inherit;
    }
    .cat-card .cat-ph { aspect-ratio: 1; object-fit: cover; width: 100%; background: #e0e0e0; }
    .cat-card .cat-ph-wrap { aspect-ratio: 1; background: #e0e0e0; position: relative; }
    .cat-card .cat-ph-wrap .cat-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
    .cat-card .cat-ct { padding: 10px; font-weight: 500; font-size: 14px; text-align: center; }
    .collection-card .cat-sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px; line-height: 1.25; }

    /* «Новинки» / промо «Коллекции»: как изначально — сплошная заливка на всю плитку (как соседние по высоте), заголовок сверху слева, стрелка снизу слева, без полосы .cat-ct */
    .cat-grid .cat-card.novinki-block,
    .cat-grid .cat-card.collections-promo-block,
    .cat-grid .cat-card.sale-block {
      align-self: stretch;
      height: 100%;
      min-height: 0;
      display: flex;
      flex-direction: column;
    }
    .cat-card.novinki-block { cursor: pointer; overflow: hidden; background: #c85c2b; border-color: rgba(0,0,0,0.06); }
    .cat-card.novinki-block:active { opacity: 0.95; }
    .cat-card.novinki-block .cat-ph-wrap {
      flex: 1;
      min-height: 0;
      width: 100%;
      aspect-ratio: unset;
      height: auto;
      background: transparent;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: space-between;
      padding: 14px;
      box-sizing: border-box;
      color: #fff;
    }
    .cat-card.novinki-block .cat-ph-wrap .novinki-title {
      font-weight: 800;
      font-size: 17px;
      margin: 0;
      line-height: 1.2;
      flex-shrink: 0;
    }
    .cat-btn {
      flex-shrink: 0;
      align-self: flex-start;
      width: clamp(28px, 10vw, 40px);
      height: clamp(28px, 10vw, 40px);
      border-radius: 50%;
      background: #fff;
      color: #111;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: clamp(14px, 4vw, 18px);
      border: none;
      pointer-events: none;
      box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    }

    .cat-card.collections-promo-block { cursor: pointer; overflow: hidden; background: #3d8cc8; border-color: rgba(0,0,0,0.06); }
    .cat-card.collections-promo-block:active { opacity: 0.95; }
    .cat-card.collections-promo-block .cat-ph-wrap {
      flex: 1;
      min-height: 0;
      width: 100%;
      aspect-ratio: unset;
      height: auto;
      background: transparent;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: space-between;
      padding: 14px;
      box-sizing: border-box;
      color: #fff;
    }
    .cat-card.collections-promo-block .collections-promo-title {
      font-weight: 800;
      font-size: 17px;
      margin: 0;
      line-height: 1.2;
      flex-shrink: 0;
    }
    .cat-card.sale-block { cursor: pointer; overflow: hidden; background: #1a4f8f; border-color: rgba(0,0,0,0.06); height: auto; }
    .cat-card.sale-block:active { opacity: 0.95; }
    /* Мобилка: портретная плитка IKEA FRAKTA (текст и стрелка в JPEG), без HTML-оверлея */
    @media (max-width: 899px) {
      .cat-card.sale-block {
        overflow: hidden;
        border-radius: var(--radius-card);
        background: var(--card);
        border: 1px solid var(--border);
        min-width: 0;
      }
      .cat-card.sale-block .cat-ph-wrap.sale-promo-tile {
        flex: 1;
        min-height: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: unset;
        background: transparent;
        position: relative;
        overflow: hidden;
        border-radius: inherit;
        padding: 0;
        box-sizing: border-box;
      }
      .cat-card.sale-block .sale-promo-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center center;
        border-radius: inherit;
      pointer-events: none;
      }
      .cat-card.sale-block .sale-promo-head,
      .cat-card.sale-block .sale-promo-btn,
      .cat-card.sale-block .sale-title,
      .cat-card.sale-block .sale-promo-subtitle {
        display: none !important;
      }
      .screen-home .cat-grid .sale-block {
        height: auto;
        align-self: start;
      }
    }
    /* Десктоп: FRAKTA-картинка на всю плитку (текст и стрелка уже в JPEG), без HTML-оверлея */
    @media (min-width: 900px) {
      .cat-card.sale-block {
        background: var(--card);
        border: 1px solid var(--border);
      }
      .cat-card.sale-block .cat-ph-wrap.sale-promo-tile {
        flex: 1;
        min-height: 0;
        width: 100%;
        aspect-ratio: unset;
        height: 100%;
        background: transparent;
        position: relative;
        overflow: hidden;
        border-radius: inherit;
        padding: 0;
        display: block;
      }
      .cat-card.sale-block .sale-promo-img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center bottom;
        border-radius: inherit;
        pointer-events: none;
      }
      .cat-card.sale-block .sale-promo-head,
      .cat-card.sale-block .sale-title,
      .cat-card.sale-block .sale-promo-subtitle,
      .cat-card.sale-block .sale-promo-btn {
        display: none !important;
      }
    }

    /* /sale hero: IKEA wide banner aspect 100:26.4, текст уже в картинке */
    .sale-hero {
      display: none;
      margin: 0 0 16px;
      position: relative;
      overflow: hidden;
      width: 100%;
      aspect-ratio: 100 / 26.4;
      background: #1a4f8f;
      border-radius: var(--radius);
    }
    .sale-hero.visible { display: block; }
    .sale-hero img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      display: block;
    }

    /* Main content */
    .content { flex: 1; padding: 12px var(--layout-pad-x) 24px; }
    .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    /* Десктоп: широкая колонка и плотная сетка (≥900px; мобилка — 640px / 2 колонки) */
    @media (min-width: 900px) {
      .content { padding-top: 16px; padding-bottom: 32px; }
      .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
      .cat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
        padding: 16px var(--layout-pad-x);
        align-items: stretch;
        --cat-ct-fs: 14px;
        --cat-ct-lh: 1.35;
        --cat-ct-pad: 10px;
        --cat-ct-lines: 2;
        --cat-ct-h: calc(var(--cat-ct-pad) + var(--cat-ct-fs) * var(--cat-ct-lh) * var(--cat-ct-lines));
      }
      .cat-card {
        height: 100%;
        min-height: 0;
      }
      .cat-card .cat-ph-wrap { flex-shrink: 0; }
      .cat-card .cat-ct {
        flex: none;
        box-sizing: border-box;
        padding: 5px 10px;
        min-height: var(--cat-ct-h);
        height: var(--cat-ct-h);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
      }
      .cat-card .cat-ct-t {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        line-height: var(--cat-ct-lh);
        word-break: break-word;
      }
      .header-logo-row { padding-left: var(--layout-pad-x); padding-right: var(--layout-pad-x); }
      .header-search-row { padding-left: calc(var(--layout-pad-x) - 2px); padding-right: calc(var(--layout-pad-x) - 2px); }
      .header-price-toggle { padding-left: var(--layout-pad-x); padding-right: var(--layout-pad-x); }
      .breadcrumbs { padding-left: var(--layout-pad-x); padding-right: var(--layout-pad-x); }
      .meta { margin-left: 0; }
    }
    /* Листинг: единая колонка — баннер, фильтры, «Найдено», сетка */
    .screen-products .content > .sale-hero,
    .screen-products .content > .novinki-filter,
    .screen-products .content > .series-filter,
    .screen-products .content > .meta,
    .screen-products .content > .grid,
    .screen-products .content > .load-more,
    .screen-products .content > .pagination {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }
    .screen-products .novinki-filter,
    .screen-products .series-filter {
      margin-left: 0;
      margin-right: 0;
    }
    .screen-products .novinki-filter.visible {
      padding-left: 0;
      padding-right: 0;
    }
    .screen-products .series-filter.visible {
      padding-left: 0;
      padding-right: 0;
    }
    .screen-products .series-tiles { padding-left: 0; padding-right: 0; margin: 0; }
    .screen-products .series-filter { scroll-padding-inline: 0; }
    .screen-products .novinki-filter .filter-inner {
      width: 100%;
    }
    .screen-products .novinki-filter.is-expanded .filter-inner {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
      gap: 8px;
      align-items: stretch;
    }
    .screen-products .novinki-filter.is-expanded .filter-chip {
      justify-content: center;
      text-align: center;
      white-space: normal;
    }
    @media (min-width: 1100px) {
      .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    }
    .grid .loader { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: #888; font-size: 15px; }
    .grid .listing-empty {
      grid-column: 1 / -1;
      justify-self: stretch;
      min-height: min(58vh, 460px);
      padding: 72px 24px 88px;
    }
    .card.dvz-card-opening {
      outline: 2px solid var(--add-btn);
      outline-offset: 2px;
      transition: outline-color 0.15s ease;
    }
    .modal.dvz-modal-loading .sheet .gallery-wrap::after {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(255, 255, 255, 0.72);
      pointer-events: none;
      z-index: 2;
    }
    .modal.dvz-modal-loading .dvz-gallery-spinner {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 36px;
      height: 36px;
      margin: -18px 0 0 -18px;
      border: 3px solid rgba(0, 71, 133, 0.18);
      border-top-color: var(--add-btn);
      border-radius: 50%;
      animation: dvzSpin 0.75s linear infinite;
      z-index: 3;
      pointer-events: none;
    }
    @keyframes dvzSpin { to { transform: rotate(360deg); } }
    .sheet .gallery .gallery-item.dvz-gallery-skeleton {
      min-height: 220px;
      background: linear-gradient(90deg, #f3f3f3 0%, #ececec 50%, #f3f3f3 100%);
      background-size: 200% 100%;
      animation: dvzGalleryShimmer 1.1s ease-in-out infinite;
    }
    @keyframes dvzGalleryShimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }
    /* Один результат в листинге — карточка по центру, ширина как у колонки сетки */
    .grid .card:only-child {
      grid-column: 1 / -1;
      justify-self: center;
      width: calc((100% - 12px) / 2);
      max-width: 100%;
    }
    @media (min-width: 900px) {
      .grid .card:only-child { width: calc((100% - 32px) / 3); }
    }
    @media (min-width: 1100px) {
      .grid .card:only-child { width: calc((100% - 48px) / 4); }
    }
    /* Иначе длинные заголовки дают min-width по контенту и ломают сетку / смещают цену */
    .grid .card { min-width: 0; }
    .card {
      background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card);
      overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
    }
    .card .ph-wrap { position: relative; aspect-ratio: 1; background: #f5f5f5; }
    .card .product-link { color: inherit; text-decoration: none; }
    .card .ph-wrap > .product-image-link {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      display: flex; align-items: center; justify-content: center;
    }
    .card .ph-wrap > .product-image-link > .ph-no-image {
      display: flex; align-items: center; justify-content: center;
      width: 100%; height: 100%; min-height: 100%;
      aspect-ratio: unset;
    }
    .card .ph-wrap > .product-image-link > img.ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: unset; }
    .card img.ph { object-fit: cover; width: 100%; height: 100%; display: block; background: #f5f5f5; }
    .card img.ph:not([src]), .card img.ph[src=""] { background: #f5f5f5; }
    .ph-no-image {
      width: 100%; height: 100%; min-height: 100%;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 10px; padding: 16px 12px; box-sizing: border-box;
      background: #f5f5f5; color: #767676; text-align: center;
    }
    .ph-no-image-icon { width: 40px; height: 40px; flex-shrink: 0; color: #929292; }
    .ph-no-image-text { font-size: 13px; line-height: 1.35; max-width: 11em; }
    /* Листинг: как у IKEA — только маленькая иконка по центру, без текста */
    .ph-no-image--listing {
      padding: 0; gap: 0; background: #f5f5f5;
    }
    .ph-no-image--listing .ph-no-image-text { display: none; }
    .ph-no-image--listing .ph-no-image-icon { width: 32px; height: 32px; color: #c8c8c8; }
    .ph-no-image--compact { gap: 0; padding: 8px; }
    .ph-no-image--compact .ph-no-image-icon { width: 28px; height: 28px; }
    .ph-no-image--compact .ph-no-image-text { display: none; }
    .sheet .gallery .gallery-item .ph-no-image { min-height: 240px; padding: 32px 20px; background: #f5f5f5; }
    .sheet .gallery .gallery-item .ph-no-image-text { font-size: 14px; max-width: 14em; }
    .card .badges { position: absolute; top: 6px; left: 6px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 3; pointer-events: none; }
    /* Несколько фото в листинге: свайп по превью как в модалке */
    .card .ph-wrap .card-ph-gallery {
      position: absolute; inset: 0;
      display: flex; overflow-x: auto; overflow-y: hidden;
      scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
      width: 100%; height: 100%;
      /* Только pan-x ломал вертикальный скролл страницы, если жест начинался на превью (низ списка): WebView ждал горизонтали. */
      touch-action: pan-x pan-y;
      overscroll-behavior-x: contain;
      scrollbar-width: none;
    }
    .card .ph-wrap .card-ph-gallery::-webkit-scrollbar { display: none; }
    @media (prefers-reduced-motion: reduce) {
      .card .ph-wrap .card-ph-gallery { scroll-behavior: auto; }
    }
    .card .ph-wrap .card-ph-gallery .card-ph-slide {
      flex: 0 0 100%; width: 100%; height: 100%; min-height: 0;
      scroll-snap-align: start; scroll-snap-stop: always;
    }
    .card .ph-wrap .card-ph-gallery .card-ph-slide img.ph {
      aspect-ratio: auto; width: 100%; height: 100%; object-fit: cover;
    }
    .card .badge { font-size: 10px; font-weight: 600; padding: 3px 6px; border-radius: 4px; background: #c85c2b; color: #fff; line-height: 1.2; }
    .card .badge.new { background: #c85c2b; }
    .card .badge.sale { background: #e53935; }
    .card .badge.lowerprice { background: transparent; color: #e00; padding: 0; font-size: 12px; font-weight: 700; }
    .card .ct .badge-lowerprice { display: block; color: #e00; font-size: 12px; font-weight: 700; margin-bottom: 2px; }
    .card .ct { padding: 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
    .card .ttl {
      font-weight: 500; font-size: 13px; line-height: 1.3;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      overflow: hidden;
      min-width: 0;
      word-break: break-word;
      overflow-wrap: break-word;
    }
    .card .unit { font-size: 12px; color: var(--muted); min-width: 0; word-break: break-word; }
    .card .ava { font-size: 10px; margin-top: 2px; line-height: 1.25; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .card .ava[data-a="available"] { color: #16a34a; }
    .card .ava[data-a="partial"] { color: #ca8a04; }
    .card .ava[data-a="unavailable"] { color: #dc2626; }
    .card .ava .ava-restock {
      display: block;
      margin-top: 3px;
      font-size: 10px;
      font-weight: 500;
      color: var(--muted);
      line-height: 1.25;
      max-height: 2.6em;
      overflow: hidden;
      white-space: normal;
      word-break: break-word;
    }
    .card .row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; gap: 6px; }
    .card .price { font-weight: 700; font-size: 15px; }
    .card .price-block--sale { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; max-width: calc(100% - 48px); }
    .card .price-original { text-decoration: line-through; color: var(--text); font-weight: 500; font-size: 11px; line-height: 1.2; }
    .card .price-promo { color: #CC0008; font-weight: 700; font-size: 15px; line-height: 1.2; }
    .card .price.food-price { font-size: 11px; font-weight: 500; color: #888; }
    .card .add-btn {
      width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--add-btn); color: #fff;
      box-shadow: 0 2px 8px rgba(0,88,163,0.25);
      font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .card .add-btn:active { opacity: 0.85; }
    .card .add-btn.out-of-stock { background: #9ca3af; box-shadow: none; cursor: not-allowed; pointer-events: none; }
    .qty-pill { display: flex; align-items: center; background: var(--add-btn); border-radius: 20px; overflow: hidden; height: 36px; flex-shrink: 0; }
    .qty-pill-btn { width: 32px; height: 36px; border: none; background: transparent; color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .qty-pill-btn:active { background: rgba(255,255,255,0.15); }
    .qty-pill-btn:disabled { opacity: 0.45; cursor: not-allowed; }
    .qty-pill-num { min-width: 24px; text-align: center; color: #fff; font-weight: 600; font-size: 14px; }
    .qty-stepper-wrap { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
    .qty-stepper {
      display: inline-flex; align-items: center; gap: 6px;
      width: 116px; min-height: 30px;
    }
    .qty-stepper-btn {
      width: 28px; height: 28px; min-width: 28px; min-height: 28px;
      border-radius: 50%; border: none; background: var(--add-btn); color: #fff;
      font-size: 17px; font-weight: 600; line-height: 1; cursor: pointer;
      display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0;
      box-shadow: 0 1px 3px rgba(0, 88, 163, 0.22);
      transition: opacity 0.15s ease, transform 0.15s ease;
    }
    .qty-stepper-btn:active:not(:disabled) { opacity: 0.88; transform: scale(0.96); }
    .qty-stepper-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
    .qty-stepper-field {
      display: flex; align-items: center; flex: 1; min-width: 0; height: 30px;
      border: 1px solid var(--border); border-radius: 8px; background: #fff;
      overflow: hidden; transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .qty-stepper-field:hover { border-color: #b8c4d0; }
    .qty-stepper-input {
      flex: 1; min-width: 0; width: 100%; height: 100%; box-sizing: border-box;
      border: none; background: transparent; color: var(--text);
      font-weight: 600; font-size: 14px; text-align: center; padding: 0 4px;
      cursor: text; pointer-events: auto; touch-action: manipulation;
      -webkit-user-select: text; user-select: text; -webkit-touch-callout: default;
    }
    .qty-stepper-input:focus { outline: none; }
    .qty-stepper-unit {
      display: none; font-size: 13px; color: var(--muted); padding-right: 2px;
      flex-shrink: 0; white-space: nowrap; user-select: none;
    }
    .qty-stepper-apply {
      display: none; width: 28px; min-width: 28px; height: 100%;
      border: none; border-left: 1px solid var(--border); background: transparent;
      color: var(--add-btn); font-size: 17px; font-weight: 700; line-height: 1;
      cursor: pointer; align-items: center; justify-content: center; padding: 0; flex-shrink: 0;
    }
    .qty-stepper-apply:active { background: rgba(0, 88, 163, 0.08); }
    .qty-stepper-wrap.is-editing .qty-stepper-btn { display: none; }
    .qty-stepper-wrap.is-editing .qty-stepper-field {
      flex: 1; width: 100%;
      border-color: var(--add-btn);
      box-shadow: 0 0 0 2px rgba(0, 88, 163, 0.18);
    }
    .qty-stepper-wrap.is-editing .qty-stepper-input { text-align: left; padding-left: 8px; }
    .qty-stepper-wrap.is-editing .qty-stepper-unit,
    .qty-stepper-wrap.is-editing .qty-stepper-apply { display: flex; }
    .qty-stepper-hint { font-size: 11px; color: var(--muted); line-height: 1.2; }
    .meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
    .listing-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 56px 24px 72px;
      min-height: min(50vh, 380px);
      width: 100%;
      box-sizing: border-box;
    }
    .listing-empty-icon {
      font-size: 52px;
      line-height: 1;
      margin-bottom: 18px;
      opacity: 0.9;
    }
    .listing-empty-title {
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 10px;
      color: var(--text);
      letter-spacing: -0.02em;
    }
    .listing-empty-text {
      font-size: 15px;
      line-height: 1.55;
      color: var(--muted);
      max-width: 360px;
    }
    .novinki-filter { display: none; padding: 10px 0; border-bottom: 1px solid var(--border); background: transparent; }
    /* Закрепляем фильтр под шапкой при прокрутке — всегда виден, можно переключать разделы без подъёма наверх */
    .novinki-filter.visible { display: block; position: sticky; top: 0; z-index: 5; }
    .screen-products .novinki-filter.visible { top: 160px; }
    .novinki-filter .filter-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 2px; }
    .novinki-filter:not(.is-expanded) .filter-chip.is-extra { display: none; }
    .novinki-filter .filter-chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; line-height: 1.2; }
    .novinki-filter .filter-chip:hover { border-color: var(--accent); }
    .novinki-filter .filter-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
    .novinki-filter .filter-chip-toggle { border-style: dashed; color: var(--muted); font-weight: 600; background: transparent; }
    .novinki-filter .filter-chip-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--bg); }
    /* Level 4 — серии IKEA: горизонтальные плашки с картинками */
    .series-filter { display: none; padding: 12px 0 14px; border-bottom: 1px solid var(--border); background: transparent; overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch; touch-action: pan-x; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
    .series-filter::-webkit-scrollbar { display: none; }
    .series-filter.visible { display: block; position: sticky; top: 0; z-index: 5; }
    .screen-products .series-filter.visible { top: 160px; }
    .series-tiles { display: flex; gap: 10px; padding: 0 0 8px; width: max-content; min-width: 100%; align-items: stretch; }
    .series-tile {
      flex: 0 0 108px; width: 108px; display: flex; flex-direction: column;
      background: var(--card); border: 2px solid var(--border);
      border-radius: var(--radius-card); overflow: visible; cursor: pointer; -webkit-tap-highlight-color: transparent;
      scroll-snap-align: start; touch-action: pan-x pan-y;
      box-sizing: border-box;
    }
    @media (min-width: 900px) {
      .series-tile { flex: 0 0 120px; width: 120px; }
    }
    .series-tile.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
    .series-tile-ph {
      flex: 0 0 auto; width: 100%; aspect-ratio: 1;
      background: #e8e8e8; position: relative; overflow: hidden;
      border-radius: calc(var(--radius-card) - 2px) calc(var(--radius-card) - 2px) 0 0;
    }
    .series-tile-ph img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; user-select: none; }
    .series-tile-all {
      display: flex; align-items: center; justify-content: center;
      background: #f3f3f3;
    }
    .series-tile-all .series-tile-all-label { font-size: 12px; font-weight: 600; color: var(--text); text-align: center; padding: 6px 8px; line-height: 1.25; }
    .series-tile-ct {
      flex: 0 0 auto;
      box-sizing: border-box;
      padding: 4px 6px 8px;
      min-height: 42px;
      font-size: 11px;
      font-weight: 500;
      text-align: center;
      line-height: 1.25;
      color: var(--text);
      overflow: visible;
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    @media (min-width: 900px) {
      .series-tile-ct { font-size: 12px; }
    }
    .load-more { margin: 16px auto; display: block; padding: 12px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); cursor: pointer; }

    .pagination { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 16px; }
    .pagination .pag-info { font-size: 14px; color: var(--text); }
    .pagination .pag-bar { width: 100%; max-width: 300px; height: 3px; background: #e0e0e0; border-radius: 2px; overflow: hidden; }
    .pagination .pag-bar-fill { height: 100%; background: var(--text); transition: width 0.3s; }
    .pagination .pag-more { padding: 14px 32px; border: 1px solid var(--text); border-radius: 32px; background: var(--bg); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; }
    .pagination .pag-more:hover { background: #f5f5f5; }
    .pagination .pag-more:disabled { opacity: 0.5; cursor: not-allowed; }

    /* Плавающая корзина на моб. листинге; Tawk customStyle z-index 16 — FAB выше контента/чата. */
    #listingCartFab {
      display: none;
      position: fixed;
      right: max(14px, env(safe-area-inset-right));
      left: auto;
      bottom: calc(18px + env(safe-area-inset-bottom));
      width: var(--dvz-floating-action-size, 54px);
      height: var(--dvz-floating-action-size, 54px);
      border-radius: 50%;
      border: none;
      background: var(--accent);
      color: #fff;
      box-shadow: var(--dvz-floating-action-shadow, 0 4px 18px rgba(0, 88, 163, 0.35));
      z-index: 19;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }
    #listingCartFab svg {
      width: 26px; height: 26px;
      stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
      display: block;
      transform: translateY(2px);
    }
    /* Счётчик — отдельный светлый кружок на кромке синего FAB, не «влитый» в фон */
    #listingCartFab .cart-badge {
      position: absolute;
      top: -3px;
      right: -3px;
      min-width: 21px;
      height: 21px;
      padding: 0 5px;
      border-radius: 999px;
      background: #fff;
      color: var(--accent) !important;
      -webkit-text-fill-color: var(--accent);
      font-size: 10px;
      font-weight: 800;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(0, 88, 163, 0.22);
      box-shadow: 0 2px 8px rgba(0, 40, 80, 0.18);
      box-sizing: border-box;
    }
    #listingCartFab:not(.has-items) .cart-badge { display: none; }
    /* FAB когда листинг прокручен достаточно глубоко (class + гистерезис в JS) */
    html.mobile-adaptive body.listing-fab-visible:has(#screenProducts.active) #listingCartFab {
      display: flex;
    }
    html.mobile-adaptive body:has(#modal.show) #listingCartFab,
    html.mobile-adaptive body:has(#cartOverlay.show) #listingCartFab,
    html.mobile-adaptive body.checkout-active #listingCartFab,
    html.mobile-adaptive body:has(#accountScreen.show) #listingCartFab,
    html.mobile-adaptive body:has(#adminScreen.show) #listingCartFab {
      display: none !important;
    }
    /* Мобилка: карточка товара — только модалка, листинг под ней не просвечивает */
    html.mobile-adaptive body:has(#modal.show) > .app {
      visibility: hidden !important;
      pointer-events: none !important;
    }
    html.mobile-adaptive body:has(#modal.show) {
      overflow: hidden !important;
      overscroll-behavior: none;
    }
    html.mobile-adaptive:has(#modal.show) {
      overflow: hidden !important;
      overscroll-behavior: none;
    }
    /* Под-оверлеи карточки — поверх модалки (иначе на телефоне «не открываются») */
    body:has(#modal.show) .dimensions-overlay { z-index: 55; }
    body:has(#modal.show) .product-info-overlay { z-index: 56; }
    body:has(#modal.show) .cart-overlay { z-index: 57; }
    body:has(#modal.show) .cart-overlay .cart-sheet { z-index: 58; }
    body.dvz-modal-over-panel:has(#modal.show) .dimensions-overlay { z-index: 125; }
    body.dvz-modal-over-panel:has(#modal.show) .product-info-overlay { z-index: 126; }
    body.dvz-modal-over-panel:has(#modal.show) .cart-overlay { z-index: 127; }
    body.dvz-modal-over-panel:has(#modal.show) .cart-overlay .cart-sheet { z-index: 128; }
    html.mobile-adaptive #modal.show {
      z-index: 50;
      background: #fff;
      overscroll-behavior: none;
      touch-action: pan-x pan-y;
    }
    /* Мобилка: карточка товара, открытая поверх ЛК (.account-screen z100) / админки
       (.admin-screen z101) — из деталки заказа или управления заказами. Мобильное
       правило выше жёстко ставит #modal.show z-index:50 (ID-специфичность бьёт классовое
       body.dvz-modal-over-panel .modal.show{z-index:110}), из-за чего карточка оставалась
       ПОД экраном ЛК/админки и визуально «не открывалась». Поднимаем её над ними. */
    html.mobile-adaptive body.dvz-modal-over-panel #modal.show {
      z-index: 110;
    }
    html.mobile-adaptive #modal.show .modal-dialog {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      height: 100%;
      max-height: 100dvh;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-y: contain;
      touch-action: pan-y;
    }
    @media (min-width: 900px) {
      #listingCartFab { display: none !important; }
    }
    @media (max-width: 899px) {
      html.mobile-adaptive {
        --dvz-floating-action-size: 54px;
        --dvz-floating-action-shadow: 0 4px 18px rgba(0, 88, 163, 0.35);
      }
      #screenProducts.active .content { padding-bottom: 88px; }
    }

    /* Tawk.to: в админке «мобильный» виджет слева, «десктоп» справа. Свой порог у Tawk обычно ~768px,
       а у сайта mobile-adaptive — 899px. В диапазоне 768–899px (планшеты, узкое окно) Tawk остаётся
       «десктопным», иконка справа. Выравниваем внешние контейнеры как у моб. настройки. */
    html.mobile-adaptive #tawkchat-minimized-container,
    html.mobile-adaptive #tawkchat-minimized,
    html.mobile-adaptive #tawkchat-minimized-button,
    html.mobile-adaptive div[id^="tawkchat-minimized"] {
      left: max(14px, env(safe-area-inset-left)) !important;
      right: auto !important;
    }

    /* Screens — свой stacking context, чтобы клики не перехватывала шапка */
    .screen { display: none; flex: 1; flex-direction: column; min-height: 0; position: relative; z-index: 1; }
    .screen.active { display: flex; }
    /* Главная, мобилка: «Новинки» + «Коллекции» — компактные горизонтальные полоски в строке 1, «Раскупка» — портрет ниже */
    @media (max-width: 899px) {
      .screen-home .cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 8px;
      }
      .screen-home .cat-grid .novinki-block,
      .screen-home .cat-grid .collections-promo-block {
        align-self: start;
        width: 100%;
        height: 88px;
        min-height: 80px;
        max-height: 100px;
        aspect-ratio: unset;
      }
      .screen-home .cat-grid .novinki-block {
        grid-column: 1;
        grid-row: 1;
      }
      .screen-home .cat-grid .collections-promo-block {
        grid-column: 2;
        grid-row: 1;
      }
      .screen-home .cat-grid .novinki-block .cat-ph-wrap,
      .screen-home .cat-grid .collections-promo-block .cat-ph-wrap {
        flex: none;
        min-height: 0;
        height: 100%;
        width: 100%;
        aspect-ratio: unset;
        position: relative;
        display: block;
        padding: 0;
        box-sizing: border-box;
      }
      .screen-home .cat-grid .novinki-block .novinki-title,
      .screen-home .cat-grid .collections-promo-block .collections-promo-title {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 1;
        margin: 0;
        font-size: 15px;
        line-height: 1.15;
      }
      .screen-home .cat-grid .novinki-block .cat-ph-wrap .cat-btn,
      .screen-home .cat-grid .collections-promo-block .cat-ph-wrap .cat-btn {
        position: absolute;
        bottom: 10px;
        left: 10px;
        z-index: 1;
        flex-shrink: unset;
        align-self: unset;
        width: 32px;
        height: 32px;
        font-size: 15px;
      }
      .screen-home .cat-grid .novinki-block .cat-ct-spacer,
      .screen-home .cat-grid .collections-promo-block .cat-ct-spacer {
        display: none;
      }
      .screen-home .cat-grid .sale-block {
        grid-column: 1 / -1;
        grid-row: 2;
        aspect-ratio: 750 / 999;
        align-self: start;
        width: 100%;
        max-width: 100%;
      }
    }

    /* Главная, десктоп: Раскупка 2×2 слева + 6 ровных блоков 3×2 справа, далее обычная 5-кол. сетка */
    @media (min-width: 900px) {
      .screen-home .cat-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-template-rows: repeat(2, var(--home-cat-unit));
        grid-auto-rows: var(--home-cat-unit);
        gap: var(--home-grid-gap);
        align-items: stretch;
        padding-top: 16px;
        container-type: inline-size;
        --home-grid-gap: 16px;
        --home-cat-label-pad: 12px;
        --home-cat-label-lines: 1.35;
        --home-cat-label: calc(var(--home-cat-label-pad) + var(--cat-ct-fs) * var(--cat-ct-lh) * var(--home-cat-label-lines));
        --home-cat-col: calc((100cqi - 4 * var(--home-grid-gap)) / 5);
        --home-cat-unit: calc(var(--home-cat-col) + var(--home-cat-label));
      }
      /* Категории ниже hero: та же структура, что у .hero-g* — flex-картинка + компактная подпись */
      .screen-home .cat-grid > .cat-card[data-type="main"]:not([class*="hero-g"]) {
        align-self: stretch;
        height: 100%;
        min-height: 0;
      }
      .screen-home .cat-grid > .cat-card[data-type="main"]:not([class*="hero-g"]) .cat-ph-wrap {
        flex: 1;
        aspect-ratio: unset;
        height: auto;
        min-height: 0;
      }
      .screen-home .cat-grid > .cat-card[data-type="main"]:not([class*="hero-g"]) .cat-ct {
        flex: none;
        padding: 6px 10px;
        min-height: var(--home-cat-label);
        height: var(--home-cat-label);
        box-sizing: border-box;
      }
      .screen-home .cat-grid .cat-card.novinki-block,
      .screen-home .cat-grid .cat-card.collections-promo-block,
      .screen-home .cat-grid .hero-g3r1,
      .screen-home .cat-grid .hero-g4r1,
      .screen-home .cat-grid .hero-g5r1,
      .screen-home .cat-grid .hero-g3r2,
      .screen-home .cat-grid .hero-g4r2,
      .screen-home .cat-grid .hero-g5r2 {
        width: 100%;
        min-height: 0;
        height: 100%;
        align-self: stretch;
      }
      .screen-home .cat-grid .hero-g3r1 .cat-ph-wrap,
      .screen-home .cat-grid .hero-g4r1 .cat-ph-wrap,
      .screen-home .cat-grid .hero-g5r1 .cat-ph-wrap,
      .screen-home .cat-grid .hero-g3r2 .cat-ph-wrap,
      .screen-home .cat-grid .hero-g4r2 .cat-ph-wrap,
      .screen-home .cat-grid .hero-g5r2 .cat-ph-wrap {
        flex: 1;
        min-height: 0;
        aspect-ratio: unset;
        height: auto;
      }
      .screen-home .cat-grid .hero-g3r1 .cat-ct,
      .screen-home .cat-grid .hero-g4r1 .cat-ct,
      .screen-home .cat-grid .hero-g5r1 .cat-ct,
      .screen-home .cat-grid .hero-g3r2 .cat-ct,
      .screen-home .cat-grid .hero-g4r2 .cat-ct,
      .screen-home .cat-grid .hero-g5r2 .cat-ct {
        flex: none;
        padding: 6px 10px;
        min-height: var(--home-cat-label);
        height: var(--home-cat-label);
        box-sizing: border-box;
      }
      .screen-home .cat-grid .sale-block {
        grid-column: 1 / span 2;
        grid-row: 1 / span 2;
        align-self: stretch;
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: unset;
        min-height: 0;
        overflow: hidden;
      }
      .screen-home .cat-grid .sale-block .cat-ph-wrap.sale-promo-tile {
        height: 100%;
        flex: 1 1 auto;
        min-height: 0;
      }
      .screen-home .cat-grid .sale-block .sale-promo-img {
        min-height: 0;
      }
      .screen-home .cat-grid .hero-g3r1 { grid-column: 3; grid-row: 1; }
      .screen-home .cat-grid .hero-g4r1 { grid-column: 4; grid-row: 1; }
      .screen-home .cat-grid .hero-g5r1 { grid-column: 5; grid-row: 1; }
      .screen-home .cat-grid .hero-g3r2 { grid-column: 3; grid-row: 2; }
      .screen-home .cat-grid .hero-g4r2 { grid-column: 4; grid-row: 2; }
      .screen-home .cat-grid .hero-g5r2 { grid-column: 5; grid-row: 2; }
      /* Новинки / Коллекции: та же структура, что у .cat-card — квадрат .cat-ph + полоса .cat-ct */
      .screen-home .cat-grid .novinki-block,
      .screen-home .cat-grid .collections-promo-block {
        display: flex;
        flex-direction: column;
      }
      .screen-home .cat-grid .novinki-block .cat-ph-wrap {
        flex: 1;
        aspect-ratio: unset;
        height: auto;
        min-height: 0;
        width: 100%;
        position: relative;
        display: block;
        padding: 0;
        background: #c85c2b;
        color: #fff;
      }
      .screen-home .cat-grid .collections-promo-block .cat-ph-wrap {
        flex: 1;
        aspect-ratio: unset;
        height: auto;
        min-height: 0;
        width: 100%;
        position: relative;
        display: block;
        padding: 0;
        background: #3d8cc8;
        color: #fff;
      }
      .screen-home .cat-grid .novinki-block .novinki-title,
      .screen-home .cat-grid .collections-promo-block .collections-promo-title {
        position: absolute;
        top: 14px;
        left: 14px;
        z-index: 1;
      }
      .screen-home .cat-grid .novinki-block .cat-ph-wrap .cat-btn,
      .screen-home .cat-grid .collections-promo-block .cat-ph-wrap .cat-btn {
        position: absolute;
        bottom: 8px;
        left: 12px;
        z-index: 1;
        flex-shrink: unset;
        align-self: unset;
      }
      .screen-home .cat-grid .novinki-block .cat-ct-spacer,
      .screen-home .cat-grid .collections-promo-block .cat-ct-spacer {
        flex: none;
        padding: 6px 10px;
        font-weight: 500;
        font-size: 14px;
        text-align: center;
        line-height: 1.35;
        min-height: var(--home-cat-label);
        height: var(--home-cat-label);
        box-sizing: border-box;
        visibility: hidden;
      }
      .screen-home .cat-grid .cat-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
      }
    }

    /* Hero на главной */
    .home-hero {
      padding: 8px 12px 0;
      flex-shrink: 0;
    }
    .home-hero-inner {
      position: relative;
      overflow: hidden;
      border-radius: var(--radius-card);
      background: linear-gradient(128deg, #003d73 0%, #0058a3 52%, #1a7ec4 100%);
      color: #fff;
      padding: 16px 14px 14px;
      box-shadow: 0 4px 20px rgba(0, 88, 163, 0.16);
    }
    .home-hero-inner::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 70% 90% at 100% 0%, rgba(255,255,255,0.1) 0%, transparent 58%),
        radial-gradient(ellipse 45% 55% at 0% 100%, rgba(255,255,255,0.05) 0%, transparent 52%);
      pointer-events: none;
    }
    .home-hero-content {
      position: relative;
      z-index: 1;
      min-width: 0;
    }
    .home-hero-title {
      margin: 0 0 6px;
      font-size: clamp(19px, 4.8vw, 28px);
      font-weight: 800;
      letter-spacing: -0.025em;
      line-height: 1.15;
    }
    .home-hero-sub {
      margin: 0 0 12px;
      font-size: 13px;
      line-height: 1.45;
      color: rgba(255, 255, 255, 0.78);
      font-weight: 400;
    }
    .home-hero-actions {
      position: relative;
      z-index: 1;
      display: flex;
      gap: 8px;
    }
    .home-hero-btn {
      appearance: none;
      border: none;
      cursor: pointer;
      font: inherit;
      font-size: 13px;
      font-weight: 600;
      line-height: 1;
      padding: 10px 14px;
      border-radius: 10px;
      transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
      -webkit-tap-highlight-color: transparent;
      white-space: nowrap;
    }
    .home-hero-btn:active { transform: scale(0.98); }
    .home-hero-btn--primary {
      background: #fff;
      color: var(--accent);
      flex: 1;
      min-width: 0;
    }
    .home-hero-btn--primary:hover { background: #f4f9ff; }
    .home-hero-btn--ghost {
      background: transparent;
      color: rgba(255, 255, 255, 0.92);
      padding-left: 10px;
      padding-right: 10px;
      flex-shrink: 0;
    }
    .home-hero-btn--ghost:hover { color: #fff; opacity: 0.85; }
    a.home-hero-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
    @media (min-width: 900px) {
      .home-hero { padding: 14px 24px 0; }
      .home-hero-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
        padding: 20px 24px;
      }
      .home-hero-sub { margin-bottom: 0; font-size: 14px; }
      .home-hero-actions {
        flex-shrink: 0;
        gap: 10px;
      }
      .home-hero-btn {
        font-size: 14px;
        padding: 11px 18px;
        border-radius: 999px;
        flex: none;
      }
      .home-hero-btn--primary { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
      .home-hero-btn--ghost {
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.28);
        padding-left: 18px;
        padding-right: 18px;
      }
      .home-hero-btn--ghost:hover { background: rgba(255,255,255,0.16); opacity: 1; }
    }

  /* Modal: без display:none — плавное появление (веб / десктоп). */
    .modal {
      position: fixed; inset: 0; background: var(--bg); z-index: 20;
      display: flex; flex-direction: column;
      opacity: 0; visibility: hidden; pointer-events: none;
      transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.28s;
    }
    .modal.show {
      opacity: 1; visibility: visible; pointer-events: auto; overflow: hidden;
      transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
    }
    /* Карточка товара поверх ЛК/админки (z-index 101), иначе видна главная */
    body.dvz-modal-over-panel .modal.show {
      z-index: 110;
    }
    /* Обёртка: на мобиле на весь экран, на десктопе — карточка по центру */
    .modal-dialog {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      width: 100%;
      min-width: 0;
      max-height: 100%;
      overflow: hidden;
    }
    .modal .header { flex-shrink: 0; background: #fff; border-bottom: 1px solid var(--border); }
    .modal .modal-breadcrumbs { flex-shrink: 0; }
    .modal-back { width: 36px; height: 36px; border: none; background: transparent; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text); }
    .modal-head-title { display: none; }
    .modal-cart-btn { position: relative; width: 36px; height: 36px; border: none; background: #f0f0f0; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text); }
    .modal-cart-badge { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--add-btn); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
    .modal-cart-btn:not(.has-items) .modal-cart-badge { display: none; }
    .sheet { width: 100%; flex: 1; display: flex; flex-direction: column; background: var(--bg); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; min-height: 0; }
    .sheet .gallery-wrap { flex-shrink: 0; position: relative; width: 100%; }
    .sheet .gallery { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; background: #fff; width: 100%; touch-action: pan-x pan-y; overscroll-behavior-x: contain; }
    .sheet .gallery::-webkit-scrollbar { display: none; }
    .sheet .gallery .gallery-item { flex: 0 0 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; background: #fff; }
    .sheet .gallery .gallery-item img { max-width: 100%; max-height: 70vh; width: auto; height: auto; object-fit: contain; display: block; }
    .sheet .gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
    .sheet .gallery-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.2); transition: background 0.2s; }
    .sheet .gallery-dots span.active { background: rgba(0,0,0,0.6); }
    .sheet .cnt { padding: 16px; background: var(--bg); position: relative; z-index: 1; text-align: left; flex: 1; min-height: 0; font-family: inherit; overflow-x: hidden; word-break: break-word; }
    .sheet .h1 { font-weight: 700; font-size: 17px; margin: 0 0 2px; line-height: 1.25; }
    .sheet .art-line { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
    .sheet .art-copy { font-weight: 700; color: var(--text); cursor: pointer; border-bottom: 1px dashed var(--muted); transition: color 0.15s, border-color 0.15s; }
    .sheet .art-copy:hover { color: var(--add-btn); }
    .sheet .art-copy.art-copy--copied { color: #15803d; border-bottom-color: rgba(21, 128, 61, 0.45); }
    .sheet .badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
    .sheet .badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 5px; background: #c85c2b; color: #fff; }
    .sheet .badge.new { background: #c85c2b; }
    .sheet .badge.sale { background: #e53935; }
    .sheet .badge.lowerprice { background: transparent; color: #e00; padding: 0; font-size: 13px; font-weight: 700; }
    .sheet .mono { font: 12px ui-monospace, Menlo, Consolas; color: var(--muted); }
    .sheet .price-row { display: flex; justify-content: space-between; align-items: flex-start; margin: 8px 0; gap: 12px; flex-wrap: nowrap; }
    .sheet .price-row .price { flex: 1; min-width: 0; }
    .sheet .price { font-weight: 700; font-size: 17px; }
    .sheet .price-block--sale { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
    .sheet .price-original { text-decoration: line-through; color: var(--text); font-weight: 500; font-size: 14px; line-height: 1.25; }
    .sheet .price-promo { color: #CC0008; font-weight: 700; font-size: 22px; line-height: 1.2; }
    .sheet .price-savings { font-size: 13px; font-weight: 600; color: #CC0008; line-height: 1.3; margin-top: 2px; }
    .sheet .dimensions-row { display: none; align-items: center; justify-content: space-between; padding: 12px 0; margin: 4px 0; border-top: 1px solid var(--border); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
    .sheet .dimensions-row.visible { display: flex; }
    .sheet .dimensions-row .dimensions-label { font-size: 15px; font-weight: 600; color: var(--text); }
    .sheet .dimensions-row .dimensions-arrow { font-size: 14px; color: var(--muted); }
    .modal-cart-action { margin-top: 10px; height: 52px; }
    .sheet .add-btn-big { width: 100%; height: 52px; padding: 0 28px; border: none; border-radius: 64px; background: var(--add-btn); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; transition: background 0.15s; }
    .sheet .add-btn-big:hover { background: #004785; }
    .sheet .add-btn-big:active { background: #003d73; }
    .sheet .add-btn-big.out-of-stock { background: #9ca3af; cursor: not-allowed; pointer-events: none; }
    .modal-qty-pill { display: flex; align-items: center; justify-content: center; background: var(--add-btn); border-radius: 64px; height: 52px; width: 100%; }
    .modal-qty-pill .qty-pill-btn { width: 52px; height: 52px; border: none; background: transparent; color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .modal-qty-pill .qty-pill-btn:active { background: rgba(255,255,255,0.15); }
    .modal-qty-pill .qty-pill-num { flex: 1; text-align: center; color: #fff; font-weight: 700; font-size: 18px; }
    .sheet .ava { font-size: 13px; white-space: nowrap; flex-shrink: 0; text-align: right; line-height: 1.3; }
    .sheet .ava[data-a="available"] { color: #16a34a; }
    .sheet .ava[data-a="partial"] { color: #ca8a04; }
    .sheet .ava[data-a="partial"] .ava-partial-qty { color: #eab308; white-space: nowrap; }
    .sheet .ava[data-a="unavailable"] { color: #dc2626; }
    .sheet .ava .ava-restock {
      display: block;
      margin-top: 6px;
      font-size: 12px;
      font-weight: 500;
      color: var(--muted);
      line-height: 1.35;
      white-space: normal;
      text-align: right;
    }
    .sheet .desc { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
    .sheet .variations { margin-top: 12px; text-align: left; }
    .sheet .variations h4 { font-size: 14px; font-weight: 600; margin: 0 0 10px; color: var(--text); text-align: left; }
    .sheet .variations .var-picker { display: flex; flex-direction: column; gap: 12px; }
    .sheet .variations .var-row { display: flex; flex-direction: column; gap: 6px; }
    .sheet .variations .var-row-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
    .sheet .variations .var-select { width: 100%; max-width: 100%; padding: 10px 36px 10px 12px; border: 1px solid var(--border); border-radius: 4px; background: #fff; color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.35; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
    .sheet .variations .var-select:focus { outline: none; border-color: var(--text); }
    .sheet .variations .var-color-thumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
    .sheet .variations .var-color-thumb { display: block; flex-shrink: 0; width: 48px; height: 48px; padding: 0; border: none; border-radius: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .sheet .variations .var-color-thumb img { width: 48px; height: 48px; object-fit: cover; border: none; border-radius: 0; display: block; background: #f5f5f5; }
    .sheet .variations .var-color-thumb.active { outline: 2px solid var(--text); outline-offset: 1px; }
    .sheet .variations .var-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
    .sheet .variations .var-size { display: inline-flex; align-items: center; justify-content: center; min-width: 0; padding: 10px 14px; border: 1px solid transparent; border-radius: 4px; background: #fff; color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .sheet .variations .var-size:hover { background: #f5f5f5; }
    .sheet .variations .var-size.active { border-color: var(--text); }
    .sheet .variations .var-fallback-select { margin-top: 0; }
    .sheet .variations .var-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .sheet .variations .var-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); cursor: pointer; text-align: left; overflow: hidden; transition: border-color 0.2s, background 0.2s; -webkit-tap-highlight-color: transparent; min-width: 0; }
    .sheet .variations .var-card:hover, .sheet .variations .var-card:focus { border-color: var(--accent); }
    .sheet .variations .var-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #e8e8e8; }
    .sheet .variations .var-card .var-ct { padding: 6px; flex: 1; min-height: 0; }
    .sheet .variations .var-card .var-ttl { font-size: 11px; font-weight: 500; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; word-break: break-word; }
    .sheet .variations .var-card .var-label { font-size: 11px; font-weight: 600; color: var(--add-btn); margin-top: 2px; line-height: 1.2; }
    .sheet .variations .var-card .var-price { font-size: 11px; font-weight: 700; color: var(--text); margin-top: 2px; }
    .sheet .packaging { margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
    .sheet .packaging summary { padding: 12px 14px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; -webkit-tap-highlight-color: transparent; }
    .sheet .packaging summary::-webkit-details-marker { display: none; }
    .sheet .packaging summary::after { content: '▼'; font-size: 10px; color: var(--muted); transition: transform 0.2s; }
    .sheet .packaging[open] summary::after { transform: rotate(-180deg); }
    .sheet .packaging .pack-body { padding: 0 14px 14px; font-size: 13px; color: var(--text); line-height: 1.5; }
    .sheet .packaging .pack-body .pack-intro { margin: 0 0 12px; color: var(--muted); }
    .sheet .packaging .pack-body .pack-component { margin-bottom: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
    .sheet .packaging .pack-body .pack-component:last-child { margin-bottom: 0; }
    .sheet .packaging .pack-body .pack-component-name { font-weight: 600; font-size: 14px; margin: 0 0 6px; color: var(--text); }
    .sheet .packaging .pack-body .pack-item-no { font-size: 12px; margin: 0 0 8px; color: var(--muted); }
    .sheet .packaging .pack-body .pack-item-no .pack-article-block {
      display: inline-block; margin-top: 4px; padding: 6px 10px; background: #1a1a1a; color: #fff; font-weight: 700; font-size: 13px; border-radius: 4px; letter-spacing: 0.02em;
      cursor: text; -webkit-user-select: text; user-select: text; touch-action: manipulation; -webkit-touch-callout: default;
    }
    .sheet .packaging .pack-body .pack-specs { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text); }
    .sheet .packaging .pack-body .pack-specs span { display: block; }
    .sheet .packaging .pack-body .pack-specs span strong { font-weight: 700; }
    .sheet .packaging .pack-body .pack-count { font-size: 12px; margin-top: 6px; color: var(--muted); }
    .sheet .related { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); text-align: left; }
    .sheet .related h4 { font-size: 13px; font-weight: 600; margin: 0 0 10px; text-align: left; }
    .sheet .related-scroll { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sheet .related-scroll .rcard { display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; cursor: pointer; background: #fff; min-width: 0; }
    .sheet .related-scroll .rcard .rph { position: relative; aspect-ratio: 1; background: #f5f5f5; }
    .sheet .related-scroll .rcard .rph img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8px; }
    .sheet .related-scroll .rcard .rph .rbadge { position: absolute; top: 4px; left: 4px; font-size: 9px; font-weight: 600; padding: 2px 5px; border-radius: 3px; background: #c85c2b; color: #fff; }
    .sheet .related-scroll .rcard .rct { padding: 8px 8px 4px; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sheet .related-scroll .rcard .rcp-row { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 8px; gap: 6px; }
    .sheet .related-scroll .rcard .rcp { font-size: 14px; font-weight: 700; color: var(--text); padding: 0; }
    .sheet .related-scroll .rcard .rcp.food-price { font-size: 10px; font-weight: 500; color: #888; }
    .sheet .related-scroll .rcard .price-block--sale { flex-direction: column; align-items: flex-start; gap: 1px; max-width: calc(100% - 36px); }
    .sheet .related-scroll .rcard .price-original { font-size: 10px; font-weight: 500; color: var(--text); text-decoration: line-through; }
    .sheet .related-scroll .rcard .price-promo { font-size: 13px; font-weight: 700; color: #CC0008; }
    .sheet .related-scroll .rcard .radd { width: 32px; height: 32px; border: none; border-radius: 50%; background: var(--add-btn); color: #fff; font-size: 18px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .sheet .related-scroll .rcard .radd:active { background: #004785; }
    .sheet .related-scroll .rcard .radd.in-cart { background: #28a745; font-size: 14px; }
    .sheet .related-scroll .rcard .radd.out-of-stock { background: #9ca3af; cursor: not-allowed; pointer-events: none; }

    /* Плавающая «Назад» только на десктопе — в разметке есть, на мобилке скрыта */
    .modal-floating-back {
      display: none;
    }

    /* Десктоп: карточка товара — не на всю ширину, две колонки, стиль как у каталога */
    @media (min-width: 900px) and (hover: hover) and (pointer: fine) {
      .modal {
        background: rgba(17, 17, 17, 0.48);
        align-items: center;
        justify-content: center;
        padding: 28px 20px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        cursor: pointer;
        transition: none;
      }
      .modal.show {
        transition: none;
      }
      .modal-dialog {
        position: relative;
        flex: 0 0 auto;
        width: min(920px, calc(100vw - 56px));
        max-width: min(920px, calc(100vw - 56px));
        height: min(88vh, 840px);
        min-height: min(88vh, 840px);
        max-height: min(88vh, 840px);
        background: #fff;
        border-radius: var(--radius-card);
        box-shadow:
          0 4px 6px rgba(0, 0, 0, 0.04),
          0 24px 64px rgba(0, 0, 0, 0.14);
        overflow: hidden;
        border: 1px solid var(--border);
        cursor: auto;
      }
      /* Шапка модалки + крошки скрыты — дубль каталога; «Назад» — плавающая кнопка */
      .modal:not(.dvz-modal-standalone) .modal-header,
      .modal:not(.dvz-modal-standalone) .modal-breadcrumbs,
      body:not(.dvz-modal-standalone) .modal.show .modal-header,
      body:not(.dvz-modal-standalone) .modal.show .modal-breadcrumbs {
        display: none !important;
      }
      body.dvz-modal-standalone .modal.show .modal-floating-back,
      #modal.show.dvz-modal-standalone .modal-floating-back {
        display: none !important;
      }
      body.dvz-modal-standalone .modal.show .modal-header,
      #modal.show.dvz-modal-standalone .modal-header,
      body.dvz-modal-standalone .modal.show .modal-breadcrumbs,
      #modal.show.dvz-modal-standalone .modal-breadcrumbs {
        display: block !important;
      }
      .modal-floating-back {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 20;
        width: 42px;
        height: 42px;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
        color: var(--text);
        -webkit-tap-highlight-color: transparent;
      }
      .modal-floating-back:hover {
        background: #fff;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
      }
      .modal-floating-back:active {
        transform: scale(0.96);
      }
      .modal .sheet {
        flex: 1;
        flex-direction: row;
        align-items: stretch;
        min-height: 0;
        height: 100%;
        overflow: hidden;
        max-height: 100%;
      }
      .modal .sheet .gallery-wrap {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
        min-width: 0;
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
        border-right: 1px solid var(--border);
      }
      .modal .sheet .gallery {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        background: #fff;
      }
      .modal .sheet .gallery .gallery-item {
        min-height: 100%;
        height: 100%;
      }
      .modal .sheet .gallery .gallery-item img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        padding: 20px;
        box-sizing: border-box;
      }
      .modal .sheet .gallery-dots {
        bottom: 16px;
        padding-bottom: 4px;
      }
      .modal .sheet .cnt {
        flex: 1;
        min-width: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 24px 28px 32px;
        background: var(--bg);
        max-height: 100%;
        overscroll-behavior: contain;
      }
      .modal .sheet .h1 {
        font-size: 22px;
        font-weight: 700;
        line-height: 1.3;
        margin: 0 0 8px;
      }
      .modal .sheet .art-line { font-size: 14px; margin-bottom: 10px; }
      .modal .sheet .price-row { margin: 12px 0 16px; }
      .modal .sheet .price { font-size: 24px; font-weight: 700; }
      .modal .sheet .price-promo { font-size: 28px; }
      .modal .sheet .price-original { font-size: 16px; }
      .modal .sheet .price-savings { font-size: 14px; }
      .modal .sheet .ava { font-size: 14px; }
      .modal .sheet .modal-cart-action { margin-top: 16px; max-width: 100%; }
      .modal .sheet .desc {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.55;
      }
      .modal .sheet .variations { margin-top: 20px; }
      .modal .sheet .variations h4 { font-size: 15px; }
      .modal .sheet .variations .var-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .modal .sheet .related {
        margin-top: 24px;
        padding-top: 20px;
      }
      .modal .sheet .related h4 { font-size: 15px; margin-bottom: 14px; }
      .modal .sheet .related-scroll {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .modal,
      .modal.show {
        transition: none !important;
      }
    }

    /* Мобилка: карточка товара — шапка (лого, поиск, цены, аккаунт, корзина) + крошки
       прокручиваются вместе с контентом (один скролл на .modal-dialog, не sticky). */
    html.mobile-adaptive #modal.show .modal-header {
      display: block !important;
      flex-shrink: 0;
      position: static !important;
      top: auto !important;
      z-index: auto;
      background: #fff;
    }
    html.mobile-adaptive #modal.show .modal-header .header-logo-row {
      padding-top: env(safe-area-inset-top, 0px);
    }
    html.mobile-adaptive #modal.show .modal-breadcrumbs {
      display: block !important;
      flex-shrink: 0;
    }
    html.mobile-adaptive #modal.show .modal-floating-back {
      display: none !important;
    }
    body.dvz-modal-standalone > .app {
      visibility: hidden !important;
      pointer-events: none !important;
    }
    body.dvz-modal-standalone {
      overflow: hidden !important;
      overscroll-behavior: none;
    }
    body.dvz-modal-standalone #modal.show {
      z-index: 50;
      background: #fff;
      overscroll-behavior: none;
      align-items: stretch;
      justify-content: stretch;
      padding: 0;
      cursor: auto;
    }
    body.dvz-modal-standalone #modal.show .modal-dialog {
      flex: 1;
      min-height: 0;
      width: 100%;
      max-width: 100%;
      height: 100%;
      max-height: 100dvh;
      border-radius: 0;
      box-shadow: none;
      border: none;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-y: contain;
      touch-action: pan-y;
    }
    body.dvz-modal-standalone #modal.show .modal-header {
      position: static !important;
      top: auto !important;
      z-index: auto;
    }
    body.dvz-modal-standalone #modal.show .sheet {
      flex-direction: column !important;
      flex: 0 0 auto;
      min-height: 0;
      overflow: visible !important;
      touch-action: auto;
    }
    html.mobile-adaptive #modal.show .sheet {
      flex-direction: column !important;
      flex: 0 0 auto;
      min-height: 0;
      overflow: visible !important;
      touch-action: auto;
    }
    html.mobile-adaptive #modal.show .sheet .gallery-wrap {
      flex: 0 0 auto !important;
      max-width: 100% !important;
      border-right: 0 !important;
      background: #fff !important;
    }
    html.mobile-adaptive #modal.show .sheet .gallery {
      flex: 0 0 auto !important;
      min-height: 0 !important;
      /* pan-x only blocked vertical scroll on .modal-dialog when touch started on hero image (same as listing card-ph-gallery). */
      touch-action: pan-x pan-y;
      overscroll-behavior-x: contain;
    }
    html.mobile-adaptive #modal.show .sheet .gallery .gallery-item img {
      max-height: min(52vh, 420px) !important;
      padding: 0 !important;
    }
    html.mobile-adaptive #modal.show .sheet .cnt {
      overflow: visible !important;
      max-height: none !important;
      padding: 16px !important;
      flex: 0 0 auto;
    }

    /* Модалка «Вес и размеры» (снизу) */
    .dimensions-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 30; display: none; }
    .dimensions-overlay.show { display: block; }
    .dimensions-overlay.show .dimensions-sheet { transform: translateY(0); }
    .dimensions-overlay.show.closing .dimensions-sheet { transform: translateY(100%); }
    .dimensions-sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 88vh; background: var(--bg); border-radius: 20px 20px 0 0; box-shadow: 0 -4px 24px rgba(0,0,0,0.15); z-index: 31; display: flex; flex-direction: column; min-height: 0; transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease; }
    .dimensions-sheet .dimensions-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
    .dimensions-sheet .dimensions-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); }
    .dimensions-sheet .dimensions-close { width: 40px; height: 40px; border: none; background: none; font-size: 20px; cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center; }
    .dimensions-sheet .dimensions-body { flex: 1; min-height: 0; padding: 20px; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; font-size: 15px; line-height: 1.8; color: var(--text); word-break: break-word; }
    .dimensions-sheet .dimensions-body .dim-line { margin-bottom: 6px; }
    .dimensions-sheet .dimensions-body .dim-line { margin-bottom: 4px; padding-left: 14px; position: relative; }
    .dimensions-sheet .dimensions-body .dim-line::before { content: '•'; position: absolute; left: 0; color: var(--text); }
    .dimensions-sheet .dimensions-body .dim-line strong { font-weight: 700; color: var(--text); }
    .dimensions-sheet .dimensions-body .dim-image-inline { margin: 16px 0; text-align: center; }
    .dimensions-sheet .dimensions-body .dim-image-inline img { max-width: 100%; max-height: 200px; width: auto; height: auto; object-fit: contain; display: block; margin: 0 auto; background: #f5f5f5; }
    .dimensions-sheet .dimensions-body .dim-pack-title { font-size: 15px; font-weight: 700; color: var(--text); margin: 20px 0 8px; padding-top: 16px; border-top: 1px solid var(--border); }
    .dimensions-sheet .dimensions-body .dim-pack-block { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
    .dimensions-sheet .dimensions-body .dim-pack-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
    .dimensions-sheet .dimensions-body .dim-pack-series { font-weight: 700; font-size: 16px; margin: 0 0 4px; color: var(--text); }
    .dimensions-sheet .dimensions-body .dim-pack-subtitle { font-size: 14px; color: var(--text); margin: 0 0 6px; line-height: 1.4; }
    .dimensions-sheet .dimensions-body .dim-pack-art-line { font-size: 13px; color: var(--text); margin-bottom: 8px; }
    .dimensions-sheet .dimensions-body .dim-pack-art-line .dim-pack-art-value {
      display: inline-block; padding: 2px 8px; background: #1a1a1a; color: #fff; font-weight: 700; font-size: 12px; border-radius: 4px; letter-spacing: 0.02em;
      cursor: pointer; -webkit-user-select: text; user-select: text; touch-action: manipulation; -webkit-touch-callout: default;
    }
    .dimensions-sheet .dimensions-body .dim-pack-specs { font-size: 14px; line-height: 1.8; color: var(--text); margin-top: 6px; list-style: none; padding: 0; margin-left: 0; }
    .dimensions-sheet .dimensions-body .dim-pack-specs .dim-pack-spec-line { display: block; padding-left: 14px; position: relative; margin-bottom: 2px; }
    .dimensions-sheet .dimensions-body .dim-pack-specs .dim-pack-spec-line::before { content: '•'; position: absolute; left: 0; color: var(--text); }
    .dimensions-sheet .dimensions-body .dim-pack-specs strong { font-weight: 700; }

    /* «Вес и размеры» — десктоп: компактное окно по центру, клик по фону закрывает (обработчик в JS) */
    @media (min-width: 900px) {
      .dimensions-overlay.show {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 24px;
        cursor: pointer;
      }
      .dimensions-sheet {
        position: relative;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;
        width: 100%;
        max-width: 520px;
        max-height: min(86vh, 720px);
        border-radius: 16px;
        margin: 0;
        transform: none !important;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
        border: 1px solid var(--border);
        cursor: auto;
      }
      .dimensions-overlay.show .dimensions-sheet {
        transform: none !important;
        opacity: 1;
      }
      .dimensions-overlay.show.closing .dimensions-sheet {
        transform: translateY(12px) scale(0.98) !important;
        opacity: 0;
      }
    }

    /* Модалка «Информация о товаре» — как «Вес и размеры» */
    .product-info-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 35; display: none; }
    body.dvz-modal-over-panel .product-info-overlay { z-index: 120; }
    .product-info-overlay.show { display: block; }
    .product-info-overlay.show .product-info-sheet { transform: translateY(0); }
    .product-info-overlay.show.closing .product-info-sheet { transform: translateY(100%); }
    .product-info-sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 88vh; background: var(--bg); border-radius: 20px 20px 0 0; box-shadow: 0 -4px 24px rgba(0,0,0,0.15); z-index: 36; display: flex; flex-direction: column; min-height: 0; transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease; }
    .product-info-sheet .product-info-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
    .product-info-sheet .product-info-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); }
    .product-info-sheet .product-info-close { width: 40px; height: 40px; border: none; background: none; font-size: 20px; cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center; }
    .product-info-sheet .product-info-body { flex: 1; min-height: 0; padding: 20px; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; font-size: 15px; line-height: 1.65; color: var(--text); word-break: break-word; }
    .product-info-sheet .pinfo-intro { margin: 0 0 16px; white-space: pre-wrap; }
    .product-info-sheet .pinfo-designer { margin: 0 0 16px; font-size: 15px; }
    .product-info-sheet .pinfo-designer strong { display: block; font-weight: 700; margin-bottom: 4px; }
    .product-info-sheet .pinfo-art { margin: 0 0 20px; font-size: 14px; color: var(--text); }
    .product-info-sheet .pinfo-art-badge { display: inline-block; margin-left: 6px; padding: 4px 10px; background: #1a1a1a; color: #fff; font-weight: 700; font-size: 13px; border-radius: 4px; letter-spacing: 0.02em; }
    .product-info-sheet .pinfo-acc { margin: 0 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); overflow: hidden; }
    .product-info-sheet .pinfo-acc summary { padding: 14px 16px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; -webkit-tap-highlight-color: transparent; }
    .product-info-sheet .pinfo-acc summary::-webkit-details-marker { display: none; }
    .product-info-sheet .pinfo-acc summary::after { content: '›'; font-size: 18px; color: var(--muted); transform: rotate(90deg); transition: transform 0.2s; }
    .product-info-sheet .pinfo-acc[open] summary::after { transform: rotate(-90deg); }
    .product-info-sheet .pinfo-acc-body { padding: 0 16px 14px; font-size: 14px; line-height: 1.7; color: var(--text); border-top: 1px solid var(--border); }
    .product-info-sheet .pinfo-mat-line { margin: 10px 0 0; }
    .product-info-sheet .pinfo-mat-line strong { font-weight: 700; }
    .product-info-sheet .pinfo-care-block { margin-top: 12px; }
    .product-info-sheet .pinfo-care-block:first-child { margin-top: 10px; }
    .product-info-sheet .pinfo-care-head { font-weight: 700; margin: 0 0 4px; }
    .product-info-sheet .pinfo-care-line { margin: 0 0 2px; padding-left: 14px; position: relative; }
    .product-info-sheet .pinfo-care-line::before { content: '•'; position: absolute; left: 0; }
    .product-info-sheet .pinfo-doc-group { margin-top: 12px; }
    .product-info-sheet .pinfo-doc-group:first-child { margin-top: 10px; }
    .product-info-sheet .pinfo-doc-group-title { font-weight: 700; margin: 0 0 8px; font-size: 14px; }
    .product-info-sheet .pinfo-doc-link { display: flex; align-items: center; gap: 10px; padding: 10px 0; text-decoration: none; color: var(--text); border-top: 1px solid var(--border); }
    .product-info-sheet .pinfo-doc-link:first-of-type { border-top: none; padding-top: 0; }
    .product-info-sheet .pinfo-doc-link:hover { color: var(--add-btn); }
    .product-info-sheet .pinfo-doc-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; letter-spacing: 0.02em; }
    .product-info-sheet .pinfo-doc-text { flex: 1; min-width: 0; }
    .product-info-sheet .pinfo-doc-label { font-weight: 600; font-size: 14px; line-height: 1.3; }
    .product-info-sheet .pinfo-doc-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
    .product-info-sheet .pinfo-doc-ext { flex-shrink: 0; color: var(--muted); font-size: 14px; }
    .product-info-sheet .pinfo-video-wrap { margin-top: 10px; }
    .product-info-sheet .pinfo-video-wrap:first-child { margin-top: 0; }
    .product-info-sheet .pinfo-video { width: 100%; max-height: 52vh; border-radius: 10px; background: #111; display: block; }
    .product-info-sheet .pinfo-video-label { margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.35; }
    @media (min-width: 900px) {
      .product-info-overlay.show {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 24px;
        cursor: pointer;
      }
      .product-info-sheet {
        position: relative;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;
        width: 100%;
        max-width: 520px;
        max-height: min(86vh, 720px);
        border-radius: 16px;
        margin: 0;
        transform: none !important;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
        border: 1px solid var(--border);
        cursor: auto;
      }
      .product-info-overlay.show .product-info-sheet {
        transform: none !important;
        opacity: 1;
      }
      .product-info-overlay.show.closing .product-info-sheet {
        transform: translateY(12px) scale(0.98) !important;
        opacity: 0;
      }
    }

    /* Корзина */
    .cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 25; display: none; }
    .cart-overlay.show { display: block; }
    .cart-sheet { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 360px; background: var(--bg); box-shadow: -4px 0 20px rgba(0,0,0,0.15); z-index: 26; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.25s ease; }
    .cart-overlay.show .cart-sheet { transform: translateX(0); }
    .cart-sheet .cart-head { padding: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
    .cart-payment-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #f5f5f5; border-bottom: 1px solid var(--border); font-size: 13px; }
    .cart-payment-toggle { display: flex; gap: 6px; }
    .cart-pay-btn { padding: 6px 12px; border: 1px solid var(--border); background: var(--bg); border-radius: 16px; font-size: 12px; cursor: pointer; transition: all 0.15s; }
    .cart-pay-btn.active { background: var(--add-btn); color: #fff; border-color: var(--add-btn); }
    .cart-sheet .cart-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
    .cart-sheet .cart-close { width: 40px; height: 40px; border: none; background: none; font-size: 20px; cursor: pointer; color: var(--text); }
    .cart-clear-row {
      padding: 6px 16px 10px;
      border-bottom: 1px solid var(--border);
      background: var(--bg);
      flex-shrink: 0;
      text-align: right;
    }
    .cart-clear-row[hidden] { display: none !important; }
    .cart-clear-btn {
      border: none; background: none; color: #c62828; font-size: 13px; font-weight: 600;
      padding: 4px 0; cursor: pointer; text-align: right;
      -webkit-tap-highlight-color: transparent;
    }
    .cart-clear-btn:active { opacity: 0.75; }
    .cart-sheet .cart-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; -webkit-overflow-scrolling: touch; }
    .cart-sheet .cart-empty { text-align: center; padding: 32px 16px; color: var(--muted); font-size: 15px; }
    .cart-food-notice { background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; color: #856404; }
    .cart-food-notice a { color: var(--add-btn); text-decoration: none; font-weight: 600; }
    .checkout-min-order-notice {
      display: none;
      margin: 0 0 12px;
      padding: 10px 12px;
      border-radius: 8px;
      border: 1px solid #ffc107;
      background: #fff8e1;
      font-size: 13px;
      color: #5d4037;
      line-height: 1.35;
    }
    .checkout-food-notice { background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px; padding: 10px 12px; margin: 12px 0; font-size: 13px; color: #856404; }
    .checkout-food-notice a { color: var(--add-btn); text-decoration: none; font-weight: 600; }
    .cart-sheet .cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .cart-sheet .cart-item:last-child { border-bottom: none; }
    .cart-sheet .cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--card); }
    .cart-sheet .cart-item a.cart-item-img { display: block; flex-shrink: 0; cursor: pointer; }
    .cart-sheet .cart-item .cart-item-ct { flex: 1; min-width: 0; }
    .cart-sheet .cart-item .cart-item-ttl { font-size: 13px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); text-decoration: none; }
    .cart-sheet .cart-item a.cart-item-ttl:hover { text-decoration: underline; }
    .cart-sheet .cart-item .cart-item-meta { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
    .cart-sheet .cart-item .cart-item-meta .cart-price-meta--sale { display: inline; white-space: normal; }
    .cart-sheet .cart-item .cart-item-meta .cart-price-eq { margin: 0 3px; color: var(--muted); }
    .cart-sheet .cart-item .cart-item-meta .price-block--inline { display: inline-flex; flex-direction: row; align-items: baseline; gap: 6px; vertical-align: baseline; white-space: nowrap; }
    .cart-sheet .cart-item .cart-item-meta .price-block--inline .price-original { text-decoration: line-through; color: var(--text); font-weight: 500; font-size: 11px; line-height: 1.2; }
    .cart-sheet .cart-item .cart-item-meta .price-block--inline .price-promo { color: #CC0008; font-weight: 700; font-size: 13px; line-height: 1.2; }
    .cart-sheet .cart-item .cart-item-meta .cart-item-avail { display: block; margin-top: 4px; font-size: 11px; }
    .cart-sheet .cart-item .cart-item-qty { margin-top: 6px; position: relative; z-index: 2; }
    .checkout-item-actions .qty-stepper-wrap { position: relative; }

    /* Чекаут — полноэкранный */
    .checkout-screen {
      position: fixed; inset: 0; background: #f5f5f5; z-index: 100;
      display: none; flex-direction: column; overflow: hidden;
      height: 100%; height: 100dvh;
    }
    .checkout-screen.show { display: flex; }
    /* Иначе на части устройств/стеков листинг остаётся «сверху» при #checkout — прячем каталог под чекаутом */
    body.checkout-active .app { display: none !important; }
    body.checkout-active #checkoutScreen.checkout-screen.show { z-index: 10050; display: flex !important; visibility: visible !important; }
    .checkout-head {
      flex-shrink: 0;
      padding: max(16px, env(safe-area-inset-top, 0px)) 0 16px;
      border-bottom: 1px solid var(--border);
      background: #fff;
      z-index: 20;
      position: relative;
    }
    .checkout-head-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 640px;
      margin: 0 auto;
      width: 100%;
      box-sizing: border-box;
      padding: 0 12px;
    }
    .checkout-head-spacer { width: 40px; flex-shrink: 0; }
    .checkout-head h2 { margin: 0; font-size: 18px; }
    .checkout-back { background: none; border: none; font-size: 24px; padding: 4px 8px; cursor: pointer; color: var(--text); }
    .checkout-body {
      padding: 12px;
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      max-width: 640px;
      margin: 0 auto;
      width: 100%;
      box-sizing: border-box;
      background: #f5f5f5;
    }
    .checkout-step { font-weight: 600; margin: 0 0 8px; font-size: 14px; }
    .checkout-delivery { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
    .checkout-sdek-options { margin-bottom: 16px; padding: 12px; background: #f0f0f0; border-radius: 8px; }
    .checkout-chip { padding: 10px 14px; border: 1px solid var(--border); background: var(--card); border-radius: 8px; font-size: 14px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
    .checkout-chip.active { background: var(--add-btn); color: #fff; border-color: var(--add-btn); }
    .checkout-field { display: block; margin-bottom: 12px; }
    .checkout-field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
    .checkout-field input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; box-sizing: border-box; }
    .checkout-pickup-info { display: none; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 16px; font-size: 14px; }
    .checkout-pickup-info.show { display: block; }
    .checkout-pickup-info strong { display: block; margin-bottom: 4px; }
    .checkout-pickup-address {
      display: inline;
      margin: 0;
      line-height: 1.45;
      font-weight: 700;
      color: var(--text);
      cursor: pointer;
      border-bottom: 1px dashed var(--muted);
      transition: color 0.15s, border-color 0.15s;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }
    .checkout-pickup-address:hover { color: var(--add-btn); }
    .checkout-pickup-address.checkout-pickup-address--copied {
      color: #15803d;
      border-bottom-color: rgba(21, 128, 61, 0.45);
    }
    .checkout-pickup-note { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
    .checkout-pickup-map-btn {
      display: block;
      width: 100%;
      margin-top: 10px;
      padding: 10px 14px;
      border: 1px solid var(--add-btn);
      border-radius: 8px;
      background: #fff;
      color: var(--add-btn);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      touch-action: manipulation;
    }
    .checkout-pickup-map-btn:hover { background: rgba(0, 88, 163, 0.06); }
    .checkout-pickup-map-wrap { display: none; margin-top: 12px; }
    .checkout-pickup-map-wrap.show { display: block; }
    .checkout-pickup-map {
      width: 100%;
      height: 240px;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: #e8e8e8;
      touch-action: pan-x pan-y pinch-zoom;
    }
    @media (min-width: 720px) {
      .checkout-pickup-map { height: 280px; }
    }
    .checkout-total-line { font-weight: 700; font-size: 18px; margin: 20px 0 16px; }
    .checkout-submit-btn { width: 100%; padding: 16px 32px; border: none; border-radius: 64px; background: var(--add-btn); color: #fff; font-weight: 600; font-size: 16px; cursor: pointer; transition: background 0.15s; margin-bottom: 24px; }
    .checkout-submit-btn:hover { background: #004785; }
    .checkout-submit-btn:active { background: #003d73; }
    .checkout-section { background: var(--bg); margin-bottom: 12px; padding: 16px; border-radius: 12px; border: 1px solid var(--border); }
    .checkout-section-title { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
    .checkout-section-hint { font-size: 13px; color: var(--muted); margin: 0 0 16px; line-height: 1.4; }
    .checkout-label { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
    .checkout-item { display: flex; flex-direction: column; padding: 16px 0; border-bottom: 1px solid var(--border); }
    .checkout-item:last-child { border-bottom: none; }
    .checkout-item-row { display: flex; gap: 12px; }
    .checkout-item-img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: #e8e8e8; flex-shrink: 0; }
    .checkout-item-info { flex: 1; min-width: 0; }
    .checkout-item-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
    .checkout-item-desc { font-size: 13px; color: var(--muted); margin: 0 0 4px; line-height: 1.3; }
    .checkout-item-unit { font-size: 13px; color: var(--muted); }
    .checkout-item-unit .price-block--inline { display: inline-flex; flex-direction: row; align-items: baseline; gap: 6px; }
    .checkout-item-unit .price-block--inline .price-original { text-decoration: line-through; color: var(--text); font-weight: 500; font-size: 11px; line-height: 1.2; }
    .checkout-item-unit .price-block--inline .price-promo { color: #CC0008; font-weight: 700; font-size: 13px; line-height: 1.2; }
    .checkout-item-price .price-block--sale { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 1px; }
    .checkout-item-price .price-original { text-decoration: line-through; color: var(--text); font-weight: 500; font-size: 11px; line-height: 1.2; }
    .checkout-item-price .price-promo { color: #CC0008; font-weight: 700; font-size: 16px; line-height: 1.2; }
    .checkout-item-price { font-size: 16px; font-weight: 700; text-align: right; white-space: nowrap; }
    .checkout-item-actions { margin-top: 12px; padding-left: 84px; }
    .checkout-item-controls {
      display: flex;
      align-items: flex-start;
      gap: 16px;
    }
    .checkout-item-controls .checkout-item-remove {
      height: 30px;
      display: inline-flex;
      align-items: center;
      padding: 0;
      margin: 0;
      flex-shrink: 0;
    }
    .checkout-item-remove { background: none; border: none; color: var(--text); font-size: 14px; cursor: pointer; }
    .checkout-item-remove:hover { color: #d32f2f; }
    .checkout-delivery-note { font-size: 12px; color: var(--muted); text-align: center; padding: 12px 0; margin-top: 8px; border-top: 1px solid var(--border); line-height: 1.4; }
    .checkout-yandex-pvz { margin: -4px 0 12px; }
    .checkout-yandex-pvz-label {
      font-size: 13px;
      color: var(--muted);
      margin: 0 0 8px;
    }
    .checkout-yandex-pvz-empty {
      margin: 0 0 10px;
      padding: 12px 14px;
      border: 1px dashed var(--border);
      border-radius: 8px;
      font-size: 14px;
      color: var(--muted);
      line-height: 1.4;
    }
    .checkout-yandex-pvz.error .checkout-yandex-pvz-empty {
      border-color: #d32f2f;
      color: #d32f2f;
      background: #fff5f5;
    }
    .checkout-yandex-pvz-btn {
      width: 100%;
      padding: 12px 16px;
      border: 1px solid var(--add-btn);
      border-radius: 8px;
      background: #fff;
      color: var(--add-btn);
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
    }
    .checkout-yandex-pvz-btn:hover { background: rgba(0, 88, 163, 0.06); }
    .checkout-yandex-pvz-hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.4; }
    .checkout-sdek-courier-details { margin: 0 0 12px; }
    .checkout-sdek-courier-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 8px;
    }
    .checkout-field--compact { margin-bottom: 0; }
    .checkout-sdek-courier-comment textarea {
      width: 100%;
      min-height: 72px;
      padding: 12px 14px;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 16px;
      box-sizing: border-box;
      resize: vertical;
      font-family: inherit;
    }
    .checkout-sdek-courier-comment.error textarea { border-color: #d32f2f; background: #fff5f5; }
    .checkout-yandex-pvz-selected {
      margin: 8px 0 0;
      padding: 10px 12px;
      border-radius: 8px;
      background: rgba(0, 88, 163, 0.06);
      border: 1px solid rgba(0, 88, 163, 0.15);
      font-size: 13px;
      line-height: 1.4;
      color: var(--text);
      white-space: pre-line;
    }
    .checkout-field input[readonly] { background: #f7f7f7; color: var(--text); }
    .yandex-pvz-modal {
      position: fixed;
      inset: 0;
      z-index: 10080;
      display: none;
      align-items: stretch;
      justify-content: stretch;
      padding: 0;
      box-sizing: border-box;
    }
    .yandex-pvz-modal.show { display: flex; }
    body.yandex-pvz-modal-open { overflow: hidden; }
    #sdekPvzWidgetContainer,
    #sdekPvzWidgetRoot {
      flex: 1;
      width: 100%;
      min-height: 360px;
      height: 100%;
    }
    /* Тариф в виджете СДЭК — технический (для кнопки «Выбрать»), цену клиенту не показываем */
    #sdekPvzWidgetContainer .cdek-pog16f,
    #sdekPvzWidgetContainer [class*="cdek-pog"] {
      font-size: 14px;
    }
    /* Мобилка: боковая панель СДЭК (18rem) съедает карту — компактная нижняя шторка */
    @media (max-width: 719px) {
      #sdekPvzWidgetContainer .cdek-dorbss,
      #sdekPvzWidgetContainer .cdek-uv033b,
      #sdekPvzWidgetRoot .cdek-dorbss,
      #sdekPvzWidgetRoot .cdek-uv033b {
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: min(40vh, 280px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 14px 14px 0 0 !important;
        box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.14) !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
      }
      #sdekPvzWidgetContainer .cdek-dorbss.cdek-i5n42d,
      #sdekPvzWidgetContainer .cdek-uv033b.cdek-i5n42d,
      #sdekPvzWidgetRoot .cdek-dorbss.cdek-i5n42d,
      #sdekPvzWidgetRoot .cdek-uv033b.cdek-i5n42d {
        right: 0 !important;
        bottom: -110% !important;
      }
      #sdekPvzWidgetContainer .cdek-lipuny,
      #sdekPvzWidgetContainer .cdek-fsvu2f,
      #sdekPvzWidgetRoot .cdek-lipuny,
      #sdekPvzWidgetRoot .cdek-fsvu2f {
        margin-bottom: 0.35rem !important;
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
      }
      #sdekPvzWidgetContainer .cdek-kf9rpr,
      #sdekPvzWidgetRoot .cdek-kf9rpr {
        padding-top: 0.35rem !important;
      }
      #sdekPvzWidgetContainer .cdek-18beit,
      #sdekPvzWidgetRoot .cdek-18beit {
        margin-bottom: 0.35rem !important;
        padding: 0.3rem 0.35rem !important;
      }
      #sdekPvzWidgetContainer .cdek-7bgzk4,
      #sdekPvzWidgetRoot .cdek-7bgzk4 {
        font-size: 0.82rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
        font-weight: 600 !important;
      }
      #sdekPvzWidgetContainer .cdek-psbor4,
      #sdekPvzWidgetRoot .cdek-psbor4 {
        font-size: 0.68rem !important;
        gap: 0.25rem !important;
      }
      #sdekPvzWidgetContainer .cdek-c66dnq,
      #sdekPvzWidgetRoot .cdek-c66dnq {
        width: 100% !important;
        max-width: none !important;
      }
      /* ПВЗ: выпадашка фильтров не обрезается у края */
      #sdekPvzWidgetContainer.sdek-widget-mode-pvz .cdek-2dpwd5,
      #sdekPvzWidgetRoot.sdek-widget-mode-pvz .cdek-2dpwd5 {
        left: auto !important;
        right: 0.5rem !important;
        top: 2.75rem !important;
        transform: none !important;
        width: min(240px, calc(100vw - 1.5rem)) !important;
        max-width: calc(100vw - 1.5rem) !important;
        z-index: 100 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
        border-radius: 10px !important;
        padding: 10px 12px !important;
        white-space: normal !important;
      }
    }
    .yandex-pvz-modal-backdrop {
      display: none;
      position: absolute;
      inset: 0;
      z-index: 0;
      background: rgba(17, 17, 17, 0.52);
    }
    .yandex-pvz-modal-sheet {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 100%;
      min-height: 100dvh;
      max-width: none;
      max-height: none;
      background: var(--bg);
      border-radius: 0;
      overflow: hidden;
      box-shadow: none;
    }
    .yandex-pvz-modal-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      border-bottom: 1px solid var(--border);
      background: #fff;
      flex-shrink: 0;
    }
    .yandex-pvz-modal-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
    .yandex-pvz-modal-close {
      width: 36px;
      height: 36px;
      border: none;
      border-radius: 50%;
      background: #f0f0f0;
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
      color: var(--text);
      flex-shrink: 0;
    }
    .yandex-pvz-modal-close:hover { background: #e4e4e4; }
    .yandex-pvz-modal-body {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      background: #fff;
    }
    .yandex-pvz-widget-container {
      flex: 1;
      width: 100%;
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      overflow: hidden;
      position: relative;
      isolation: isolate;
    }
    /* Панель поиска поверх карты — клики мимо инпута должны доходить до ymaps */
    #yandexPvzWidgetContainer .widget__panel {
      z-index: 5 !important;
      pointer-events: none !important;
    }
    /* У виджета .widget__content { pointer-events:none } + auto на детях; не включать auto на весь content */
    #yandexPvzWidgetContainer .widget__content > * {
      pointer-events: auto !important;
    }
    #yandexPvzWidgetContainer .widget__map,
    #yandexPvzWidgetContainer #map {
      z-index: 0 !important;
      pointer-events: auto !important;
      touch-action: pan-x pan-y pinch-zoom;
    }
    /* Не ломаем состояние .widget__input--search (font-size:0 → .active) у виджета Яндекс */
    #yandexPvzWidgetContainer .widget__content {
      min-width: 0 !important;
      max-width: 380px !important;
    }
    #yandexPvzWidgetContainer .widget__header {
      padding: 8px 10px 10px !important;
      border-radius: 12px !important;
    }
    #yandexPvzWidgetContainer .widget__form-item:not(:last-child) {
      padding-bottom: 6px !important;
    }
    #yandexPvzWidgetContainer .widget__label-img {
      width: 20px !important;
      height: 20px !important;
    }
    #yandexPvzWidgetContainer .widget__title-text {
      font-size: 15px !important;
      line-height: 1.2 !important;
    }
    #yandexPvzWidgetContainer .ydw-widget__header-mobile {
      height: auto !important;
      max-height: 96px !important;
    }
    @media (max-width: 719px) {
      .yandex-pvz-modal-head {
        padding-top: max(12px, env(safe-area-inset-top, 0px));
      }
      #yandexPvzWidgetContainer .widget__content {
        max-width: none !important;
      }
    }
    @media (min-width: 720px) {
      .yandex-pvz-modal {
        align-items: center;
        justify-content: center;
        padding: 28px 24px;
      }
      .yandex-pvz-modal-backdrop { display: block; }
      .yandex-pvz-modal-sheet {
        width: min(1120px, calc(100vw - 48px));
        height: min(86vh, 760px);
        min-height: 520px;
        max-height: 86vh;
        border-radius: 16px;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.06);
      }
      .yandex-pvz-modal-head {
        padding: 16px 20px;
        border-radius: 16px 16px 0 0;
      }
      .yandex-pvz-modal-head h3 { font-size: 18px; }
      #yandexPvzWidgetContainer .widget__content {
        max-width: 380px !important;
      }
    }
    .checkout-heavy-warning { margin: 16px 0; padding: 12px; border: 2px solid #e53935; border-radius: 8px; background: #fff5f5; }
    .checkout-heavy-header { font-weight: 700; font-size: 14px; color: #e53935; margin-bottom: 8px; }
    .checkout-heavy-body { font-size: 13px; color: #333; margin-bottom: 8px; }
    .checkout-heavy-body div { margin-bottom: 4px; }
    .checkout-heavy-footer { font-size: 12px; color: #666; line-height: 1.4; }
    .checkout-payment-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); }
    .checkout-payment-label { font-size: 14px; color: var(--text); }
    .checkout-payment-toggle { display: flex; gap: 8px; }
    .checkout-pay-btn { padding: 8px 14px; border: 1px solid var(--border); background: var(--bg); border-radius: 20px; font-size: 13px; cursor: pointer; transition: all 0.15s; }
    .checkout-pay-btn.active { background: var(--add-btn); color: #fff; border-color: var(--add-btn); }
    .checkout-total-line { font-weight: 700; font-size: 18px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }
    .checkout-field.error input { border-color: #d32f2f; background: #fff5f5; }
    .checkout-field .error-hint { display: none; font-size: 12px; color: #d32f2f; margin-top: 4px; }
    .checkout-field.error .error-hint { display: block; }
    .checkout-chip.error { border-color: #d32f2f; }
    .checkout-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .checkout-bonus-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
    .checkout-bonus-choice { display: flex; gap: 8px; margin-bottom: 12px; }
    .checkout-bonus-input { margin-top: 8px; }
    .checkout-bonus-field { display: flex; align-items: center; gap: 12px; }
    .checkout-bonus-label { font-size: 14px; color: var(--text); white-space: nowrap; }
    .checkout-bonus-label strong { font-weight: 600; }
    .checkout-bonus-field input { flex: 1; max-width: 120px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; }

    /* Десктоп: оформление заказа в одном стиле с корзиной (секции, кнопки) */
    @media (min-width: 900px) {
      .checkout-screen {
        background: #f5f5f5;
      }
      /* Скролл на весь экран — полоса у правого края, не у узкой колонки */
      body.checkout-active .checkout-screen.show {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
      body.checkout-active .checkout-screen .checkout-head {
        position: sticky;
        top: 0;
        z-index: 30;
      }
      .checkout-head {
        padding: 16px 0;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
      }
      .checkout-head-inner {
        max-width: 720px;
        padding: 0 24px;
      }
      .checkout-head h2 {
        font-size: 18px;
        font-weight: 700;
      }
      body.checkout-active .checkout-screen .checkout-body {
        flex: 0 0 auto;
        min-height: 0;
        overflow-y: visible;
        overflow-x: hidden;
      }
      .checkout-body {
        max-width: 720px;
        padding: 20px 24px 40px;
      }
      .checkout-section {
        padding: 18px 20px;
        border-radius: 12px;
      }
      /* только блок «Способ доставки» (4 кнопки); СДЭК-подтип — отдельно ниже */
      #checkoutDelivery.checkout-delivery {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }
      #checkoutSdekType.checkout-delivery {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }
      .checkout-delivery .checkout-chip {
        padding: 12px 14px;
        font-weight: 600;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .checkout-field input {
        max-width: 100%;
      }
      .checkout-submit-btn {
        border-radius: 64px;
        margin-top: 8px;
      }
    }
    @media (min-width: 1100px) {
      #checkoutDelivery.checkout-delivery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    /* Спасибо за заказ */
    .thankyou-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 101; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
    .thankyou-overlay.show { display: flex; }
    .thankyou-sheet { position: relative; background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%); border-radius: 24px; padding: 40px 32px; text-align: center; max-width: 340px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
    .thankyou-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: none; background: #f0f0f0; border-radius: 50%; font-size: 16px; color: #666; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
    .thankyou-close:hover { background: #e0e0e0; }
    .thankyou-icon { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%); color: #fff; font-size: 40px; line-height: 80px; margin: 0 auto 24px; box-shadow: 0 8px 24px rgba(46,125,50,0.3); }
    .thankyou-sheet h2 { margin: 0 0 16px; font-size: 24px; font-weight: 700; color: #1a1a1a; }
    .thankyou-order { margin: 0 0 8px; font-size: 16px; color: #333; }
    .thankyou-order strong { font-size: 20px; font-weight: 700; color: var(--add-btn); cursor: pointer; border-bottom: 1px dashed var(--add-btn); }
    .thankyou-order strong:active { opacity: 0.7; }
    .thankyou-hint { color: #666; font-size: 14px; margin: 0 0 12px; line-height: 1.5; }
    .thankyou-bot-hint { font-size: 14px; color: #333; margin: 0 0 24px; padding: 12px; background: #e8f0f8; border-radius: 8px; }
    .thankyou-bot-hint a { color: var(--add-btn); font-weight: 600; text-decoration: none; }
    .thankyou-bot-hint a:hover { text-decoration: underline; }
    .thankyou-sheet .thankyou-btn { display: block; width: 100%; padding: 14px 24px; background: var(--add-btn); color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
    .thankyou-sheet .thankyou-btn:hover { background: #004785; }

    /* Лайтбокс для фото */
    .lightbox { position: fixed; inset: 0; background: #000; z-index: 200; display: none; flex-direction: column; }
    .lightbox.show { display: flex; }
    .lightbox-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(0,0,0,0.5); position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
    .lightbox-counter { color: #fff; font-size: 14px; font-weight: 500; }
    .lightbox-close { width: 40px; height: 40px; border: none; background: rgba(255,255,255,0.2); border-radius: 50%; color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .lightbox-body { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
    .lightbox-body::-webkit-scrollbar { display: none; }
    .lightbox-slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
    .lightbox-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }

    /* Чекбокс согласия в корзине */
    .cart-consent { display: flex; align-items: flex-start; gap: 8px; padding: 12px 0 8px; font-size: 13px; color: var(--text); cursor: pointer; }
    .cart-consent input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
    .cart-consent span { line-height: 1.4; }
    .cart-consent a { color: var(--accent); text-decoration: underline; cursor: pointer; }
    .cart-sheet .cart-item .cart-item-rmv { margin-top: 4px; display: inline-block; background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
    .cart-sheet .cart-foot { padding: 16px; border-top: 1px solid var(--border); flex-shrink: 0; }
    /* Telegram Mini App: fixed + bottom:0 сжимается с клавиатурой — контейнер с locked height, sheet absolute внутри. */
    html.dvz-tg-webapp .cart-overlay.show {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: auto !important;
      height: var(--dvz-cart-stable-h, var(--tg-viewport-stable-height, 100vh)) !important;
      max-height: var(--dvz-cart-stable-h, var(--tg-viewport-stable-height, 100vh)) !important;
      overflow: hidden !important;
    }
    html.dvz-tg-webapp .cart-overlay.show .cart-sheet {
      position: absolute !important;
      top: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      left: auto !important;
      width: 100% !important;
      max-width: 360px !important;
      height: 100% !important;
      max-height: 100% !important;
    }
    /* Пока вводим количество — прячем футер, чтобы не перекрывал товары над клавиатурой. */
    html.dvz-tg-webapp.dvz-cart-qty-editing .cart-overlay.show .cart-foot {
      display: none !important;
    }
    .cart-sheet .cart-total { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
    .cart-sheet .cart-order-btn { width: 100%; padding: 16px 32px; border: none; border-radius: 64px; background: var(--add-btn); color: #fff; font-weight: 600; font-size: 16px; cursor: pointer; transition: background 0.15s; }
    .cart-sheet .cart-order-btn:hover:not(:disabled) { background: #004785; }
    .cart-sheet .cart-order-btn:active:not(:disabled) { background: #003d73; }
    .cart-sheet .cart-order-btn:disabled { opacity: 0.6; cursor: not-allowed; }
    .cart-sheet .cart-order-btn.cart-order-btn-guest { background: #ffb300; color: #111; }
    .cart-sheet .cart-order-btn.cart-order-btn-guest:hover:not(:disabled) { background: #ffa000; }
    .cart-sheet .cart-order-btn.cart-order-btn-guest:active:not(:disabled) { background: #ff8f00; }
    .cart-sheet .cart-order-hint { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }

    /* Экран входа / аккаунта */
    .account-screen { position: fixed; inset: 0; background: var(--bg); z-index: 100; display: none; flex-direction: column; overflow: hidden; }
    .account-screen.show { display: flex; }
    .account-head { display: flex; flex-direction: column; flex-shrink: 0; padding: 0; background: #fff; }
    .account-brand-row {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding: 10px 12px 8px;
      border-bottom: 1px solid var(--border);
    }
    .account-brand-row .header-logo { display: flex; align-items: center; min-width: 0; text-decoration: none; color: inherit; max-width: 220px; }
    .account-brand-row .header-logo img { height: auto; width: auto; max-width: 220px; max-height: 44px; display: block; object-fit: contain; }
    .account-head-toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
    .account-back { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #f0f0f0; border: none; border-radius: 50%; font-size: 18px; cursor: pointer; flex-shrink: 0; }
    .account-head-toolbar h2 { margin: 0; font-size: 18px; font-weight: 600; flex: 1; min-width: 0; }
    .account-body { flex: 1; overflow-y: auto; padding: 16px; }
    .account-card-block {
      margin-bottom: 24px;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0, 88, 163, 0.25);
      background: linear-gradient(145deg, #0058a3 0%, #003d73 50%, #002d57 100%);
      padding: 20px 20px 24px;
      position: relative;
      min-height: 100px;
    }
    .account-card-block::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      opacity: 0.8;
    }
    .account-card-block .account-card-label { margin: 0 0 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
    .account-card-number { font-size: 22px; font-weight: 700; letter-spacing: 0.2em; color: #fff; font-variant-numeric: tabular-nums; margin-bottom: 20px; word-break: break-all; }
    .account-card-block .account-balance-wrap { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
    .account-card-block .account-balance { font-size: 28px; font-weight: 800; color: #fff; margin: 0; line-height: 1.2; }
    .account-card-block .account-balance-unit { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85); }
    .account-card-block .account-promo-line { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
    .account-card-block .account-promo-line .promo-icon { flex-shrink: 0; width: 18px; height: 18px; fill: rgba(255,255,255,0.9); }
    .account-tg-wrap { margin-bottom: 20px; }
    .account-tg-panel {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 16px;
      font-size: 14px;
      line-height: 1.5;
      color: var(--text);
    }
    .account-tg-panel h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
    .account-tg-panel p { margin: 0 0 10px; color: var(--muted); }
    .account-tg-panel p:last-child { margin-bottom: 0; }
    .account-tg-details .account-tg-panel--nested {
      background: transparent; border: none; padding: 0; box-shadow: none; margin: 0;
    }
    .account-tg-buyerid-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
    .account-tg-buyerid-row strong { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--accent); }
    .account-tg-copy-btn {
      padding: 8px 14px; font-size: 13px; font-weight: 600;
      border: 1px solid var(--border); border-radius: 10px; background: var(--bg); cursor: pointer; color: var(--text);
    }
    .account-tg-copy-btn:active { opacity: 0.85; }
    /* Без <details>: в Telegram WebView поле внутри закрытого details часто не получает фокус (кажется «неактивным»). */
    .account-tg-details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 14px 16px; position: relative; z-index: 1; }
    .account-tg-merge-toolbar { display: flex; justify-content: flex-end; align-items: center; margin: -4px 0 8px; min-height: 28px; }
    .account-tg-merge-collapse-btn {
      background: none; border: none; padding: 6px 4px; font-size: 13px; color: var(--muted); cursor: pointer;
      text-decoration: underline; font-weight: 500; -webkit-tap-highlight-color: transparent;
    }
    .account-tg-merge-collapse-btn:active { opacity: 0.75; }
    .account-tg-details.is-collapsed .account-tg-merge-expanded { display: none !important; }
    .account-tg-merge-collapsed-bar { display: none; padding: 10px 0 4px; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.45; }
    .account-tg-details.is-collapsed .account-tg-merge-collapsed-bar { display: block; }
    .account-tg-merge-heading {
      margin: 0 0 6px;
      font-size: 15px;
      font-weight: 600;
      text-align: center;
      line-height: 1.35;
    }
    .account-tg-merge-sub {
      margin: 0 0 12px;
      font-size: 12px;
      color: var(--muted);
      text-align: center;
      line-height: 1.4;
    }
    .account-tg-merge-site-link {
      color: var(--accent);
      font-weight: 600;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .account-tg-merge-site-link:hover { opacity: 0.88; }
    .account-tg-details .account-tg-merge-body { padding-top: 0; }
    .account-tg-details label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
    .account-tg-merge-input-wrap { position: relative; z-index: 2; margin-bottom: 12px; }
    .account-tg-details input {
      width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 16px; border-radius: 10px;
      border: 1px solid var(--border); margin-bottom: 0;
      touch-action: manipulation; -webkit-user-select: text; user-select: text;
    }
    .account-tg-merge-btn {
      width: 100%; padding: 14px; font-size: 15px; font-weight: 600; border: none; border-radius: 12px;
      background: var(--accent); color: #fff; cursor: pointer;
    }
    .account-tg-merge-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .account-tg-merge-hint { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
    .account-orders-title { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
    .account-order-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; text-decoration: none; color: inherit; }
    .account-order-row:last-child { border-bottom: none; }
    .account-order-row:active { background: var(--card); }
    .account-order-left { flex: 1; min-width: 0; }
    .account-order-num { font-weight: 700; font-size: 15px; color: var(--accent); }
    .account-order-date { font-size: 13px; color: var(--muted); margin-top: 2px; }
    /* Статусы заказа — бейджи как в крупных маркетплейсах (фон + контрастный текст) */
    .account-order-status,
    .account-detail-block .status-tag,
    .account-detail-block p.status-tag {
      display: inline-block;
      font-size: 12px;
      font-weight: 600;
      line-height: 1.35;
      padding: 4px 10px;
      border-radius: 999px;
      white-space: nowrap;
      max-width: 100%;
      vertical-align: middle;
    }
    .account-order-status.status-oformlen,
    .account-detail-block .status-oformlen { background: #e3f2fd; color: #1565c0; }
    .account-order-status.status-soglasovanie,
    .account-detail-block .status-soglasovanie { background: #fff8e1; color: #f57f17; }
    .account-order-status.status-v-rabote,
    .account-detail-block .status-v-rabote { background: #fff3e0; color: #e65100; }
    .account-order-status.status-v-puti,
    .account-detail-block .status-v-puti { background: #e8eaf6; color: #3949ab; }
    .account-order-status.status-v-puti-msk,
    .account-detail-block .status-v-puti-msk { background: #ede7f6; color: #5e35b1; }
    .account-order-status.status-pribyl,
    .account-detail-block .status-pribyl { background: #fff3e0; color: #ef6c00; border: 1px solid #ffcc80; }
    .account-order-status.status-vydan,
    .account-detail-block .status-vydan { background: #e8f5e9; color: #2e7d32; }
    .account-order-status.status-otmena,
    .account-detail-block .status-otmena { background: #ffebee; color: #c62828; }
    .account-order-status.status-custom,
    .account-detail-block .status-custom { background: #f5f5f5; color: #616161; }
    .account-order-total { font-weight: 600; font-size: 15px; white-space: nowrap; }
    .account-order-total-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
    .account-order-loyalty-spent { font-size: 12px; color: var(--muted); line-height: 1.25; white-space: nowrap; }
    .account-order-loyalty-earned { font-size: 12px; color: #2e7d32; font-weight: 500; line-height: 1.25; white-space: nowrap; }
    .account-orders-pager {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
      margin: 8px 0 16px;
      padding: 10px 8px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 12px;
    }
    .account-orders-pager-btn {
      min-width: 88px;
      padding: 8px 14px;
      font-size: 14px;
      font-weight: 600;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--bg);
      color: var(--text);
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
    .account-orders-pager-btn:active:not(:disabled) { opacity: 0.85; }
    .account-orders-pager-btn:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }
    .account-orders-pager-info {
      font-size: 14px;
      font-weight: 600;
      color: var(--muted);
      min-width: 4.5em;
      text-align: center;
      font-variant-numeric: tabular-nums;
    }
    .account-empty { text-align: center; color: var(--muted); padding: 24px 16px; font-size: 14px; }
    .account-detail { display: none; }
    .account-detail.show { display: block; }
    .account-list { display: block; }
    .account-list.hide { display: none; }
    .account-detail-back { background: none; border: none; color: var(--accent); font-size: 14px; cursor: pointer; padding: 8px 0; margin-bottom: 12px; }
    .account-detail-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
    .account-detail-section h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--text); }
    .account-detail-block { margin-bottom: 16px; }
    .account-detail-block:last-child { margin-bottom: 0; }
    .account-detail-block h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; }
    .account-detail-block p { margin: 0; font-size: 14px; white-space: pre-line; }
    .account-detail-items { margin-top: 20px; }
    .account-detail-items h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--text); }
    .account-item-row { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; cursor: pointer; text-decoration: none; color: inherit; align-items: center; }
    .account-item-row:last-of-type { border-bottom: none; }
    .account-item-row:hover { background: rgba(0,0,0,0.03); }
    .account-item-row:active { background: rgba(0,0,0,0.06); }
    .account-item-row .name { flex: 1; min-width: 0; }
    .account-item-row .qty { white-space: nowrap; color: var(--muted); }
    .account-item-row .sum { font-weight: 600; white-space: nowrap; }
    .account-item-row .sum .price-block--sale { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 1px; }
    .account-item-row .sum .price-original { text-decoration: line-through; color: var(--text); font-weight: 500; font-size: 12px; line-height: 1.2; }
    .account-item-row .sum .price-promo { color: #CC0008; font-weight: 700; font-size: 14px; line-height: 1.2; }
    .account-detail-items-totals { margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--border); background: rgba(0,0,0,0.03); border-radius: 8px; padding: 16px; margin-left: -4px; margin-right: -4px; margin-bottom: -4px; }
    .account-detail-total-line { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 14px; color: var(--text); }
    .account-detail-total-line.account-detail-bonus { color: var(--muted); }
    .account-detail-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
    .account-loading { text-align: center; padding: 24px; color: var(--muted); }

    .account-auth { margin-top: 8px; padding: 16px 14px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,0.03); }
    /* Форма входа: без лишних отступов; autocomplete/username — для сохранения пароля в браузере */
    #accountLoginForm { margin: 0; padding: 0; border: none; background: none; max-width: 100%; }
    .account-auth-title { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
    .account-auth-columns { display: flex; flex-direction: column; gap: 16px; }
    @media (min-width: 640px) {
      .account-auth-columns { flex-direction: row; }
    }
    .account-auth-col { flex: 1; min-width: 0; }
    .account-auth-col h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
    .account-auth-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 13px; }
    .account-auth-field span { color: var(--muted); }
    .account-auth-field input { border-radius: 12px; border: 1px solid var(--border); padding: 11px 14px; font-size: 15px; outline: none; background: #fafafa; }
    .account-auth-field input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 1px rgba(0,88,163,0.12); }
    .account-auth-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
    .account-auth-consent input { margin-top: 2px; }
    .account-auth-consent a { color: var(--accent); text-decoration: underline; cursor: pointer; }
    .account-auth-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border-radius: 999px; border: none; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s, transform 0.05s; width: 100%; }
    .account-auth-btn:hover { background: #004785; }
    .account-auth-btn:active { transform: translateY(1px); background: #003d73; }
    .account-auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
    .account-auth-btn-secondary { background: #ffb300; color: #111; }
    .account-auth-btn-secondary:hover { background: #ffa000; }
    .account-auth-question { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
    .account-auth-hint { display: block; margin: -4px 0 8px; font-size: 12px; line-height: 1.35; color: var(--muted); font-weight: 400; }
    .account-auth-msg { margin-top: 8px; font-size: 12px; min-height: 16px; }
    .account-auth-forgot-wrap { margin: -4px 0 10px; text-align: center; }
    .account-auth-inline-link { background: none; border: none; padding: 6px 4px; color: var(--accent); font-size: 14px; cursor: pointer; text-decoration: underline; font-weight: 500; }
    .account-auth-inline-link:hover { opacity: 0.85; }
    .account-auth-forgot-panel { margin-bottom: 8px; padding-top: 4px; border-top: 1px dashed var(--border); }
    .account-auth-back-wrap { margin: 0 0 12px; text-align: left; }
    .account-auth-single { width: 100%; max-width: 100%; }
    .account-auth-pending-reset { margin-bottom: 18px; padding: 14px 14px 16px; background: linear-gradient(135deg, #f3e5f5 0%, #ede7f6 100%); border: 1px solid #e1bee7; border-radius: 12px; text-align: center; }
    .account-auth-pending-reset-text { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: #4a148c; }
    .account-reset-success { text-align: center; padding: 24px 16px 20px; }
    .account-reset-success-icon { font-size: 44px; line-height: 1; margin-bottom: 12px; }
    .account-reset-success-title { margin: 0 0 8px; font-size: 19px; font-weight: 600; color: #2e7d32; }
    .account-reset-success-text { margin: 0; font-size: 15px; line-height: 1.5; color: #555; }
    /* «Выйти» в шапке рядом с «Аккаунт» */
    .account-logout-btn {
      flex-shrink: 0;
      margin: 0;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: #f5f5f5;
      color: #333;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      align-self: center;
    }
    .account-logout-btn:hover { background: #e9e9e9; }

    /* Десктоп: ЛК — фон #f5f5f5, шапка на всю ширину, контент колонкой по центру */
    @media (min-width: 900px) {
      .account-screen {
        background: #f5f5f5;
      }
      .account-screen .account-head {
        display: flex;
        flex-direction: column;
        padding: 0;
        background: #fff;
        max-width: none;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
      }
      /* Одна колонка с контентом — не разносить «Аккаунт» и «Выйти» по всему экрану */
      .account-screen .account-brand-row {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 20px 10px;
      }
      .account-screen .account-head-toolbar {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
        padding: 14px 20px 16px;
      }
      .account-screen .account-head-toolbar h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        flex: 0 1 auto;
        text-align: left;
      }
      .account-screen .account-body {
        max-width: 720px;
        margin: 0 auto;
        padding: 16px 20px 40px;
        width: 100%;
        box-sizing: border-box;
        background: #f5f5f5;
        border: none;
        border-radius: 0;
        box-shadow: none;
      }
      .account-list-top {
        margin-bottom: 16px;
      }
      .account-card-block {
        padding: 22px 22px 26px;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 88, 163, 0.22);
      }
      .account-card-number {
        font-size: 24px;
        letter-spacing: 0.16em;
      }
      .account-orders-title {
        font-size: 17px;
        font-weight: 700;
        margin: 8px 0 12px;
      }
      .account-auth {
        margin-top: 0;
        padding: 20px;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: none;
      }
      .account-auth-title {
        font-size: 14px;
        text-align: left;
        margin-bottom: 14px;
      }
      .account-auth-columns {
        gap: 24px;
        align-items: flex-start;
      }
      .account-auth-col {
        padding: 0;
      }
      .account-screen .account-head-toolbar .account-logout-btn {
        margin-left: auto;
        padding: 9px 16px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: #eceff1;
        color: #333;
      }
      .account-screen .account-head-toolbar .account-logout-btn:hover {
        background: #e0e4e8;
      }
      .account-empty {
        padding: 28px 20px;
        border-radius: 12px;
        background: var(--bg);
        border: 1px solid var(--border);
      }
      .account-detail-section {
        max-width: 100%;
      }
      .account-order-row:hover {
        background: rgba(0, 88, 163, 0.06);
        border-radius: 8px;
        margin: 0 -8px;
        padding-left: 8px;
        padding-right: 8px;
      }
    }

    /* Админ: управление заказами */
    .admin-screen { position: fixed; inset: 0; background: var(--bg); z-index: 101; display: none; flex-direction: column; overflow: hidden; }
    .admin-screen.show { display: flex; }
    .admin-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
    .admin-back { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #f0f0f0; border: none; border-radius: 50%; font-size: 18px; cursor: pointer; }
    .admin-head h2 { margin: 0; font-size: 18px; font-weight: 600; flex: 1; }
    .admin-body { flex: 1; overflow-y: auto; padding: 16px; }
    .account-list-top { display: flex; justify-content: flex-end; margin-bottom: 12px; }
    .admin-btn-wrap { margin: 0; }
    .admin-btn { display: inline-block; padding: 10px 16px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
    .admin-btn:hover, .admin-btn:active { opacity: 0.9; }
    .admin-impersonate-block { margin: 0 0 16px; padding: 14px 16px; background: #fff8e6; border: 1px solid #f0d78c; border-radius: var(--radius); }
    .admin-impersonate-title { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
    .admin-impersonate-hint { margin: 0 0 10px; font-size: 13px; color: var(--text-muted, #666); line-height: 1.4; }
    .admin-impersonate-row { display: flex; gap: 8px; flex-wrap: wrap; }
    .admin-impersonate-row input { flex: 1 1 180px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border, #ddd); border-radius: var(--radius); font-size: 14px; }
    .admin-impersonate-row button { flex: 0 0 auto; padding: 10px 14px; background: #c45c00; color: #fff; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; }
    .admin-impersonate-msg { margin-top: 8px; font-size: 13px; color: #a33; }
    .admin-impersonate-msg.ok { color: #1a7f37; }
    .impersonation-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: #c45c00; color: #fff; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
    .impersonation-banner-exit { padding: 6px 12px; background: #fff; color: #c45c00; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
    body.impersonating-client { padding-top: 48px; }
    body.impersonating-client .top-chrome { top: 48px; }
    .admin-order-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; text-decoration: none; color: inherit; }
    .admin-order-row:last-child { border-bottom: none; }
    .admin-order-row:active { background: var(--card); }
    .admin-order-left { flex: 1; min-width: 0; }
    .admin-order-num { font-weight: 700; font-size: 15px; color: var(--accent); }
    .admin-order-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
    .admin-order-total { font-weight: 600; font-size: 15px; white-space: nowrap; }
    .admin-order-customer { font-size: 12px; color: var(--muted); margin-top: 2px; }
    .admin-detail { display: none; }
    .admin-detail.show { display: block; }
    .admin-list { display: block; }
    .admin-list.hide { display: none; }
    .admin-detail-back { background: none; border: none; color: var(--accent); font-size: 14px; cursor: pointer; padding: 8px 0; margin-bottom: 12px; }
    .admin-status-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
    .admin-status-row label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; }
    .admin-status-select {
      width: 100%; padding: 12px; font-size: 15px; border: 1px solid var(--border); border-radius: var(--radius);
      background: var(--bg); color: var(--text);
      position: relative; z-index: 2;
      box-sizing: border-box; touch-action: manipulation;
    }
    .admin-status-custom { margin-top: 8px; display: none; }
    .admin-status-custom.show { display: block; }
    .admin-status-custom input { width: 100%; padding: 12px; font-size: 15px; border: 1px solid var(--border); border-radius: var(--radius); box-sizing: border-box; touch-action: manipulation; pointer-events: auto; }
    .admin-tracking-row { margin-top: 10px; display: none; }
    .admin-tracking-row.show { display: block; }
    .admin-tracking-row label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
    .admin-tracking-row input { width: 100%; padding: 12px; font-size: 15px; border: 1px solid var(--border); border-radius: var(--radius); box-sizing: border-box; touch-action: manipulation; pointer-events: auto; -webkit-user-select: text; user-select: text; }
    .admin-status-save { margin-top: 12px; padding: 12px 20px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer; width: 100%; }
    .admin-status-save:disabled { opacity: 0.6; cursor: not-allowed; }
    .admin-charge-block { margin-top: 16px; background: #e8f4fd; border-radius: 10px; padding: 14px 16px; }
    .admin-charge-block p { margin: 0 0 10px; font-size: 13px; color: #444; }
    .admin-charge-btn { width: 100%; padding: 12px; background: #0058a3; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; }
    .admin-charge-btn:disabled { opacity: 0.6; cursor: not-allowed; }
    .admin-charge-msg { margin-top: 8px; font-size: 13px; text-align: center; }
    .admin-charge-msg.ok  { color: #2e7d32; }
    .admin-charge-msg.err { color: #c62828; }
    .payment-status-badge { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; }
    .payment-status-badge.confirmed { background: #e8f5e9; color: #2e7d32; }
    .payment-status-badge.pending   { background: #fff3e0; color: #e65100; }
    .payment-status-badge.rejected  { background: #fce4ec; color: #c62828; }

    @media (min-width: 900px) {
      .admin-screen {
        background: #f5f5f5;
      }
      .admin-screen .admin-head {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 24px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        max-width: none;
        margin: 0;
        border-radius: 0;
      }
      .admin-screen .admin-head h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        flex: 1;
        text-align: left;
      }
      .admin-screen .admin-body {
        max-width: 720px;
        margin: 0 auto;
        padding: 16px 20px 40px;
        width: 100%;
        box-sizing: border-box;
        background: #f5f5f5;
        border: none;
        border-radius: 0;
        box-shadow: none;
      }
      .admin-order-row:hover {
        background: rgba(0, 88, 163, 0.06);
        border-radius: 8px;
        margin: 0 -8px;
        padding-left: 8px;
        padding-right: 8px;
      }
    }

    /* Блок курс / закуп / маржа в деталке заказа админа */
    .order-finance-section { background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%); border: none; border-radius: var(--radius); padding: 16px; margin-bottom: 20px; color: #fff; }
    .order-finance-section h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.9); }
    .order-finance-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.2); font-size: 15px; }
    .order-finance-row:last-child { border-bottom: none; }
    .order-finance-row .label { color: rgba(255,255,255,0.9); font-weight: 500; }
    .order-finance-row .value { font-weight: 700; font-size: 17px; }
    .account-detail-items .admin-order-item-wrap { border-bottom: 1px solid var(--border); }
    .account-detail-items .admin-order-item-wrap:last-child { border-bottom: none; }
    .account-detail-items .admin-order-item-wrap .account-item-row { border-bottom: none; padding-bottom: 4px; }
    .account-item-meta-zakup { font-size: 12px; color: var(--muted); padding: 0 0 10px 0; line-height: 1.35; }
    .admin-sale-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #ffebee; color: #CC0008; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
    .admin-order-item-price--sale { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
    .admin-order-item-price--sale .price-promo { color: #CC0008; font-weight: 700; }
    .admin-sale-was { font-size: 11px; color: var(--muted); font-weight: 500; white-space: nowrap; }
    .admin-sale-meta { font-size: 12px; color: var(--text); flex-basis: 100%; line-height: 1.35; padding-bottom: 2px; }
    .admin-sale-meta .admin-sale-was { margin-left: 2px; }
    .admin-items-hint { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.45; }
    .admin-order-edit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .admin-order-edit-row:last-of-type { border-bottom: none; }
    .admin-order-edit-name { flex: 1 1 160px; min-width: 0; font-size: 14px; line-height: 1.35; }
    .admin-order-edit-name--product { cursor: pointer; }
    .admin-order-edit-name--product:hover { color: var(--accent); }
    .admin-order-edit-name--product:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
    .admin-order-edit-art { color: var(--muted); font-size: 12px; }
    .admin-order-edit-field { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
    .admin-order-edit-field input { width: 72px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; box-sizing: border-box; }
    .admin-order-edit-delivery { background: rgba(0,0,0,0.02); border-radius: 8px; padding: 12px; margin-top: 8px; border: 1px dashed var(--border); }
    .admin-order-edit-delivery .admin-item-delivery-price { width: 100px; }
    .admin-order-remove-btn { background: #fff; border: 1px solid var(--border); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; color: #d32f2f; flex-shrink: 0; }
    .admin-order-add-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
    .admin-add-article-input { flex: 1 1 140px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
    .admin-add-item-btn { padding: 10px 16px; border-radius: 999px; border: none; background: var(--card); border: 1px solid var(--border); font-weight: 600; cursor: pointer; font-size: 14px; }
    .admin-items-save-btn { width: 100%; margin-top: 16px; padding: 14px 20px; border-radius: 999px; border: none; background: var(--add-btn); color: #fff; font-weight: 600; cursor: pointer; font-size: 15px; }
    .admin-items-save-btn:disabled { opacity: 0.55; cursor: not-allowed; }
    .admin-items-save-msg { font-size: 13px; margin-top: 8px; min-height: 1.2em; }
    .admin-items-save-msg.ok { color: #2e7d32; }
    .admin-items-save-msg.err { color: #d32f2f; }
    .admin-status-row.locked { opacity: 0.85; }
    .admin-status-locked-hint { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.4; }
    .account-item-row.is-delivery-pending .sum { color: var(--muted); font-weight: 500; }

    /* «О нас» в шапке + страница */
    .header-nav-right { display: flex; align-items: center; gap: 13px; flex-shrink: 0; height: 44px; margin-left: auto; transform: translateY(4px); }
    .header-about-link { display: flex; align-items: center; height: 40px; font-size: 15px; font-weight: 500; line-height: 1; color: var(--text); text-decoration: none; padding: 0 10px; border-radius: 8px; white-space: nowrap; }
    .header-about-link:hover { background: rgba(0,0,0,0.06); }
    .header-about-link--active { color: var(--accent); font-weight: 600; }
    /* На странице «О нас» не показываем переключатель «Переводом / Картой» */
    body.route-about .header-price-toggle { display: none !important; }
    /* body.route-delivery .header-price-toggle { display: none !important; } */
    .header-nav-links { display: flex; align-items: center; gap: 2px; height: 40px; flex-wrap: wrap; }
    @media (max-width: 400px) {
      .header-nav-links .header-about-link { padding: 0 6px; font-size: 14px; }
    }
    .screen-about.active { overflow-y: auto; -webkit-overflow-scrolling: touch; }
    /* .screen-delivery.active { overflow-y: auto; -webkit-overflow-scrolling: touch; } */
    .about-page { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 12px var(--layout-pad-x) 56px; box-sizing: border-box; }
    .about-hero {
      position: relative; overflow: hidden;
      margin-bottom: 28px; padding: 20px 18px 18px; border-radius: var(--radius-card);
      background: linear-gradient(128deg, #003d73 0%, #0058a3 52%, #1a7ec4 100%);
      color: #fff;
      box-shadow: 0 4px 20px rgba(0, 88, 163, 0.16);
    }
    .about-hero::before {
      content: '';
      position: absolute; inset: 0;
      background:
        radial-gradient(ellipse 70% 90% at 100% 0%, rgba(255,255,255,0.1) 0%, transparent 58%),
        radial-gradient(ellipse 45% 55% at 0% 100%, rgba(255,255,255,0.05) 0%, transparent 52%);
      pointer-events: none;
    }
    .about-hero > * { position: relative; z-index: 1; }
    .about-title { font-size: clamp(22px, 5vw, 28px); font-weight: 800; margin: 0 0 6px; letter-spacing: -0.025em; line-height: 1.15; }
    .about-tagline { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.82); margin: 0 0 14px; font-weight: 400; }
    .about-trust-badges {
      display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
    }
    .about-trust-badge {
      font-size: 12px; font-weight: 600; line-height: 1;
      padding: 6px 10px; border-radius: 999px;
      background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.95);
      border: 1px solid rgba(255,255,255,0.22);
      white-space: nowrap;
    }
    .about-leads { display: flex; flex-direction: column; gap: 10px; }
    .about-lead { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.9); margin: 0; }
    .about-lead strong { color: #fff; font-weight: 600; }
    .about-section { margin-bottom: 28px; }
    .about-section h2 {
      font-size: 17px; font-weight: 700; margin: 0 0 14px;
      letter-spacing: -0.01em; line-height: 1.3;
      padding-bottom: 8px; border-bottom: 1px solid var(--border);
    }
    .about-section--card { background: var(--card); border-radius: 14px; padding: 18px 18px 16px; border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,0.03); }
    .about-step-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
    .about-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); transition: border-color 0.15s ease; }
    .about-step:last-child { background: linear-gradient(135deg, rgba(0, 88, 163, 0.04) 0%, rgba(0, 88, 163, 0.02) 100%); border-color: rgba(0, 88, 163, 0.15); }
    .about-step-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1; }
    .about-step-body { flex: 1; min-width: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
    .about-step-body strong { color: var(--text); font-weight: 600; }
    .about-note { background: linear-gradient(135deg, #fff9e6 0%, #fff5e0 100%); border-radius: 14px; padding: 16px 18px; border: 1px solid rgba(255, 193, 7, 0.35); box-shadow: 0 2px 12px rgba(255, 193, 7, 0.08); font-size: 15px; line-height: 1.55; }
    .about-note .emoji-lead { margin-right: 8px; font-size: 1.2em; vertical-align: -0.15em; }
    .about-tg-block { background: var(--card); border-radius: 14px; padding: 16px 18px; border: 1px solid var(--border); }
    .about-tg-block p { margin: 0 0 10px; line-height: 1.55; font-size: 15px; }
    .about-tg-block p:last-child { margin-bottom: 0; }
    .about-tg-link { color: var(--accent); font-weight: 600; word-break: break-all; text-decoration: none; border-bottom: 1px solid rgba(13, 71, 161, 0.35); }
    .about-tg-link:hover { border-bottom-color: var(--accent); }
    .about-tg-btn {
      display: inline-flex; align-items: center; gap: 8px;
      margin-top: 4px; padding: 10px 16px; border-radius: 10px;
      background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
      text-decoration: none; line-height: 1; transition: background 0.12s ease, transform 0.12s ease;
    }
    .about-tg-btn:hover { background: #004a8c; }
    .about-tg-btn:active { transform: scale(0.98); }
    .about-tg-btn svg { flex-shrink: 0; width: 18px; height: 18px; fill: currentColor; }
    .about-muted { font-size: 14px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
    .about-hint-code { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; background: rgba(0,0,0,0.05); padding: 10px 12px; border-radius: 8px; margin-top: 12px; line-height: 1.45; overflow-x: auto; }
    .about-tg-hint { font-size: 14px; color: var(--text); margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--border); }
    /* Карусель фото: CSS marquee (дубликат ряда в JS) + ручная прокрутка через Web Animations API (колесо / свайп / стрелки) */
    .about-carousel { margin-top: 12px; position: relative; }
    .about-carousel-viewport {
      overflow: hidden;
      width: 100%;
      touch-action: pan-x;
      cursor: grab;
      -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
      mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    }
    .about-carousel-viewport.about-carousel--inactive .about-carousel-track { animation: none !important; transform: none !important; }
    .about-carousel-viewport:active { cursor: grabbing; }
    .about-carousel-track {
      display: flex; gap: 12px; width: max-content;
      padding: 2px 0 6px;
      will-change: transform;
      animation: about-carousel-marquee var(--about-carousel-duration, 120s) linear infinite;
    }
    .about-carousel-viewport--dragging .about-carousel-track { animation-play-state: paused; }
    @keyframes about-carousel-marquee {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    .about-carousel-slide {
      width: min(72vw, 280px); height: 188px; flex-shrink: 0; object-fit: cover; display: block;
      border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 14px rgba(0,0,0,0.08);
      background: #e8ecf0; user-select: none; -webkit-user-drag: none;
    }
    @media (prefers-reduced-motion: reduce) {
      .about-carousel-track { animation: none !important; transform: none !important; }
      .about-carousel-viewport { mask-image: none; -webkit-mask-image: none; }
      .about-carousel-track { flex-wrap: wrap; width: 100% !important; justify-content: center; gap: 10px; }
    }
    .about-msg__screenshot { display: block; width: 100%; max-width: 280px; border-radius: 10px; margin-top: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
    /* Отзывы: ограниченная высота + вертикальный скролл */
    .about-reviews-scroll {
      max-height: min(65vh, 480px);
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      /* auto: у верхнего/нижнего края жест «дальше» уходит на прокрутку страницы */
      overscroll-behavior-y: auto;
      border-radius: 16px;
      box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
      touch-action: pan-y;
    }
    .about-reviews-scroll:focus { outline: 2px solid rgba(13, 71, 161, 0.35); outline-offset: 2px; }
    .about-reviews-scroll:focus:not(:focus-visible) { outline: none; }
    /* Чат-отзывы (стиль сообщений) */
    .about-chat { display: flex; flex-direction: column; gap: 14px; padding: 16px 14px; background: linear-gradient(180deg, #dbe4eb 0%, #cfd9e2 100%); border-radius: 16px; border: 1px solid rgba(0,0,0,0.06); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
    .about-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 100%; }
    .about-msg__avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; background: linear-gradient(145deg, #64b5f6, #1976d2); box-shadow: 0 2px 8px rgba(25, 118, 210, 0.35); }
    .about-msg__col { flex: 1; min-width: 0; max-width: calc(100% - 50px); }
    .about-msg__bubble { background: #fff; border-radius: 14px 14px 14px 4px; padding: 10px 12px 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04); }
    .about-msg__author { font-size: 13px; font-weight: 700; color: #2a8fd4; margin-bottom: 4px; letter-spacing: -0.01em; }
    .about-msg__text { margin: 0; font-size: 15px; line-height: 1.5; color: #1a1a1a; white-space: pre-line; }
    .about-msg__meta { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 6px; padding-top: 4px; font-size: 11px; color: #8e9599; }
    .about-msg__meta .tg-ico { opacity: 0.85; font-size: 12px; }

    /* Страница «Доставка» (временно отключена)
    .delivery-hero {
      background: linear-gradient(145deg, rgba(0, 88, 163, 0.09) 0%, rgba(25, 118, 210, 0.05) 45%, rgba(255,255,255,0.92) 100%);
      border-color: rgba(0, 88, 163, 0.14);
    }
    .delivery-partner-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin-top: 8px;
    }
    @media (min-width: 560px) {
      .delivery-partner-grid { grid-template-columns: 1fr 1fr; }
    }
    .delivery-partner-card {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      padding: 14px 16px;
      border-radius: 12px;
      background: rgba(13, 71, 161, 0.05);
      border: 1px solid rgba(13, 71, 161, 0.1);
    }
    .delivery-partner-card:focus-within { outline: 2px solid rgba(13, 71, 161, 0.25); outline-offset: 2px; }
    .delivery-partner-card--sdek {
      background: linear-gradient(145deg, rgba(0, 88, 163, 0.1) 0%, rgba(13, 71, 161, 0.04) 100%);
      border-color: rgba(0, 88, 163, 0.18);
    }
    .delivery-partner-ico {
      font-size: 26px;
      line-height: 1;
      flex-shrink: 0;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      background: rgba(255,255,255,0.9);
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    .delivery-partner-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; line-height: 1.25; }
    .delivery-partner-card p { margin: 0; font-size: 14px; line-height: 1.52; color: var(--text); }
    .delivery-partner-tag {
      display: inline-block;
      margin-top: 8px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--accent);
      background: rgba(13, 71, 161, 0.1);
      padding: 4px 8px;
      border-radius: 999px;
    }
    .delivery-footnote { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 14px 0 0; text-align: center; padding: 12px 0 0; border-top: 1px solid var(--border); }
    */
