/* БурГрад — шаблоны темы: страница услуги, блоки контента, служебные страницы, крошки, формы.
   Те же токены, что у прототипа (main.css). Один селектор — одна строка деклараций. Префикс .bg- */

/* ---------- Хлебные крошки ---------- */
.bg-crumbs { padding: var(--space-lg) 0 0; font-size: 14px; color: var(--ink-2); }
.bg-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.bg-crumbs li { display: inline-flex; align-items: center; }
.bg-crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 12px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); opacity: .6; }
.bg-crumbs a { text-decoration: none; }
.bg-crumbs a:hover { color: var(--orange-ink); text-decoration: underline; }
.bg-crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Обычная страница ---------- */
.bg-page { padding-bottom: var(--space-xl); }
.bg-page__h1 { font-size: clamp(30px, 4.2vw, 56px); margin: var(--space-xl) 0 var(--space-lg); }
.bg-page .bg-lead { max-width: 62ch; }
.bg-page__text { max-width: 78ch; padding-bottom: var(--space-2xl); }
.bg-page--wide .bg-price { padding-top: var(--space-lg); }
.bg-page--wide .bg-price .bg-page__h1 { margin-top: 0; }

/* ---------- Текст из редактора и JSON ---------- */
.bg-prose { font-size: 17px; line-height: 1.7; }
.bg-prose > :first-child { margin-top: 0; }
.bg-prose p, .bg-prose ul, .bg-prose ol { margin: 0 0 var(--space-md); }
.bg-prose ul, .bg-prose ol { padding-left: 1.3em; }
.bg-prose li { margin-bottom: 6px; }
.bg-prose li::marker { color: var(--orange); }
.bg-prose h2 { font: 750 clamp(22px, 2.4vw, 30px)/1.15 var(--f-display); margin: var(--space-2xl) 0 var(--space-md); }
.bg-prose h3 { font: 700 20px/1.25 var(--f-display); margin: var(--space-xl) 0 var(--space-sm); }
.bg-prose a { color: var(--orange-ink); text-underline-offset: 3px; }
.bg-prose strong, .bg-prose b { font-weight: 700; }
.bg-prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-lg); font-size: 15px; }
.bg-prose th, .bg-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

/* ---------- Первый экран услуги ---------- */
.bg-sh { padding-bottom: var(--space-2xl); }
.bg-sh__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--space-3xl); align-items: center; padding: var(--space-xl) 0 var(--space-2xl); }
.bg-sh__h1 { font-size: clamp(32px, 4.3vw, 58px); }
.bg-sh__lead { max-width: 46ch; margin-bottom: var(--space-lg); }
.bg-sh__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 var(--space-xl); padding: 14px 18px; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--line); width: fit-content; max-width: 100%; }
.bg-sh__price span { font: 600 13px var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.bg-sh__price b { font: 800 clamp(20px, 2vw, 26px)/1.1 var(--f-display); color: var(--orange-ink); }
.bg-sh__pic { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); aspect-ratio: 3 / 2; }
.bg-sh__pic a { display: block; height: 100%; cursor: zoom-in; }
.bg-sh__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bg-sh__pic:hover img { transform: scale(1.04); }
.bg-sh__tag { position: absolute; left: 16px; top: 16px; max-width: calc(100% - 32px); padding: 8px 12px; border-radius: 14px; background: var(--navy); color: oklch(97% .01 258); font: 700 14px/1.25 var(--f-display); font-variant-numeric: tabular-nums; pointer-events: none; }
/* Длинная глубина из контента («ниже промерзания, обычно 1,5–3 м») переносится, а не раздувает первый экран */
.bg-sh .bg-kicker { flex-wrap: wrap; }
.bg-sh .bg-kicker .bg-depth-tag { white-space: normal; max-width: 100%; line-height: 1.25; }
.bg-sh__pic figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: var(--r-md); background: color-mix(in oklch, var(--surface) 92%, transparent); font-size: 14px; line-height: 1.4; pointer-events: none; }
.bg-sh__facts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.bg-sh__facts b { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.15; }

