/* Мобильная навигация. Кнопки и панели создаёт mobile-shell.js.
   На компьютере новые элементы скрыты, всё остальное — только внутри @media (max-width: 767px). */
.mh-btn, .mh-actions, .mtab, .mdrawer, .m-bn, .m-subcats-toggle, .mbuy { display: none; }

/* Шрифт на iPhone (Иван 20.11: «шрифт не читается»). Google отдаёт Montserrat одним переменным файлом на все толщины 300–700,
   но объявляет его как пять отдельных толщин; часть браузеров на iPhone тогда показывает начертание файла по умолчанию —
   самое тонкое (100). Здесь тот же файл объявлен с диапазоном толщин 100–900 — браузер берёт нужную толщину сам.
   Пары адрес + unicode-range взяты из ответа fonts.googleapis.com (v31, 20.11.2026). */
@font-face { font-family: "MO Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/montserrat/montserrat-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "MO Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/montserrat/montserrat-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "MO Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/montserrat/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "MO Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/montserrat/montserrat-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "MO Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/montserrat/montserrat-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

/* PT Sans для мобильного меню. Файлы Google Fonts v18, лицензия в fonts/pt-sans/OFL.txt. */
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/pt-sans/regular-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/pt-sans/regular-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/pt-sans/bold-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/pt-sans/bold-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Иван 23.11 (снимок с iPhone, карточка товара): «текст плохо читабельный» — Montserrat всё равно шёл самым тонким
   начертанием (переменный файл Google; часть браузеров на iPhone не умеет толщины). На телефоне весь текст —
   системным шрифтом телефона (iPhone — SF, Android — Roboto): чёткий, все толщины, ничего не скачивается. */
@media (max-width: 767px) {
  body, body :not(svg):not(svg *) { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important; }
  /* серые подписи темнее, чтобы читались на солнце */
  :root { --muted: #5A5153 !important; }
  .av { --mut: #5A5153 !important; } .dz { --dz-m: #5A5153 !important; } .pk { --pk-m: #5A5153 !important; } .psx { --mu: #5A5153 !important; }
  .seo-tbl th, .seo-kpi span, .seo-facts--catalog .seo-line, .cv__lbl, .g2__sheet small { color: #5A5153 !important; }
  body { -webkit-text-size-adjust: 100%; }
}

@media (max-width: 767px) {
  :root { --mtab-h: 66px; --m-safe: env(safe-area-inset-bottom, 0px); }
  html.m-lock, html.m-lock body { overflow: hidden; }
  body { padding-bottom: calc(var(--mtab-h) + var(--m-safe)); }

  /* ---- шапка в одну строку ---- */
  .topbar { display: none !important; }
  .header, .header.is-scrolled {
    position: sticky !important; top: 0; z-index: 70; background: #fff;
    box-shadow: 0 1px 0 var(--line, #E9E4E4); padding: 0 !important;
    transition: transform .2s ease;
  }
  .header.m-head-hidden:not(.is-find, :has(:focus-visible)) {
    transform: translateY(calc(-100% - 2px)); pointer-events: none;
  }
  @media (prefers-reduced-motion: reduce) { .header, .header.is-scrolled { transition: none; } }
  .header .header__in {
    display: grid !important; grid-template-columns: 44px 44px minmax(0, 1fr) 44px 44px;
    grid-template-areas: "menu find logo actions actions" "search search search search search";
    align-items: center; gap: 0 !important; min-height: 58px; padding: 4px 6px !important; flex-wrap: nowrap;
  }
  /* всё прочее из компьютерной шапки (кнопка «Каталог» в обёртке .gc-host, звонок, телефон, значки) — прячем */
  .header .header__in > :not(.mh-btn):not(.mh-actions):not(.logo):not(.header-search) { display: none !important; }
  .header .megamenu { display: none !important; }

  .mh-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: 0;
    border: 0; border-radius: 12px; background: none; color: #1d1d1f; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mh-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mh-btn:active { background: var(--grey, #F6F4F4); }
  .mh-menu { grid-area: menu; } .mh-find { grid-area: find; }
  .mh-actions { grid-area: actions; display: flex; justify-content: flex-end; position: relative; }
  .mh-actions--paired::before, .mh-actions--paired::after {
    content: ""; position: absolute; pointer-events: none;
  }
  .mh-actions--paired::before {
    inset: 4px 0; border: 1px solid var(--line, #E9E4E4); border-radius: 999px;
  }
  .mh-actions--paired::after {
    top: 50%; left: 50%; width: 1px; height: 18px;
    transform: translate(-50%, -50%); background: var(--line, #E9E4E4);
  }
  .mh-actions .mh-btn:active { background: transparent; color: var(--pink, #A42654); }
  .mh-call svg { fill: currentColor; stroke: none; }
  .mh-city svg circle { fill: var(--pink, #A42654); stroke: none; }
  .header .header__in > .logo {
    grid-area: logo; justify-self: center; width: min(clamp(138px, 39vw, 146px), 100%); margin: 0 !important; min-width: 0;
  }
  /* Явная ширина от родительской ссылки нужна Safari для фонового SVG. */
  .header .dm-logo, .header.is-scrolled .dm-logo { height: 34px !important; width: 100% !important; }
  .header .mh-find[aria-expanded="true"] { color: var(--pink, #A42654); }

  /* строка поиска — по кнопке-лупе, под шапкой */
  .header .header__in > .header-search { grid-area: search; display: none !important; width: auto !important; margin: 2px 4px 8px !important; }
  .header.is-find .header__in > .header-search { display: block !important; }
  .header .header-search :not(svg):not(svg *) { font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important; }
  .header .header-search input { color: #111; }
  .header .search-suggestions { max-height: min(48vh, 420px); }

  /* плавающие кнопки и cookie — над нижней панелью; позвонить уже есть в шапке */
  .fab { bottom: calc(var(--mtab-h) + var(--m-safe) + 12px) !important; }
  .fab .fab__btn--call { display: none !important; }
  .cookie { bottom: calc(var(--mtab-h) + var(--m-safe) + 8px) !important; }
  html.m-buybar .cookie, body:has(.dz-float.is-on) .cookie {
    bottom: calc(var(--mtab-h) + var(--m-safe) + 70px) !important;
  }
  @media (max-width: 759px) {
    .city__close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
  }

  /* ---- нижняя панель ---- */
  .mtab {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    height: calc(var(--mtab-h) + var(--m-safe)); padding: 0 2px var(--m-safe);
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line, #E9E4E4);
    -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  }
  .mtab__i {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0;
    padding: 6px 0 4px; border: 0; background: none; color: #3a3a3c; text-decoration: none; font: inherit;
    font-size: 11px; line-height: 1.1; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .mtab__i i { position: relative; display: block; width: 26px; height: 26px; }
  .mtab__i svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .mtab__i { justify-content: flex-start; padding-top: 8px; }
  .mtab__i span { display: block; max-width: 100%; white-space: nowrap; }
  .mtab__i[href="/design.html"] img { display: block; }
  .mtab__i[href="/design.html"] span { font-weight: 600; }
  .mtab__i.is-on { color: var(--pink, #A42654); font-weight: 600; }
  .mtab__i:active i { transform: scale(.92); }
  .mtab__badge {
    position: absolute; top: -5px; left: 17px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--pink, #A42654); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
    box-shadow: 0 0 0 2px #fff;
  }
  .mtab__badge[hidden] { display: none; }

  /* Иван 23.11 (своя картинка): панель — белая плашка со скруглением и тенью, тонкие разделители, чёрные иконки;
     в центре капсула «Офис под ключ» с ключом: обычно с чёрной обводкой, на своей странице и при нажатии — бордовая. */
  .mtab {
    grid-template-columns: 1fr 1fr 1.75fr 1fr 1fr; align-items: stretch; left: 0; right: 0; bottom: 0;
    height: calc(66px + var(--m-safe)); padding: 0 6px var(--m-safe); border: 0; border-top: 1px solid #ECE7E7; border-radius: 0;
    background: #fff; box-shadow: 0 -4px 18px rgba(30, 20, 25, .08); transition: transform .2s ease;
  }
  /* Иван 23.11: «как шапка — когда листаешь, уезжала и не мешала». Листаешь вниз — панель уезжает вниз,
     вверх — возвращается. --mtab-h = 0, поэтому полоса «Прайс-лист / В корзину», кнопка «наверх» и cookie опускаются за ней. */
  html.m-bar-hidden { --mtab-h: 0px; }
  html.m-bar-hidden:not(.m-lock) .mtab { transform: translateY(calc(100% + 24px)); pointer-events: none; }
  html.m-bar-hidden body { padding-bottom: calc(66px + var(--m-safe)); }
  html.m-bar-hidden.m-product-buybar body { padding-bottom: calc(66px + var(--m-safe) + 61px); }
  @media (prefers-reduced-motion: reduce) { .mtab { transition: none; } }
  /* Иван 23.11 с iPhone: «панель должна быть прикреплена к низу» — без зазора снизу и по бокам, белый фон до самого края */
  .mtab__i { position: relative; justify-content: center; height: 100%; padding: 2px 0 0; gap: 4px; color: #111; font-size: 11px; font-weight: 400; }
  .mtab__i + .mtab__i::before { content: ""; position: absolute; left: 0; top: 30%; height: 40%; width: 1px; background: #E3DEDE; }
  .mtab__i:not(.mtab__pill) span { letter-spacing: -.2px; }
  .mtab__i i, .mtab__i svg { width: 27px; height: 27px; }
  .mtab__i svg { stroke-width: 1.7; }
  .mtab__i.is-on { color: var(--pink, #A42654); font-weight: 600; }
  .mtab__pill { flex-direction: row; gap: 0; padding: 0 4px; }
  .mtab__pill > i, .mtab__pill > span { position: relative; z-index: 1; }
  .mtab__pill::after {
    content: ""; position: absolute; inset: 10px 3px; border: 2px solid #111; border-radius: 999px; background: #fff;
    transition: background .15s, border-color .15s;
  }
  .mtab__pill > i { width: 20px; height: 20px; margin-right: 5px; }
  .mtab__pill svg { width: 20px; height: 20px; stroke-width: 2; }
  .mtab__pill > span { padding-left: 5px; border-left: 1px solid currentColor; font-size: 12px; font-weight: 700; line-height: 1.15; text-align: left; white-space: nowrap; }
  /* Иван 23.11: «давай её сделаем всегда такой» — капсула всегда бордовая, при нажатии темнее */
  .mtab__pill, .mtab__pill.is-on { color: #fff; }
  .mtab__pill::after { border-color: transparent; background: linear-gradient(135deg, #B52D60, #8a1f47); }
  .mtab__pill:active::after { background: linear-gradient(135deg, #9c2552, #6f1838); }
  .mtab__pill > span { border-left-color: rgba(255, 255, 255, .55); }
  .mtab__pill:active i { transform: none; }
  .mtab__badge { left: 16px; top: -6px; }
  /* Иван 23.11: иконки панели из набора GPT (поле 128×128, линия 6.5 как в исходниках; ключ в капсуле — 7) */
  .mtab__i svg.ic128 { stroke-width: 6.5; }
  .mtab__pill svg.ic128 { stroke-width: 7; }

  /* ---- выдвижная панель: Каталог / Меню ---- */
  .mdrawer { display: block; position: fixed; inset: 0; z-index: 200; }
  .mdrawer, .mdrawer :not(svg):not(svg *) { font-family: "PT Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important; }
  .mdrawer[hidden] { display: none; }
  .mdrawer__bg { position: absolute; inset: 0; background: rgba(20, 16, 18, .45); opacity: 0; transition: opacity .2s; }
  .mdrawer__panel {
    position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); display: flex; flex-direction: column;
    background: #fff; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 8px 0 30px rgba(0, 0, 0, .15);
  }
  .mdrawer.is-open .mdrawer__bg { opacity: 1; }
  .mdrawer.is-open .mdrawer__panel { transform: none; }
  .mdrawer__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 2px 14px; }
  .mdrawer__top .mh-btn { display: inline-grid; }
  .mdrawer__logo .dm-logo { height: 28px; width: 118px; }
  .mdrawer__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 6px 8px 8px 14px; }
  .mdrawer__tabs { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .mdrawer__tabs button, .mdrawer__promo { box-sizing: border-box; min-height: 44px; padding: 2px; border: 0; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
  .mdrawer__tabs button { background: var(--grey, #F6F4F4); color: #1d1d1f; font: inherit; font-size: 17px; cursor: pointer; }
  .mdrawer__tabs button[data-mtab="menu"] { background: var(--pink, #A42654); color: #fff; font-weight: 700; }
  .mdrawer__body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 0 calc(16px + var(--m-safe)); }

  .md-cat, .md-link, .md-city {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 4px 12px 4px 14px;
    border: 0; border-bottom: 1px solid var(--line, #E9E4E4); background: none; color: #1d1d1f; text-decoration: none;
    font: inherit; font-size: 16px; font-weight: 400; text-align: left; cursor: pointer;
  }
  /* Иван 20.11 с iPhone: «иконки как в каталоге, цвет изменить, компактнее, чёрные буквы» */
  .mdrawer .md-cat.gc-main { min-height: 44px; padding: 4px 12px 4px 14px !important; gap: 10px !important; font-size: 16px !important; line-height: 1.2 !important; color: #111 !important; }
  .mdrawer .md-cat .mm-ic { flex: none; width: 32px !important; height: 32px !important; border-radius: 9px; display: grid; place-items: center;
    background: var(--grey, #F6F4F4) !important; color: #292929 !important; }
  .mdrawer .md-cat .mm-ic .mo-direction-icon { width: 100%; height: 100%; min-width: 0; display: grid; place-items: center; }
  .mdrawer .md-cat .mm-ic svg { display: block; width: 24px !important; height: 24px !important; }
  .md-cat__t, .md-link, .md-city span { flex: 1; min-width: 0; }
  .mdrawer .md-cat__t { font-weight: 400; color: #111; }
  .mdrawer .md-cat small { display: block; margin-top: 1px; color: #343136 !important; font-size: 13px !important; font-weight: 400; }
  .md-cat > svg, .md-link > svg, .md-city > svg:last-child { flex: none; width: 16px; height: 16px; fill: none; stroke: #b3aaab; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .md-link { color: #111 !important; }
  .md-link > svg { margin-left: auto; }
  .mdrawer .md-city { color: #111; }
  .mdrawer .md-tel { color: #111 !important; }
  .mdrawer .hcall.md-callback {
    display: inline-flex; justify-content: center; min-height: 44px; height: auto; margin: 0;
    flex: 0 1 auto; min-width: 0; padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px;
    background: #fff; color: var(--pink); font-size: 12px; line-height: 1.25; white-space: normal;
  }
  .mdrawer .hcall.md-callback svg { display: none; }
  .mdrawer .hcall.md-callback:is(:hover, :focus-visible, :active) { background: var(--blue); color: #fff; }
  .md-city > svg:first-child { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--pink, #A42654); stroke-width: 1.8; }
  .md-city b { font-weight: 700; }
  .md-contact {
    margin: 12px 12px 0; padding: 8px 11px 12px;
    border: 1px solid var(--line, #e9e4e4); border-radius: 14px; background: var(--grey, #f6f4f4);
  }
  .md-contact__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .md-contact__phone {
    position: relative; display: flex; flex: none; flex-direction: column; justify-content: center; gap: 2px;
    min-height: 44px;
  }
  .md-tel {
    white-space: nowrap; color: #1d1d1f; font-size: clamp(15px, 4.1vw, 17px); font-weight: 700; line-height: 1.2; text-decoration: none;
  }
  .md-tel::after { content: ""; position: absolute; inset: 0; }
  .md-contact__hours { margin: 0; color: #565056; font-size: 12px; line-height: 1.35; }
  .md-pickup { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line, #e9e4e4); }
  .md-pickup__label { display: flex; align-items: center; gap: 5px; color: #111; font-size: 13px; line-height: 1.25; }
  .md-pickup__label svg { display: block; width: 15px; height: 15px; fill: none; stroke: var(--pink); stroke-width: 1.8; }
  .md-pickup__address { margin: 4px 0 0; color: #343136; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
  .md-services { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line, #e9e4e4); text-align: center; }
  .md-services ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
  .md-services li {
    display: grid; justify-items: center; align-content: start; gap: 4px; padding: 2px;
    color: #343136; font-size: 11px; font-weight: 600; line-height: 1.25;
  }
  .md-services li + li { border-left: 1px solid #ded5d9; }
  .md-services li svg {
    width: 26px; height: 26px;
    fill: none; stroke: var(--pink); stroke-width: 1.65;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .md-services p { margin: 8px 0 0; color: #565056; font-size: 11px; line-height: 1.35; }
  .md-services p span { color: var(--pink); font-weight: 700; }
  @media (prefers-reduced-motion: no-preference) {
    .mdrawer.is-open .md-services.is-visible li svg { animation: service-icon-appear .24s ease-out both; }
    .mdrawer.is-open .md-services.is-visible li:nth-child(2) svg { animation-delay: .04s; }
    .mdrawer.is-open .md-services.is-visible li:nth-child(3) svg { animation-delay: .08s; }
  }
  @keyframes service-icon-appear {
    from { transform: translateY(3px); opacity: .7; }
    to { transform: translateY(0); opacity: 1; }
  }

  .mdrawer a.mdrawer__promo {
    display: flex; align-items: center; justify-content: center; gap: 3px;
    background: #000; color: #fff; text-align: center; text-decoration: none;
    font-size: clamp(10px, 2.9vw, 12px); font-weight: 700; line-height: 1.05;
  }
  .mdrawer__promo-icon {
    flex: none; width: clamp(16px, 5vw, 26px); aspect-ratio: 1; border-radius: 50%;
    background: url("/img/mobile-online-order-promo.jpg") 12.6% 50% / 500% auto no-repeat;
  }
  .mdrawer__promo strong { color: #f16a98; font-size: 1.35em; }
  .mdrawer .md-cat.gc-main { position: relative; min-height: 46px; padding: 3px 10px 3px 14px !important; gap: 12px !important;
    font-size: 16px !important; line-height: 1.2 !important; color: #1d1d1f !important; border-bottom: 0; }
  .mdrawer .md-cat.gc-main::after { content: ""; position: absolute; left: 64px; right: 10px; bottom: 0; height: 1px; background: var(--line, #E3DEDE); }
  .mdrawer .md-cat .mm-ic { width: 38px !important; height: 38px !important; border-radius: 11px; background: #F1EFEF !important; color: #1d1d1f !important; }
  .mdrawer .md-cat .mm-ic svg { width: 25px !important; height: 25px !important; }
  .mdrawer .md-cat__t { font-weight: 500; color: #1d1d1f; }
  .mdrawer .md-cat small { display: none; }
  .mdrawer .md-cat > svg { width: 18px; height: 18px; stroke: #77706f; stroke-width: 1.8; }

  /* ================= Главная (шаг 2): как на картинке Ивана — баннер, каталог плитками, популярные товары ================= */
  html.m-home main { display: flex; flex-direction: column; }
  html.m-home main > * { order: 20; }
  html.m-home main > .hero { order: 1; }
  /* До переноса услуг скриптом шапка главной уже занимает только место баннера. */
  html.m-home .hero__grid > .hero__side,
  html.m-home .hero > .wrap:has(> .perks) { display: none !important; }
  html.m-home main > #categories { order: 2; }
  html.m-home main > .m-home-promos { order: 3; padding: 6px 0; background: var(--grey, #F6F4F4); }
  html.m-home main > #hits { order: 4; }
  html.m-home main > #showcase { order: 5; }
  html.m-home main > #brief { order: 6; }
  html.m-home main > #blog { order: 7; }
  html.m-home main > #about { order: 8; }
  html.m-home main > #clients { order: 9; }
  html.m-home main > #faq { order: 10; }
  /* Иван 20.11 «расстояние и пробелы большие» — между блоками главной меньше пустоты */
  html.m-home main > .section { padding-top: 16px !important; padding-bottom: 16px !important; }
  html.m-home main .section__head { margin-bottom: 10px !important; }
  html.m-home main .section__head h2, html.m-home main #hits h2 { font-size: 21px !important; line-height: 1.2; margin: 0; }

  /* общий приём: ряд листается пальцем вбок до краёв экрана */
  html.m-home .m-swipe,
  html.m-home #cats, html.m-home .hero__side, html.m-home .perks,
  html.m-home .flip-grid {
    display: grid !important; grid-auto-flow: column; overflow-x: auto; overflow-y: hidden;
    margin-left: -16px !important; margin-right: -16px !important; padding: 2px 16px 6px !important;
    scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  html.m-home #cats::-webkit-scrollbar, html.m-home .hero__side::-webkit-scrollbar, html.m-home .perks::-webkit-scrollbar,
  html.m-home .flip-grid::-webkit-scrollbar { display: none; }
  html.m-home #cats > *, html.m-home .hero__side > *, html.m-home .perks > *,
  html.m-home .flip-grid > * { scroll-snap-align: start; }

  /* Готовые баннеры целиком. Переключатели под картинкой, чтобы не перекрывать её текст. */
  html.m-home .hero { padding-top: 10px !important; padding-bottom: 4px !important; }
  html.m-home #slider {
    --slide-nav-height: 16px;
    aspect-ratio: auto !important; height: auto !important; border-radius: 16px !important; overflow: hidden;
    padding-bottom: var(--slide-nav-height); background: #292c32;
  }
  html.m-home #slider::before { content: ""; display: block; aspect-ratio: 16 / 10; }
  html.m-home #slider > .slide { bottom: var(--slide-nav-height); }
  html.m-home #slider .bn-pic { inset: 0; width: 100%; height: 100%; transform: none; }
  html.m-home #slider .bn-pic img {
    display: block; object-fit: contain !important; object-position: center !important;
  }
  html.m-home #slider .bn--pic .bn-pic__btn,
  html.m-home #slider .bn--city.m-bn-on .ch__text, html.m-home #slider .bn--city.m-bn-on .ch__shade { display: none !important; }
  html.m-home #slider .bn--city .ch__scene { inset: 0; }
  html.m-home #slider .bn--city .ch__view { object-position: center !important; transform: none; }
  /* Подпись на уровне пола, чтобы показать мебель и интерьер над ней. */
  .m-bn {
    position: absolute; inset: auto 0 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 6px 12px 8px; color: #fff; pointer-events: none;
    background: linear-gradient(0deg, rgba(26, 20, 23, .88), rgba(26, 20, 23, .58) 74%, transparent);
  }
  .m-bn .m-bn__title {
    max-width: 220px; min-width: 0; margin: 0; font-size: clamp(15px, 4.1vw, 21px);
    line-height: 1.12; font-weight: 700; color: #fff; text-wrap: balance; text-shadow: 0 1px 4px #1a1417;
  }
  .m-bn .m-bn__go {
    pointer-events: auto; display: inline-flex; flex: none; align-items: center; min-height: 38px; padding: 5px 12px;
    border-radius: 999px; background: var(--pink, #A42654); color: #fff; font-size: 13px; font-weight: 600;
    text-decoration: none; white-space: nowrap;
  }
  .m-bn :is(.m-bn__title, .m-bn__go) { font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important; }
  html.m-home #slider .slider__dots {
    left: 50% !important; right: auto !important; transform: translateX(-50%); bottom: 0 !important;
    height: 24px; align-items: center; padding: 0; background: transparent;
  }
  html.m-home #slider .slider__dots button {
    width: 28px; height: 100%; background: transparent;
  }
  html.m-home #slider .slider__dots button.is-active { width: 44px; background: transparent; }
  html.m-home #slider .slider__dots button::before,
  html.m-home #slider .slider__dots button i {
    position: absolute; inset: auto 0 calc(var(--slide-nav-height) / 2 - 1px); height: 2px; border-radius: 2px;
  }
  html.m-home #slider .slider__dots button::before { content: ""; background: rgba(255, 255, 255, .42); }

  /* два больших фото «Выезд менеджера» и «Дизайн-проект» — в один ряд, листаются */
  html.m-home .hero__grid { gap: 8px !important; height: auto !important; }
  html.m-home .hero__side { grid-template-columns: none !important; grid-template-rows: none !important; grid-auto-columns: 84%; gap: 10px; height: auto !important; }
  html.m-home .hero__side > .promo { aspect-ratio: 16 / 9 !important; height: auto !important; min-height: 0 !important; }
  html.m-home .m-home-promos .promo--photo { --promo-caption-height: clamp(44px, 19%, 60px); }
  html.m-home .m-home-promos .promo--photo img { height: calc(100% - var(--promo-caption-height)); }
  html.m-home .m-home-promos .promo--photo :is(.promo__band, .promo__band *) {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
  }
  html.m-home .m-home-promos .promo--photo .promo__more { display: none; }
  html.m-home .m-home-promos .promo--photo .promo__band {
    height: var(--promo-caption-height); gap: 8px; padding: 4px 12px;
    font-size: clamp(14px, 4cqw, 17px); line-height: 1.15; font-weight: 700; text-transform: none; letter-spacing: normal;
  }
  html.m-home .m-home-promos .promo--photo .promo__band > span:first-child { min-width: 0; white-space: normal; }
  html.m-home .m-home-promos .promo--photo .promo__go { width: 30px; height: 30px; font-size: 17px; }
  /* 23.11 Иван (образец): компактные белые карточки — малиновый значок, жирный заголовок в 2 строки,
     серый подзаголовок, внизу справа кружок со стрелкой; под лентой точки (mobile-shell.js) */
  html.m-home .perks { grid-auto-columns: 66%; gap: 10px; grid-template-columns: none !important; grid-template-rows: none !important;
    margin-top: 6px !important; padding-top: 4px !important; padding-bottom: 10px !important; }
  html.m-home .perks > a {
    grid-column: auto !important; display: grid !important; grid-template-columns: 38px minmax(0, 1fr) 26px;
    grid-template-areas: "ic t t" "s s go"; align-items: center !important; column-gap: 10px !important; row-gap: 6px !important;
    min-height: 0 !important; height: auto !important; padding: 12px 12px 12px 14px !important;
    background: #fff; border: 0 !important; border-radius: 18px !important; box-shadow: 0 4px 16px rgba(41, 44, 50, .09) !important; color: #1d1b1f;
  }
  html.m-home .perks > a::after { display: none; }
  html.m-home .perks > a > :is(svg, .perks__ic) { grid-area: ic; width: 38px !important; height: 38px !important; max-width: none; stroke: var(--pink-dark, #A42654) !important; }
  html.m-home .perks > a > span { display: contents !important; }
  html.m-home .perks b { grid-area: t; font-size: 14.5px !important; line-height: 1.2 !important; font-weight: 800 !important; white-space: normal !important; color: #1d1b1f; }
  html.m-home .perks b em { color: inherit !important; }
  html.m-home .perks small { grid-area: s; font-size: 12.5px !important; line-height: 1.3 !important; color: #6d6669 !important; padding-left: 2px; }
  html.m-home .perks .perks__go {
    grid-area: go; display: block; width: 26px; height: 26px; border: 1.8px solid var(--pink-dark, #A42654); border-radius: 50%; align-self: end;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A42654' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h11M12.5 7l5 5-5 5'/%3E%3C/svg%3E") center / 15px no-repeat;
  }
  html.m-home .perks :is(b, small) { font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important; }
  html.m-home .perks-dots { display: flex; justify-content: center; gap: 7px; margin: 0 0 4px; }
  html.m-home .perks-dots i { width: 7px; height: 7px; border-radius: 50%; background: #dcd3d5; transition: background .2s, transform .2s; }
  html.m-home .perks-dots i.is-on { background: var(--pink-dark, #A42654); transform: scale(1.15); }

  /* каталог: плитки по 4 в ряд, 2 ряда, листаются; все разделы сразу, без кнопки «Показать ещё» */
  html.m-home #categories .section__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px !important; }
  html.m-home #categories .section__head .more { font-size: 0 !important; flex: none; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; background: var(--grey, #F6F4F4); color: var(--pink, #A42654); }
  html.m-home #categories .section__head .more::before { content: "›"; font-size: 28px; line-height: 1; margin-top: -3px; }
  html.m-home #categories .section__head .more::after { display: none !important; }
  html.m-home #cats { grid-template-columns: none !important; grid-template-rows: repeat(2, auto); grid-auto-columns: calc((100% - 24px) / 4); gap: 12px 8px !important; }
  html.m-home #cats:empty { min-height: calc((100vw - 56px) / 2 + 106px); }
  html.m-home #cats > .is-more { display: block !important; }
  html.m-home #cats > .catx.catx--all { display: none !important; }
  html.m-home #cats > * { height: auto !important; aspect-ratio: auto !important; overflow: visible !important; border-radius: 0 !important;
    background: none !important; box-shadow: none !important; border: 0 !important; }
  html.m-home #cats .cw__veil, html.m-home #cats .catx__go, html.m-home #cats .catx__txt small { display: none !important; }
  html.m-home #cats .catx { display: flex !important; flex-direction: column; gap: 6px; height: auto !important; aspect-ratio: auto !important;
    overflow: visible !important; background: none !important; border-radius: 0 !important; box-shadow: none !important; text-decoration: none; }
  html.m-home #cats .catx__picture { display: contents; }
  html.m-home #cats .catx img { position: static !important; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover;
    border-radius: 14px; background: var(--grey, #F6F4F4); transform: none !important; }
  html.m-home #cats .catx__picture > source + img { object-fit: contain; background: #ececee; }
  html.m-home #cats .catx__txt { position: static !important; inset: auto !important; height: auto !important; display: block !important;
    padding: 0 !important; background: none !important; text-align: center; opacity: 1; }
  html.m-home #cats .catx__txt b { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 11px !important; line-height: 1.2 !important; font-weight: 600; color: #1d1d1f !important; text-shadow: none !important; word-break: normal; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
  html.m-home #categories .cats-more { display: none !important; }

  /* «Лидеры продаж»: одинаковая высота заголовков и минимум места между фото и ценой. */
  html.m-home main > #hits.section { padding-bottom: 6px !important; }
  html.m-home #hits .section__head { margin-bottom: 10px !important; }
  html.m-home #hitsRow { grid-template-columns: none !important; grid-auto-columns: clamp(145px, 41vw, 244px) !important; gap: 8px !important; align-items: start;
    margin-left: -16px !important; margin-right: -16px !important; padding: 2px 16px 4px !important;
    scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none; }
  html.m-home #hitsRow::-webkit-scrollbar { display: none; }
  html.m-home #hitsRow > .product--m {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 4px; height: auto; padding: 8px !important;
  }
  html.m-home #hitsRow > .product--m > * { grid-column: 1 / -1; }
  html.m-home #hits :not(svg):not(svg *), html.m-home #showcase :not(svg):not(svg *),
  html.m-home #brief :not(svg):not(svg *), html.m-home #about :not(svg):not(svg *),
  html.m-home #clients .clients2__foot *, html.m-home #faq :not(svg):not(svg *) {
    font-family: "PT Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  }
  /* Иван 24.11 «тут пустое место»: подпись держала место под 2 строки (26px) при одной — теперь одна строка с «…» */
  html.m-home #hitsRow > .product--m > :is(.product__category, .product__brand) {
    grid-row: 1; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    min-height: 0; margin: 0 0 2px; color: #534b50; font-size: 12px; line-height: 15px;
  }
  /* Иван 25.11 «убери точки под фото в лидерах»: листалку фото серии в «Лидерах продаж» не показываем (каталог не трогаем) */
  html.m-home #hitsRow > .product--m > .series-gallery__steps { display: none !important; }
  html.m-home #hitsRow > .product--m > .product__name {
    grid-row: 2; min-height: 18px; margin: 0; line-height: 18px; font-size: 14px; font-weight: 700;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #292c32;
  }
  html.m-home #hitsRow > .product--m > .product__media { margin: 4px 0 !important; width: 100%; }
  html.m-home #hitsRow .product__img--m { margin: 0; }
  /* «Что показать на телефоне» (админка, 📱 у фото серии) — и в «Лидерах продаж» на главной (Иван 23.11) */
  html.m-home #hitsRow .product__media { overflow: hidden; }
  html.m-home #hitsRow .product__media img:not(.is-fit) { object-position: var(--mf, 50% 50%) !important;
    transform-origin: var(--mf, 50% 50%) !important; transform: scale(var(--mz, 1)) !important; }
  html.m-home #hitsRow > .product--compact-series > .product__meta { display: contents; visibility: visible; }
  html.m-home #hitsRow > .product--m .product__price {
    grid-column: 1 / -1; order: 1; min-height: 0; margin: 0; opacity: 1;
    color: #292c32; font-size: 13px; line-height: 1.2; text-align: left;
  }
  html.m-home #hitsRow .product__amount { white-space: nowrap; }
  html.m-home #hitsRow .product__price b { font-size: 15px; }
  html.m-home #hitsRow > .product--m .product__status {
    grid-column: 1; order: 2; align-self: center; justify-content: flex-start; gap: 4px;
    min-width: 0; margin: 0; color: #41383d; font-size: 12px; line-height: 1.15; text-align: left;
  }
  html.m-home #hitsRow .product__status::before { flex: 0 0 6px; height: 6px; }
  html.m-home #hitsRow > .product--m > .catalog-actions {
    grid-column: 2; order: 2; align-self: center; position: static; flex-direction: row;
    gap: 2px; margin: 0; opacity: 1; pointer-events: auto;
  }
  html.m-home #hitsRow > .product--m > .catalog-actions button { width: 28px; min-width: 28px; height: 30px; }
  html.m-home #hitsRow > .product--m > .product__plist { display: none; }

  /* «До и после»: широкий кадр, короткое пояснение и три результата проекта. */
  html.m-home #showcase .showcase { padding-block: 16px; }
  html.m-home #showcase .showcase__in { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  html.m-home #showcase .showcase__frame { aspect-ratio: 16 / 9; }
  html.m-home #showcase .ba-tabs {
    margin: 7px 0 0; padding: 2px 2px 3px; gap: 5px;
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  }
  html.m-home #showcase .ba-tabs button { flex: none; min-height: 34px; padding: 5px 9px; font-size: 13px; }
  html.m-home #showcase .ba__knob { width: 44px; height: 44px; }
  html.m-home #showcase .ba__tag { font-weight: 700; }
  html.m-home #showcase .showcase__text {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px 8px;
  }
  html.m-home #showcase .showcase__text > p:not(.showcase__hint) { display: none; }
  html.m-home #showcase .showcase__text h2 {
    grid-area: 1 / 1; margin: 0; font-size: 22px; font-weight: 700; line-height: 1.08; text-wrap: auto;
  }
  html.m-home #showcase .showcase__free {
    grid-area: 1 / 2; font-size: 10px; letter-spacing: .04em; padding: 5px 8px;
  }
  html.m-home #showcase .showcase__hint {
    display: block; grid-column: 1 / -1; margin: 0; color: #e5dee2; opacity: 1; font-size: 14px; line-height: 1.25;
  }
  html.m-home #showcase .showcase__steps {
    grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 2px 0;
  }
  html.m-home #showcase .showcase__steps li {
    display: grid; grid-template-columns: 1fr; place-items: center; padding: 6px 3px;
    border: 1px solid #ffffff2b; border-radius: 8px; background: #ffffff0d; text-align: center;
  }
  html.m-home #showcase .showcase__steps li::before, html.m-home #showcase .showcase__steps span { display: none; }
  html.m-home #showcase .showcase__steps b { font-size: 13px; line-height: 1.1; }
  html.m-home #showcase .showcase__text > .btn {
    grid-column: 1 / -1; justify-self: start; margin-top: 2px; padding: 9px 13px;
    min-height: 40px; border-radius: 9px; font-size: 14px; font-weight: 700;
  }

  /* Подборка офиса: пять вариантов в двух коротких рядах с обычными флажками. */
  html.m-home #brief #briefShell { padding: 12px; gap: 9px; border-radius: 15px; }
  html.m-home #brief #brKicker { display: none; }
  html.m-home #brief #brTitle { margin: 0 0 3px; font-size: 22px; font-weight: 700; }
  html.m-home #brief #brIntro { color: #51434a; font-size: 14px; line-height: 1.25; }
  html.m-home #brief #brProgress { margin-bottom: 5px; font-size: 11px; font-weight: 700; }
  html.m-home #brief #briefShell legend { margin-bottom: 6px; font-size: 16px; }
  html.m-home #brief #briefShell .br-choices { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  html.m-home #brief #briefShell .br-choice {
    grid-column: span 2; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 4px 5px 6px;
    border-radius: 9px; font-size: 13px; font-weight: 700; line-height: 1.13;
  }
  html.m-home #brief #briefShell .br-choice:nth-child(4) { grid-column: 2 / span 2; }
  html.m-home #brief #briefShell .br-choice:nth-child(5) { grid-column: 4 / span 2; }
  html.m-home #brief #briefShell .br-choice img {
    display: block; height: auto; aspect-ratio: 7 / 5; object-fit: contain; border-radius: 5px; background: #efedec;
  }
  html.m-home #brief #briefShell .br-choice input {
    position: absolute; z-index: 1; top: 7px; right: 8px; width: 16px; height: 16px;
    outline: 2px solid #fff; border-radius: 3px; background: #fff;
  }
  html.m-home #brief #briefShell .br-choice:focus-within { outline: 2px solid var(--pink); outline-offset: -2px; }
  html.m-home #brief #briefShell .br-live { font-size: 13px; }
  html.m-home #brief #briefShell .br-btn { padding: 9px 12px; min-height: 40px; font-size: 14px; }

  /* Компания: короткое вступление и все преимущества видны сразу. */
  html.m-home #about { padding: 16px 0 !important; }
  html.m-home #about .about__grid { gap: 12px !important; grid-template-columns: minmax(0, 1fr); }
  html.m-home #about .about__text :is(h1, h2) {
    margin: 0 0 7px; padding-left: 10px; font-size: 20px; line-height: 1.2; font-weight: 700; color: #fff;
  }
  html.m-home #about .about__text :is(h1, h2)::before { width: 3px; top: 1px; bottom: 1px; }
  html.m-home #about .about__text p { margin: 0 0 8px; font-size: 15px; line-height: 1.28; color: #e5dee2; }
  html.m-home #about .about__text > .btn { padding: 9px 13px; min-height: 40px; font-size: 14px; font-weight: 700; }
  html.m-home #about .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  html.m-home #about .benefit {
    min-height: 0; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-content: center;
    gap: 2px 6px; padding: 7px; border-radius: 9px; opacity: 1; transform: none;
  }
  html.m-home #about .benefit__ic {
    width: 26px; height: 26px; grid-row: 1 / span 2; align-self: center; margin: 0; padding: 5px;
    border-radius: 7px; opacity: 1; transform: none;
  }
  html.m-home #about .benefit__ic > * { stroke-dasharray: none; stroke-dashoffset: 0; }
  html.m-home #about .benefit__bg { display: none; }
  html.m-home #about .benefit b { margin: 0; font-size: 13px; line-height: 1.12; font-weight: 700; }
  html.m-home #about .benefit span { color: #e5dee2; font-size: 12px; line-height: 1.16; }

  /* Частые вопросы: пять коротких раскрывающихся строк, затем форма. */
  html.m-home main > #clients.section { padding-bottom: 8px !important; }
  html.m-home #clients .clients2__foot {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    margin-top: 8px; gap: 6px 10px; color: #41383d; font-size: 14px; line-height: 1.2;
  }
  html.m-home #clients .clients2__foot a { white-space: nowrap; font-weight: 700; }
  html.m-home main > #faq.section { padding: 10px 0 14px !important; }
  html.m-home #faq .faq1 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  html.m-home #faq .faqx__list h2 { margin: 0 0 8px; color: #292c32; font-size: 22px; line-height: 1.1; font-weight: 700; }
  html.m-home #faq .faqx__list details { margin: 0; border-radius: 0; background: #fff; box-shadow: none; }
  html.m-home #faq .faqx__list details + details { border-top: 1px solid #ece5e7; }
  html.m-home #faq .faqx__list details:first-of-type { border-radius: 10px 10px 0 0; }
  html.m-home #faq .faqx__list details:last-of-type { border-radius: 0 0 10px 10px; }
  html.m-home #faq .faqx__list details[open] { background: #fff9fb; }
  html.m-home #faq .faqx__list summary {
    display: flex; align-items: center; min-height: 44px; padding: 7px 37px 7px 11px;
    color: #292c32; font-size: 16px; line-height: 1.2;
  }
  html.m-home #faq .faqx__list summary::after { width: 20px; height: 20px; right: 9px; font-size: 15px; }
  html.m-home #faq .faqx__list summary:focus-visible { outline-offset: -2px; border-radius: inherit; }
  html.m-home #faq .faqx__list details p { padding: 0 11px 10px; color: #42383d; font-size: 14px; line-height: 1.35; }
  html.m-home #faq .faq1__card { padding: 13px; border-radius: 12px; scroll-margin-top: 76px; }
  html.m-home #faq .faq1__card h3 { margin: 0 0 4px; font-size: 20px; line-height: 1.15; font-weight: 700; }
  html.m-home #faq .faq1__card > p { margin: 0 0 9px; line-height: 1.28; }
  html.m-home #faq .faq1__form { gap: 7px; }
  html.m-home #faq .faq1__form input:not([type="checkbox"]), html.m-home #faq .faq1__form button {
    min-height: 40px; padding: 7px 9px;
  }
  @media (min-width: 380px) {
    html.m-home #faq .faq1__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html.m-home #faq .faq1__form > :not(input) { grid-column: 1 / -1; }
  }

  /* Карточки клиентов остаются в горизонтальной ленте. */
  html.m-home .flip-grid { grid-template-columns: none !important; grid-template-rows: repeat(2, auto); grid-auto-columns: 40%; gap: 8px !important; }
  html.m-home .flip { height: 104px; }
  html.m-home .flip__b.flip__b { padding: 6px 8px; overflow-wrap: anywhere; }

  @media (hover: none) {
    html.m-home .flip:not(.is-open):not(:focus-visible):hover .flip__in { transform: none; }
    html.m-home .flip:not(.is-open):not(:focus-visible):hover .flip__f { opacity: 1; }
    html.m-home .flip:not(.is-open):not(:focus-visible):hover .flip__b { opacity: 0; }
  }

  /* ================= Подвал (шаг 3): короткий, списки раскрываются ================= */
  .footer.footer--v2 { padding: 12px 0 !important; }
  .footer.footer--v2 :not(svg):not(svg *) { font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important; }
  .footer.footer--v2 .footer__grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .footer.footer--v2 .footer__brand {
    grid-column: 1 / -1; display: grid !important; grid-template-columns: 1fr auto;
    align-items: center; gap: 6px 10px; padding-bottom: 8px;
  }
  .footer.footer--v2 .footer__logo { grid-row: 1; grid-column: 1; height: 30px !important; width: auto !important; margin: 0 !important; }
  .footer.footer--v2 .footer__social { grid-row: 1; grid-column: 2; margin: 0 !important; }
  .footer.footer--v2 .footer__social span { display: none; }
  .footer.footer--v2 .footer__small { display: none; }
  .footer.footer--v2 .footer__cta { grid-column: 1 / -1; justify-self: start; min-height: 44px; margin: 0 !important; }

  .footer.footer--v2 .footer__col { margin: 0 !important; padding: 0 !important; border-top: 1px solid rgba(255, 255, 255, .12); }
  .footer.footer--v2 .footer__col:not(.footer__contacts) > h4 {
    margin: 0 !important; font-size: 12px; color: #fff;
  }
  .footer.footer--v2 .m-footer-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px;
    border: 0; padding: 0; background: none; color: inherit; font: inherit;
    letter-spacing: inherit; text-transform: inherit; text-align: left;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .footer.footer--v2 .m-footer-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
  .footer.footer--v2 .m-footer-toggle::after {
    content: ""; flex: none; width: 8px; height: 8px; margin: -4px 4px 0 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .2s;
  }
  .footer.footer--v2 .m-footer-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; }
  .footer.footer--v2 .footer__links[hidden] { display: none !important; }
  .footer.footer--v2 .footer__col .footer__links { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-bottom: 10px; }
  .footer.footer--v2 .footer__contacts { grid-column: 1 / -1; display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0 2px !important; }
  .footer.footer--v2 .footer__contacts h4 { display: none; }
  .footer.footer--v2 .footer__phone { font-size: 19px !important; }
  .footer.footer--v2 .footer__addrs { flex-basis: 100%; }
  .footer.footer--v2 .footer__addr { margin-bottom: 3px; }
  .footer.footer--v2 .footer__addr b { display: inline; margin-inline-end: 5px; color: rgba(255, 255, 255, .72); }

  .footer.footer--v2 .footer__bottom { display: grid !important; gap: 5px !important; margin-top: 8px !important; padding-top: 6px !important; font-size: 12px; }
  .footer.footer--v2 .footer__legal { display: flex; flex-wrap: wrap; gap: 3px 12px; }
  .footer.footer--v2 .footer__rights { margin-top: 2px; padding-top: 5px; }
  .footer.footer--v2 .footer__rights p { max-width: none; font-size: 11px; line-height: 1.35; color: rgba(255, 255, 255, .7); margin: 0 0 3px; }

  /* ================= Раздел каталога и поиск (шаг 4): товары на всю ширину, разделы полоской вверху ================= */
  .cathead { margin-bottom: 6px !important; }
  .cathead .crumbs { display: flex; flex-wrap: nowrap !important; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 12.5px !important; }
  .cathead .crumbs::-webkit-scrollbar { display: none; }
  .cathead .page__title { margin: 4px 0 2px !important; }
  .cathead #count { font-size: 13px !important; }

  .cathead .m-subcats-toggle {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px;
    padding: 8px 12px; border: 1px solid var(--line, #E9E4E4); border-radius: 10px;
    background: var(--grey, #F6F4F4); color: #242126; font: inherit; font-size: 14px; font-weight: 650;
    text-align: left; cursor: pointer;
  }
  .cathead .m-subcats-toggle::after {
    content: ""; width: 7px; height: 7px; flex: none; margin: -3px 2px 0 auto;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  }
  .cathead .m-subcats-toggle[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(225deg); }
  .cathead .m-subcats-current { min-width: 0; margin-left: auto; color: var(--pink, #A42654); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cathead .m-subcats-toggle:focus-visible { outline: 2px solid var(--pink, #A42654); outline-offset: 2px; }
  .cathead .m-subcats-toggle[aria-expanded="false"] + .cht { display: none; }
  .cathead .m-subcats-toggle[aria-expanded="true"] + .cht {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: -6px;
  }
  .cathead .m-subcats-toggle + .cht a { min-width: 0; min-height: 44px; padding: 6px 8px; border-radius: 9px; line-height: 1.25; }
  .cathead .m-subcats-toggle + .cht span { width: 100%; justify-content: space-between; gap: 4px; white-space: normal; }
  .cathead .m-subcats-toggle + .cht b { min-width: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 600; }
  .cathead .m-subcats-toggle + .cht small { flex: none; padding: 2px 5px; font-size: 11px; }

  .listing:not(#mz) { display: block !important; }
  .listing:not(#mz) > * { width: auto !important; min-width: 0 !important; }
  .listing:not(#mz) > aside.filters { position: static !important; top: auto !important; margin: 0 -16px 8px !important; padding: 0 !important; }
  .listing:not(#mz) .mo-side-rail { width: auto !important; padding: 0 !important; margin: 0 !important; background: none !important; box-shadow: none !important;
    border: 0 !important; border-radius: 0 !important; }
  .listing:not(#mz) .mo-side-rail > :not(#fCats) { display: none !important; }
  .listing:not(#mz) #fCats { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 6px !important; width: auto !important;
    max-height: none !important; overflow-x: auto !important; overflow-y: hidden !important; padding: 2px 16px 6px !important; margin: 0 !important;
    scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none; }
  .listing:not(#mz) #fCats::-webkit-scrollbar { display: none; }
  .listing:not(#mz) #fCats > * { flex: 0 0 74px !important; width: 74px !important; min-height: 0 !important; scroll-snap-align: start; }
  /* В поиске под значком нет короткой подписи, поэтому чип растёт по названию. */
  .listing--search:not(#mz) #listingSectionTitle { margin: 0 16px 5px; font-size: 14px; font-weight: 600; }
  .listing--search:not(#mz) #fCats > :is(.fcheck, .filters__more) {
    flex: 0 0 auto !important; width: auto !important; max-width: min(244px, 100%); min-height: 44px !important; margin: 0;
  }
  .listing--search:not(#mz) #fCats .fcheck > span {
    min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; color: inherit;
  }
  .listing--search:not(#mz) #fCats .fcheck > small { flex: none; margin: 0; font-size: 12px; font-weight: 500; }
  .listing--search:not(#mz) :is(#fCats, #searchProgress, .listing__bar) :not(svg):not(svg *),
  .listing--search:not(#mz) #listingSectionTitle { font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important; }

  .listing__bar { margin-bottom: 10px !important; }
  .cathead :not(svg):not(svg *), .listing:not(#mz) #grid .product :not(svg):not(svg *) {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
  }
  .listing:not(#mz) #grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .listing:not(#mz) #grid.m-catalog-single { grid-template-columns: minmax(0, 1fr) !important; }
  .listing:not(#mz) #grid.m-catalog-single > * { grid-column: 1 / -1; }
  .listing:not(#mz) .listing__bar .listing-controls:has(.m-catalog-view) { width: 100%; }
  .m-catalog-view:not([hidden]) { display: inline-flex; flex: 0 0 auto; margin-right: auto; }
  .m-catalog-view button {
    display: grid; place-items: center; width: 44px; height: 44px;
    padding: 0; border: 0; background: transparent; color: #484848; position: relative; cursor: pointer;
  }
  .m-catalog-view button::before {
    content: ""; position: absolute; inset: 7px 0; border: 1px solid #d5d5d5;
    border-radius: 8px 0 0 8px; pointer-events: none;
  }
  .m-catalog-view button + button::before { border-left: 0; border-radius: 0 8px 8px 0; }
  .m-catalog-view button[aria-pressed="true"]::before { border: 2px solid #595959; border-radius: 8px; }
  .m-catalog-view button:focus-visible { outline: 2px solid #333; outline-offset: -2px; border-radius: 8px; }
  .m-catalog-view button span { width: 16px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
  .m-catalog-view button:first-child span::after {
    content: ""; position: absolute; inset: 0 auto 0 50%; border-left: 1.5px solid currentColor; transform: translateX(-50%);
  }

  .listing:not(#mz) #grid > .product { padding: 8px 8px 6px !important; min-width: 0; }
  .listing:not(#mz) #grid .product__category { font-size: 11.5px !important; line-height: 1.2 !important; font-weight: 500; color: #343136; min-height: 0 !important; margin-bottom: 2px !important; }
  .listing:not(#mz) #grid .product__name { font-size: 14px !important; line-height: 1.25 !important; font-weight: 600; color: #111; }
  /* Одна строка для названия и страны выравнивает фотографии соседних товаров. */
  .listing:not(#mz) #grid .product--m:not(.product--compact-series) > :is(.product__name, .product__brand) {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .listing:not(#mz) #grid .product__name-prefix { display: none; }
  .listing:not(#mz) #grid .product__name:has(.product__name-prefix)::first-letter { text-transform: uppercase; }
  .listing:not(#mz) #grid .product__media { height: auto !important; aspect-ratio: 1 / 1; margin: 6px 0 !important; overflow: hidden; border-radius: 10px; }
  .listing:not(#mz) #grid .product__img {
    width: 100% !important; height: 100% !important; margin: 0 !important; display: grid !important; place-items: center;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  }
  /* строка «По цвету / По цене / …» — листается вбок, а не раздвигает страницу */
  .listing:not(#mz) .listing__bar, .listing:not(#mz) .listing-controls { min-width: 0 !important; max-width: 100% !important; }
  .listing:not(#mz) .oft__tabs { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; scrollbar-width: none; max-width: 100%; }
  .listing:not(#mz) .oft__tabs::-webkit-scrollbar { display: none; }
  .listing:not(#mz) .oft__t { flex: none !important; }
  .listing:not(#mz) #grid .product__img img { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: contain !important; }
  .listing:not(#mz) #grid .product__img img.is-fit { transform: none; }
  .listing:not(#mz) #grid .product__price { font-size: 13px !important; font-weight: 500; color: #242427; }
  .listing:not(#mz) #grid .product__price b { font-size: 16px !important; }
  .listing:not(#mz) #grid .product__status { font-size: 12px !important; font-weight: 500; color: #343136; }
  .listing:not(#mz) #grid .product__plist { font-size: 13px !important; padding: 4px 0 !important; justify-content: center; }
  /* «Прайс-лист» убран из плиток, общая ссылка «Подробнее» остаётся видимой. */
  .product > .product__plist[href$="#elements"] { display: none; }
  /* Наличие, избранное и сравнение занимают одну строку под ценой. */
  .listing:not(#mz) #grid > .product--m {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 3px; align-content: start;
  }
  .listing:not(#mz) #grid > .product--m > * { grid-column: 1 / -1; }
  .listing:not(#mz) #grid .product--compact-series .product__name { margin: 2px 0 3px; }
  .listing:not(#mz) #grid .product--compact-series .product__media { aspect-ratio: 3 / 2; margin: 4px 0 !important; }
  .listing:not(#mz) #grid .product--compact-series > .product__meta { display: contents; visibility: visible; }
  .listing:not(#mz) #grid .product--m .product__price {
    grid-column: 1 / -1; order: 1; min-height: 0; margin: 0; opacity: 1; text-align: left;
  }
  .listing:not(#mz) #grid .product__amount { white-space: nowrap; }
  .listing:not(#mz) #grid .product--m .product__status {
    grid-column: 1; order: 2; align-self: center; justify-content: flex-start; gap: 4px;
    margin: 0; text-align: left; line-height: 1.15;
  }
  .listing:not(#mz) #grid .product__status::before { flex: 0 0 6px; height: 6px; }
  .listing:not(#mz) #grid .product--m > .catalog-actions {
    grid-column: 2; order: 2; align-self: center; position: static; flex-direction: row; gap: 2px;
    margin: 0; opacity: 1; pointer-events: auto;
  }
  .listing:not(#mz) #grid .product--m > .catalog-actions button {
    width: clamp(24px, 7.2vw, 32px); min-width: 24px; height: 30px;
  }
  .listing:not(#mz) #grid .product--m > .product__plist {
    order: 3; position: static; justify-self: center; transform: none; opacity: 1; pointer-events: auto;
  }
  .listing:not(#mz) #grid .product__sticker {
    top: 4px; left: 4px; padding: 2px 6px; border: 0; border-radius: 5px;
    background: var(--pink-dark); box-shadow: none; text-shadow: none;
    font-size: 10px; line-height: 12px; letter-spacing: .02em; text-transform: none;
  }
  .listing:not(#mz) #grid .product__sticker::before { content: none; }
  /* Баннеры в каталоге: фото и текст занимают всю высоту полосы. */
  .listing:not(#mz) #grid .cbn { height: clamp(144px, 41vw, 180px); aspect-ratio: auto; }
  .listing:not(#mz) #grid .cbn :not(svg):not(svg *) { font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important; }
  .listing:not(#mz) #grid .cbn__txt { padding: 10px 36% 14px 14px; gap: 5px; }
  .listing:not(#mz) #grid .cbn__txt strong { font-size: 20px; }
  .listing:not(#mz) #grid .cbn__txt small { font-size: 12px; }
  .listing:not(#mz) #grid .cbn__txt em, .listing:not(#mz) #grid .cbn-ba__txt em { color: #f3b6ce; }
  .listing:not(#mz) #grid .cbn > .cbn-ba { position: absolute; inset: 0; min-height: 0; grid-template-columns: 1fr; }
  .listing:not(#mz) #grid .cbn-ba__ph { position: absolute; inset: 0 0 0 47%; min-height: 0; }
  .listing:not(#mz) #grid .cbn-ba__ph .ba { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .listing:not(#mz) #grid .cbn-ba__fade { display: block; width: 10%; }
  .listing:not(#mz) #grid .cbn-ba__txt { width: 47%; max-width: none; justify-content: center; gap: 5px; padding: 10px 8px 14px 12px; }
  .listing:not(#mz) #grid .cbn-ba__txt strong { font-size: clamp(17px, 5vw, 22px); line-height: 1.1; }
  .listing:not(#mz) #grid .cbn-ba__pill { font-size: 10px; padding: 4px 9px; }
  .listing:not(#mz) #grid .cbn-ba__txt small { display: none; }
  .listing:not(#mz) #grid .cbn-ba__go { display: inline-flex; gap: 4px; padding: 4px 0; margin: 0; border: 0; font-size: 12px; }
  .listing:not(#mz) #grid .cbn-ba__go svg { width: 13px; height: 13px; flex: none; }
  .listing:not(#mz) #grid .cbn-ba__ph .ba__tag { font-size: 10px; top: 8px; padding: 4px 7px; }
  .listing:not(#mz) #grid .cbn-ba__ph .ba__tag--l { left: 8px; }
  .listing:not(#mz) #grid .cbn-ba__ph .ba__tag--r { right: 8px; }
  /* «Показать ещё N» (Иван 24.11: «очень большая, сделай компактнее»): светлая «таблетка» в тон кнопкам страниц 1 2 › */
  .listing:not(#mz) .more-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: auto !important; min-height: 0; height: 42px; margin: 18px auto 0; padding: 0 22px;
    border: 1px solid #292C32 !important; border-radius: 999px !important;
    background: #fff !important; color: #292C32 !important;
    font-size: 14px; font-weight: 600; letter-spacing: 0;
    box-shadow: none !important; transform: none; transition: background .2s, color .2s !important;
  }
  .listing:not(#mz) .more-btn[hidden] { display: none; }
  .listing:not(#mz) .more-btn::before { content: none; }
  .listing:not(#mz) .more-btn::after {
    content: ''; position: static; width: 7px; height: 7px; flex: none; margin: -3px 0 0 2px;
    border: solid currentColor; border-width: 0 1.8px 1.8px 0; border-radius: 1px;
    background: none; opacity: 1; transform: rotate(45deg); transition: none;
  }
  .listing:not(#mz) .more-btn:is(:hover, :focus-visible, :active) {
    transform: none; background: #292C32 !important; color: #fff !important; box-shadow: none !important;
  }
  .listing:not(#mz) .more-btn:is(:hover, :focus-visible, :active)::after { opacity: 1; transform: rotate(45deg); }

  /* ================= Карточка товара (шаг 5) ================= */
  #product > .crumbs { display: flex; flex-wrap: nowrap !important; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 12.5px !important; margin-bottom: 8px !important; }
  #product > .crumbs::-webkit-scrollbar { display: none; }
  #product > .crumbs > * { flex: none; }
  /* Фото целиком, крупные вертикальные кадры ограничены по высоте экрана. */
  #product .pcard { gap: 10px; margin-top: 8px; }
  #product .gallery { margin-left: -16px !important; margin-right: -16px !important; }
  #product .gallery__main {
    border-radius: 0 !important; border: 0 !important; touch-action: pan-y pinch-zoom;
    background: #fff; max-height: min(340px, 45vh); max-height: min(340px, 45svh);
  }
  #product .gallery__main #mainPhoto { max-height: min(340px, 45vh); max-height: min(340px, 45svh); object-fit: contain; transform: none; }
  /* На коротком экране оставляем место для названия над закреплённой покупкой. */
  html.m-product-buybar #product :is(.gallery__main, #mainPhoto) {
    max-height: min(340px, 45vh, max(160px, calc(100vh - 368px)));
    max-height: min(340px, 45svh, max(160px, calc(100svh - 368px)));
  }
  #product .gallery__count { top: 8px; right: 12px; }
  #product .gallery__main .gallery__arrow, #product .gallery__strip .gallery__nav { display: none !important; }
  #product .gallery__strip { padding: 0 16px !important; margin-top: 6px; }
  #product .gallery__thumbs { overflow-x: auto !important; scrollbar-width: none; }
  #product .gallery__thumbs::-webkit-scrollbar { display: none; }
  #product .gallery__strip .gallery__thumbs { gap: 6px; }
  #product .gallery__strip .gallery__thumbs button { width: 64px; height: 46px; }
  #product .gallery__strip .gallery__thumbs img { transform: none; }
  /* блок с названием и ценой — без рамки «коробка в коробке» */
  #product .pinfo { border: 0 !important; box-shadow: none !important; padding: 4px 0 0 !important; margin-top: 4px !important; background: none !important; }
  #product :is(.gallery__count, .pinfo h1), #product > .crumbs > * {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
  }
  /* Строка комплектации поднимается вместе со скрывающейся шапкой. */
  .elnav { background: #fff; backdrop-filter: none; }
  body:has(.header.m-head-hidden):not(:has(.header.is-find, .header :focus-visible)) .elnav { top: 0; }
  @media (prefers-reduced-motion: no-preference) { .elnav { transition: top .2s ease; } }
  /* вкладки «Характеристики / Доставка / …» — одной строкой, листаются */
  #product .ptabs { padding-left: 0 !important; padding-right: 0 !important; border-left: 0 !important; border-right: 0 !important; border-radius: 0 !important; }
  #product .ptabs__head, #product .pw-tabs { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  #product .ptabs__head::-webkit-scrollbar, #product .pw-tabs::-webkit-scrollbar { display: none; }
  #product .ptabs__head > *, #product .pw-tabs > * { flex: none !important; white-space: nowrap; }

  /* полоска покупки над нижней панелью */
  .mbuy {
    display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; z-index: 79;
    bottom: calc(var(--mtab-h) + var(--m-safe)); padding: 8px 12px 8px 16px; background: #fff;
    border-top: 1px solid var(--line, #E9E4E4); box-shadow: 0 -6px 16px rgba(0, 0, 0, .06);
    transform: translateY(110%); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s, bottom .2s ease;
  }
  .mbuy.is-on { transform: none; opacity: 1; pointer-events: auto; }
  /* Иван 23.11 с iPhone: когда нижняя панель уехала, полоса «цена / В корзину» висела над краем на высоту
     полосы «домой» iPhone (safe-area), под ней просвечивала страница. Теперь — вплотную к низу, белый фон до края. */
  html.m-bar-hidden .mbuy { bottom: 0; padding-bottom: calc(8px + var(--m-safe)); }
  .mbuy__price { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.2; color: #1d1d1f; }
  .mbuy__btn { flex: none; min-width: 140px; height: 44px; justify-content: center; margin: 0 !important; }
  html.m-buybar .fab { bottom: calc(var(--mtab-h) + var(--m-safe) + 76px) !important; }
  html.m-product-buybar body { padding-bottom: calc(var(--mtab-h) + var(--m-safe) + 61px); }
  .mbuy--product { gap: 8px; padding-inline: 10px; }
  .mbuy--product :is(.mbuy__price, button, input, .mbuy__btn span, .mbuy__btn small) {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
  }
  .mbuy--product .mbuy__price { overflow-wrap: anywhere; }
  .mbuy__qty { flex: 0 0 108px; height: 44px; border-color: #ddd1d7; }
  .mbuy__qty[hidden] { display: none; }
  .mbuy__qty button { width: 29px; padding: 0; }
  .mbuy__qty input { padding: 0; }
  .mbuy__qty:focus-within { border-color: var(--pink, #A42654); }
  .mbuy--product .mbuy__btn {
    display: flex; flex: 0 1 43%; flex-direction: column; align-items: center; gap: 1px;
    min-width: 116px; max-width: 260px; padding: 0 7px; border-radius: 11px;
    font-size: 14px; line-height: 1; text-align: center;
  }
  .mbuy--product .mbuy__btn:active { transform: none; }
  .mbuy--product .mbuy__btn span { line-height: 1; }
  .mbuy--product .mbuy__btn small { font-size: 11px; font-weight: 500; line-height: 1.1; }
  @media (max-width: 360px) {
    .mbuy__qty { flex-basis: 89px; }
    .mbuy--product .mbuy__btn { flex-basis: 37%; }
  }

  /* ================= Корзина и формы (шаг 6) ================= */
  /* поля ввода не мельче 16px — иначе iPhone при нажатии на поле сам увеличивает страницу */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select { font-size: 16px !important; }

  .mbuy__price small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted, #7A6E6F); }
  .mbuy__price span { font-size: 18px; }

  .cartbox, .mbuy--cart, :is(.cartbox, .mbuy--cart) :not(svg):not(svg *),
  main.page .wrap:has(> .cartbox) > .page__title { font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important; }
  main.page .wrap:has(> .cartbox) > .page__title { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
  .cartbox:has(> #cartList) { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  #cartList .cc-head {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px !important;
    margin: 0 0 6px !important; font-size: 13px; font-weight: 600; color: #333035;
  }
  #cartList .cc-clear { grid-column: 2; grid-row: 1; min-height: 36px; color: #51424a; padding: 4px 0; }
  #cartList .cart-tools { grid-column: 1 / -1; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px !important; margin: 0; }
  #cartList .cart-tools > button { min-height: 40px !important; height: auto !important; padding: 4px 5px !important; font-size: 11.5px !important; line-height: 1.15 !important;
    justify-content: center; gap: 4px !important; }
  #cartList .cart-tools > button svg { flex: none; width: 16px !important; height: 16px !important; }
  #cartList .cc {
    grid-template-columns: 60px minmax(0, 1fr) 88px 40px;
    grid-template-areas: "photo info info remove" "price price qty qty"; gap: 6px 8px;
    min-height: 0; padding: 10px 0; align-items: start;
  }
  #cartList .cc__img { grid-area: photo; width: 100%; height: 64px; padding: 0; align-self: start; }
  #cartList .cc__info { grid-area: info; margin: 0; padding: 0; border: 0; }
  #cartList .cc__name { font-size: 15px; font-weight: 700; line-height: 1.25; margin-bottom: 4px; color: #161416; }
  #cartList .cc__attrs { grid-template-columns: max-content minmax(0, 1fr) !important; gap: 2px 6px; font-size: 12px; line-height: 1.25; }
  #cartList .cc__attrs dt { color: #60585c; }
  #cartList .cc__attrs dd { gap: 4px; }
  #cartList .cc-sw { width: 17px; height: 17px; }
  #cartList .row-logistics { gap: 2px 8px; margin-top: 4px; color: #575058; font-size: 11.5px; }
  #cartList .cc__price {
    grid-area: price; padding: 0; border: 0; text-align: left; align-self: center; min-width: 0;
    flex-flow: row wrap; align-items: baseline; justify-content: flex-start; gap: 2px 5px; white-space: normal;
    font-size: 15px; font-weight: 700; color: #201b20;
  }
  #cartList .cc__price small { color: #61585c; font-weight: 500; }
  #cartList .cc__qty { grid-area: qty; width: 108px; height: 40px; margin: 0; justify-self: end; align-self: center; }
  #cartList .cc__qty button { min-height: 38px; }
  #cartList .cc__del { grid-area: remove; width: 40px; min-height: 40px; padding: 0; color: #63575d; }
  #cartList .cc__sum { display: none; }

  #cartList .total-dock { min-height: 0; }
  #cartList .visible-total.is-docked {
    grid-template-columns: minmax(0, 1fr) auto !important; gap: 6px 8px !important;
    grid-template-areas: "label price" "metrics metrics" "note note" "action action";
    padding: 12px; border-radius: 12px; margin-top: 8px;
  }
  #cartList .visible-total__label { grid-area: label !important; }
  #cartList .visible-total__price { grid-area: price !important; font-size: 22px; padding: 0; }
  #cartList .visible-total__logistics { grid-area: metrics !important; justify-self: start; flex-wrap: wrap; gap: 5px 12px !important; }
  #cartList .visible-total__note { grid-area: note !important; }
  #cartList .visible-total > button { grid-area: action !important; justify-self: start; min-height: 40px; }

  #cartForm.checkout { gap: 8px; padding: 14px !important; scroll-margin-top: 72px; }
  #cartForm.checkout h3 { margin: 0; font-size: 20px; line-height: 1.2; }
  #cartForm.checkout p { color: #51484d; }
  #cartForm.checkout .checkout-steps { gap: 5px; margin: 4px 0; }
  #cartForm.checkout .checkout-steps span { min-width: 0; padding-top: 4px; font-size: 11px; color: #665963; }
  #cartForm.checkout .checkout-steps span.active { color: #8f1d47; }
  #cartForm.checkout fieldset { display: grid; gap: 8px; }
  #cartForm.checkout legend { margin-bottom: 6px; font-size: 15px; font-weight: 700; }
  #cartForm.checkout label { margin: 0; font-size: 13px; font-weight: 600; color: #292429; overflow-wrap: anywhere; }
  #cartForm.checkout fieldset :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { margin-top: 3px; min-width: 0; min-height: 44px; padding: 8px 10px; }
  #cartForm.checkout .consent-switch { font-weight: 500; }
  #cartForm.checkout .delivery-segment { margin: 0; }
  #cartForm.checkout .delivery-segment span { min-height: 40px; padding: 10px 5px; font-size: 13px; }
  #cartForm.checkout .map-button { margin-top: 5px; min-height: 40px; }
  #cartForm.checkout[data-delivery="address"] iframe:not([data-address-map]) { display: none; }
  #cartForm.checkout iframe { margin-top: 0; }
  #cartForm.checkout .service-toggle { padding: 8px 0; min-height: 40px; border-top: 0; }
  #cartForm.checkout .checkout-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #cartForm.checkout .checkout-actions { margin-top: 4px; }
  #cartForm.checkout .checkout-actions button { min-height: 44px; font-size: 14px; font-weight: 600; }
  #cartForm.checkout .checkout-next { background: var(--pink, #A42654) !important; }
  #cartForm.checkout .checkout-status:empty { display: none; }

  /* плавающий блок «Стоимость товаров» (200px, уходил под нижнюю панель) — на телефоне вместо него полоска .mbuy--cart;
     на своём месте под списком (.is-docked) блок виден как обычно */
  /* ================= Остальные страницы (шаг 7) ================= */
  /* страница никогда не уезжает вбок (на «Отзывах» свечение конверта вылезало на 3px) */
  html, body { overflow-x: clip; }
  /* «Доставка»: 9 фото склада и производства столбиком (3300px) → ряд, листается пальцем */
  .dl-collage { display: grid !important; grid-template-columns: none !important; grid-template-rows: none !important; grid-auto-flow: column;
    grid-auto-columns: 82%; gap: 10px !important; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding: 0 16px;
    margin-left: -16px !important; margin-right: -16px !important; padding: 2px 16px 8px !important; scrollbar-width: none; }
  .dl-collage::-webkit-scrollbar { display: none; }
  .dl-collage > li { grid-column: auto !important; grid-row: auto !important; scroll-snap-align: start; min-width: 0; }
  .dv-seo__cols { columns: auto; }
  .dz-float { bottom: calc(var(--mtab-h) + var(--m-safe) + 8px); }
  .dz-float:not(.is-on) { visibility: hidden; }
  .dz-perk__top { flex-wrap: wrap; gap: 6px; }
  .dz-perk__top h3 { overflow-wrap: anywhere; }
  /* «Контакты»: список городов со складами — в окне с прокруткой, поиск города над ним */
  /* (CSS-колонки с ограничением высоты уезжают вбок — поэтому сетка 2 колонки, прокрутка вниз) */
  #bkList { max-height: 440px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    columns: auto !important; column-count: auto !important; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; align-items: start; }
  #bkList > * { break-inside: auto; margin: 0 !important; }

  /* Иван 20.11: «должно все быть компактно и удобно» — меньше пустоты между блоками на всех страницах */
  .section, .op-sec, .ab2-sec, .av-sec, .dz-sec, .pk-sec { padding-top: 20px !important; padding-bottom: 20px !important; }

  /* «Отзывы»: письма в 3 колонки, под сканом только название компании (письмо открывается по нажатию) */
  .otz-hero__grid, .otz-env-vis { grid-template-columns: minmax(0, 1fr); }
  .otz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  .otz-grid .otz-card { padding: 6px !important; gap: 6px !important; }
  .otz-grid .otz-card > span:not(.otz-card__ph) { display: none !important; }
  .otz-grid .otz-card > b { font-size: 11.5px !important; line-height: 1.2 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* «Сертификаты»: сканы в 3 колонки, подписи мельче (список без сканов не трогаем) */
  .crt__list:has(.crt__ph) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px 8px !important; }
  .crt__list:has(.crt__ph) .crt__it { padding: 0 !important; }
  .crt__list:has(.crt__ph) figcaption b { font-size: 12.5px !important; line-height: 1.2 !important; }
  .crt__list:has(.crt__ph) figcaption span, .crt__list:has(.crt__ph) figcaption small { font-size: 10.5px !important; line-height: 1.25 !important; }

  /* ================= Компактные страницы (шаг 8) ================= */
  /* длинный текст внизу страницы — свёрнут, кнопка «Читать полностью» (ставит mobile-shell.js) */
  .m-more:not(.is-open) { max-height: 260px !important; overflow: hidden !important; position: relative;
    -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .m-more__btn { display: block; margin: 8px 0 0; padding: 8px 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700;
    color: var(--pink, #A42654); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

  /* блог: список как в новостях — фото слева, заголовок справа, без абзаца */
  .bp-feed { gap: 0 !important; }
  .bp-feed > .bp-card { display: grid !important; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start;
    padding: 12px 0 !important; border: 0 !important; border-bottom: 1px solid var(--line, #E9E4E4) !important; border-radius: 0 !important;
    box-shadow: none !important; background: none !important; min-height: 0 !important; height: auto !important; }
  /* blog.js/blog.css прячут карточки: «Показать ещё» (.is-more) и поиск/рубрики (.is-hidden) — не перебивать */
  .bp-feed:not(.is-all):not(.is-search) > .bp-card.is-more, .bp-feed > .bp-card.is-hidden { display: none !important; }
  .bp-feed > .bp-card .bp-card__ph { width: 112px !important; height: 84px !important; aspect-ratio: auto !important; margin: 0 !important; border-radius: 10px; overflow: hidden; }
  .bp-feed > .bp-card .bp-card__ph img { width: 100% !important; height: 100% !important; object-fit: cover; }
  .bp-feed > .bp-card .bp-card__body { padding: 0 !important; min-width: 0; }
  .bp-feed > .bp-card .bp-card__x, .bp-feed > .bp-card .bp-meta:empty { display: none !important; }
  .bp-feed > .bp-card .bp-chip { font-size: 11px !important; padding: 2px 8px !important; margin-bottom: 4px !important; }
  .bp-feed > .bp-card .bp-card__t { font-size: 14.5px !important; line-height: 1.25 !important; margin: 0 !important;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* «Дизайнерам»: 8 преимуществ — 2 колонки; «Сертификаты»: «почему мы» и список без сканов — 2 колонки */
  .dz-perks, .crh-why, .crt--nophoto .crt__list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .dz-perks > *, .crh-why > * { min-width: 0; margin: 0 !important; padding: 12px !important; font-size: 13px; }
  .crt--nophoto .crt__it { min-width: 0; margin: 0; padding: 10px 8px 10px 21px; overflow-wrap: anywhere; }
  .crt--nophoto .crt__it::before { top: 15px; left: 9px; width: 6px; height: 6px; }
  .dz-perks h3, .crh-why h3, .crt--nophoto .crt__list b { font-size: 14px !important; line-height: 1.2 !important; }
  .dz-perks p, .crh-why p, .crt--nophoto .crt__list span { font-size: 12.5px !important; line-height: 1.35 !important; }

  /* «О компании»: заголовок был зажат в колонку 215px («сопровожден…» обрезалось) — на всю ширину, фото под ним полосой */
  .av3-top { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  .av3-top > .av3-b--title { height: auto !important; min-height: 0 !important; }
  .av3-top > .av3-b--title h1 { font-size: 26px !important; line-height: 1.15 !important; overflow-wrap: break-word; }
  .av3-top > .av3-b--ph { height: 150px !important; min-height: 0 !important; aspect-ratio: auto !important; }
  .av3-top > .av3-b--ph img { width: 100% !important; height: 100% !important; object-fit: cover; }

  /* «Офис под ключ»: уровни комплектации — листаются вбок */
  .pk-lvl { display: grid !important; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 84%; gap: 10px !important;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin-left: -16px !important; margin-right: -16px !important;
    padding: 2px 16px 8px !important; scrollbar-width: none; }
  .pk-lvl::-webkit-scrollbar { display: none; }
  .pk-lvl > * { scroll-snap-align: start; min-width: 0; margin: 0 !important; }

  /* Доставка: факты и услуги в двух колонках, условия без декоративной схемы. */
  .g1-hero .dl-hfacts, .svc-wrap .dl-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .g1-hero .dl-hfacts { margin: 12px 0; }
  .g1-hero .dl-hfacts li, .svc-wrap .dl-svc > div {
    flex-direction: column; align-items: flex-start; gap: 6px; padding: 9px; border-radius: 12px;
  }
  .g1-hero .dl-hfacts li, .svc-wrap .dl-svc span { font-size: 13px; line-height: 1.35; color: #3a3435; }
  .g1-hero .dl-hfacts b, .svc-wrap .dl-svc b { font-size: 14px; line-height: 1.25; color: #111; }
  .g1-hero .dl-hfacts svg { width: 27px; height: 27px; padding: 4px; }
  .svc-wrap .dl-svc .op-ic { width: 32px; height: 32px; border-radius: 9px; }
  .svc-wrap .dl-svc .op-ic svg { width: 21px; height: 21px; }
  #usloviya .dz-house[aria-hidden="true"] { display: none; }
  #usloviya .dz-ways, #usloviya .dz-prep > div { gap: 8px; }
  #usloviya .dz-ways article, #usloviya .dz-prep { padding: 12px; }
  #usloviya .dz-ways h3 { margin-top: 5px; }

  /* Офис под ключ: меньше отступы в комплектации, этапах и консультации. */
  .pk .pkh { padding-bottom: 18px; }
  .pk .hv1, .pk .vs6, .pk .ov1-panel, .pk .ov1-bot { gap: 12px; }
  .pk .pk-head { margin-bottom: 12px; }
  .pk .v4-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pk .v4-i {
    display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center;
    align-content: start; gap: 6px; padding: 9px; border-radius: 12px;
  }
  .pk .v4-i .pkv-ic { width: 22px; height: 22px; }
  .pk .v4-i b { min-height: 0; font-size: 13.5px; overflow-wrap: anywhere; }
  .pk .pkv-go { grid-column: 1 / -1; }
  .pk .vs6, .pk .ov1-panel, .pk .ov1-seo { padding: 14px; }
  .pk .vs6__r { gap: 5px; }
  .pk .vs6__r li { padding: 7px 9px; }
  .pk .pk-st__ph { aspect-ratio: 16 / 9; }
  .pk .pk-st__txt, .pk .ov1-r { padding: 12px; }
  .pk .ov1-facts, .pk .ov1-bot { margin-top: 12px; }
  .pk .ov1-facts li { padding: 8px; }

  /* О компании: фотографии в одном ряду, компактные карточки с цифрами и фабриками. */
  .av--3 .av3-row4--7 {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 66%; gap: 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none;
  }
  .av--3 .av3-row4--7::-webkit-scrollbar { display: none; }
  .av--3 .av3-row4--7 > * { min-width: 0; scroll-snap-align: start; }
  .av--3 .av3-row5--sm > .av3-b { min-height: 86px; padding: 10px 12px; }
  .av--3 .av3d { gap: 12px; padding: 14px; }
  .av--3 .av3d__tabs { gap: 4px; margin-top: 8px; }
  .av--3 .av3d__tabs button { min-height: 44px; padding: 6px 9px; font-size: 13px; }
  .av--3 .av3d .av3-aud__p { gap: 6px; }
  .av--3 .av3d .av3-bc { padding: 8px 10px; }
  .av--3 .crt--names .crt__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
  .av--3 .crt--names .crt__it { min-width: 0; margin: 0; }
  .av--3 .crt--names .crt__it b { padding: 5px 8px; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }

  /* ================= Пустоты (Иван 20.11 с телефона: «расстояние и пробелы большие») =================
     найдены замером всех страниц на 375px: отступы и промежутки 32–130px → 12–24px */
  main.page { padding-bottom: 16px !important; }
  main > section.about { padding-top: 20px !important; padding-bottom: 20px !important; }
  .about__grid, .av-fs, .crh, .g1-head, .v1-hero__in, .dz-hero__grid { gap: 16px !important; }
  .av-cta, .v1-docs, .pcard.pcard--w, section.ask { gap: 14px !important; }
  .consult__in { margin-top: 16px !important; gap: 16px !important; }
  .crh-why { margin-top: 14px !important; }
  section.crt.crt--v3 { padding-top: 20px !important; padding-bottom: 20px !important; }
  section.dz-hero, section.ab2-hero.otz-hero { padding-bottom: 16px !important; }
  .faqx__intro { padding-top: 0 !important; }
  .otz-env { margin-top: 24px !important; }
  section.ask { margin-top: 16px !important; }
  section.bkl { margin-bottom: 12px !important; }
  section.op-sec { margin-top: 0 !important; }
  .ce5 { padding-top: 16px !important; padding-bottom: 16px !important; }

  body > .visible-total:not(.is-docked) { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
}
.mbuy { display: none; }
@media (max-width: 767px) { .mbuy { display: flex; } }

/* ── 23.11 Иван: позиции серии на странице товара (Столы, Тумбы…) — как его образец:
   «− 1 +» и рядом чёрная кнопка с корзиной; после нажатия кнопка винно-малиновая.
   Перебивает buy-approved.css (там на ширине до 600 px «В корзину» растягивалась на всю строку под счётчиком). */
@media (max-width: 767px) {
  #product .elements .eltile { padding: 10px !important; border-radius: 16px; text-align: left; gap: 2px; }
  #product .elements .eltile__name { font-size: 14px !important; font-weight: 700 !important; line-height: 1.25; color: #1d1b1f; min-height: 0 !important; }
  #product .elements .eltile__size { font-size: 13px !important; font-weight: 400 !important; color: #4f484a !important; }
  #product .elements .eltile > small { font-size: 11.5px !important; color: #6d6669 !important; }
  #product .elements .eltile__price { padding-top: 4px !important; font-size: 18px !important; font-weight: 800 !important; color: #1d1b1f !important;
    align-self: flex-start !important; text-align: left !important; }
  #product .elements .eltile__stockw { font-size: 11px; }
  html body #product .elements .eltile .eltile__foot { flex-wrap: nowrap !important; gap: 6px !important; padding-top: 8px; width: 100% !important; }
  html body #product .elements .eltile .eltile__foot .elqty {
    flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; height: 40px !important;
    border: 1px solid #ddd5d8; border-radius: 999px; background: #fff;
  }
  html body #product .elements .eltile .eltile__foot .elqty button { width: 30px; color: var(--pink-dark, #A42654); font-size: 20px; font-weight: 500; background: none; }
  html body #product .elements .eltile .eltile__foot .elqty input { font-size: 15px !important; font-weight: 700; color: #1d1b1f; }
  html body #product .elements .eltile .eltile__foot .el__buy,
  html body #product .elements .eltile .eltile__foot .el__buy:not(.is-added),
  html body #product .elements .eltile .eltile__foot .el__buy.is-added {
    flex: 0 0 52px !important; width: 52px !important; min-width: 52px !important; height: 40px !important; min-height: 40px !important;
    padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 14px !important;
    font-size: 0 !important; color: transparent !important; box-shadow: none !important; transform: none !important;
    background: #26272b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4h2.2l2.3 10.3a1.2 1.2 0 0 0 1.2.9h8.7a1.2 1.2 0 0 0 1.2-.9L20.4 7.5H6'/%3E%3Ccircle cx='9.2' cy='19.3' r='1.3'/%3E%3Ccircle cx='17' cy='19.3' r='1.3'/%3E%3C/svg%3E") center / 22px no-repeat !important;
    transition: background-color .2s !important; opacity: 1 !important; pointer-events: auto !important;
  }
  /* нажали / уже в корзине — винно-малиновая (образец Ивана №3) */
  html body #product .elements .eltile .eltile__foot .el__buy:active,
  html body #product .elements .eltile .eltile__foot .el__buy.is-added { background-color: var(--pink-dark, #A42654) !important; }
  html body #product .elements .eltile .eltile__foot .el__buy::before,
  html body #product .elements .eltile .eltile__foot .el__buy::after { display: none !important; }
}

/* ── 23.11 Иван: карточки каталога на телефоне компактнее ──
   product--tall (кресла, стулья и прочие товары): фото во всю карточку, «Новинка» и сердечко поверх фото,
   ниже название в 2 строки, наличие, цена. product--wide (кабинеты, персонал, ресепшн, кухни, перегородки):
   широкое фото, раздел, название, цена + сердечко и сравнение в одной строке. Классы ставит itemCard (layout.js). */
@media (max-width: 767px) {
  .listing:not(#mz) #grid { gap: 10px !important; }
  .listing:not(#mz) #grid > .product--m:is(.product--tall, .product--wide) {
    position: relative; padding: 0 !important; overflow: hidden; border-radius: 14px;
    grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; column-gap: 4px; align-content: start;
  }
  .listing:not(#mz) #grid > .product--m:is(.product--tall, .product--wide) > * { order: 5; }
  .listing:not(#mz) #grid > .product--m:is(.product--tall, .product--wide) :is(.product__name, .product__colour, .product__category, .product__status, .product__price) {
    text-align: left !important; justify-content: flex-start;
  }
  /* фото — первая строка; полоска листалки и кнопки лежат поверх него */
  .listing:not(#mz) #grid > .product--m:is(.product--tall, .product--wide) > .product__media {
    grid-row: 1; grid-column: 1 / -1; order: 0; margin: 0 !important; border-radius: 0; aspect-ratio: 1 / 1; background: #fff;
  }
  /* листалка фото — линия-прогресс по низу фото (Иван 25.11, вариант 4 вместо точек под фото: не занимает место).
     Серая дорожка 3px, розовая часть растёт до текущего фото; кнопки — полоса 12px над нижним краем фото. */
  .listing:not(#mz) #grid > .product--m:is(.product--tall, .product--wide) > .series-gallery__steps {
    grid-row: 1; grid-column: 1 / -1; align-self: end; justify-self: stretch; z-index: 2; margin: 0; gap: 0; opacity: 1;
  }
  .listing:not(#mz) #grid > .product--m:is(.product--tall, .product--wide) .series-gallery__steps button {
    flex: 1; min-width: 0; height: 12px; padding: 0; align-items: flex-end;
  }
  .listing:not(#mz) #grid > .product--m:is(.product--tall, .product--wide) .series-gallery__steps button::before {
    width: 100%; height: 3px; border-radius: 0; background: rgba(41, 44, 50, .14); transition: background .25s;
  }
  .listing:not(#mz) #grid > .product--m:is(.product--tall, .product--wide) .series-gallery__steps button:is([aria-pressed=true], :has(~ [aria-pressed=true]))::before {
    background: var(--pink-dark, #A42654);
  }
  .listing:not(#mz) #grid > .product--m:is(.product--tall, .product--wide) > :is(.product__brand, .product__plist) { display: none !important; }
  .listing:not(#mz) #grid > .product--m:is(.product--tall, .product--wide) > .product__name {
    order: 2; grid-column: 1 / -1; margin: 0; padding: 8px 10px 0;
    white-space: normal !important; overflow: hidden; text-overflow: clip;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
    font-size: 14px !important; line-height: 1.25 !important; font-weight: 700; color: #1d1b1f;
  }
  .listing:not(#mz) #grid > .product--m:is(.product--tall, .product--wide) > .product__colour {
    order: 3; grid-column: 1 / -1; margin: 1px 0 0; padding: 0 10px; font-size: 12px; line-height: 1.3;
  }
  .listing:not(#mz) #grid > .product--m:is(.product--tall, .product--wide) .product__price b { color: var(--pink-dark, #A42654); }
  .listing:not(#mz) #grid > .product--m:is(.product--tall, .product--wide) .product__sticker {
    top: 8px; left: 8px; padding: 3px 8px; border-radius: 6px; font-size: 11px; line-height: 13px;
  }

  /* кресла и стулья (образец Ивана №2) */
  .listing:not(#mz) #grid > .product--tall > .catalog-actions {
    grid-row: 1; grid-column: 1 / -1; order: 0; z-index: 2; align-self: start; justify-self: end;
    flex-direction: column; gap: 6px; margin: 8px 8px 0 0;
  }
  .listing:not(#mz) #grid > .product--tall > .catalog-actions button {
    width: 32px !important; min-width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(41,44,50,.14);
  }
  .listing:not(#mz) #grid > .product--tall > .catalog-actions svg { width: 17px; height: 17px; }
  .listing:not(#mz) #grid > .product--tall > .product__status {
    order: 4; grid-column: 1 / -1; margin: 0; padding: 4px 10px 0; font-size: 12px !important;
  }
  .listing:not(#mz) #grid > .product--tall > .product__price {
    order: 5; grid-column: 1 / -1; margin: 0; padding: 2px 10px 10px; font-size: 13px !important;
  }

  /* широкие серии (образец Ивана №3) */
  /* 4:3 — как рамка «Что показать на телефоне» в админке (раньше квадрат перебивал: правило выше сильнее; Иван 23.11 «показывает по-другому») */
  .listing:not(#mz) #grid > .product--m.product--wide > .product__media { aspect-ratio: 4 / 3; }
  .listing:not(#mz) #grid > .product--wide > .product__media img:not(.is-fit) { object-fit: cover !important; object-position: var(--mf, 50% 50%) !important;
    transform-origin: var(--mf, 50% 50%) !important; transform: scale(var(--mz, 1)) !important; }
  .listing:not(#mz) #grid > .product--wide > .product__category {
    order: 1; grid-column: 1 / -1; margin: 0 !important; padding: 8px 10px 0; font-size: 11px !important; color: #6f6668 !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* «Столы:» перед ценой не помещается — на телефоне просто «от 4 002 руб.», как на образце */
  .listing:not(#mz) #grid > .product--wide .product__pgroup { display: none; }
  .listing:not(#mz) #grid > .product--wide.product--compact-series > .product__name { padding-top: 1px; }
  .listing:not(#mz) #grid > .product--wide > .product__name { font-size: 15px !important; }
  .listing:not(#mz) #grid > .product--wide > .product__status,
  .listing:not(#mz) #grid > .product--wide > .product__meta > .product__status { display: none !important; }
  .listing:not(#mz) #grid > .product--wide > .product__meta { display: contents; }
  .listing:not(#mz) #grid > .product--wide > .product__price,
  .listing:not(#mz) #grid > .product--wide > .product__meta > .product__price {
    order: 6; grid-column: 1; align-self: center; margin: 0; padding: 5px 0 10px 9px; font-size: 12.5px !important; white-space: nowrap;
    letter-spacing: -.01em;
  }
  .listing:not(#mz) #grid > .product--wide .product__price b { font-size: 15.5px !important; }
  .listing:not(#mz) #grid > .product--wide > .catalog-actions {
    order: 7; grid-column: 2; align-self: center; flex-direction: row; gap: 0; margin: 0; padding: 2px 2px 7px 0;
  }
  .listing:not(#mz) #grid > .product--wide > .catalog-actions button { width: 27px !important; min-width: 27px; height: 30px; }
  .listing:not(#mz) #grid > .product--wide > .catalog-actions svg { width: 18px; height: 18px; }
  .listing:not(#mz) #grid > .product--m.product--wide { column-gap: 0; }
  @media (max-width: 374px) {   /* узкие телефоны: «от 11 515 руб.» и две кнопки в одну строку */
    .listing:not(#mz) #grid > .product--wide > .product__price,
    .listing:not(#mz) #grid > .product--wide > .product__meta > .product__price { padding-left: 8px; font-size: 12px !important; }
    .listing:not(#mz) #grid > .product--wide .product__price b { font-size: 14.5px !important; }
    .listing:not(#mz) #grid > .product--wide > .catalog-actions button { width: 25px !important; min-width: 25px; }
  }
}

@media (max-width: 359px) {
  .header .header__in { grid-template-columns: 40px 40px minmax(0, 1fr) 40px 40px; }
  .mh-btn { width: 40px; height: 40px; }
  .mtab__i { font-size: 10px; }
}

/* ================= Единые заголовки на телефоне (Иван 24.11) =================
   Было вразнобой: заголовки страниц 22–30px (часть 800), разделов 17–26px, название товара 22px жирным —
   «очень крупно». Теперь одна шкала: страница 24, название товара 18 (полужирный), раздел 20, подзаголовок 18.
   Мелкие заголовки карточек и боковых блоков (14–18px) не трогаем. */
@media (max-width: 767px) {
  html body :is(main, .page) h1:not(#pTitle):not(:where(.cathead .page__title, .page__title--dash)),
  html body main > h1, html body .page__title {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-size: 24px !important; line-height: 1.2 !important; font-weight: 700 !important; letter-spacing: 0 !important;
  }
  html body :is(.cathead .page__title, .page__title.page__title--dash) {
    font-size: 21px !important; line-height: 1.25 !important; font-weight: 600 !important;
    text-wrap: balance;
  }
  html body #product :is(.pinfo, .el-info) h1 {
    font-size: 18px !important; line-height: 1.3 !important; font-weight: 600 !important; letter-spacing: 0 !important;
    color: #1d1b1f; overflow-wrap: anywhere;
  }
  #product .el-card > .el-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }
  #product .el-info > h1 { margin-block: 6px; }
  #product .el-info :is(.el-series, .el-size) {
    font-size: 14px; line-height: 1.4; overflow-wrap: anywhere;
  }
  #product .el-info > :is(.el-size, .el-stock) { margin: 0; }
  #product .el-info > .el-stock { justify-self: start; margin-bottom: 4px; }
  html body :is(
    .section__head h2, .op-h2, .av-h2, .ab2-h2, .faqx__intro h2, .faqx__list h2, .dv-seo h2,
    .dl-cta h2, .v1-cta h2, .ab2-cta h2, .av-cta h2, .bkl__head h2, .reqs__head h2, .consult__in h2,
    .clients2__head h2, .hb-head h2, .showcase__text h2, #brTitle, .ce5 h2, .el-sec h2, .rq2__head h2,
    .bp-text h2, .bp-prods h2, .bp-more h2, .dz-head h2, .dz-ba__txt h2, .dz-join__txt h2, .dz-seo__txt h2,
    .pk-head h2, .ov1-l h2, .ov1-faq h2, .ov1-seo h2, .ai-head h2, .crp-text__cols h2,
    .otz-yr__head h2, .otz-wall__head h2, .av-seo h2, .ask__intro h2,
    .sol-block__head h2, .sol-text__main h2, .sol-faq h2, .sol-more__t h2, .sol-others h2,
    .dmap-card h3, .vs6__l h3
  ), html.m-home body main :is(#hits, #faq, #categories) h2 {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-size: 20px !important; line-height: 1.2 !important; font-weight: 700 !important; letter-spacing: 0 !important;
  }
  html body :is(.pk-st__txt h3, .bp-text h3, .faq1__card h3, .cat-posts__head h2, .seo-text > h2) {
    font-size: 18px !important; line-height: 1.25 !important; font-weight: 700 !important;
  }
}

/* 25.11.2026 (проверка сайта, Иван «да»): правки для телефона.
   1) На узком телефоне (320) цена и «₽» в карточке разъезжались на две строки — цена не переносится; если рядом
      со значками не помещается, она занимает всю строку над ними.
   2) Карта доставки (delivery.html): карта ~260–340 px, подписи городов выходили высотой 3–4 px и налезали друг на друга —
      на телефоне их не показываем; выбранный город — крупная белая плашка (×3), точки крупнее, чтобы попасть пальцем. */
@media (max-width: 767px) {
  .pbuy__sum b { white-space: nowrap; }
  .gm .lbl { display: none !important; }
  .gm .hl .s { transform: scale(calc(var(--k) * 3)); }
  .gm .c .s { transform: scale(calc(var(--k) * 1.8)); }
}
@media (max-width: 374px) { .pbuy.pw-buy .pbuy__price { grid-column: 1 / -1; } }

/* 25.11.2026 (Иван: «да» — невидимое увеличение зоны нажатия, вид не меняется): «Купить в 1 клик», «Задать вопрос»
   (высота 22) и «Подробнее» (21) — зона ±10 px по высоте; «В избранное» / «Сравнить» на карточках (26×28, стоят друг над
   другом) — шире на 9 px с каждой стороны. Только ::after, раскладка страницы не сдвигается (проверено). */
@media (max-width: 767px) {
  .pbuy__one, .pw-links > a, .product__plist, .catalog-actions > button { position: relative; }
  .pbuy__one::after, .pw-links > a::after, .product__plist::after { content: ""; position: absolute; inset: -10px -4px; }
  .catalog-actions > button::after { content: ""; position: absolute; inset: -1px -9px; }
}
