/* Бетон-Сервіс Груп — свои блоки главной. Префикс bsg-. Mobile first: 375 → 768 → 1200. */

:root {
  --bsg-text: #1f2933;
  --bsg-muted: #5b6673;
  --bsg-surface: #ffffff;
  --bsg-border: #e2e6ea;
  --bsg-primary: #3e4f60;        /* темнее кнопки темы #778899 — белый текст читается */
  --bsg-primary-hover: #2c3a48;
  --bsg-viber: #665cac;
  --bsg-tg: #1b7fb8;
  --bsg-link: #1b7fb8;           /* ссылки в тексте; тема даёт #000 без подчёркивания — не отличить от текста */
  --bsg-link-hover: #145f8a;
  --bsg-radius: 8px;
  --bsg-gap: 16px;
  --bsg-section: 40px;           /* между разделами главной; 768+ — 64px */
}

/* Отступ между разделами главной (Денис, 2026-10-20: заголовки терялись при 16px).
   Вступление + цифры — одна «шапка», между ними остаётся --bsg-gap. Контейнер темы — block, margin схлопываются,
   поэтому достаточно margin-top. Текст о компании (HTML-модуль 32) — ряд темы с .seo-copyright. */
.bsg-brands,
.bsg-delivery,
.bsg-order,
.bsg-partners,
.bsg-faq,
.bsg-contacts { margin-top: var(--bsg-section); }
/* Отдельным правилом: браузер без :has() отбросил бы весь список выше */
.container > .row:has(> [class*="col-"] > .seo-copyright) { margin-top: var(--bsg-section); }

/* Режим предпросмотра (/?preview=bsg): прячем старые товарные модули темы — их заменяет блок «Марки».
   При запуске для всех — убрать эти модули из схемы «Головна» и удалить правило. */
.bsg-preview .row.mb-3:has(.product-thumb) { display: none; }

/* ---------- Текст темы: читаемый размер (Денис, 2026-10-20) ----------
   Тема: body calc(11.35px + 0.16vw) ≈ 12–13,7px. Ставим 16px на всех ширинах; шапка, меню и карточки при этом не ломаются
   (проверено 320/375/1440). Файл подключается на всех страницах (OCMOD 1.9+, header.php). */
body { font-size: 16px; }

/* Тема задаёт явно: названия в карточках товаров 14px, подписи полей 13px, подвал 13px.
   Название: тема даёт высоту 40px, скрипт .auto-height (scripts.js) переносит её в style="height" — при 16px вторая
   строка обрезалась. Высота ровно под 2 строки; !important — чтобы перебить style от скрипта. */
.product-thumb .product-name { font-size: 16px; height: 2.8em !important; line-height: 1.4; }
label { font-size: 15px; }
footer, footer p, footer a, footer li, footer span { font-size: 15px; }

/* Карточка товара: блок «Доставка / Оплата / Гарантія» 13px, «В наявності» 12px */
#product-product .order-info .order-info-item { font-size: 15px; }
#product-product .product-status { font-size: 14px; }

/* Описание товара: межстрочный 1,6 (на всю ширину — как весь сайт, Денис 2026-10-20) */
#product-product > .row.mt-3 > .col-lg-12 { line-height: 1.6; }

/* Текст о компании внизу главной (HTML-модуль 32) */
.seo-copyright { font-size: 16px; line-height: 1.6; }
.seo-copyright p,
.seo-copyright li { font-size: inherit; line-height: inherit; }

/* Текстовые страницы (Доставка та оплата, Про нас, угоды): текст вставлен из Mac со style="font-family: Helvetica Neue;
   line-height: normal" в каждом абзаце — на Windows это Times и тесные строки. Возвращаем шрифт сайта и интервал.
   Ширина — на всю карточку, как весь сайт (Денис 2026-10-20; колонка 760px выглядела прижатой влево). */