/* ---------- Блоки контента услуги ---------- */
.bg-sb { padding: calc(var(--sec) * .75) 0; }
.bg-sb + .bg-sb { padding-top: 0; }
.bg-sb__h { margin-bottom: var(--space-2xl); }
.bg-sb__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: var(--space-3xl); align-items: start; }
.bg-sb__grid > .bg-h2, .bg-sb__side { position: sticky; top: 24px; }
/* Заголовок в узкой левой колонке: длинное слово («гидроаккумулятор») переносится, а не залезает на текст справа */
.bg-sb__grid .bg-h2 { font-size: clamp(24px, 2.3vw, 34px); hyphens: auto; overflow-wrap: break-word; }
.bg-sb__side { display: grid; gap: var(--space-md); justify-items: start; }
.bg-sb__side .bg-sub { margin: 0; }
.bg-sb--price { background: var(--surface); border-block: 1px solid var(--line); }
.bg-sb--price + .bg-sb { padding-top: calc(var(--sec) * .75); }
.bg-sb__price { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: var(--space-3xl); align-items: start; }
.bg-sb__price .bg-price__table { background: var(--bg); }
.bg-sb__all { margin: var(--space-lg) 0 0; }

/* Карточки с иконками */
.bg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.bg-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bg-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bg-card { position: relative; padding: var(--space-xl) var(--space-lg) var(--space-lg); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bg-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.bg-card__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--space-md); border-radius: 14px; background: color-mix(in oklch, var(--orange) 16%, var(--surface)); color: var(--orange-ink); }
.bg-card__ico .bg-ico { width: 28px; height: 28px; stroke-width: 1.7; }
.bg-card__h { font: 700 18px/1.25 var(--f-display); margin: 0 0 var(--space-sm); }
.bg-card p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* Этапы: спуск по шахте */
.bg-shaft { list-style: none; margin: 0; padding: 0 0 0 0; display: grid; gap: 0; position: relative; max-width: 920px; }
.bg-shaft::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: linear-gradient(var(--sand), var(--loam) 45%, var(--clay) 75%, var(--water)); }
.bg-shaft li { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: var(--space-lg); padding: 0 0 var(--space-xl); }
.bg-shaft li:last-child { padding-bottom: 0; }
.bg-shaft__n { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5.5px var(--line); font: 800 18px/1 var(--f-display); color: var(--orange-ink); font-variant-numeric: tabular-nums; }
.bg-shaft h3 { font: 700 19px/1.25 var(--f-display); margin: 14px 0 6px; }
.bg-shaft p { margin: 0; color: var(--ink-2); }

/* Таблицы и сравнение */
.bg-tbl { overflow-x: auto; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); scrollbar-width: thin; }
.bg-tbl table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.bg-tbl th, .bg-tbl td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.bg-tbl thead th { font: 700 13px/1.3 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); background: var(--surface-2); border-bottom: 0; }
.bg-tbl tbody tr:last-child th, .bg-tbl tbody tr:last-child td { border-bottom: 0; }
.bg-tbl tbody th { font-weight: 650; }
.bg-tbl tbody tr:hover { background: color-mix(in oklch, var(--orange) 6%, transparent); }
.bg-tbl--compare thead th:not(:first-child) { color: var(--ink); font-size: 15px; text-transform: none; letter-spacing: 0; }
.bg-tbl--compare tbody td { width: calc((100% - 30%) / 2); }
.bg-tbl--compare tbody th { width: 30%; color: var(--ink-2); font-weight: 600; }
.bg-tbl__note { margin: var(--space-md) 0 0; font-size: 14px; color: var(--ink-2); max-width: 80ch; }

