:root {
  --ink: #14181f;
  --ink-2: #4a5566;
  --ink-3: #7b8798;
  --line: #e3e8ef;
  --bg: #fff;
  --bg-soft: #f5f7fa;
  --accent: #f26722;
  --accent-dark: #d4520f;
  --blue: #1b4b7d;
  --ok: #0f8a4d;
  --ok-bg: #e8f6ee;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(20, 24, 31, .06), 0 8px 24px rgba(20, 24, 31, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Ничто не должно расширять страницу по горизонтали. Длинные слова и артикулы
   переносятся, картинки и таблицы не вылезают за свой контейнер. */
html, body { max-width: 100%; overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
p, li, h1, h2, h3, h4, td, th, .rel__name, .tile__name { overflow-wrap: anywhere; }

body {
  font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- шапка ----------
   Тёмная полоса с каталогом, поиском и корзиной. Личного кабинета нет:
   заказы идут через менеджера, регистрация только отпугивала бы. */
/* Безопасная зона: на iPhone шапка иначе подлезает под статус-бар
   и выглядит обрезанной сверху. */
.top { background: #12161d; position: sticky; top: 0; z-index: 20;
       padding-top: env(safe-area-inset-top, 0px); }
.wrap { padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right)); }
.top__in { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.logo { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: #fff; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--accent); }

.cat-btn { display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid #39414f; color: #fff; font: inherit; font-size: 15px; font-weight: 500; padding: 10px 16px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.cat-btn:hover { border-color: var(--accent); background: rgba(242, 103, 34, .1); }
.cat-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* overflow тут держать нельзя: он обрезает выпадающие подсказки поиска.
   Скругление задаём самим краевым элементам. */
.search { flex: 1; display: flex; background: #fff; border-radius: 8px; min-width: 0; position: relative; }
.search__ico { display: flex; align-items: center; padding-left: 14px; color: var(--ink-3); border-radius: 8px 0 0 8px; }
.search__ico svg { width: 18px; height: 18px; fill: currentColor; }
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; padding: 11px 12px; min-width: 0; color: var(--ink); background: transparent; }
.search input::placeholder { color: var(--ink-3); }
.search button { border: 0; border-radius: 0 8px 8px 0; background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 15px; padding: 0 26px; cursor: pointer; transition: background .15s; }
.search button:hover { background: var(--accent-dark); }

.top__phone { color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none; }
.top__phone:hover { color: var(--accent); }

.cart { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; border: 1px solid #39414f; background: transparent; cursor: pointer; color: #fff; transition: border-color .15s; }
.cart:hover { border-color: var(--accent); }
.cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cart__n { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

.subnav { background: #1a1f28; }
.subnav__in { display: flex; align-items: center; gap: 22px; padding: 0; overflow-x: auto; }
.subnav a { color: #c3cbd6; text-decoration: none; font-size: 14px; padding: 11px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: #fff; border-bottom-color: var(--accent); }
.subnav a b { color: var(--accent); font-weight: 600; }
.subnav__note { margin-left: auto; font-size: 13px; color: #7b8798; white-space: nowrap; }

/* Выпадающий каталог: все разделы и подгруппы сразу, без вложенных наведений */
.mega { position: absolute; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 40px rgba(20, 24, 31, .18); z-index: 30; }
.mega__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 28px; padding: 24px 20px 28px; }
.mega__col { display: flex; flex-direction: column; gap: 1px; }
.mega__head { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.mega__head:hover { color: var(--accent); }
/* Подгруппы — вложенный уровень: отступ и линия слева говорят об этом
   быстрее любой подписи. */
.mega__col a { position: relative; font-size: 13.5px; color: var(--ink-2); text-decoration: none; padding: 4px 0 4px 12px; }
.mega__col a::before { content: ""; position: absolute; left: 2px; top: 50%; width: 5px; height: 1px; background: var(--line); }
.mega__col a:hover { color: var(--accent); }
.mega__col a:hover::before { background: var(--accent); }
.mega i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.mega__col--extra .mega__head { color: var(--ink-3); }
.mega__foot { display: none; }
@media (max-width: 780px) { .mega__foot { display: block; } }

/* Баннеры на главной */
/* Слайды лежат в одной ячейке сетки друг на друге: высота баннера равна
   самому длинному, поэтому при переключении страница не дёргается. */
.hero-banner { position: relative; display: grid; border-radius: 14px; overflow: hidden; margin: 20px 0; background: #12161d; }
.hero-banner__slide { grid-area: 1 / 1; display: flex; align-items: center; gap: 28px; padding: 34px 36px 46px; min-height: 240px;
                      opacity: 0; visibility: hidden; transition: opacity .25s; }
.hero-banner__slide.is-on { opacity: 1; visibility: visible; }
.hero-banner__txt { flex: 1; min-width: 0; color: #fff; }
.hero-banner__tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hero-banner h2 { font-size: 27px; line-height: 1.2; font-weight: 700; margin-bottom: 10px; color: #fff; }
.hero-banner p { font-size: 15px; color: #c3cbd6; line-height: 1.55; margin-bottom: 18px; max-width: 52ch; }
.hero-banner .btn { display: inline-block; width: auto; padding: 12px 26px; }
.hero-banner__img { flex: 0 0 240px; display: flex; align-items: center; justify-content: center; }
.hero-banner__img img { max-width: 100%; max-height: 190px; object-fit: contain; }
.hero-banner__dots { position: absolute; left: 36px; bottom: 16px; display: flex; gap: 7px; }
/* Точка баннера видимая тонкая, но палец должен попадать: даём кнопке высоту
   и рисуем полоску только по content-box. */
.hero-banner__dot { width: 26px; height: 22px; border-radius: 2px; border: 0; padding: 9px 0; box-sizing: border-box;
  background: rgba(255, 255, 255, .28); background-clip: content-box; cursor: pointer; }
.hero-banner__dot.is-on { background: var(--accent); background-clip: content-box; }

/* Плитки разделов и подгрупп с фото */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tile { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile__img { flex: 0 0 74px; height: 74px; background: var(--bg-soft); border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: contain; }
.tile > span:last-child { display: block; min-width: 0; }
.tile__name { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 3px; }
.tile__meta { display: block; font-size: 13px; color: var(--ink-3); }
.tile__blurb { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 5px; }

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.about h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.about p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.about__lead { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); line-height: 1.65; max-width: 78ch; }

.lead { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 16px; }
/* min-width: 0 обязателен: иначе поле не сжимается ниже своего содержимого
   и распирает страницу на узких экранах. */
.lead input { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; outline: 0; min-width: 0; max-width: 100%; }
.lead input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 103, 34, .12); }
.lead .btn { width: 100%; }

/* Переключатель режимов подбора */
.ctabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.ctab { font: inherit; font-size: 14px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink-2); cursor: pointer; transition: border-color .12s, background .12s, color .12s; }
.ctab:hover { border-color: var(--ink-3); }
.ctab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* Калькулятор воздухообмена */
.calc { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; margin: 18px 0; }
/* min-width: 0 на ячейке и width: 100% на контроле: длинный вариант в select
   иначе не даёт колонке сжаться и растягивает всю страницу. Шрифт 16px —
   меньший размер заставляет iOS зумить страницу при фокусе на поле. */
.calc label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.calc select, .calc input { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #fff; color: var(--ink); width: 100%; min-width: 0; max-width: 100%; }
.calc select:focus, .calc input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 103, 34, .12); }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 6px; }
.calc-out > div { background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; border-left: 4px solid var(--line); }
.calc-out__main { border-left-color: var(--accent); }
.calc-out__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); margin-bottom: 3px; }
.calc-out__val { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
@media (max-width: 700px) { .calc { grid-template-columns: 1fr 1fr; } }

/* Ссылка на калькулятор в разделе */
.calc-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.calc-cta h2 { font-size: 18px; margin-bottom: 4px; }
.calc-cta .btn { width: auto; padding: 13px 26px; white-space: nowrap; }

/* Фильтры раздела */
.block__bar { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.block__count { font-size: 14px; color: var(--ink-3); }
.freset { margin-left: auto; font: inherit; font-size: 13px; color: var(--accent-dark); background: none; border: 0; cursor: pointer; padding: 0; text-decoration: underline; }
.filters { display: flex; flex-wrap: wrap; gap: 18px 28px; padding: 14px 0 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.fgroup__t { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); margin-bottom: 8px; }
.fgroup__i { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip input { position: absolute; opacity: 0; pointer-events: none; }
.fchip span { display: inline-block; font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; cursor: pointer; color: var(--ink-2); transition: border-color .12s, background .12s, color .12s; }
.fchip span i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.fchip span:hover { border-color: var(--ink-3); }
.fchip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.fchip input:checked + span i { color: rgba(255, 255, 255, .75); }
.fchip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(242, 103, 34, .25); }
.grid-empty { display: none; font-size: 14px; color: var(--ink-2); padding: 18px 0; }
.rel-grid.is-empty + .grid-empty { display: block; }

/* Подсказки поиска */
.search { position: relative; }
.sresults { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 10px; box-shadow: 0 18px 40px rgba(20, 24, 31, .22); overflow: hidden; z-index: 40; max-height: 70vh; overflow-y: auto; }
.sresult { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.sresult:last-child { border-bottom: 0; }
.sresult:hover { background: var(--bg-soft); }
.sresult img, .sresult__ph { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; background: var(--bg-soft); border-radius: 6px; }
.sresult__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sresult__txt b { font-size: 14px; font-weight: 500; line-height: 1.35; }
.sresult__txt i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.sresult__price { display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; font-weight: 700; white-space: nowrap; }
.sresult__price s { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.sresults__empty { padding: 16px; font-size: 14px; color: var(--ink-2); }
.btn.is-added { background: var(--ok); border-color: var(--ok); color: #fff; }

@media (max-width: 700px) {
  .hero-banner__img { display: none; }
  .hero-banner h2 { font-size: 21px; }
  .subnav__note { display: none; }
}

/* Рейтинг магазина в шапке — виден с любой страницы */
.rating { display: flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; padding: 6px 10px; border-radius: 8px; transition: background .15s; }
.rating:hover { background: rgba(255, 255, 255, .07); }
.rating__star { color: var(--accent); font-size: 15px; line-height: 1; }
.rating b { color: #fff; font-size: 15px; font-weight: 700; }
.rating i { font-style: normal; font-size: 12px; color: #7b8798; }

/* Число отзывов прячем только там, где шапка реально перестаёт помещаться. */
@media (max-width: 1024px) { .rating i { display: none; } }

/* Переключатель языка — в подвале, рядом с копирайтом */
.lang { color: #c3cbd6; text-decoration: none; font-size: 13px; padding: 5px 12px; border: 1px solid #2b3340; border-radius: 20px; white-space: nowrap; }
.lang:hover { color: #fff; border-color: var(--accent); }

@media (max-width: 1100px) {
  .top__phone { display: none; }
}

/* Мобильная шапка: логотип и кнопки в строку, поиск — отдельной строкой во всю
   ширину. Сжимать поиск в иконку нельзя: он тут главный инструмент. */
/* Мобильная шапка: одна кнопка-меню вместо уезжающей вбок ленты ссылок.
   Полоса подменю на узких экранах прячется — все разделы и служебные
   страницы живут внутри выпадающего каталога. */
@media (max-width: 780px) {
  /* Белое поле поиска не должно упираться в нижний край тёмной шапки:
     иначе оно зрительно сливается с белым контентом страницы. */
  .top__in { flex-wrap: wrap; gap: 10px; padding: 14px 0; }
  .logo { font-size: 18px; margin-right: auto; }
  .cat-btn { order: 1; padding: 9px 14px; font-size: 14px; }
  .cat-btn span { display: inline; }
  .cart { order: 3; width: 38px; height: 38px; }
  .cart__n { top: -5px; right: -5px; }
  /* flex-basis 100% + grow давали ширину больше экрана, и кнопка уезжала
     за край. Растягиваться тут нечему — строка и так во всю ширину. */
  .search { order: 4; flex: 0 0 100%; width: 100%; max-width: 100%; min-width: 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
  .search input { font-size: 16px; padding: 10px 8px; min-width: 0; text-overflow: ellipsis; }
  .search button { padding: 0 14px; font-size: 14px; flex: 0 0 auto; white-space: nowrap; }
  .search__ico { padding-left: 10px; flex: 0 0 auto; }
  .rating { padding: 4px 6px; }
  .rating b { font-size: 14px; }

  .subnav { display: none; }

  .mega { position: fixed; top: 0; left: 0; right: 0; bottom: 0; overflow-y: auto;
          -webkit-overflow-scrolling: touch; border-top: 0; z-index: 60; }
  .mega__in { display: block; padding: 8px 20px 8px; }
  .mega__col { margin-bottom: 14px; }
  .mega__head { font-size: 15px; padding: 4px 0; margin-bottom: 2px; }
  /* Подгруппы в две колонки: на телефоне это вдвое короче списка
     и всё равно читается как вложенный уровень. */
  .mega__col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .mega__head { grid-column: 1 / -1; }
  /* Пункт меню должен быть высотой в палец, а не в строку текста. */
  .mega__col a { font-size: 13.5px; padding: 10px 0 10px 11px; border-bottom: 0; }
  .mega__col--extra { grid-template-columns: 1fr 1fr; }
  .mega__foot { padding: 4px 20px 24px; }
  .mega__phone { display: block; text-align: center; padding: 13px; border-radius: 10px;
                 background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
  /* Крестик поверх панели — иначе на мобильном её нечем закрыть. */
  .mega::before { content: "✕"; position: sticky; top: 0; display: block; text-align: right;
                  padding: 12px 20px; font-size: 20px; color: var(--ink-3);
                  background: #fff; z-index: 2; }
  body.is-menu { overflow: hidden; }
}

@media (max-width: 460px) {
  .wrap { padding: 0 14px; }
  .mega__in { grid-template-columns: 1fr; }
  .block { padding: 18px 16px; }
  h1 { font-size: 20px; }
  .block h2 { font-size: 17px; }
}

.crumbs { padding: 14px 0; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- верх карточки ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: start; }

/* Галерея: миниатюры колонкой слева, как привычно по маркетплейсам.
   Переключение по наведению — не нужно кликать, чтобы просто посмотреть. */
.gallery { background: var(--bg); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
.gallery--single { grid-template-columns: minmax(0, 1fr); }
.gallery__thumbs { display: flex; flex-direction: column; gap: 8px; }
.thumb { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; padding: 4px; transition: border-color .15s; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { border-color: var(--ink-3); }
.thumb[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gallery__main { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .12s; }
.gallery__count { position: absolute; right: 10px; bottom: 10px; background: rgba(20, 24, 31, .62); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 20px; }

.buy { background: var(--bg); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 16px; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.badge--stock { background: var(--ok-bg); color: var(--ok); }
.badge--hit { background: #fff1e8; color: var(--accent-dark); }
.badge--brand { background: #eaf1f8; color: var(--blue); }

h1 { font-size: 24px; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; margin-bottom: 8px; }
.sku { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }

.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price__now { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.price__old { font-size: 16px; color: var(--ink-3); text-decoration: line-through; }
.price__save { font-size: 13px; font-weight: 600; color: var(--accent-dark); background: #fff1e8; padding: 3px 8px; border-radius: 6px; }
.price__note { font-size: 13px; color: var(--ink-3); margin: 6px 0 18px; }

.btn { display: block; width: 100%; text-align: center; font: inherit; font-weight: 600; padding: 14px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.buy__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy__row .btn { padding: 14px 10px; }
/* Подбор — вспомогательное действие: ссылка, а не третья равновесная кнопка. */
.btn-link { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--accent); }
@media (max-width: 420px) { .buy__row { grid-template-columns: 1fr; } }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-dark); }

.callback { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.callback b { color: var(--ink); }

/* ---------- ключевые цифры ----------
   Полоса обрамлена тонкими линиями в цвете сайта: это первое, на что смотрит
   человек, который сравнивает модели, — линии отделяют цифры от остального. */
.specs { margin: 28px 0; }
.specs__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.specs__head h2 { font-size: 15px; font-weight: 600; letter-spacing: .01em; text-transform: uppercase; color: var(--ink); }
.specs__head span { font-size: 13px; color: var(--ink-3); }
.specs-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
/* Акцентная полоса слева — общий приём карточек на сайте. */
.kpi { background: var(--bg); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.kpi__label { font-size: 12px; color: var(--ink-3); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .03em; }
.kpi__value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.kpi__unit { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }

/* ---------- блоки ---------- */
.block { background: var(--bg); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.block h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.block__note { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.block img { max-width: 100%; height: auto; display: block; }

.media { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
/* Заводской чертёж — квадратная картинка: на всю ширину карточки он
   растягивается на тысячу пикселей и выталкивает всё остальное вниз.
   Ограничиваем по высоте, ширину считаем от неё. */
.media img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.media a { display: block; }
.media a:hover img { opacity: .9; }
.media__full { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* Видео живёт внутри описания и намеренно небольшое — оно дополняет текст,
   а не забирает весь экран. Грузится только по клику. */
.video { position: relative; aspect-ratio: 16/9; max-width: 420px; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; border: 0; padding: 0; width: 100%; margin: 4px 0 16px; display: block; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.video__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video__play span { width: 52px; height: 52px; border-radius: 50%; background: rgba(242, 103, 34, .95); display: flex; align-items: center; justify-content: center; }
.video__play svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }
.video iframe { width: 100%; height: 100%; border: 0; }
.video__cap { font-size: 13px; color: var(--ink-3); margin: -10px 0 0; }
.desc .video { margin-top: 20px; padding-top: 0; }
.desc p + .video { margin-top: 22px; }

/* Доставка и оплата — внутри блока покупки, рядом с кнопками.
   Возражения снимаются там же, где принимается решение. */
.delivery { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.delivery__row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.delivery__row:last-child { border-bottom: 0; }
.delivery__row:hover { background: var(--bg-soft); }
.delivery__ico { flex: 0 0 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.delivery__ico svg { width: 24px; height: 24px; }
.delivery h3 { font-size: 14px; font-weight: 600; margin-bottom: 1px; }
.delivery p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.delivery p b { color: var(--ink); font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
/* Узкие экраны: таблица не должна сжиматься до переноса слов по буквам.
   Даём ей минимальную ширину и горизонтальную прокрутку внутри блока. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 520px; }
th, td { white-space: nowrap; }
.desc td, .desc th { white-space: normal; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink-2); background: var(--bg-soft); font-size: 13px; }
tbody tr:hover { background: #fafbfd; }
tr.is-current { background: #fff8f3; }
tr.is-current td { font-weight: 600; }


.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink-2); }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.trust__i { font-size: 22px; margin-bottom: 6px; }
.trust h3 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.trust p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

.desc p { margin-bottom: 12px; color: var(--ink-2); }

/* Похожие товары: цена и главные цифры прямо на карточке, чтобы выбирать
   типоразмер не заходя в каждую. */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.rel { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: inherit; transition: border-color .15s, transform .15s; }
.rel:hover { border-color: var(--accent); transform: translateY(-2px); }
/* Ссылка растянута на всю плитку, кнопка покупки лежит поверх неё. */
.rel__link { display: flex; flex-direction: column; gap: 8px; flex: 1; text-decoration: none; color: inherit; }
.rel__link::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
/* Две кнопки: «Купити» уводит в оформление, иконка корзины добавляет
   и оставляет в каталоге — можно собрать несколько позиций подряд. */
.rel__actions { position: relative; z-index: 1; display: flex; gap: 6px; margin-top: 10px; }
.rel__buy { font: inherit; font-size: 14px; font-weight: 600; padding: 10px; border: 1px solid var(--accent); border-radius: 8px; background: #fff; color: var(--accent-dark); cursor: pointer; transition: background .12s, color .12s; }
.rel__buy--main { flex: 1; }
.rel__buy--add { flex: 0 0 42px; display: flex; align-items: center; justify-content: center; padding: 0; }
.rel__buy--add svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rel__buy:hover { background: var(--accent); color: #fff; }
.rel__buy.is-added { background: var(--ok); border-color: var(--ok); color: #fff; }
.rel__img { position: relative; display: block; aspect-ratio: 1; background: var(--bg-soft); border-radius: 8px; overflow: hidden; }
.rel__badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: -.01em; }
.rel__old { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.rel__img img { width: 100%; height: 100%; object-fit: contain; }
.rel__name { font-size: 14px; line-height: 1.4; min-height: 2.8em; }
.rel__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border-radius: 5px; padding: 3px 7px; white-space: nowrap; }
.rel__price { font-size: 18px; font-weight: 700; margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rel__out { font-size: 11px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }

/* Отзывы: спокойные карточки, ничего мигающего и всплывающего.
   Читаются как цитаты, а не как рекламный блок. */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
/* На странице всех отзывов — кладка колонками: отзывы разной длины
   встают плотно, без дыр под короткими карточками. */
.reviews--all { display: block; columns: 3 280px; column-gap: 14px; }
.reviews--all .review { break-inside: avoid; margin-bottom: 14px; }
.review { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.review blockquote { font-size: 15px; line-height: 1.55; color: var(--ink); }
.review figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.review figcaption span { font-weight: 400; color: var(--ink-3); }
.review__prod { flex: 0 0 100%; font-size: 12px; color: var(--ink-3); }
.stars { font-size: 14px; letter-spacing: 1px; color: var(--accent); line-height: 1; }
.stars i { font-style: normal; color: var(--line); }
.reviews__meta { font-size: 14px; color: var(--ink-2); }
.reviews__more { margin-left: auto; font-size: 14px; color: var(--accent-dark); text-decoration: none; white-space: nowrap; }
.reviews__more:hover { text-decoration: underline; }

/* Форма отзыва */
.rform { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.rform__stars { border: 0; }
.rform__stars legend { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
/* Звёзды в обратном порядке: соседний селектор подсвечивает всё слева от выбранной. */
.stars-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars-pick input { position: absolute; opacity: 0; pointer-events: none; }
.stars-pick label { font-size: 28px; line-height: 1; color: var(--line); cursor: pointer; transition: color .12s; }
.stars-pick input:checked ~ label,
.stars-pick label:hover,
.stars-pick label:hover ~ label { color: var(--accent); }
.stars-pick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rform__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.rform input, .rform textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; outline: 0; min-width: 0; max-width: 100%; resize: vertical; }
.rform input:focus, .rform textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 103, 34, .12); }
.rform .btn { width: auto; align-self: flex-start; padding: 12px 28px; }
.rform__policy { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

.fmsg { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; padding: 10px 14px; border-radius: 10px; }
.fmsg.is-ok { background: var(--ok-bg); color: var(--ok); }
.fmsg.is-err { background: #fdecec; color: #a32d2d; }

/* Корзина и оформление заказа */
.checkout__h { margin: 4px 0 16px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.checkout__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.checkout__side { position: sticky; top: 90px; }

.step h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 10px; }
.step__n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; }
.step__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.step input[type=text], .step input[type=tel], .step input[type=email] { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; outline: 0; min-width: 0; width: 100%; }
.step input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 103, 34, .12); }

.opts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.opts--row { flex-direction: row; flex-wrap: wrap; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .12s, background .12s; }
.opt__box b { display: block; font-size: 15px; font-weight: 500; }
.opt__box i { display: block; font-style: normal; font-size: 13px; color: var(--ink-3); margin-top: 2px; overflow-wrap: anywhere; }
.opt input:checked + .opt__box { border-color: var(--accent); background: #fff8f3; }
.opt input:checked + .opt__box b { font-weight: 600; }
.opt input:focus-visible + .opt__box { box-shadow: 0 0 0 3px rgba(242, 103, 34, .25); }

/* Подсказки Новой Почты */
.np-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; background: #fff; border-radius: 10px; box-shadow: 0 14px 34px rgba(20, 24, 31, .2); max-height: 300px; overflow-y: auto; }
.np-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.np-item:last-child { border-bottom: 0; }
.np-item:hover { background: var(--bg-soft); }
.np-item b { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.np-item i { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); margin-top: 1px; }

.cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.city { font: inherit; font-size: 13px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--accent-dark); cursor: pointer; }
.city:hover { border-color: var(--accent); }

.summary__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.summary__head h2 { font-size: 18px; }
.summary__head span { font-size: 13px; color: var(--ink-3); }
.summary__rows { margin: 14px 0 16px; font-size: 14px; }
.summary__rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.summary__rows dt { color: var(--ink-2); }
.summary__rows dd { font-weight: 600; white-space: nowrap; }
.summary__rows .is-minus { color: var(--accent-dark); }
.summary__rows .is-muted { color: var(--ink-3); font-weight: 400; }
.summary__total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; }
.summary__total dt { font-size: 15px; color: var(--ink); }
.summary__total dd { font-size: 22px; font-weight: 700; }

.crow { display: grid; grid-template-columns: 56px minmax(0, 1fr) 28px; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.crow:first-child { padding-top: 0; }
.crow__img { width: 56px; height: 56px; object-fit: contain; background: var(--bg-soft); border-radius: 8px; }
.crow__name { display: block; font-size: 14px; line-height: 1.4; color: var(--ink); text-decoration: none; }
.crow__name:hover { color: var(--accent); }
.crow__qty { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.crow__qty button { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.crow__qty button:hover { border-color: var(--accent); color: var(--accent); }
.crow__qty span { min-width: 26px; text-align: center; font-size: 14px; font-weight: 600; }
.crow__qty b { margin-left: auto; font-size: 15px; }
.crow__del { width: 26px; height: 26px; border: 0; background: none; font-size: 19px; line-height: 1; color: var(--ink-3); cursor: pointer; border-radius: 6px; }
.crow__del:hover { background: #fdecec; color: #a32d2d; }

@media (max-width: 900px) {
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .checkout__side { position: static; order: -1; }
}

/* Страница благодарности */
.thanks { max-width: 720px; margin: 0 auto; text-align: center; padding: 36px 28px 32px; }
.thanks__ico { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 30px; line-height: 62px; font-weight: 700; }
.thanks h1 { margin-bottom: 8px; }
.thanks h2 { font-size: 17px; margin: 26px 0 14px; }
.thanks__steps { list-style: none; counter-reset: s; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.thanks__steps li { counter-increment: s; position: relative; padding-left: 44px; }
.thanks__steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.thanks__steps b { display: block; font-size: 15px; margin-bottom: 2px; }
.thanks__steps span { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.thanks__btn { display: inline-block; width: auto; margin-top: 22px; padding: 13px 30px; }

/* Виджет обратного звонка: заметная кнопка поверх страницы.
   Пульсация привлекает внимание, но не мигает — раздражать нельзя. */
.cb-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 58px; height: 58px;
          border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer;
          box-shadow: 0 8px 22px rgba(242, 103, 34, .45); transition: transform .15s, background .15s; }
.cb-fab:hover { background: var(--accent-dark); transform: scale(1.05); }
.cb-fab svg { width: 26px; height: 26px; fill: currentColor; position: relative; z-index: 1; }
.cb-fab__pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
                 opacity: .55; animation: cb-pulse 2.4s ease-out infinite; }
.cb-fab.is-open .cb-fab__pulse { animation: none; opacity: 0; }
@keyframes cb-pulse { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(1.7); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cb-fab__pulse { animation: none; opacity: 0; } }

.cb-panel { position: fixed; right: 18px; bottom: 88px; z-index: 51; width: min(320px, calc(100vw - 36px));
            background: #fff; border-radius: 14px; padding: 20px 20px 16px;
            box-shadow: 0 18px 44px rgba(20, 24, 31, .28); }
.cb-panel h3 { font-size: 17px; margin-bottom: 6px; }
.cb-panel p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.cb-panel__x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px;
               line-height: 1; color: var(--ink-3); cursor: pointer; }
.cb-panel__x:hover { color: var(--ink); }
.cb-form { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 10px; }
.cb-form input { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line);
                 border-radius: 10px; outline: 0; }
.cb-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 103, 34, .12); }
.cb-form .btn { width: 100%; }
.cb-panel__or { font-size: 13px; color: var(--ink-3); }
.cb-panel__or a { color: var(--accent-dark); font-weight: 600; text-decoration: none; white-space: nowrap; }

@media (max-width: 560px) {
  .cb-fab { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .cb-panel { right: 14px; left: 14px; bottom: 78px; width: auto; }
}

/* Подвал */
.site-foot { background: #12161d; color: #c3cbd6; margin-top: 40px; padding: 44px 0 0; }
.site-foot__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 36px; }
.site-foot .logo { color: #fff; display: inline-block; margin-bottom: 12px; }
.site-foot p { font-size: 14px; line-height: 1.6; margin-bottom: 6px; }
.site-foot h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: #c3cbd6; text-decoration: none; font-size: 14px; }
.site-foot a:hover { color: var(--accent); }
.site-foot__phone a { font-size: 19px; font-weight: 700; color: #fff; }
.site-foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 0 24px; border-top: 1px solid #242b36; font-size: 13px; color: #7b8798; }

@media (max-width: 860px) {
  .site-foot__in { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .site-foot__in { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { flex-direction: row; overflow-x: auto; order: 2; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .buy { position: static; }
  h1 { font-size: 21px; }
  .price__now { font-size: 28px; }
}

/* Строка с логотипом перевозчика: значок не должен растягивать текст. */
.np-line { display: inline-flex; align-items: center; gap: 8px; }
.np-line img { width: 20px; height: 20px; flex: 0 0 20px; }
.summary__rows .np-line img { width: 18px; height: 18px; flex-basis: 18px; }

/* Таблицы на страницах условий — текстовые, а не с числами: им нужен перенос,
   иначе nowrap распирает узкий экран. */
.info-table td { white-space: normal; }
.info-table td:first-child { color: var(--ink-2); }
.info-table { margin: 4px 0 18px; }
.block h3 { font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
.steps-list { margin: 0 0 18px 18px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.steps-list li { margin-bottom: 6px; }

/* Пальцевые цели на мобильном: чипы фильтров и звёзды формы отзыва. */
@media (max-width: 600px) {
  .fchip span { padding: 10px 14px; font-size: 14px; }
  .stars-pick label { font-size: 34px; padding: 2px; }
  .stars-pick { gap: 4px; }
}

/* Полная таблица характеристик: значения бывают длинные («Радіальний
   (відцентровий)»), а nowrap выносил их за пределы карточки на телефоне.
   Здесь перенос уместнее горизонтальной прокрутки — читают по строкам. */
.specs-table td { white-space: normal; }
.specs-table td:first-child { color: var(--ink-2); width: 55%; }

/* Подпись под полями шага: объясняет необязательное поле, не мешая вводу. */
.step__hint { margin-top: 8px; font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* Закреплённая полоса оформления. На узком экране сводка с кнопкой стоит НАД
   формой (её надо видеть до ввода данных), поэтому после заполнения полей
   кнопка оказывается вне экрана — дублируем её внизу. */
.buybar { display: none; }
@media (max-width: 900px) {
  .buybar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(20, 24, 31, .1);
  }
  .buybar__sum { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
  .buybar__sum span { font-size: 12px; color: var(--ink-3); }
  .buybar__sum b { font-size: 17px; }
  .buybar .btn { flex: 1; padding: 12px 16px; font-size: 15px; }
  /* Кнопка в сводке и кнопка в полосе — одно и то же действие. На узком
     экране показываем только закреплённую, иначе их видно обе сразу. */
  .summary > .btn { display: none; }
  /* Под полосой должно остаться место, иначе она закрывает последний блок. */
  #checkout { padding-bottom: 84px; }
  /* Трубка телефона не должна лежать на кнопке оформления. */
  .is-checkout .cb-fab { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .is-checkout .cb-panel { bottom: calc(160px + env(safe-area-inset-bottom)); }
}

/* Оформление заказа: подвал уводит человека в каталог и на инфостраницы прямо
   в момент, когда он уже вводит данные. На этом экране его убираем — класс
   ставит cart.js, и только пока в корзине что-то есть. */
.is-checkout .site-foot { display: none; }