#information-information #content p,
#information-information #content li,
#information-information #content span { font-family: inherit !important; line-height: 1.6 !important; }

/* Текст из редактора (описание товара, инфостраницы, HTML-модуль 32): заголовки, ссылки, таблицы.
   Тема им ничего не задаёт: H2 по Bootstrap 32px — крупнее названия товара (24px), отступа сверху нет; ссылки #000 без
   подчёркивания; таблицы без рамок. Селекторы списком, без :is() — как и с :has(), старый браузер отбросил бы правило целиком. */
#product-product > .row.mt-3 > .col-lg-12 h2,
#information-information #content h2,
.seo-copyright h2 { font-size: 24px; font-weight: 600; line-height: 1.25; margin: 1.5em 0 .5em; }
#product-product > .row.mt-3 > .col-lg-12 h3,
#information-information #content h3,
.seo-copyright h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 1.25em 0 .4em; }
#product-product > .row.mt-3 > .col-lg-12 h4,
#information-information #content h4,
.seo-copyright h4 { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 1.25em 0 .4em; }
.seo-copyright h2:first-child,
.seo-copyright h3:first-child { margin-top: 0; }
/* В карточке товара H1 (название) — 24px темы: заголовки описания на ступень меньше */
#product-product > .row.mt-3 > .col-lg-12 h2 { font-size: 20px; }
#product-product > .row.mt-3 > .col-lg-12 h3 { font-size: 18px; }

#product-product > .row.mt-3 > .col-lg-12 a:not(.btn),
#information-information #content a:not(.btn),
.seo-copyright a { color: var(--bsg-link); text-decoration: underline; text-underline-offset: 2px; }
#product-product > .row.mt-3 > .col-lg-12 a:not(.btn):hover,
#information-information #content a:not(.btn):hover,
.seo-copyright a:hover { color: var(--bsg-link-hover); }