/* Совет инженера */
.bg-callout { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-lg) var(--space-xl); align-items: center; padding: var(--space-xl); border-radius: var(--r-lg); background: var(--navy); color: oklch(96% .01 258); overflow: hidden; }
.bg-callout::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; border: 18px solid oklch(100% 0 0 / .05); pointer-events: none; }
.bg-callout__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-btn); color: var(--on-accent); }
.bg-callout__ico .bg-ico { width: 28px; height: 28px; }
.bg-callout__h { margin: 4px 0 8px; font: 700 13px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.bg-callout__t { margin: 0; font-size: 18px; line-height: 1.55; max-width: 72ch; }
.bg-callout__btn { position: relative; z-index: 1; }

/* Фото услуги и работы */
.bg-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 240px; gap: var(--space-md); }
.bg-gal figure { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.bg-gal figure:first-child { grid-row: span 2; }
.bg-gal a { display: block; height: 100%; cursor: zoom-in; }
.bg-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bg-gal figure:hover img { transform: scale(1.05); }
.bg-gal figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 9px 12px; border-radius: var(--r-md); background: color-mix(in oklch, var(--surface) 92%, transparent); font-size: 14px; line-height: 1.35; pointer-events: none; }
.bg-gal--works { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; padding-bottom: var(--space-2xl); }
.bg-gal--works figure:first-child { grid-row: auto; }
.bg-gal--works figure.is-tall { grid-row: span 2; }
.bg-related .bg-svc { animation: none; }

/* ---------- Документы ---------- */
.bg-legal { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 0 var(--space-3xl); align-items: start; }
.bg-legal .bg-crumbs, .bg-legal .bg-page__h1 { grid-column: 1 / -1; }
.bg-legal__side { position: sticky; top: 24px; display: grid; gap: 4px; padding: var(--space-lg); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 15px; }
.bg-legal__side nav { display: grid; gap: 2px; }
.bg-legal__side a { padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; }
.bg-legal__side a:hover { background: var(--surface-2); }
.bg-legal__side a[aria-current] { background: var(--navy); color: oklch(97% .01 258); }
.bg-legal__cap { margin: 0 0 6px; font: 700 13px var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.bg-legal__mail { margin: var(--space-md) 0 0; font-size: 14px; color: var(--ink-2); }
.bg-legal__mail a { color: var(--orange-ink); word-break: break-all; }
.bg-legal__text { max-width: 78ch; padding-bottom: var(--space-3xl); }
.bg-legal__text .sr-legal__date, .bg-legal__text .bg-legal__date { color: var(--ink-2); font-size: 15px; }

/* ---------- Контакты ---------- */
.bg-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); padding-bottom: var(--space-xl); }
.bg-contacts__card { display: grid; align-content: start; gap: var(--space-sm); padding: var(--space-xl); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.bg-contacts__card p { margin: 0; }
.bg-contacts__card--main { background: var(--navy); color: oklch(96% .01 258); box-shadow: none; }
.bg-contacts__card--main .bg-contacts__cap { color: oklch(80% .03 258); }
.bg-contacts__card--main .bg-btn { justify-self: start; margin-top: var(--space-md); }
.bg-contacts__cap { font: 700 13px var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.bg-contacts__cap:not(:first-child) { margin-top: var(--space-md) !important; }
.bg-contacts__phone { font-size: clamp(22px, 2.4vw, 30px); color: inherit; }
.bg-contacts__note { opacity: .85; }
.bg-contacts .bg-final__mes { margin-top: 0; }
.bg-contacts a:not(.bg-btn):not(.bg-pill):not(.bg-phone) { color: var(--orange-ink); }
.bg-req { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 15px; }
.bg-req dt { color: var(--ink-2); }
.bg-req dd { margin: 0; }

/* ---------- Города ---------- */
.bg-cities { list-style: none; margin: 0; padding: 0 0 var(--space-3xl); display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.bg-cities a { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.bg-cities a:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--ink); }
.bg-cities b { font-weight: 700; }
.bg-cities span { font-size: 13px; color: var(--ink-2); }
.bg-cities .is-main a, .bg-cities a[aria-current] { background: var(--navy); color: oklch(97% .01 258); box-shadow: none; }
.bg-cities .is-main span, .bg-cities a[aria-current] span { color: oklch(82% .03 258); }
.bg-cities__h { margin: 0 0 var(--space-md); }
.bg-cities--grp { padding-bottom: var(--space-2xl); }

/* ---------- Карта сайта ---------- */
.bg-sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-xl); padding-bottom: var(--space-3xl); }
.bg-sitemap .bg-h3 { font-size: 20px; margin-bottom: var(--space-sm); }
.bg-sitemap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bg-sitemap a { text-decoration: none; }
.bg-sitemap a:hover { color: var(--orange-ink); text-decoration: underline; }

