/* Мобильная и планшетная версия — 21.10.2026.
   Подключается последней на всех страницах. Все правила внутри медиазапросов:
   от 1200 px настольный вид не меняется. Многие страницы свёрстаны встроенными
   стилями, поэтому переопределения идут с !important.
   Ступени: телефон < 768, планшет 768–1199. Поля страницы — var(--m-pad). */

#m-header, #m-menu, .m-filter-fab, .m-filter-bar, .m-filter-go, .m-filter-shade, .m-cart-go { display: none; }

@media (max-width: 1199.98px) {
  :root { --mh-h: 64px; --m-pad: 32px; --m-blue: #0B47A8; --m-blue-2: #1D58D8; --m-ink: #17191C; --m-muted: #53606D; --m-line: #E3E6EA; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--mh-h) + 16px) !important; }
  html body { padding-top: var(--mh-h) !important; min-width: 0 !important; overflow-x: clip; }
  html.mh-lock { overflow: hidden; }
  #shared-header { display: none !important; }
  #dc-root .sc-host > div, html body main { min-width: 0 !important; }
  img, svg, video { max-width: 100%; }
  a, button, input, select, textarea, label { -webkit-tap-highlight-color: rgba(11, 71, 168, .12); }

  /* ——— Шапка ——— */
  #m-header, #m-header *, #m-menu, #m-menu * { box-sizing: border-box; }
  #m-header {
    display: block; position: fixed; z-index: 140; top: 0; left: 0; right: 0;
    background: #FFFFFF; border-bottom: 1px solid var(--m-line);
    font: 400 16px/1.4 'Inter', system-ui, sans-serif; color: var(--m-ink);
    transform: translateY(0); transition: transform 280ms cubic-bezier(.2, .8, .2, 1), box-shadow 240ms ease;
  }
  #m-header.is-scrolled { box-shadow: 0 10px 28px -18px rgba(16, 28, 52, .35); }
  #m-header.is-away { transform: translateY(-100%); box-shadow: none; }
  .mh-inner {
    height: var(--mh-h); padding: 0 calc(var(--m-pad) - 10px) 0 var(--m-pad);
    display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "logo cat search act";
    align-items: center; column-gap: 14px;
  }
  .mh-logo { grid-area: logo; display: flex; align-items: center; gap: 9px; color: #1C1F24; text-decoration: none; }
  .mh-logo img { display: block; width: 38px; height: 38px; }
  .mh-word { display: flex; flex-direction: column; font: 600 11px/1.06 'Inter', sans-serif; letter-spacing: .05em; }
  .mh-cat {
    grid-area: cat; height: 44px; padding: 0 16px 0 14px; display: inline-flex; align-items: center; gap: 10px;
    background: var(--m-blue); color: #FFFFFF; border-radius: 4px; font: 600 15px/1 'Inter', sans-serif; text-decoration: none;
    transition: background 180ms ease, transform 140ms ease;
  }
  .mh-cat:active { background: #083784; transform: scale(.98); }
  .mh-cat-ico { display: grid; grid-template-columns: 6px 6px; gap: 3px; }
  .mh-cat-ico i { width: 6px; height: 6px; border-radius: 1.5px; background: currentColor; }
  .mh-cat-ico i:nth-child(4) { background: transparent; box-shadow: inset 0 0 0 1.4px currentColor; }
  .mh-search { grid-area: search; position: relative; margin: 0; min-width: 0; }
  .mh-search input {
    width: 100%; height: 44px; margin: 0; padding: 0 14px 0 42px; border: 1px solid #D5DAE0; border-radius: 4px;
    background: #F3F5F7; font: 400 16px/1 'Inter', sans-serif; color: var(--m-ink); outline: none; -webkit-appearance: none; appearance: none;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 220ms ease;
  }
  .mh-search input::placeholder { color: #737A83; }
  .mh-search input:focus { border-color: var(--m-blue); background: #FFFFFF; box-shadow: 0 0 0 4px rgba(11, 71, 168, .12); }
  .mh-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
  .mh-search-ico { position: absolute; left: 13px; top: 12px; display: flex; color: #6A717B; pointer-events: none; }
  .mh-search:focus-within .mh-search-ico { color: var(--m-blue); }
  .mh-actions { grid-area: act; display: flex; align-items: center; gap: 2px; }
  .mh-icon {
    position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0; border: 0; border-radius: 50%; background: transparent; color: #1F2329; text-decoration: none; cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
  }
  .mh-icon:active { background: #EEF2F9; color: var(--m-blue); }
  #m-header svg, #m-menu svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .mh-badge {
    position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    background: var(--m-blue); color: #FFFFFF; font: 600 10.5px/17px 'Inter', sans-serif; text-align: center;
    box-shadow: 0 0 0 2px #FFFFFF; font-variant-numeric: tabular-nums;
  }
  .mh-badge[hidden] { display: none; }
  .mh-burger > span { display: flex; flex-direction: column; gap: 5px; width: 20px; }
  .mh-burger i { display: block; height: 1.6px; border-radius: 1px; background: currentColor; }
  .mh-burger i:nth-child(2) { width: 14px; margin-left: auto; }
  #m-header :focus-visible, #m-menu :focus-visible { outline: 2px solid #2F6BDA; outline-offset: 2px; }

  /* ——— Меню ——— */
  #m-menu {
    display: none; position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden;
    font: 400 16px/1.4 'Inter', system-ui, sans-serif; color: var(--m-ink);
  }
  #m-menu[open] { display: block; }
  #m-menu::backdrop { background: rgba(10, 14, 20, .5); animation: mh-fade 260ms ease both; }
  #m-menu.is-closing::backdrop { animation: mh-fade 220ms ease reverse both; }
  .mh-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
    display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    background: #FFFFFF; box-shadow: -24px 0 60px -30px rgba(10, 14, 20, .5);
    padding: 0 var(--m-pad) max(24px, env(safe-area-inset-bottom));
    animation: mh-in 340ms cubic-bezier(.2, .8, .2, 1) both;
  }
  #m-menu.is-closing .mh-panel { animation: mh-out 220ms cubic-bezier(.4, 0, 1, 1) both; }
  .mh-panel-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: var(--mh-h); margin: 0 calc(-1 * var(--m-pad)); padding: 0 calc(var(--m-pad) - 10px) 0 var(--m-pad); background: #FFFFFF; border-bottom: 1px solid var(--m-line); }
  .mh-nav { display: flex; flex-direction: column; padding: 8px 0 12px; }
  .mh-nav a {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px;
    border-bottom: 1px solid #EDEFF2; color: var(--m-ink); text-decoration: none; font: 600 20px/1.2 'Inter', sans-serif; letter-spacing: -.01em;
    animation: mh-item 420ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(60ms + var(--i) * 35ms);
  }
  .mh-nav a svg { flex: none; color: #9AA1A9; transition: transform 200ms ease, color 200ms ease; }
  .mh-nav a:active svg { transform: translateX(3px); color: var(--m-blue); }
  .mh-nav a[aria-current="page"] { color: var(--m-blue); }
  .mh-nav a[aria-current="page"] svg { color: var(--m-blue); }
  .mh-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 0 20px; }
  .mh-quick a {
    position: relative; min-height: 64px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
    border-radius: 8px; background: #F3F5F7; color: var(--m-ink); text-decoration: none; font: 500 14px/1.2 'Inter', sans-serif;
  }
  .mh-quick a svg { color: var(--m-blue); }
  .mh-quick a .mh-badge { top: 12px; right: 12px; box-shadow: none; }
  .mh-quick a:active { background: #E8EDF5; }
  .mh-contact { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--m-line); display: flex; flex-direction: column; gap: 12px; }
  .mh-status { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4A5059; }
  .mh-status b { font-weight: 600; color: #4A5059; }
  .mh-dot { width: 8px; height: 8px; border-radius: 50%; background: #AEB4BB; }
  #m-menu.is-open-now .mh-dot { background: #2E9B5B; box-shadow: 0 0 0 4px rgba(46, 155, 91, .16); }
  #m-menu.is-open-now .mh-status b { color: #1E6B3E; }
  .mh-call {
    height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 6px;
    background: var(--m-blue); color: #FFFFFF; text-decoration: none; font: 600 18px/1 'Inter', sans-serif; font-variant-numeric: tabular-nums;
  }
  .mh-call:active { background: #083784; }
  .mh-contact-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mh-contact-row > * {
    min-height: 48px; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid #D5DAE0; border-radius: 6px; background: #FFFFFF; color: var(--m-ink); text-decoration: none;
    font: 500 14px/1.2 'Inter', sans-serif; text-align: center; cursor: pointer;
  }
  .mh-contact-row svg { flex: none; color: #4A5059; }
  .mh-max img { flex: none; border-radius: 5px; }
  .mh-max span { font-size: 13px; white-space: nowrap; }
  .mh-max.is-copied { border-color: #2E9B5B; color: #1E6B3E; }
  .mh-hours { margin: 0; font-size: 13px; line-height: 1.45; color: #6B7178; }

  /* Подвал: крупный телефон и адрес не шире экрана, в том числе на страницах без общих стилей */
  #site-footer .sf-grid > * { min-width: 0; }
  #site-footer .sf-phone { font-size: clamp(26px, 8.6vw, 34px) !important; white-space: nowrap; }
  #site-footer .sf-address { overflow-wrap: anywhere; }
  #site-footer .sf-bottom { flex-wrap: wrap; row-gap: 10px; }
  #site-footer .sf-bottom a, #site-footer .sf-navigation a { white-space: normal; }

  /* Подсказки поиска под мобильным полем */
  .ss-box { max-width: calc(100vw - 16px); }
}

@media (max-width: 767.98px) {
  :root { --mh-h: 56px; --m-pad: 20px; }
  html body { padding-top: 112px !important; }
  html { scroll-padding-top: 128px !important; }
  .mh-inner {
    height: auto; padding: 0 10px 10px var(--m-pad);
    grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo act" "cat search"; row-gap: 0; column-gap: 8px;
  }
  .mh-logo, .mh-actions { height: 56px; }
  .mh-actions { justify-content: flex-end; margin-right: -2px; }
  .mh-search { margin-right: 10px; }
  .mh-tab { display: none; }
  .mh-cat { padding: 0 14px 0 12px; }
  .mh-panel { width: 100%; box-shadow: none; }
  .mh-panel-top { min-height: 56px; }
  .ss-box { border-radius: 10px; }
}

@media (max-width: 360px) {
  :root { --m-pad: 16px; }
  #site-footer .sf-navigation { grid-template-columns: minmax(0, 1fr) !important; row-gap: 24px; }
  .mh-word { display: none; }
  .mh-cat { padding: 0 12px; gap: 8px; }
}

@keyframes mh-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes mh-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes mh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes mh-item { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  #m-header, .mh-panel, #m-menu::backdrop, .mh-nav a, .m-cart-go, .m-filter-fab, .m-filter-bar, .m-filter-go, .m-filter-shade,
  html.m-filters-open body .m-list-grid > aside[aria-label="Фильтры"] { transition: none !important; animation: none !important; }
}

/* ═══ Главная ═══ */
@media (max-width: 1199.98px) {
  html body[data-ui-page] .home-hero[data-screen-label] .home-hero-inner {
    height: auto !important; max-width: 1040px !important; padding: 56px var(--m-pad) 64px;
    display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
    grid-template-areas: "e f" "t f" "l f" "a f" "d f"; grid-template-rows: auto auto auto auto 1fr;
    column-gap: 40px; row-gap: 24px; align-content: center;
  }
  html body[data-ui-page] .home-hero[data-screen-label] .home-hero-copy { display: contents !important; }
  html body[data-ui-page] .home-hero[data-screen-label] .home-hero-copy > span:first-child { grid-area: e; align-self: end; }
  html body[data-ui-page] .home-hero[data-screen-label] h1.home-hero-title { grid-area: t; font-size: clamp(44px, 6.2vw, 64px) !important; }
  html body[data-ui-page] .home-hero[data-screen-label] .home-hero-lead { grid-area: l; max-width: 520px !important; font-size: 18px !important; }
  html body[data-ui-page] .home-hero[data-screen-label] .home-hero-actions { grid-area: a; flex-wrap: wrap; }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-dealer-block { grid-area: d; align-self: start; width: 100% !important; margin-top: 8px !important; }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-dealers { flex-wrap: wrap; gap: 16px 24px !important; }
  html body[data-ui-page] .home-hero[data-screen-label] [data-hero-figure] {
    grid-area: f; align-self: start; justify-self: center; position: relative !important;
    top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
    width: min(100%, 420px) !important; height: auto !important; aspect-ratio: var(--model-ratio, .7985) !important;
    margin-bottom: 160px;
  }
  html body[data-ui-page] .home-hero[data-screen-label] [data-hero-wire] { display: none; }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-node-panel {
    position: absolute !important; left: 0 !important; right: 0 !important; top: calc(100% + 18px) !important;
    width: auto !important; transform: none !important;
  }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-node-card {
    display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 16px;
    min-height: 104px; padding: 10px 16px 10px 10px !important; border-radius: 10px;
  }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-node-art { grid-row: 1 / 3; width: 104px; margin: 0 !important; align-self: center; }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-node-copy { min-height: 0 !important; align-self: end; }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-node-copy h2 { font-size: 17px !important; line-height: 1.2 !important; }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-node-link { padding: 8px 0 4px !important; justify-content: flex-start; gap: 8px; font-size: 13px; }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-model-caption {
    position: absolute !important; left: 0 !important; right: 0 !important; top: calc(100% + 136px) !important; bottom: auto !important;
    width: auto !important; transform: none !important; display: flex; justify-content: space-between; gap: 12px;
  }

  /* Узлы каталога */
  .m-sec { padding-left: var(--m-pad) !important; padding-right: var(--m-pad) !important; }
  .m-cat-sec { padding-top: 72px !important; padding-bottom: 72px !important; }
  .m-bento { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-auto-rows: 200px !important; gap: 12px !important; }
  .m-bento > a { grid-column: auto !important; grid-row: auto !important; clip-path: none !important; }
  .m-bento > a[data-featured="true"] { grid-column: span 2 !important; grid-row: span 2 !important; }
  .m-bento .category-heading { left: 18px !important; top: 18px !important; right: 60px !important; gap: 8px !important; }
  .m-bento > a:not([data-featured="true"]) .category-heading > span:nth-child(2) { font-size: 18px !important; white-space: normal !important; }
  .m-bento > a > span:last-child:not(.category-heading) { top: 14px !important; right: 14px !important; width: 40px !important; height: 40px !important; }
  .m-bento > a.graphite-category .category-art-stage { top: 84px; }
  .m-bento > a[data-featured="true"] .category-art-stage { top: 130px; }
  .m-bento > a[data-m-all] { padding: 20px !important; }
  .m-makers { grid-template-columns: minmax(0, 1fr) repeat(4, minmax(0, 1fr)) !important; }
  .m-makers > a { padding: 20px 14px 18px !important; }
  .m-makers > a > span > span:first-child { font-size: 30px !important; }

  /* Подбор по фото */
  .m-podbor { grid-template-columns: minmax(0, 1fr) !important; gap: 40px !important; padding-top: 72px !important; padding-bottom: 80px !important; }
  .m-podbor > div:first-child { max-width: 640px; }
}

@media (max-width: 767.98px) {
  html body[data-ui-page] .home-hero[data-screen-label] .home-hero-inner {
    padding: 28px var(--m-pad) 40px; grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "t" "l" "a" "f" "d"; grid-template-rows: none; row-gap: 20px;
  }
  html body[data-ui-page] .home-hero[data-screen-label] .home-hero-copy > span:first-child { display: none !important; }
  html body[data-ui-page] .home-hero[data-screen-label] h1.home-hero-title { font-size: clamp(30px, calc((100vw - 2 * var(--m-pad)) / 8.3), 46px) !important; line-height: 1 !important; letter-spacing: -.025em !important; }
  html body[data-ui-page] .home-hero[data-screen-label] .home-hero-lead { font-size: 16px !important; line-height: 1.5 !important; }
  html body[data-ui-page] .home-hero[data-screen-label] .home-hero-actions { flex-direction: column; gap: 10px !important; margin-top: 4px; }
  html body[data-ui-page] .home-hero[data-screen-label] .home-hero-actions a { width: 100%; height: 54px !important; justify-content: space-between; padding: 0 20px 0 22px !important; }
  html body[data-ui-page] .home-hero[data-screen-label] [data-hero-figure] { width: min(100%, 380px) !important; margin: 12px 0 156px; }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-node-card { grid-template-columns: 88px minmax(0, 1fr); min-height: 92px; column-gap: 14px; }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-node-art { width: 88px; }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-node-copy h2 { font-size: 16px !important; }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-model-caption { top: calc(100% + 122px) !important; font-size: 12px; }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-dealer-block { padding-top: 20px !important; }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-dealer-block > div:first-of-type { flex-wrap: wrap; }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-dealers > span[aria-hidden="true"] { display: none; }
  html body[data-ui-page] .home-hero[data-screen-label] .hero-dealers > a span[data-shine] { font-size: 18px !important; }

  .m-cat-sec { padding-top: 48px !important; padding-bottom: 56px !important; }
  .m-cat-head { flex-direction: column; align-items: flex-start !important; gap: 18px !important; margin-bottom: 24px !important; }
  .m-cat-head h2 { font-size: clamp(28px, 8.2vw, 36px) !important; line-height: 1.08 !important; }
  .m-cat-head h2 > span { transform: none !important; }
  .m-cat-head > a { margin: 0 !important; height: 44px !important; }
  .m-bento { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-rows: 168px !important; gap: 10px !important; }
  .m-bento > a[data-featured="true"] { grid-column: 1 / -1 !important; grid-row: span 1 !important; }
  .m-bento .category-heading { left: 14px !important; top: 14px !important; right: 50px !important; gap: 6px !important; }
  .m-bento > a:not([data-featured="true"]) .category-heading > span:nth-child(2) { font-size: 15px !important; line-height: 1.15 !important; }
  .m-bento > a[data-featured="true"] .category-heading > span:nth-child(2) { font-size: 24px !important; }
  .m-bento .category-heading > span:nth-child(3) { display: none !important; }
  .m-bento > a > span:last-child:not(.category-heading) { top: 10px !important; right: 10px !important; width: 34px !important; height: 34px !important; }
  .m-bento > a.graphite-category .category-art-stage { top: 70px; }
  .m-bento > a[data-featured="true"] .category-art-stage { top: 44px; left: 42%; }
  .m-bento > a[data-m-all] { padding: 16px !important; }
  .m-bento > a[data-m-all] > span:first-child > span:nth-child(2) { font-size: 22px !important; }
  .m-bento > a[data-m-all] > span:first-child > span:nth-child(3) { display: none; }
  .m-bento > a[data-m-all] > span:last-child > span:first-child { display: none !important; }
  .category-more { gap: 10px 18px; margin-top: 20px; }
  .category-more > span { width: 100%; }
  .m-makers { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin-top: 32px !important; }
  .m-makers > div:first-child { grid-column: 1 / -1; padding: 18px 0 14px !important; }
  .m-makers > a { border-left: 0 !important; border-top: 1px solid #D9D8D2; padding: 16px 12px 16px 0 !important; }
  .m-makers > a:nth-of-type(even) { border-left: 1px solid #D9D8D2 !important; padding-left: 14px !important; }
  .m-makers > a > span > span:first-child { font-size: 28px !important; }

  .m-podbor { gap: 28px !important; padding-top: 52px !important; padding-bottom: 56px !important; }
  .m-podbor h2 { font-size: clamp(28px, 8.2vw, 36px) !important; }
  .m-podbor ol li > span:last-child > span:first-child { font-size: 18px !important; }
  .podbor-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .podbor-media { aspect-ratio: 16 / 11; }
  .podbor-media::after { background: linear-gradient(180deg, rgba(23, 27, 33, 0) 55%, #171B21 100%); }
  .podbor-body { padding: 4px 20px 22px; gap: 16px; }
  .podbor-body h3 { font-size: 24px; }
  .podbor-cta { align-self: stretch; justify-content: center; }
}
@media (max-width: 1023.98px) {
  html body[data-ui-page] .home-hero[data-screen-label] .hero-dealers > span[aria-hidden="true"] { display: none; }
}
@media (max-width: 1199.98px) {
  .m-bento img:not([src]) { visibility: hidden; }
}

/* ═══ Поля форм на сенсорных экранах ═══
   Шрифт 16 px: iOS не увеличивает страницу при вводе. */
@media (max-width: 1199.98px) {
  html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  html body textarea, html body select { font-size: 16px !important; }
  html body input[type="checkbox"] { min-width: 18px; min-height: 18px; }
}

/* ═══ Корзина ═══ */
@media (max-width: 1199.98px) {
  .m-cart-top { padding: 22px var(--m-pad) 30px !important; }
  .m-cart-headrow { gap: 24px !important; flex-direction: column; align-items: flex-start !important; }
  .m-cart-headrow h1 + span { white-space: nowrap; }
  .m-cart-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 36px !important; padding: 28px var(--m-pad) 72px !important; }
  html body .m-cart-grid > aside { position: static !important; width: 100%; max-width: 720px; }
  .m-cart-grid > aside [role="radiogroup"] button { height: 48px !important; }
  .m-cart-grid > aside [aria-pressed] { height: 40px !important; padding: 0 14px !important; border-radius: 20px !important; font-size: 14px !important; }
  .m-cart-grid > aside form input[type="text"] { height: 50px !important; }
  .m-cart-grid > aside label { font-size: 14px !important; align-items: center !important; min-height: 44px; }
  .m-cart-grid > aside label input[type="checkbox"] { width: 20px !important; height: 20px !important; margin: 0 !important; }
  .m-toast { max-width: calc(100vw - 24px); bottom: max(16px, env(safe-area-inset-bottom)) !important; }
  .m-cart-go {
    position: fixed; z-index: 130; left: var(--m-pad); right: var(--m-pad); bottom: max(14px, env(safe-area-inset-bottom));
    max-width: 520px; margin: 0 auto; height: 54px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border: 0; border-radius: 8px; background: var(--m-blue); color: #FFFFFF; font: 600 16px/1 'Inter', sans-serif; cursor: pointer;
    box-shadow: 0 18px 36px -16px rgba(11, 71, 168, .7); transition: transform 260ms cubic-bezier(.2, .8, .2, 1), opacity 200ms ease;
    animation: m-rise 320ms cubic-bezier(.2, .8, .2, 1) both;
  }
  .m-cart-go[hidden] { display: none; }
  .m-cart-go b { font-weight: 600; font-variant-numeric: tabular-nums; opacity: .9; }
  .m-cart-go.is-away { transform: translateY(140%); opacity: 0; }
  .m-cart-go:active { background: #083784; }
  .m-toast > div { white-space: normal !important; height: auto !important; min-height: 52px; padding-top: 8px !important; padding-bottom: 8px !important; }
}
@media (max-width: 899.98px) {
  .m-cart-grid div[role="row"] { display: none !important; }
  .m-cart-row {
    grid-template-columns: 56px minmax(0, 1fr) auto !important; grid-template-areas: "img info rm" "img price price" "qty qty tot";
    column-gap: 14px !important; row-gap: 10px !important; padding: 16px 0 18px !important;
  }
  .m-cart-row > a:first-child { grid-area: img; width: 56px !important; height: 56px !important; align-self: start; }
  .m-cart-row > div { grid-area: info; }
  .m-cart-row > div > a { font-size: 15px !important; }
  .m-cart-row > span:nth-of-type(1) { grid-area: price; flex-direction: row !important; align-items: baseline; gap: 6px !important; }
  .m-cart-row > span:nth-of-type(1) > span:first-child { font-size: 15px !important; }
  .m-cart-row > span:nth-of-type(2) { grid-area: qty; width: 140px !important; height: 46px !important; }
  .m-cart-row > span:nth-of-type(2) button { width: 46px !important; height: 44px !important; font-size: 20px !important; }
  .m-cart-row > span:nth-of-type(2) input { height: 44px !important; }
  .m-cart-row > [data-tot] { grid-area: tot; align-self: center; }
  .m-cart-row > button { grid-area: rm; width: 40px !important; height: 40px !important; align-self: start; margin: -8px -8px 0 0; }
  .m-cart-row > [role="alert"] { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .m-cart-top nav { font-size: 13px !important; }
  .m-cart-top h1 { font-size: 40px !important; }
  .m-cart-headrow { margin-top: 14px !important; }
  .m-cart-headrow ol[aria-label] { display: none !important; }
  .m-cart-headrow > div > span { font-size: 15px !important; }
  .m-cart-grid { padding-top: 22px !important; padding-bottom: 56px !important; gap: 28px !important; }
  .m-cart-grid > div > div:first-child h2 { font-size: 24px !important; }
  .m-cart-grid > div > div:first-child:has(> h2) { flex-wrap: wrap; row-gap: 8px !important; }
  .m-cart-grid > div > div:first-child:has(> h2) button { white-space: nowrap; }
  .m-cart-add { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  .m-cart-add > span[aria-hidden] { display: none !important; }
  .m-cart-add > button { justify-self: start; padding-left: 12px !important; }
  .m-cart-add form input { height: 48px !important; }
  .m-cart-add form button[type="submit"] { height: 48px !important; }
  #add-list button[role="option"] { grid-template-columns: minmax(0, 1fr) auto !important; row-gap: 3px !important; padding: 12px 10px !important; }
  #add-list button[role="option"] > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; white-space: normal !important; }
  .m-cart-paste { padding: 16px 0 4px !important; }
  .m-cart-paste > div { flex-direction: column; align-items: stretch !important; gap: 12px !important; }
  .m-cart-paste > div > button { height: 48px !important; }
  .m-cart-empty { padding: 28px 20px 24px !important; }
  .m-cart-empty > span[aria-hidden] { font-size: 150px !important; right: 10px !important; top: -12px !important; }
  .m-cart-empty > span:nth-of-type(2) { font-size: 26px !important; }
  .m-cart-empty > div { flex-direction: column; align-items: stretch; }
  .m-cart-empty > div > * { justify-content: center; }
  [data-done] { padding: 24px 20px !important; }
  [data-done] > span:nth-of-type(2) { font-size: 30px !important; }
  [data-done] > div > * { flex: 1 1 auto; justify-content: center; }
  .m-cart-fav { grid-template-columns: 48px minmax(0, 1fr) auto !important; grid-template-areas: "img name name" "img price btns"; row-gap: 8px !important; }
  .m-cart-fav > a { grid-area: img; width: 48px !important; height: 48px !important; }
  .m-cart-fav > span:nth-of-type(1) { grid-area: name; }
  .m-cart-fav > span:nth-of-type(2) { grid-area: price; align-self: center; }
  .m-cart-fav > span:nth-of-type(3) { grid-area: btns; justify-self: end; }
  .m-cart-grid > aside > div:first-child { padding: 20px !important; }
  .m-cart-grid > aside > div:first-child > span:nth-child(2) { font-size: 38px !important; }
  .m-cart-grid > aside form { padding: 20px 18px 22px !important; }
  .m-cart-grid > aside [role="radiogroup"] button { font-size: 13px !important; padding: 0 4px !important; }
}

/* Подписи для сенсорных экранов и для мыши */
.m-touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .m-touch-only { display: inline; }
  .m-pointer-only { display: none; }
}

/* ═══ Подбор запчастей ═══ */
@media (max-width: 1199.98px) {
  html body main.m-sel { padding: 20px var(--m-pad) 72px !important; max-width: 820px !important; }
  .m-sel-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; margin-top: 20px !important; }
  .m-sel-grid > section[aria-label] { display: contents !important; }
  .m-sel-grid > section[aria-label] > h1 { order: 1; font-size: clamp(40px, 7vw, 64px) !important; }
  .m-sel-grid > section[aria-label] > p { order: 2; margin-top: -10px !important; }
  .m-sel-grid > section[aria-labelledby] { order: 3; }
  .m-sel-grid > section[aria-label] > figure { display: none !important; }
  .m-sel-consult { order: 4; }
  .m-sel-grid > section[aria-labelledby] { padding: 28px !important; gap: 24px !important; }
  .m-sel-grid > section[aria-labelledby] > h2 { font-size: 30px !important; }
  .m-sel-tips {
    grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--m-card-pad, 28px)); padding: 2px var(--m-card-pad, 28px) 4px; scroll-padding: 0 var(--m-card-pad, 28px);
  }
  .m-sel-tips::-webkit-scrollbar { display: none; }
  .m-sel-tips > div { scroll-snap-align: start; }
  .m-sel-drop { cursor: pointer; }
  .m-sel-res button { height: 44px !important; }
}
@media (max-width: 767.98px) {
  .m-sel { --m-card-pad: 18px; }
  html body main.m-sel { padding-top: 16px !important; padding-bottom: 48px !important; }
  html body main.m-sel > nav { font-size: 13px !important; }
  .m-sel-grid { gap: 22px !important; margin-top: 16px !important; }
  .m-sel-grid > section[aria-label] > h1 { font-size: clamp(36px, 11vw, 46px) !important; }
  .m-sel-grid > section[aria-label] > p { font-size: 16px !important; }
  .m-sel-grid > section[aria-labelledby] { padding: 22px 18px !important; gap: 20px !important; margin: 0 -4px; border-radius: 12px !important; }
  .m-sel-grid > section[aria-labelledby] > h2 { font-size: 24px !important; }
  .m-sel-grid [role="tablist"] button { height: 52px !important; font-size: 15px !important; gap: 8px !important; }
  .m-sel-grid [role="tabpanel"] > p { font-size: 15px !important; }
  .m-sel-grid #part-article { height: 56px !important; }
  .m-sel-grid #part-article + button { top: 10px !important; }
  .m-sel-grid input#part-article ~ span, .m-sel-grid span[aria-hidden]:has(+ #part-article) { top: 17px !important; }
  .m-sel-grid [role="radiogroup"] button { height: 40px !important; }
  .m-sel-res { grid-template-columns: 52px minmax(0, 1fr) auto !important; grid-template-areas: "img info info" "img price add"; row-gap: 8px !important; column-gap: 12px !important; }
  .m-sel-res > span:nth-of-type(1) { grid-area: img; width: 52px !important; height: 52px !important; align-self: start; }
  .m-sel-res > span:nth-of-type(2) { grid-area: info; }
  .m-sel-res > span:nth-of-type(3) { grid-area: price; align-items: flex-start !important; }
  .m-sel-res > button { grid-area: add; width: auto !important; padding: 0 14px !important; }
  .m-sel-submit { flex-direction: column; align-items: stretch !important; gap: 12px !important; }
  .m-sel-submit > button { width: 100% !important; justify-content: center; }
  .m-sel-tips { grid-auto-columns: 78%; }
  .m-sel-drop { grid-template-columns: 48px minmax(0, 1fr) !important; gap: 14px !important; padding: 18px 16px !important; }
  .m-sel-drop > span:nth-of-type(1) { width: 48px !important; height: 48px !important; }
  .m-sel-drop > span:nth-of-type(2) strong { font-size: 17px !important; }
  .m-sel-drop > span:nth-of-type(2) > span:first-of-type { font-size: 14px !important; }
  .m-sel-drop > span:nth-of-type(3) {
    grid-column: 1 / -1; min-width: 0 !important; flex-direction: row !important; align-items: center !important; gap: 12px !important;
  }
  .m-sel-drop > span:nth-of-type(3) > span:nth-child(1) { font-size: 20px !important; }
  .m-sel-drop > span:nth-of-type(3) > span:nth-child(2) { flex: 1; width: auto !important; }
  [aria-label="Выбранные фотографии"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  [aria-label="Выбранные фотографии"] button { width: 34px !important; height: 34px !important; right: 6px !important; top: 6px !important; }
  .m-sel-pair { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  #selection-photo-result { padding: 20px 18px !important; }
  #selection-photo-result strong { font-size: 22px !important; }
  #selection-photo-result > div:first-child { grid-template-columns: 44px minmax(0, 1fr) !important; gap: 14px !important; align-items: start !important; }
  #selection-photo-result > div:first-child > span:first-child { width: 44px !important; height: 44px !important; }
  .m-sel-consult > span:first-child a { font-size: 26px !important; }
  .m-sel-list { flex-direction: column; align-items: flex-start !important; gap: 10px !important; }
}

/* ═══ Каталог: вход ═══ */
@media (max-width: 1199.98px) {
  section[data-screen-label="Каталог · вход"] > div,
  section[data-screen-label="Каталог · выдача"] > div,
  section[data-screen-label="Новые лифты"] > div,
  html body section[data-screen-label="Подбор лифта"] > div { padding-left: var(--m-pad) !important; padding-right: var(--m-pad) !important; }
  html body .cat-head { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 20px; }
  html body .cat-head h1 { font-size: clamp(36px, 6.4vw, 58px); }
  html body .cat-head p { max-width: 560px; }
  html body .cat-search { margin-top: 28px; }
  html body[data-ui-theme] .catalog-hall.catalog-hall--v2 { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding: 28px; }
  html body .cat-index-list { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; }
  html body[data-ui-theme] .catalog-entry-section { padding: 28px; }
  html body .catalog-brands--featured .cat-brand-list a { min-height: 44px; }
  html body .cat-equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 899.98px) {
  html body[data-ui-theme] .catalog-hall.catalog-hall--v2 { grid-template-columns: minmax(0, 1fr); }
  html body .catalog-hall--v2 .catalog-elevator { display: none !important; }
  html body .cat-index-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
@media (max-width: 767.98px) {
  html body section[data-screen-label="Каталог · вход"] > div { padding-top: 18px !important; padding-bottom: 40px !important; }
  html body .cat-head h1 { font-size: clamp(32px, 9.4vw, 42px); line-height: 1.02; }
  html body .cat-head p { font-size: 15px; }
  html body .cat-search { margin-top: 22px; height: 60px; padding: 0 6px 0 14px; gap: 10px; border-radius: 12px; }
  html body .cat-search-total { display: none; }
  html body .cat-search button { height: 48px; padding: 0 16px; border-radius: 8px; gap: 8px; }
  html body .cat-search button svg { display: none; }
  html body .cat-examples > span { width: 100%; }
  html body .cat-examples a { padding: 7px 12px; }
  html body[data-ui-theme] .catalog-hall.catalog-hall--v2,
  html body[data-ui-theme] .catalog-entry-section { margin-top: 20px; padding: 22px 18px 18px; border-radius: 12px; }
  html body[data-ui-theme] .catalog-entry-section .catalog-entry-title { font-size: 22px !important; }
  html body .cat-index-head { margin-bottom: 8px; }
  html body .cat-index-list { grid-template-columns: minmax(0, 1fr); }
  html body .cat-index-list a { grid-template-columns: 26px minmax(0, 1fr) auto; min-height: 54px; padding: 8px 2px 8px 0; }
  html body .cat-index-t { font-size: 16px; }
  html body .cat-index-all { padding-top: 18px; flex-wrap: wrap; }
  html body .catalog-brands--featured .cat-brand-list { gap: 8px; }
  html body .catalog-brands--featured .cat-brand-list a { padding: 8px 12px; gap: 10px; font-size: 14px; }
  html body .cat-equipment-grid { grid-template-columns: minmax(0, 1fr) !important; }
  html body .catalog-equipment-links--featured .cat-equipment-grid a { min-height: 84px; padding: 16px; gap: 14px; grid-template-columns: 34px minmax(0, 1fr) 20px; }
  html body section[data-screen-label="Каталог · вход"] > div > .ui-panel:last-child { grid-template-columns: minmax(0, 1fr) !important; }
  html body section[data-screen-label="Каталог · вход"] > div > .ui-panel:last-child > a { padding: 16px 18px !important; }
  html body section[data-screen-label="Каталог · вход"] > div > .ui-panel:last-child > a + a { border-left: 0 !important; border-top: 1px solid #E1E0DA; }
}

/* ═══ Каталог: выдача и фильтры ═══ */
@media (max-width: 1199.98px) {
  html body .m-list-head { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  html body .m-list-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; margin-top: 20px !important; }
  html body .m-list-grid > aside[aria-label="Фильтры"] { display: none !important; }
  html.m-filters-open body .m-list-grid > aside[aria-label="Фильтры"] {
    display: flex !important; position: fixed !important; z-index: 160; top: 0 !important; right: 0; bottom: 0; left: auto;
    width: min(420px, 100%); max-height: none !important; overflow-y: auto !important; overscroll-behavior: contain;
    padding: 72px var(--m-pad) 96px !important; background: #FFFFFF; box-shadow: -24px 0 60px -30px rgba(10, 14, 20, .5);
    animation: mh-in 320ms cubic-bezier(.2, .8, .2, 1) both;
  }
  html.m-filters-open body .m-list-grid > aside[aria-label="Фильтры"] > div:first-child { display: none !important; }
  html.m-filters-open body .m-list-grid > aside[aria-label="Фильтры"] button { min-height: 44px !important; }
  html.m-filters-open { overflow: hidden; }
  html body .m-filter-fab {
    position: fixed; z-index: 130; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
    height: 48px; padding: 0 20px 0 16px; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 24px;
    background: #17191C; color: #FFFFFF; font: 600 15px/1 'Inter', sans-serif; box-shadow: 0 16px 34px -14px rgba(10, 14, 20, .6); cursor: pointer;
    transition: transform 260ms cubic-bezier(.2, .8, .2, 1), opacity 200ms ease;
  }
  html body .m-filter-fab[hidden] { display: none; }
  html body .m-filter-fab svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  html body .m-filter-fab b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #1D58D8; font: 600 12px/20px 'Inter', sans-serif; text-align: center; }
  html body .m-filter-fab b:empty { display: none; }
  html body .m-filter-fab.is-away { transform: translate(-50%, 140%); opacity: 0; }
  html body .m-filter-bar, html body .m-filter-go { display: none; }
  html.m-filters-open .m-filter-bar {
    display: flex; position: fixed; z-index: 161; top: 0; right: 0; width: min(420px, 100%); height: 60px;
    align-items: center; justify-content: space-between; padding: 0 10px 0 var(--m-pad); background: #FFFFFF; border-bottom: 1px solid var(--m-line);
    font: 600 18px/1 'Inter', sans-serif; color: var(--m-ink); animation: mh-in 320ms cubic-bezier(.2, .8, .2, 1) both;
  }
  html body .m-filter-bar > span { display: flex; align-items: center; gap: 4px; }
  html body .m-filter-bar button { height: 44px; padding: 0 12px; border: 0; background: transparent; font: 500 14px/1 'Inter', sans-serif; color: var(--m-blue); cursor: pointer; }
  html body .m-filter-bar button.m-filter-x { width: 44px; padding: 0; color: var(--m-ink); display: inline-flex; align-items: center; justify-content: center; }
  html body .m-filter-bar svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  html.m-filters-open .m-filter-go {
    display: flex; position: fixed; z-index: 161; right: 0; bottom: 0; width: min(420px, 100%);
    padding: 12px var(--m-pad) max(12px, env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--m-line);
    animation: mh-in 320ms cubic-bezier(.2, .8, .2, 1) both;
  }
  html body .m-filter-go button { flex: 1; height: 52px; border: 0; border-radius: 6px; background: var(--m-blue); color: #FFFFFF; font: 600 16px/1 'Inter', sans-serif; cursor: pointer; }
  html body .m-filter-shade { display: none; }
  html.m-filters-open .m-filter-shade { display: block; position: fixed; inset: 0; z-index: 159; background: rgba(10, 14, 20, .45); animation: mh-fade 240ms ease both; }

  html body .m-list-tools { min-height: 0 !important; gap: 10px !important; }
  html body .m-list-tools > div:last-child { width: 100%; justify-content: space-between; }
  html body .m-list-tools [role="group"] button { height: 38px !important; }
  html body .m-list-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 767.98px) {
  html body section[data-screen-label="Каталог · выдача"] > div { padding-top: 16px !important; padding-bottom: 88px !important; }
  html body section[data-screen-label="Каталог · выдача"] nav[aria-label="Навигационная цепочка"] { font-size: 13px !important; }
  html body .catalog-scope-nav { margin: 16px 0 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--m-pad)); padding-right: var(--m-pad); }
  html body .catalog-scope-nav::-webkit-scrollbar { display: none; }
  html body .catalog-scope-nav a { flex: none; padding: 9px 12px; }
  html body .m-list-head h1 { font-size: clamp(28px, 8.2vw, 36px) !important; }
  html body .m-list-head form { height: 52px !important; }
  html body .m-list-tools [role="group"] button { padding: 0 10px !important; font-size: 13px !important; }
  html body .m-list-tools > div:last-child { flex-wrap: wrap; gap: 8px !important; }
  html body .m-list-tools [role="group"][aria-label="Сортировка"] { flex: 1 1 auto; }
  html body .m-list-tools [role="group"][aria-label="Сортировка"] button { flex: 1; white-space: nowrap; }
  html body .m-list-tools [role="group"][aria-label="Вид"] { margin-left: auto; }
  html body .cat-index-head span { white-space: nowrap; }
  html body .m-list-row {
    grid-template-columns: 72px minmax(0, 1fr) auto !important; grid-template-areas: "img info info" "price price act";
    gap: 10px 14px !important; padding: 14px 0 !important;
  }
  html body .m-list-row > a:first-child { grid-area: img; width: 72px !important; height: 72px !important; }
  html body .m-list-row > div:nth-of-type(1) { grid-area: info; gap: 6px !important; }
  html body .m-list-row > div:nth-of-type(1) > a { font-size: 15px !important; }
  html body .m-list-row > div:nth-of-type(2) { grid-area: price; flex-direction: row !important; align-items: baseline; gap: 8px !important; }
  html body .m-list-row > div:nth-of-type(2) > span:first-child { font-size: 17px !important; }
  html body .m-list-row > div:nth-of-type(3) { grid-area: act; }
  html body .m-list-row > div:nth-of-type(3) > button:last-child { min-width: 0 !important; height: 44px !important; }
  html body .m-list-row > div:nth-of-type(3) > button:first-child { width: 44px !important; height: 44px !important; }
  html body .m-list-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  html body .m-list-cards > div > div { padding: 10px 12px 12px !important; }
  html body .m-list-cards > div > div > div { flex-wrap: wrap; }
  html body .m-list-cards > div > div > div > button { width: 100%; height: 40px !important; }
  html body section[data-screen-label="Каталог · выдача"] [data-row][style*="dashed"], html body section[data-screen-label="Каталог · выдача"] div[data-row]:not(.m-list-row) { padding: 24px 18px !important; }
}

/* ═══ Новые лифты и подбор лифта ═══ */
@media (max-width: 1199.98px) {
  html body .lift-heading { flex-direction: column; align-items: flex-start !important; gap: 14px !important; }
  html body .lift-heading p { max-width: 560px !important; }
  html body .lift-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html body .lift-panel { grid-template-columns: minmax(0, 1fr) !important; }
  html body .lift-panel .lift-visual { margin: 18px 18px 0 !important; min-height: 0 !important; }
  html body .m-lsel-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 32px !important; }
  html body .m-lsel-grid > aside { position: static !important; max-width: 560px; }
}
@media (max-width: 767.98px) {
  html body section[data-screen-label="Новые лифты"] > div, html body section[data-screen-label="Подбор лифта"] > div { padding-top: 16px !important; padding-bottom: 56px !important; }
  html body .lift-heading h1 { font-size: clamp(28px, 8.4vw, 38px) !important; }
  html body .lift-heading p { font-size: 15px !important; }
  html body .lift-tabs { gap: 8px !important; margin-top: 22px !important; margin-bottom: 14px !important; }
  html body .lift-tabs button { min-height: 0 !important; padding: 14px !important; }
  html body .lift-tabs button > span:last-child { font-size: 13px !important; }
  html body .lift-tabs button > span:nth-child(2) { font-size: 18px !important; line-height: 1.15 !important; overflow-wrap: anywhere; }
  html body .lift-panel .lift-visual { margin: 12px 12px 0 !important; }
  html body .lift-copy { padding: 20px 18px 22px !important; gap: 20px !important; }
  html body .lift-copy h2 { font-size: 28px !important; }
  html body .lift-copy p { font-size: 16px !important; }
  html body .lift-considerations dl > div { grid-template-columns: minmax(0, 1fr) !important; gap: 4px !important; }
  html body .lift-actions > a { white-space: normal !important; text-align: center; }
  html body section[data-screen-label="Подбор лифта"] h1 { font-size: clamp(30px, 8.8vw, 40px) !important; }
  html body .m-lsel-row { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; padding: 18px 0 !important; }
  html body .m-lsel-row > span:first-child { font-size: 16px !important; }
  html body .m-lsel-row button { min-height: 44px; }
  html body .m-lsel-submit { flex-direction: column; align-items: stretch !important; }
  html body .m-lsel-submit > button { width: 100%; height: 54px !important; }
  html body .m-lsel-grid > aside > div:first-child { display: none; }
}

/* ═══ «Доставка», «О компании», «Контакты» ═══ */
@media (max-width: 1199.98px) {
  .ip { min-width: 0 !important; }
  .ip-wrap { padding: 0 var(--m-pad); }
  body[data-ui-theme] .ip h1.ip-title { font-size: clamp(36px, 6vw, 52px) !important; }
  body[data-ui-theme] .ip h2.ip-h2 { font-size: clamp(28px, 4.6vw, 36px) !important; }
  .ip-lead { font-size: 17px; }
  .dv-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 40px; padding-bottom: 64px; }
  .dv-copy { gap: 36px; }
  .ip-terms { max-width: none; }
  .ip-term { grid-template-columns: 200px minmax(0, 1fr); }
  .dv-calc { max-width: 560px; }
  .dv-process .ip-wrap { padding-top: 72px; padding-bottom: 64px; }
  .dv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .dv-steps::before, .dv-steps::after { display: none; }
  .ip-track { margin-top: 56px; }
  .ab-top { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; }
  .ip-certs { max-width: 620px; width: 100%; height: auto; aspect-ratio: 620 / 528; }
  .ip-cert-zenit { top: 32%; }
  .ab-plants { grid-template-columns: minmax(0, 1fr); }
  .ab-plant, .ab-plant + .ab-plant { padding: 22px 0 26px; }
  .ab-plant + .ab-plant::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
  .ab-go { opacity: 1; transform: none; }
  .ab-brands { padding: 72px 0 80px; }
  .ab-brands-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ab-brands-head { gap: 28px; }
  .ip-ct-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 32px; padding-bottom: 48px; }
  .ip-map { height: 460px; }
  .ip-reqs { flex-wrap: wrap; gap: 20px 40px; }
  .ip-lb-bar { left: 16px; right: 16px; top: 12px; }
  .ip-lb-stage { left: 12px; right: 12px; top: 68px; bottom: 16px; }
}
@media (hover: none) {
  .ip-copy { opacity: .9; }
}
@media (max-width: 767.98px) {
  body[data-ui-theme] .ip h1.ip-title { font-size: clamp(30px, 8.8vw, 40px) !important; letter-spacing: -0.028em !important; }
  body[data-ui-theme] .ip h2.ip-h2 { font-size: clamp(26px, 7.6vw, 32px) !important; }
  .ip-lead { font-size: 16px; }
  .dv-grid { gap: 32px; padding-top: 28px; padding-bottom: 48px; }
  .dv-copy { gap: 28px; }
  .ip-term { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0 18px; }
  .dv-calc { padding: 20px 16px 18px; border-radius: 18px; gap: 16px; }
  body[data-ui-theme] .ip .dv-calc-head h2 { font-size: 22px !important; }
  .dv-carrier span { height: 52px; padding: 0 38px 0 14px; font-size: 14.5px; line-height: 1.15; white-space: normal; }
  .dv-carrier span::after { right: 10px; }
  .dv-go { height: 68px; padding: 0 10px 0 18px; border-radius: 14px; }
  .dv-go-text b { font-size: 17px; }
  .dv-go-icon { width: 46px; height: 46px; }
  .dv-process .ip-wrap { padding-top: 56px; padding-bottom: 48px; }
  .dv-steps { --scene: 108px; margin-top: 32px; grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .dv-step { display: grid; grid-template-columns: 108px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .dv-scene { grid-row: 1 / 4; width: 108px; border-radius: 14px; }
  .dv-dot { display: none; }
  body[data-ui-theme] .ip .dv-step h3 { font-size: 19px; padding-top: 6px; }
  .dv-step p { margin-top: 6px; font-size: 14.5px; }
  .ip-track { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 44px; }
  .ip-track .ip-btn { width: 100%; }
  .ab-top { gap: 28px; padding-top: 24px; padding-bottom: 20px; }
  .ab-copy { gap: 22px; }
  .ab-actions { flex-direction: column; }
  .ab-actions .ip-btn { width: 100%; }
  .ab-plant { grid-template-columns: 40px minmax(0, 1fr) 18px; row-gap: 14px; }
  .ab-plant-fig { grid-column: 2 / 3; grid-row: 2; }
  .ab-plant .ip-roll { font-size: 28px; }
  .ab-brands { padding: 56px 0 64px; }
  .ab-brands .ip-roll { font-size: 64px; }
  .ab-plus { font-size: 40px; }
  .ab-bar-list a { grid-template-columns: minmax(0, 1fr) 56px; grid-template-areas: "name num" "bar bar"; row-gap: 10px; padding: 14px 0; }
  .ab-bar-name { grid-area: name; font-size: 16px; }
  .ab-bar { grid-area: bar; }
  .ab-bar-num { grid-area: num; }
  .ip-ct-grid { gap: 28px; padding-top: 24px; }
  .ip-phone { font-size: 28px; }
  .ip-mail { font-size: 22px; }
  .ip-map { height: 340px; border-radius: 14px; }
  .ip-reqs { flex-direction: column; gap: 16px; }
  .ip-copy-all { margin-left: 0; align-self: stretch; justify-content: center; height: 48px; }
  .ip-ct-bottom { padding-bottom: 56px; }
  .ip-copy-tip { left: auto; right: 0; transform: translateY(4px); }
  .ip-copy.is-copied .ip-copy-tip { transform: none; }
}

/* ═══ Служебные страницы: «Где заказ», «Условия закупки» ═══ */
@media (max-width: 1199.98px) {
  .service-page { padding: 24px var(--m-pad) 64px !important; }
  .service-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 36px !important; }
  .service-page h1 { font-size: clamp(36px, 6vw, 52px) !important; max-width: none; }
  .service-crumbs { margin-bottom: 24px; }
  .journey-stages { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 767.98px) {
  .service-crumbs { font-size: 13px; }
  .service-page h1 { font-size: clamp(30px, 8.8vw, 40px) !important; }
  .service-lead { font-size: 17px; margin-bottom: 20px; }
  .service-contact a { font-size: 24px; }
  .service-form { padding: 20px 16px; border-radius: 10px; }
  .service-form input { min-height: 50px; }
  .service-button { width: 100%; }
  .journey { margin-top: 48px; }
  .journey-top { flex-direction: column; align-items: flex-start !important; gap: 6px; }
  .journey-stages { grid-template-columns: minmax(0, 1fr) !important; }
  .journey-stages button { padding: 14px 0 !important; font-size: 18px !important; display: flex; align-items: baseline; gap: 12px; border-top: 0; border-left: 2px solid transparent; padding-left: 12px !important; margin: 0 !important; }
  .journey-stages button > span { margin: 0 !important; }
  .journey-stages button[aria-pressed="true"] { border-left-color: #0b47a8; }
  .my-orders { margin-top: 48px; }
  .account-prompt { padding: 22px 18px; }
  .account-prompt-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .service-links { display: flex !important; flex-direction: column; gap: 0 !important; }
  .service-links > a { padding: 14px 0 !important; border-bottom: 1px solid #E3E5E8; }
}

/* ═══ Кабинет (демо) ═══ */
@media (max-width: 1199.98px) {
  body[data-ui-page="account"] > div[style^="background:#EEF2F9"] > div { padding: 10px var(--m-pad) !important; flex-wrap: wrap; row-gap: 6px !important; font-size: 13px !important; }
  body[data-ui-page="account"] > div[style^="background:#EEF2F9"] > div > a { margin-left: 0 !important; white-space: normal !important; }
  section[data-screen-label="Кабинет · вход"] > div, section[data-screen-label="Кабинет"] > div:not([data-screen-label]),
  div[data-screen-label="Кабинет · шапка"] > div:last-child { padding-left: var(--m-pad) !important; padding-right: var(--m-pad) !important; }
  .acc-login { grid-template-columns: minmax(0, 1fr) !important; min-height: 0 !important; }
  .acc-login > div:first-child > ul { display: none !important; }
  .acc-login > div:first-child { padding: 32px 28px !important; }
  .acc-login > div:last-child { padding: 32px 28px !important; }
  .acc-head { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
  .acc-head > div:first-child > div { flex-wrap: wrap; row-gap: 12px !important; }
  .acc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .acc-stats > a { padding: 6px 16px 4px !important; }
  .acc-stats > a:first-child { border-left: 0 !important; padding-left: 0 !important; }
  nav[aria-label="Разделы кабинета"] { overflow-x: auto; scrollbar-width: none; gap: 24px !important; margin-top: 24px !important; }
  nav[aria-label="Разделы кабинета"]::-webkit-scrollbar { display: none; }
  nav[aria-label="Разделы кабинета"] > * { flex: none; }
  .acc-detail { grid-template-columns: minmax(0, 1fr) !important; gap: 20px !important; }
  .acc-two, .acc-set { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  [role="tablist"][aria-label="Статус заказа"] { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
  [role="tablist"][aria-label="Статус заказа"] > button { padding-left: 14px !important; padding-right: 14px !important; }
}
@media (max-width: 767.98px) {
  section[data-screen-label="Кабинет · вход"] > div { padding-top: 16px !important; padding-bottom: 48px !important; }
  .acc-login > div:first-child { padding: 24px 20px !important; gap: 0 !important; }
  .acc-login > div:first-child h1 { font-size: 28px !important; }
  .acc-login > div:last-child { padding: 24px 20px 28px !important; }
  .acc-login input { height: 50px !important; }
  div[data-screen-label="Кабинет · шапка"] > div:last-child { padding-top: 24px !important; }
  div[data-screen-label="Кабинет · шапка"] h1 { font-size: 32px !important; }
  .acc-stats > a { padding: 4px 10px 2px !important; }
  .acc-stats > a > span:nth-child(1) { font-size: 10px !important; letter-spacing: .06em !important; }
  .acc-stats > a > span:nth-child(2) { font-size: 34px !important; }
  .acc-stats > a > span:nth-child(3) { font-size: 12px !important; }
  section[data-screen-label="Кабинет"] > div:not([data-screen-label]) { padding-top: 24px !important; padding-bottom: 56px !important; }
  section[data-screen-label="Кабинет"] .ui-panel { padding: 20px 16px !important; }
  section[data-screen-label="Кабинет"] .ui-panel > div:first-child, section[data-screen-label="Кабинет"] .ui-panel > div:last-child { flex-wrap: wrap; row-gap: 12px; }
  .acc-track > span > span:last-child, .acc-stages > span > span:last-child { font-size: 10.5px !important; }
  .acc-row { grid-template-columns: minmax(0, 1fr) auto !important; gap: 8px 14px !important; }
  .acc-row > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .acc-row > span:nth-child(3) { grid-row: 3; }
  .acc-row > span:nth-child(4) { grid-column: 2; grid-row: 1; justify-self: end; }
  .acc-row > span:nth-child(5) { grid-column: 2; grid-row: 3; justify-self: end; }
  .acc-item { grid-template-columns: 40px minmax(0, 1fr) auto !important; grid-template-areas: "img name name" "img q tot"; row-gap: 4px !important; }
  .acc-item > span:nth-child(1) { grid-area: img; width: 40px !important; height: 40px !important; }
  .acc-item > span:nth-child(2) { grid-area: name; }
  .acc-item > span:nth-child(3) { grid-area: q; }
  .acc-item > span:nth-child(4) { grid-area: tot; }
  .acc-fav { grid-template-columns: 56px minmax(0, 1fr) !important; grid-template-areas: "img info" "img price" "act act"; row-gap: 8px !important; column-gap: 14px !important; }
  .acc-fav > *:nth-child(1) { grid-area: img; width: 56px !important; height: 56px !important; }
  .acc-fav > *:nth-child(2) { grid-area: info; }
  .acc-fav > *:nth-child(3) { grid-area: price; }
  .acc-fav > *:nth-child(4) { grid-area: act; justify-content: flex-start !important; flex-wrap: wrap; }
  .acc-set2 { grid-template-columns: minmax(0, 1fr) !important; }
  .acc-pagehead { flex-direction: column; align-items: stretch !important; gap: 16px !important; }
  .acc-pagehead h1 { font-size: 34px !important; }
}

/* ═══ Страница товара ═══ */
@media (max-width: 767.98px) {
  .cp-row { flex-wrap: wrap; }
  .cp-row .cp-qty { flex: 1 1 auto; }
  .cp-row .cp-qty input { flex: 1; }
  .cp-row .cp-add { flex: 1 1 100%; order: 3; height: 54px; }
  .cp-buy { padding: 18px 16px; }
}

/* Узкие телефоны: подписи доставки целиком, без изменения остальных блоков. */
@media (max-width: 390px) {
  html body .m-cart-grid > aside [role="radiogroup"][aria-label="Способ доставки"] { grid-template-columns: minmax(0, 1fr) !important; gap: 3px; }
  html body .m-cart-grid > aside [role="radiogroup"][aria-label="Способ доставки"] > span[aria-hidden] { display: none; }
  html body .m-cart-grid > aside [role="radiogroup"][aria-label="Способ доставки"] button { white-space: normal; }
  html body .m-cart-grid > aside [role="radiogroup"][aria-label="Способ доставки"] button[aria-checked="true"] { background: #FFFFFF !important; border-radius: 3px; box-shadow: 0 1px 3px rgba(23,25,28,.14); }
}