#product-product > .row.mt-3 > .col-lg-12 table,
#information-information #content table,
.seo-copyright table { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
#product-product > .row.mt-3 > .col-lg-12 th,
#product-product > .row.mt-3 > .col-lg-12 td,
#information-information #content th,
#information-information #content td,
.seo-copyright th,
.seo-copyright td { border: 1px solid var(--bsg-border); padding: 8px 12px; text-align: left; vertical-align: top; overflow-wrap: break-word; }
#product-product > .row.mt-3 > .col-lg-12 tr:nth-child(even) td,
#information-information #content tr:nth-child(even) td,
.seo-copyright tr:nth-child(even) td { background: #f6f8fa; }
#product-product > .row.mt-3 > .col-lg-12 td p,
#information-information #content td p,
.seo-copyright td p { margin: 0; }
/* Телефон: длинные слова («Водонепроникність») не рвём посередине — таблица мельче, а если не влезла, прокручивается сама */
@media (max-width: 767px) {
  #product-product > .row.mt-3 > .col-lg-12 table,
  #information-information #content table,
  .seo-copyright table { display: block; overflow-x: auto; font-size: 15px; }
  #product-product > .row.mt-3 > .col-lg-12 td,
  #information-information #content td,
  .seo-copyright td { padding: 6px 10px; }
}

/* ---------- 2. Вступление ---------- */
.bsg-intro {
  background: var(--bsg-surface);
  border-radius: var(--bsg-radius);
  padding: 24px var(--bsg-gap);
  margin-bottom: var(--bsg-gap);
  color: var(--bsg-text);
}
.bsg-intro__title {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 16px;
}
.bsg-intro__lead {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.bsg-intro__more {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--bsg-border);
}
.bsg-intro__more .bsg-intro__lead:last-child { margin-bottom: 0; }
.bsg-intro__price {
  font-size: 18px;
  line-height: 1.4;
  margin: 16px 0;
}
.bsg-intro__price strong {
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}
.bsg-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bsg-intro__hours {
  font-size: 14px;
  line-height: 1.5;
  color: var(--bsg-muted);
  margin: 12px 0 0;
}

/* Кнопки */
.bsg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: var(--bsg-radius);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.bsg-btn:hover,
.bsg-btn:focus { text-decoration: none; }
.bsg-btn--call {
  flex: 1 1 100%;
  background: var(--bsg-primary);
  color: #fff;
}
.bsg-btn--call:hover,
.bsg-btn--call:focus { background: var(--bsg-primary-hover); color: #fff; }
.bsg-btn__sub { font-weight: 500; white-space: nowrap; }
.bsg-btn--viber,
.bsg-btn--tg {
  flex: 1 1 0;
  background: #fff;
}
.bsg-btn--viber { border-color: var(--bsg-viber); color: var(--bsg-viber); }
.bsg-btn--tg { border-color: var(--bsg-tg); color: var(--bsg-tg); }
.bsg-btn--viber:hover,
.bsg-btn--viber:focus { background: var(--bsg-viber); color: #fff; }
.bsg-btn--tg:hover,
.bsg-btn--tg:focus { background: var(--bsg-tg); color: #fff; }

/* ---------- 3. Цифры ---------- */
.bsg-facts { margin-bottom: var(--bsg-gap); }
.bsg-facts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bsg-facts__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bsg-surface);
  border-radius: var(--bsg-radius);
  padding: 14px 12px;
  color: var(--bsg-text);
}
/* Размер — как у плашек доставки (.bsg-delivery__value) и марок (.bsg-brand__mark): 20px, с 768 — 24px (Денис, 2026-10-21: 28px громоздко) */
.bsg-facts__num {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  white-space: nowrap;
}
.bsg-facts__num--word { white-space: normal; }
.bsg-facts__text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--bsg-muted);
}

/* ---------- 4. Марки і ціни (модуль «Рекомендовані», шаблон blocks/home/04-brands.twig) ---------- */
.bsg-brands { margin-bottom: var(--bsg-gap); color: var(--bsg-text); }
.bsg-brands__title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  margin: 8px 0 6px;
}
.bsg-brands__note {
  font-size: 16px;
  line-height: 1.5;
  color: var(--bsg-muted);
  margin: 0 0 14px;
}
.bsg-brands__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bsg-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bsg-surface);
  border: 1px solid transparent;
  border-radius: var(--bsg-radius);
  padding: 16px 14px;
  color: var(--bsg-text);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