/* ---------- 404 ---------- */
.bg-404__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-3xl); align-items: center; padding: var(--space-3xl) 0; }
.bg-404 .bg-kicker { margin-top: 0; }
.bg-404__list { list-style: none; margin: 0; padding: var(--space-lg); columns: 2; column-gap: var(--space-lg); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.bg-404__list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.bg-404__list a { text-decoration: none; font-size: 15px; }
.bg-404__list a:hover { color: var(--orange-ink); }

/* ---------- Иконки в круглых кнопках: SVG строго по центру (не символы шрифта) ---------- */
.bg-uico { width: 18px; height: 18px; display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bg-dlg__x, .bg-tip__x, .bg-arrows button, .bg-svc__go { display: grid; place-items: center; padding: 0; line-height: 0; font-size: 0; color: var(--ink); }
.bg-arrows .bg-uico { width: 20px; height: 20px; }
.bg-tip__x .bg-uico { width: 16px; height: 16px; }

/* ---------- «Как удобнее связаться»: пилюли с иконками, сетка 2×2 ---------- */
.bg-via { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bg-via__cap { grid-column: 1 / -1; }
.bg-via span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 8px; line-height: 1.2; white-space: nowrap; }
.bg-via span img, .bg-via span svg { width: 20px; height: 20px; flex: none; display: block; }
.bg-via__tel { fill: var(--orange); }
.bg-via input:checked + span .bg-via__tel { fill: oklch(97% .01 258); }

/* ---------- Формы: ловушка, ответ сервера, согласие ---------- */
.bg-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bg-blank__msg { margin: 0; min-height: 0; font-size: 14px; font-weight: 600; color: var(--water-deep); }
.bg-blank__msg:empty { display: none; }
.bg-blank__msg.is-bad { color: oklch(52% .19 28); }
.bg-agree a { color: var(--orange-ink); }
.bg-blank button[type="submit"]:disabled { opacity: .6; cursor: progress; }

/* ---------- Подвал и мобильное меню: ссылки разделов ---------- */
.bg-foot__legal span { opacity: .8; }
.bg-drawer__links { display: flex; flex-wrap: wrap; gap: 8px; padding: var(--space-md) var(--space-lg); }
.bg-drawer__links a { padding: 10px 14px; border-radius: 99px; background: var(--surface-2); text-decoration: none; font-weight: 600; font-size: 15px; }

/* Плашка cookie Wolf Tweaks в стиле темы: карточка слева внизу (справа — виджет связи), на телефоне — над нижней панелью */
#wolf-cookie.wolf-cookie { left: 20px; right: auto; bottom: 24px; width: min(440px, calc(100vw - 40px)); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: 0 2px 4px oklch(25% .06 258 / .06), 0 24px 56px -20px oklch(25% .06 258 / .35), 0 0 0 1px var(--line); }
#wolf-cookie .wolf-cookie-in { display: grid; grid-template-columns: 40px 1fr; align-items: start; gap: 12px 14px; max-width: none; padding: 16px 16px 16px 14px; }
#wolf-cookie .wolf-cookie-in::before { content: ""; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2541b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.5A9 9 0 1 1 11.5 3a3 3 0 0 0 3.5 3.5 3 3 0 0 0 3.5 3.5 3 3 0 0 0 2.5 2.5z'/%3E%3Ccircle cx='8.5' cy='10' r='.6' fill='%23c2541b'/%3E%3Ccircle cx='13' cy='15.5' r='.6' fill='%23c2541b'/%3E%3Ccircle cx='8' cy='15' r='.6' fill='%23c2541b'/%3E%3C/svg%3E") center / 24px no-repeat; }
#wolf-cookie p { min-width: 0; font: 400 13.5px/1.5 var(--f-text); color: var(--ink-2); }
#wolf-cookie a { color: var(--orange-ink); text-underline-offset: 2px; }
#wolf-cookie button { grid-column: 2; justify-self: start; padding: 10px 20px; border-radius: 99px; background: var(--accent-btn); color: var(--on-accent); font: 700 14px/1 var(--f-text); transition: background-color .2s, transform .25s var(--ease); }
#wolf-cookie button:hover { filter: none; background: var(--accent-btn-hover); transform: translateY(-1px); }
#wolf-cookie button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .bg-gal--works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  #wolf-cookie.wolf-cookie { left: 10px; right: 10px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .bg-sh__in, .bg-sb__grid, .bg-sb__price, .bg-legal, .bg-404__in { grid-template-columns: 1fr; gap: var(--space-xl); }
  .bg-sb__grid > .bg-h2, .bg-sb__side { position: static; }
  .bg-legal__side { position: static; }
  .bg-callout { grid-template-columns: auto 1fr; }
  .bg-callout__btn { grid-column: 2; justify-self: start; }
  .bg-contacts { grid-template-columns: 1fr 1fr; }
  .bg-cards, .bg-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bg-gal { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
}
@media (max-width: 640px) {
  .bg-sh__in { padding-top: var(--space-lg); }
  .bg-sh__price { width: 100%; }
  .bg-sh__facts { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .bg-contacts { grid-template-columns: 1fr; }
  .bg-cards, .bg-cards--4, .bg-cards--2 { grid-template-columns: 1fr; }
  .bg-gal, .bg-gal--works { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
  .bg-gal figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .bg-gal--works figure:first-child { grid-column: auto; }
  .bg-gal figcaption { font-size: 12.5px; padding: 6px 9px; left: 6px; right: 6px; bottom: 6px; }
  .bg-callout { grid-template-columns: 1fr; padding: var(--space-lg); }
  .bg-callout__btn { grid-column: auto; justify-self: start; }
  .bg-shaft::before { left: 21px; }
  .bg-shaft li { grid-template-columns: 46px 1fr; gap: var(--space-md); }
  .bg-shaft__n { width: 46px; height: 46px; font-size: 15px; }
  .bg-shaft h3 { margin-top: 10px; }
  .bg-404__list { columns: 1; }
  .bg-crumbs { font-size: 13px; }
  .bg-page { padding-bottom: 72px; }
}

/* Таблицы на телефоне: строка — карточка, у каждой ячейки подпись колонки (цена не уезжает за край) */
@media (max-width: 640px) {
  .bg-tbl { overflow: visible; background: none; box-shadow: none; border-radius: 0; }
  .bg-tbl table { min-width: 0; display: block; font-size: 15px; }
  .bg-tbl thead { display: none; }
  .bg-tbl tbody { display: grid; gap: var(--space-sm); }
  .bg-tbl tbody tr { display: grid; gap: 6px; padding: var(--space-md); border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
  .bg-tbl tbody tr:hover { background: var(--surface); }
  .bg-tbl tbody th, .bg-tbl tbody td { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 10px; padding: 0; border: 0; }
  .bg-tbl tbody th { display: block; font: 700 16px/1.3 var(--f-display); padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px dashed var(--line); }
  .bg-tbl tbody td::before { content: attr(data-label); font-size: 13px; color: var(--ink-2); }
  .bg-tbl tbody td:not([data-label])::before { display: none; }
  .bg-tbl tbody td:last-child { font-weight: 650; }
  .bg-tbl--compare tbody th, .bg-tbl--compare tbody td { width: auto; } /* ширины колонок сравнения с ПК сжимали ячейку до 35 % */
}

/* <picture> с WebP не создаёт своего блока: размеры и object-fit работают от родителя, как у обычного <img> (inc/images.php) */
picture { display: contents; }