a.bsg-brand:hover,
a.bsg-brand:focus {
  color: var(--bsg-text);
  text-decoration: none;
  border-color: var(--bsg-border);
  box-shadow: 0 4px 16px rgba(31, 41, 51, .08);
}
.bsg-brand__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--bsg-radius) - 2px);
  margin-bottom: 10px;
  background: #e9edf1;
}
.bsg-brand__mark {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
}
.bsg-brand__class {
  font-size: 14px;
  color: var(--bsg-muted);
}
.bsg-brand__use {
  font-size: 14px;
  line-height: 1.45;
  margin-top: 4px;
}
.bsg-brand__price {
  font-size: 18px;
  font-weight: 600;
  margin-top: auto;   /* цена и кнопка — по низу карточки, в ряду на одной линии */
  padding-top: 8px;
  white-space: nowrap;
}
.bsg-brand__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 8px 12px;
  border-radius: var(--bsg-radius);
  background: var(--bsg-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.bsg-brand__price + .bsg-brand__cta { margin-top: 12px; }
a.bsg-brand:hover .bsg-brand__cta { background: var(--bsg-primary-hover); }
/* Не бетон (ФБС): название целиком вместо марки */
.bsg-brand__name { font-size: 18px; line-height: 1.3; font-weight: 600; }
.bsg-brands__note a { color: var(--bsg-text); font-weight: 600; white-space: nowrap; }
/* Узкие телефоны (320): цена и «фундаментних» не влезали в карточку */
@media (max-width: 359px) {
  .bsg-brand { padding: 14px 10px; }
  .bsg-brand__price { font-size: 16px; }
  .bsg-brand__name { font-size: 16px; overflow-wrap: anywhere; hyphens: auto; }
}

/* ---------- Карточки товаров в категориях — вид как у марок на главной (Денис, 2026-10-21) ----------
   Только оформление: разметка темы, названия, цены и «Купити» те же. Фон категории белый (на главной — серый body),
   поэтому карточке нужна рамка и лёгкая тень. Ряд: 1 на телефоне (Денис: можно), 2 с 576, 3 с 768, 4 с 992 (у темы с 992 — 5). */
#product-category .product-thumb {
  height: calc(100% - 24px);
  margin-bottom: 24px;
  background: var(--bsg-surface);
  border: 1px solid var(--bsg-border);
  border-radius: var(--bsg-radius);
  box-shadow: 0 2px 8px rgba(31, 41, 51, .05);
  text-align: left !important;   /* у карточки класс .text-center (Bootstrap, с !important) */
  transition: border-color .2s, box-shadow .2s;
}
/* Телефон: одна карточка в ряд — выравнивать цену по низу не с кем, цена сразу под названием */
@media (max-width: 575.98px) {
  #product-category .product-thumb .auto-height.mb-2 { margin-top: 0; }
}
/* Ниже 992 над карточками кнопка «Фільтр» без отступа снизу — рамка ложилась на неё вплотную (Денис) */
@media (max-width: 991.98px) {
  #product-category .product-thumb { margin: 16px 0 8px; }
}
#product-category .product-thumb:hover {
  border-color: #cfd5db;
  box-shadow: 0 4px 16px rgba(31, 41, 51, .1);
}
#product-category .product-thumb .product-info {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
}
#product-category .product-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;   /* миниатюра квадратная с белыми полями сверху и снизу — 3:2 срезает их целиком */
  object-fit: cover;
  border-radius: calc(var(--bsg-radius) - 2px);
  margin-bottom: 10px;
  background: #e9edf1;
}
#product-category .product-thumb .product-name {
  color: var(--bsg-text);
  font-weight: 600;
  height: auto !important;   /* без запаса на 2-ю строку: на 414 и 1600+ название в 1 строку — пустая строка давала зазор 33px (Денис) */
  margin-bottom: 0;
}
/* Цена ближе к названию, кнопка — отдельно, как на главной (было: до цены 16px, до кнопки 8px — цена «отрывалась», Денис) */
#product-category .product-thumb .auto-height.mb-2 {
  height: auto !important;
  margin-top: auto;
  margin-bottom: 14px !important;   /* .mb-2 Bootstrap — с !important */
  padding-top: 8px;
}
#product-category .product-thumb .product-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--bsg-text);
  white-space: nowrap;
}
#product-category .product-thumb .btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-bottom: 0 !important;
  border: 0;
  border-radius: var(--bsg-radius);
  background: var(--bsg-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
#product-category .product-thumb .btn-buy:hover,
#product-category .product-thumb .btn-buy:focus { background: var(--bsg-primary-hover); }
@media (min-width: 992px) {
  #product-category .col-lg-2-4 { flex: 0 0 25%; max-width: 25%; }
}

/* ---------- 6. Доставка і техніка (blocks/home/06-delivery.html) ---------- */
.bsg-delivery { margin-bottom: var(--bsg-gap); color: var(--bsg-text); scroll-margin-top: 80px; }
.bsg-delivery__title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  margin: 8px 0 6px;
}
.bsg-delivery__lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--bsg-muted);
  margin: 0 0 14px;
}
.bsg-delivery__fleet,
.bsg-delivery__terms {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.bsg-delivery__card,
.bsg-delivery__term,
.bsg-delivery__box {
  background: var(--bsg-surface);
  border-radius: var(--bsg-radius);
  padding: 16px;
}
.bsg-delivery__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-content: start;
}
.bsg-delivery__img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 6px;
}
.bsg-delivery__name { font-size: 18px; line-height: 1.3; font-weight: 600; }
.bsg-delivery__text { font-size: 16px; line-height: 1.5; color: var(--bsg-muted); }
.bsg-delivery__terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsg-delivery__term { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; }
.bsg-delivery__label {
  font-size: 13px;
  color: var(--bsg-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.bsg-delivery__value { font-size: 20px; line-height: 1.25; font-weight: 600; }
.bsg-delivery__note { font-size: 14px; line-height: 1.4; color: var(--bsg-muted); }
/* 320: «наступний», «РОЗВАНТАЖЕННЯ» — длинные слова в плитке шириной ~112px */
@media (max-width: 359px) {
  .bsg-delivery__value { font-size: 18px; }
  .bsg-delivery__label { font-size: 12px; letter-spacing: 0; }
}
.bsg-delivery__bottom { display: grid; gap: 10px; }
.bsg-delivery__subtitle { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 1.3; font-weight: 600; margin: 0 0 10px; }
/* Иконки у «Скільки коштує» / «Щоб міксер…» (Денис, 2026-10-21): светлый круг 40px — тише тёмных кругов 56px блока «Як замовити» */
.bsg-delivery__icon {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9edf1;
  color: var(--bsg-primary);
  font-size: 18px;
}
/* «Щоб міксер не простоював» — порада-попередження: тёплый акцент вместо красного «внимание» */
.bsg-delivery__icon--tip { background: #fdf0d9; color: #a05f00; }
.bsg-delivery__box p { font-size: 16px; line-height: 1.55; color: var(--bsg-muted); margin: 0; }
.bsg-btn--ghost {
  flex: 1 1 100%;
  border-color: var(--bsg-primary);
  background: #fff;
  color: var(--bsg-primary);
}
.bsg-btn--ghost:hover,
.bsg-btn--ghost:focus { background: var(--bsg-primary); color: #fff; }

/* ---------- 7. Як замовити (blocks/home/07-order.html) ----------
   Шаги — на одной белой панели, круги с иконками соединены линией: до 1200 — вертикально, 1200+ — в ряд. */
.bsg-order {
  margin-bottom: var(--bsg-gap);
  padding: 24px var(--bsg-gap);
  border-radius: var(--bsg-radius);
  background: var(--bsg-surface);
  color: var(--bsg-text);
  scroll-margin-top: 80px;
}
.bsg-order__title { font-size: 24px; line-height: 1.25; font-weight: 600; margin: 0 0 6px; }
.bsg-order__lead { font-size: 16px; line-height: 1.55; color: var(--bsg-muted); margin: 0 0 20px; }
.bsg-order__steps { list-style: none; margin: 0 0 20px; padding: 0; }
.bsg-order__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding-bottom: 22px;
}
.bsg-order__step:last-child { padding-bottom: 0; }
/* Линия от круга к следующему кругу */
.bsg-order__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 64px;
  bottom: 8px;
  border-left: 2px dashed #c4cbd3;
}
.bsg-order__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bsg-primary);
  color: #fff;
  font-size: 22px;
}
.bsg-order__num {
  position: absolute;
  top: -4px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--bsg-primary);
  border-radius: 50%;
  background: #fff;
  color: var(--bsg-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.bsg-order__body { padding-top: 4px; }
.bsg-order__name { font-size: 18px; line-height: 1.3; font-weight: 600; margin: 0 0 4px; }
.bsg-order__text { font-size: 16px; line-height: 1.55; color: var(--bsg-muted); margin: 0; }
.bsg-order__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 8px 0 0; padding: 0; }
.bsg-order__tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef1f4;
  color: var(--bsg-text);
  font-size: 14px;
  line-height: 1.35;
}
.bsg-order__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 9. З нами працюють (blocks/home/09-partners.html) ---------- */
.bsg-partners { margin-bottom: var(--bsg-gap); color: var(--bsg-text); }
.bsg-partners__title { font-size: 24px; line-height: 1.25; font-weight: 600; margin: 8px 0 6px; }
.bsg-partners__lead { font-size: 16px; line-height: 1.55; color: var(--bsg-muted); margin: 0 0 14px; }
.bsg-partners__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bsg-partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 12px;
  border-radius: var(--bsg-radius);
  background: var(--bsg-surface);
}
.bsg-partners__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 48px;
}
.bsg-partners__logo--tall { max-height: 68px; }   /* почти квадратные логотипы — выше, чтобы не были мелкими */
/* Серые на устройствах с мышью, цветные при наведении */
@media (hover: hover) {
  .bsg-partners__logo { filter: grayscale(1); opacity: .65; transition: filter .25s, opacity .25s; }
  .bsg-partners__item:hover .bsg-partners__logo { filter: none; opacity: 1; }
}

/* ---------- 11. Питання й відповіді (blocks/home/11-faq.html) — аккордеон на <details>, без JS ---------- */
.bsg-faq { margin-bottom: var(--bsg-gap); color: var(--bsg-text); scroll-margin-top: 80px; }
.bsg-faq__title { font-size: 24px; line-height: 1.25; font-weight: 600; margin: 8px 0 14px; }
.bsg-faq__list { display: grid; gap: 8px; }
.bsg-faq__item { border-radius: var(--bsg-radius); background: var(--bsg-surface); }
.bsg-faq__q {
  position: relative;
  display: block;
  padding: 16px 52px 16px 16px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.bsg-faq__q::-webkit-details-marker { display: none; }
/* Плюс → минус */
.bsg-faq__q::before,
.bsg-faq__q::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  background: var(--bsg-primary);
  transition: transform .2s;
}
.bsg-faq__q::after { transform: rotate(90deg); }
.bsg-faq__item[open] .bsg-faq__q::after { transform: rotate(0); }
.bsg-faq__q:hover { color: var(--bsg-primary); }
.bsg-faq__q:focus-visible { outline: 2px solid var(--bsg-primary); outline-offset: -2px; border-radius: var(--bsg-radius); }
.bsg-faq__a { padding: 0 16px 16px; font-size: 16px; line-height: 1.6; color: var(--bsg-muted); }
.bsg-faq__a p,
.bsg-faq__a ul { margin: 0; }
.bsg-faq__a ul { padding-left: 18px; }
.bsg-faq__a li + li { margin-top: 4px; }
.bsg-faq__a ul + p { margin-top: 8px; }
.bsg-faq__a strong { color: var(--bsg-text); }
/* Призыв к действию — без кнопки: сразу ниже блок 12 «Контакти + форма» (Денис, 2026-10-20) */
.bsg-faq__more { margin-top: 20px; padding-left: 14px; border-left: 4px solid var(--bsg-primary); }
.bsg-faq__more-title { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0 0 4px; }
.bsg-faq__more-text { font-size: 16px; line-height: 1.55; color: var(--bsg-muted); margin: 0; max-width: 760px; }

/* ---------- 12. Контакти + форма (blocks/home/12-contacts.html, JS — bsg-custom.js) ---------- */
.bsg-contacts { margin-bottom: var(--bsg-gap); color: var(--bsg-text); scroll-margin-top: 80px; }
.bsg-contacts__title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  margin: 8px 0 14px;
}
.bsg-contacts__grid {
  display: grid;
  gap: 10px;
}
.bsg-contacts__info,
.bsg-form {
  background: var(--bsg-surface);
  border-radius: var(--bsg-radius);
  padding: 20px var(--bsg-gap);
}
.bsg-contacts__company { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0 0 6px; }
.bsg-contacts__about {
  font-size: 16px;
  line-height: 1.55;
  color: var(--bsg-muted);
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bsg-border);
}
/* Шапка карточки: название и короткое описание слева, логотип справа (Денис, 2026-10-21); на узком — логотип над названием */
.bsg-contacts__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bsg-border);
}
.bsg-contacts__head .bsg-contacts__about { margin: 0; padding: 0; border: 0; }
.bsg-contacts__logo { flex: 0 0 auto; width: 160px; height: auto; }
@media (max-width: 575px) {
  .bsg-contacts__head { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
  .bsg-contacts__logo { width: 140px; }
}
.bsg-contacts__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
}
.bsg-contacts__list li + li { margin-top: 12px; }
.bsg-contacts__label {
  display: block;
  font-size: 13px;
  color: var(--bsg-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.bsg-contacts__list a { color: var(--bsg-text); }
.bsg-contacts__phone { font-size: 22px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.bsg-contacts__actions { display: flex; gap: 10px; }

.bsg-form { margin: 0; }
.bsg-form__title { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0 0 4px; }
.bsg-form__note { font-size: 16px; line-height: 1.5; color: var(--bsg-muted); margin: 0 0 16px; }
.bsg-form__field { display: block; margin: 0 0 12px; }
.bsg-form__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.bsg-form__label b { color: #b42318; font-weight: 600; }
.bsg-form__input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #c4cbd3;
  border-radius: var(--bsg-radius);
  background: #fff;
  color: var(--bsg-text);
  font-size: 16px;               /* 16px — iOS не зумит поле при фокусе */
  line-height: 1.4;
}
textarea.bsg-form__input { resize: vertical; }
.bsg-form__input:focus { outline: 0; border-color: var(--bsg-primary); box-shadow: 0 0 0 3px rgba(62, 79, 96, .2); }
.bsg-form__input.is-invalid { border-color: #b42318; }
.bsg-form__error { display: block; font-size: 14px; color: #b42318; margin-top: 4px; }
.bsg-form__error[hidden] { display: none; }
.bsg-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bsg-form__submit { width: 100%; margin-top: 4px; }
.bsg-form__submit:disabled { opacity: .6; cursor: wait; }
.bsg-form__privacy { font-size: 13px; line-height: 1.45; color: var(--bsg-muted); margin: 10px 0 0; }
.bsg-form__privacy a { color: inherit; text-decoration: underline; }
.bsg-form__status { font-size: 15px; line-height: 1.45; padding: 10px 12px; border-radius: var(--bsg-radius); margin: 12px 0 0; }
.bsg-form__status.is-ok { background: #e6f4ea; color: #1e6b34; }
.bsg-form__status.is-error { background: #fdecea; color: #b42318; }

.bsg-map {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  min-height: 120px;
  margin-top: 10px;
  padding: 16px;
  border-radius: var(--bsg-radius);
  background: #e9edf1;
}
.bsg-map__btn {
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid var(--bsg-primary);
  border-radius: var(--bsg-radius);
  background: #fff;
  color: var(--bsg-primary);
  font-size: 16px;
  font-weight: 600;
}
.bsg-map__btn:hover { background: var(--bsg-primary); color: #fff; }
.bsg-map__route { font-size: 15px; color: var(--bsg-primary); text-decoration: underline; }
.bsg-map.is-loaded { display: block; padding: 0; overflow: hidden; background: none; }
.bsg-map.is-loaded iframe { display: block; width: 100%; height: 320px; border: 0; }
.bsg-map.is-loaded .bsg-map__route { display: inline-block; margin: 8px 0 0; }

/* ---------- 768+ ---------- */
@media (min-width: 768px) {
  :root { --bsg-section: 64px; }
  /* Заголовки в тексте из редактора — как H2 наших блоков */
  #information-information #content h2,
  .seo-copyright h2 { font-size: 28px; }
  #information-information #content h3,
  .seo-copyright h3 { font-size: 22px; }
  #product-product > .row.mt-3 > .col-lg-12 h2 { font-size: 22px; }
  .bsg-contacts__title { font-size: 28px; }
  .bsg-contacts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bsg-gap); }
  .bsg-contacts__info,
  .bsg-form { padding: 28px; }
  .bsg-map { margin-top: var(--bsg-gap); }
  .bsg-map.is-loaded iframe { height: 380px; }
  .bsg-intro { padding: 32px; }
  .bsg-intro__title { font-size: 32px; }
  .bsg-btn--call { flex: 0 1 auto; }
  .bsg-btn--viber,
  .bsg-btn--tg { flex: 0 1 auto; }
  .bsg-facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--bsg-gap); }
  .bsg-facts__item { padding: 18px 20px; }
  .bsg-facts__num { font-size: 24px; }
  .bsg-brands__title { font-size: 28px; }
  .bsg-brands__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--bsg-gap); }
  .bsg-brand { padding: 20px; }
  .bsg-brand__mark { font-size: 24px; }
  .bsg-brand__use { font-size: 15px; }
  .bsg-delivery__title { font-size: 28px; }
  .bsg-delivery__fleet { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--bsg-gap); margin-bottom: var(--bsg-gap); }
  .bsg-delivery__card { gap: 6px; padding: 20px; }
  .bsg-delivery__img { max-width: none; margin-bottom: 8px; }
  /* 4 колонки — с 992: на 768–991 «наступний» (24px) не влезал в плитку */
  .bsg-delivery__terms { gap: var(--bsg-gap); margin-bottom: var(--bsg-gap); }
  .bsg-delivery__term { padding: 18px 20px; }
  .bsg-delivery__value { font-size: 24px; }
  .bsg-delivery__bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bsg-gap); }
  .bsg-delivery__box { padding: 20px; }
  .bsg-btn--ghost { flex: 0 1 auto; }
  .bsg-order { padding: 28px; }
  .bsg-order__title { font-size: 28px; }
  .bsg-partners__title { font-size: 28px; }
  .bsg-partners__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--bsg-gap); }
  .bsg-partners__item { height: 120px; padding: 16px 20px; }
  .bsg-partners__logo { max-height: 56px; }
  .bsg-partners__logo--tall { max-height: 80px; }
  .bsg-faq__title { font-size: 28px; }
  .bsg-faq__q { padding: 18px 56px 18px 20px; font-size: 17px; }
  .bsg-faq__a { padding: 0 20px 20px; max-width: 900px; }
  .bsg-faq__more { margin-top: 28px; padding-left: 18px; }
  .bsg-faq__more-title { font-size: 22px; }
}

/* ---------- 1200+ ---------- */
@media (min-width: 992px) {
  .bsg-delivery__terms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  /* Две колонки: слева H1, цена, кнопки; справа — подробности */
  .bsg-intro {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    align-items: center;   /* правая колонка — по центру левой */
    padding: 40px 48px;
  }
  .bsg-intro__title { font-size: 36px; }
  .bsg-intro__more {
    margin-top: 0;
    padding: 0 0 0 48px;
    border-top: 0;
    border-left: 1px solid var(--bsg-border);
  }
  .bsg-intro__more .bsg-intro__lead { font-size: 16px; color: var(--bsg-muted); }
  /* 7. Шаги в ряд, линия — горизонтально между кругами */
  .bsg-order { padding: 36px 40px; }
  .bsg-order__lead { margin-bottom: 28px; }
  .bsg-order__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-bottom: 28px; }
  .bsg-order__step { display: block; padding-bottom: 0; }
  .bsg-order__step:not(:last-child)::before {
    left: 68px;
    right: -20px;
    top: 27px;
    bottom: auto;
    border-left: 0;
    border-top: 2px dashed #c4cbd3;
  }
  .bsg-order__body { padding-top: 16px; }
}
