/* Стили конкретных блоков страниц. Токены — в site.css. */

/* ---------- Скрытое поле-ловушка для ботов ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Главная: светлый герой (1a) ---------- */
.hero-light {
  padding-top: 64px; padding-bottom: 72px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-light h1 { margin-bottom: 18px; }
.hero-light h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 520px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 26px; font-size: 13.5px; color: var(--text-2); flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media .slot { height: 420px; }
.hero-price {
  position: absolute; left: -24px; bottom: 28px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; padding: 16px 22px;
  box-shadow: var(--shadow-float);
}
.hero-price-label { font-size: 12px; color: var(--text-3); font-weight: 600; }
.hero-price-value { font-weight: 800; font-size: 26px; color: var(--accent); margin-top: 2px; }

/* ---------- Главная: тёмный герой (1b) ---------- */
.hero-dark { background: var(--ink); color: #fff; position: relative; }
.hero-dark-bg { position: absolute; inset: 0; }
.hero-dark-bg .slot { height: 100%; background: var(--ink); }
.hero-dark-bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,27,38,.94) 0%, rgba(20,27,38,.72) 52%, rgba(20,27,38,.25) 100%);
}
.hero-dark-inner { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 96px; }
.hero-dark h1 { font-size: 76px; line-height: .98; margin-bottom: 22px; max-width: 820px; }
.hero-dark .hero-lead { color: var(--on-dark-1); max-width: 480px; }
.hero-eyebrow {
  font-weight: 700; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: 18px;
}
.stat-bar {
  display: flex; margin-top: 56px; width: max-content; max-width: 100%;
  background: rgba(20, 27, 38, .85); border: 1px solid var(--ink-border);
  border-radius: 10px; backdrop-filter: blur(4px);
}
.stat-bar > div { padding: 18px 28px; border-right: 1px solid var(--ink-border); }
.stat-bar > div:last-child { border-right: none; }
.stat-bar b {
  display: block; font-family: Oswald, sans-serif; font-weight: 600;
  font-size: 30px; line-height: 1.1; color: #fff;
}
.stat-bar > div:first-child b { color: var(--accent-on-dark); }
.stat-bar span { font-size: 12.5px; color: var(--on-dark-2); }

/* ---------- Заголовок секции со ссылкой справа ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; margin-bottom: 26px; flex-wrap: wrap;
}

/* ---------- Карточка марки ---------- */
.brand-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.brand-card { padding: 20px; }
/* Пропорция та же, что у картинки марки — логотип не обрежется */
.brand-card-photo { margin-bottom: 14px; }
.brand-card-photo .slot { aspect-ratio: 520 / 364; height: auto; }

/* Марки строками (вариант 1b).
   Селектор с двумя классами — иначе общее правило a.card { display: block }
   перебивает сетку по специфичности и строка рассыпается в столбик. */
.brand-rows { display: grid; }
.brand-row, a.card.brand-row {
  display: grid; grid-template-columns: 64px 1.2fr 1.6fr 1fr 1fr 120px;
  align-items: center; gap: 18px; padding: 16px 24px;
  border-top: 1px solid var(--divider); color: var(--ink);
}
.brand-row:first-child { border-top: none; }
.brand-row:hover { background: var(--bg-section); color: var(--ink); }
.brand-row-photo .slot { width: 64px; height: 48px; }
.brand-row b { font-weight: 800; font-size: 17px; }
a.card.brand-catalog-row { grid-template-columns: 120px 1.2fr 1.6fr 1fr 1fr 120px; padding: 20px 24px; }
.brand-catalog-row .brand-row-photo .slot { width: 120px; height: 84px; }
.brand-card-photo .slot img, .brand-row-photo .slot img { object-fit: contain; background: #fff; }
.brand-specs > div { min-width: 0; }

/* ---------- Преимущества ---------- */
.perk-num {
  font-family: Oswald, sans-serif; font-weight: 600; font-size: 30px;
  color: var(--accent); margin-bottom: 10px; line-height: 1;
}

/* ---------- Тизер калькулятора ---------- */
.calc-teaser-cell {
  background: var(--ink); border: 1px solid var(--ink-border); border-radius: 6px;
  padding: 11px 14px; font-size: 13.5px; color: var(--on-dark-2);
}
.calc-teaser-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-top: 1px solid var(--ink-border); padding-top: 16px;
  font-size: 13.5px; color: var(--on-dark-2); flex-wrap: wrap;
}
.calc-teaser-total b { font-weight: 800; font-size: 22px; color: var(--accent-on-dark); }

/* ---------- Отзывы ---------- */
.reviews-delivery { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; }
.review { padding: 22px 24px; display: flex; gap: 18px; }
.review-photo { width: 74px; height: 74px; flex: none; }
.review-photo .slot { width: 74px; height: 74px; }
.stars { color: var(--star); font-size: 13px; margin-left: 6px; }

.map-stub { height: 210px; }
.map-stub .slot { height: 210px; }
.zone-row { display: flex; justify-content: space-between; gap: 16px; }

/* ---------- Общая обёртка внутренних страниц (макет: padding 40px 40px 72px) ---------- */
.page { padding-top: 40px; padding-bottom: 72px; }
.page h1 { font-size: 48px; margin-bottom: 10px; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px; flex-wrap: wrap;
}
.page-head h1 { margin-bottom: 8px; }
.page-head-note { font-size: 14.5px; color: var(--text-2); }
.page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-lead { font-size: 15.5px; line-height: 1.6; color: var(--text-2); max-width: 760px; margin: 0 0 32px; }

/* ---------- Прайс-лист ---------- */
.filters {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; display: flex; gap: 16px; align-items: center;
  flex-wrap: wrap; margin-bottom: 24px;
}
.filters-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters-label {
  font-size: 12.5px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.filters-divider { width: 1px; height: 26px; background: var(--border); }
.filters-select {
  border: 1.5px solid var(--border); border-radius: 6px; padding: 8px 30px 8px 14px;
  font-size: 13.5px; font-weight: 600; font-family: inherit; color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237A8090' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center/10px 6px;
  appearance: none; cursor: pointer;
}
.filters-select:hover { border-color: var(--border-secondary); }
.filters .switch { margin-left: auto; }
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch i {
  width: 34px; height: 20px; border-radius: 99px; background: var(--border-secondary);
  position: relative; transition: background .15s; flex: none;
}
.switch i::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .15s;
}
.switch input:checked + i { background: var(--ok-fg); }
.switch input:checked + i::after { transform: translateX(14px); }

.price-group { margin-bottom: 28px; }
.price-group-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; flex-wrap: wrap;
}
.price-group-head h2 { font-size: 26px; margin: 0; }
.price-group-head .muted { font-size: 13px; }
.price-group-head a { font-size: 13px; font-weight: 700; margin-left: auto; }
.price-empty { padding: 40px 22px; text-align: center; color: var(--text-3); }
.price-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-scroll-hint { display: none; margin: 0 0 10px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.price-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
table.t.t-price { min-width: 1000px; }
table.t.t-price thead th { font-size: 13px; text-transform: none; letter-spacing: 0; white-space: normal; vertical-align: middle; }
table.t.t-price thead th span { display: block; font-size: 12px; font-weight: 500; }
table.t.t-price thead .price-location-heading { text-align: center; border-bottom: 1px solid var(--ink-border); }
table.t.t-price thead .price-location { text-align: center; background: var(--ink-raised); padding: 10px 14px; }
table.t.t-price td.price { min-width: 150px; text-align: center; white-space: nowrap; }
.price-on-request { padding: 24px; }
.price-on-request p { margin: 0 0 12px; }
.price-on-request p:last-of-type { margin-bottom: 18px; }
table.t .cell-plant { color: var(--text-3); font-size: 13px; }

/* Оптовый блок — голубой, как в макете */
.opt-block {
  background: var(--info-bg); border: 1px solid #C9D6F5; border-radius: 12px;
  padding: 28px 32px; display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap; margin-top: 8px;
}
.opt-block > div { flex: 1; min-width: 260px; }
.opt-title { font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.opt-text { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.opt-block .btn { white-space: nowrap; }

/* ---------- Страница марки ---------- */
.brand-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.brand-head { display: grid; grid-template-columns: 1fr .85fr; gap: 44px; align-items: start; }
.brand-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.brand-gallery .slot { height: 78px; }
.brand-gallery > .slot:first-child img { object-fit: contain; background: #fff; }
.brand-gallery .slot.is-clickable { cursor: zoom-in; transition: outline-color .12s; outline: 2px solid transparent; outline-offset: 2px; }
.brand-gallery .slot.is-clickable:hover { outline-color: var(--border-secondary); }
.brand-gallery .slot.is-active { outline-color: var(--accent); cursor: default; }

/* Выбранное фото показываем целиком на светлом поле, логотип — как есть */
.brand-main-photo.is-photo .slot { background: var(--bg-section); }
.brand-main-photo.is-photo .slot img { object-fit: contain; }
.brand-main-photo .slot { height: 380px; }
.brand-main-photo .slot img { object-fit: contain; background: #fff; }
.brand-specs { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; margin: 56px 0; }
.brand-specs-single { grid-template-columns: 1fr; }
.brand-price-box { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.brand-price-value { font-family: Oswald, sans-serif; font-weight: 600; font-size: 42px; color: var(--accent); line-height: 1; }
.size-line { display: grid; gap: 10px; }
.size-line-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 16px; align-items: center;
  padding: 14px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 8px;
}
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cert { display: block; text-align: center; padding: 18px; }
.cert .slot { height: 150px; margin-bottom: 10px; }

/* ---------- Сравнение материалов ---------- */
.compare-table { min-width: 1100px; }
.compare-table thead th.is-gas { background: var(--accent); }
.compare-table tbody td.is-gas { background: var(--info-bg); font-weight: 800; color: var(--accent); }
.compare-table tbody td:first-child { color: var(--ink); }

.bars-title { font-weight: 800; font-size: 17px; margin-bottom: 20px; }
.bars { display: grid; gap: 13px; }
.bar-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 5px; }
.bar-head span { font-weight: 600; color: var(--text-2); }
.bar-head span.is-hi { font-weight: 800; color: var(--accent); }
.bar-val { font-weight: 800; color: var(--ink); }
.bar { height: 14px; background: var(--chip); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--border-secondary); border-radius: 99px; }
.bar > span.is-hi { background: var(--accent); }

.minus-title { font-weight: 800; font-size: 16px; margin-bottom: 8px; color: var(--minus); }
.minus-fix {
  border-top: 1px dashed var(--border); padding-top: 12px;
  font-size: 14px; line-height: 1.6; color: var(--text-2);
}
.minus-fix b { font-weight: 800; color: var(--ok-fg); }

/* ---------- Калькулятор (макет: 1.15fr / 0.85fr, sticky-результат) ---------- */
.calc { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; }
.calc-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px 36px;
}
.card-label {
  font-weight: 800; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 14px;
}
.calc-panel .card-label { margin-top: 28px; }
.calc-panel .card-label:first-child { margin-top: 0; margin-bottom: 16px; }
.calc-dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.calc-field-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.calc-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 6px;
  padding: 12px 14px; font-size: 15px; font-weight: 700; font-family: inherit; color: var(--ink);
  background: #fff; outline: none;
}
.calc-input:focus { border-color: var(--accent); }
.calc-opts { display: flex; gap: 10px; flex-wrap: wrap; }

.calc-openings { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opening {
  border: 1.5px solid var(--border); border-radius: 8px; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.opening-name { font-weight: 700; font-size: 14.5px; }
.opening-size { font-size: 12px; color: var(--text-3); }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 30px; height: 30px; border: 1.5px solid var(--border-secondary); border-radius: 6px;
  background: #fff; display: grid; place-items: center; cursor: pointer;
  font-weight: 800; font-size: 16px; color: var(--ink); font-family: inherit; line-height: 1; padding: 0;
}
.stepper button:hover { border-color: var(--accent); color: var(--accent); }
.stepper output { font-weight: 800; font-size: 17px; min-width: 20px; text-align: center; }

.calc-side { position: sticky; top: 24px; }
.calc-result { background: var(--ink); border-radius: 12px; padding: 32px; color: #fff; }
.calc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.calc-tile { background: var(--ink-raised); border-radius: 8px; padding: 16px 18px; }
.calc-tile b {
  display: block; font-family: Oswald, sans-serif; font-weight: 600;
  font-size: 30px; line-height: 1.1; color: var(--accent-on-dark);
}
.calc-tile span { display: block; font-size: 12.5px; color: var(--on-dark-2); margin-top: 2px; }
.calc-sums {
  display: grid; gap: 10px; font-size: 14px;
  border-top: 1px solid var(--ink-border); padding-top: 18px; margin-bottom: 20px;
}
.calc-sum-row { display: flex; justify-content: space-between; gap: 12px; }
.calc-sum-row span { color: var(--on-dark-2); }
.calc-sum-row b { font-weight: 800; }
.calc-sum-total {
  font-size: 17px; border-top: 1px solid var(--ink-border); padding-top: 12px;
}
.calc-sum-total span { color: #fff; font-weight: 700; }
.calc-sum-total b { color: var(--accent-on-dark); }
.calc-result-note {
  font-size: 12px; color: var(--on-dark-3); line-height: 1.5;
  text-align: center; margin-top: 10px;
}
.calc-how {
  padding: 18px 22px; margin-top: 14px;
  font-size: 13px; line-height: 1.6; color: var(--text-2);
}

/* ---------- Доставка ---------- */
.delivery-top {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px;
  align-items: start; margin-bottom: 56px;
}
.delivery-side { display: grid; gap: 14px; }
.delivery-map { height: 300px; }
.delivery-map .slot { height: 300px; }
.delivery-photo { height: 200px; }
.delivery-photo .slot { height: 200px; }
.zone-name { display: block; font-weight: 700; }
.zone-towns { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 400; }
.table-note {
  padding: 12px 22px; font-size: 12px; color: var(--text-3);
  border-top: 1px solid var(--divider);
}
/* ---------- Доставка ---------- */
/* ---------- Контакты (макет: 0.9fr карточки / 1.1fr карта + форма) ---------- */
.contacts-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: start; }
.contacts-col { display: grid; gap: 14px; }
.contact-card { padding: 26px 30px; }
.phone-main { font-weight: 800; font-size: 26px; margin-bottom: 4px; }
.phone-main a, .phone-second a { color: var(--ink); }
.phone-main a:hover, .phone-second a:hover { color: var(--accent); }
.phone-second { font-weight: 800; font-size: 20px; margin-bottom: 4px; }
.phone-note { font-size: 13.5px; color: var(--text-3); margin-bottom: 14px; }

.messengers { display: flex; gap: 10px; }
.msg-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #fff; font-weight: 700; font-size: 13.5px; padding: 12px; border-radius: 6px;
}
.msg-btn i {
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  display: grid; place-items: center; font-size: 9px; font-weight: 800; font-style: normal;
}
.msg-wa { background: var(--wa); } .msg-wa i { color: var(--wa); }
.msg-wa:hover { background: #1E9A3E; color: #fff; }
.msg-tg { background: var(--tg); } .msg-tg i { color: var(--tg); }
.msg-tg:hover { background: #1F8FC4; color: #fff; }
.msg-max { background: #5E3BEE; } .msg-max i { color: #5E3BEE; }
.msg-max:hover { background: #4C2ED1; color: #fff; }

.contacts-map { height: 380px; position: relative; }
.contacts-map .slot { height: 380px; }
.map-pin {
  position: absolute; left: 44%; top: 38%; width: 34px; height: 34px;
  background: var(--accent); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  display: grid; place-items: center; box-shadow: 0 6px 14px rgba(30, 79, 194, .35);
}
.map-pin i { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: 11px; font-style: normal; }
.requisites { font-family: ui-monospace, monospace; font-size: 13.5px; line-height: 1.8; color: var(--text-2); }

/* ---------- Блог ---------- */
.article-body { max-width: 760px; font-size: 16.5px; line-height: 1.75; }
.article-body h2 { font-size: 26px; margin: 32px 0 14px; }
.article-body h3 { font-size: 20px; margin: 24px 0 10px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; }
.article-card-photo .slot { height: 180px; }

/* ---------- Панель редактирования ---------- */
.edit-toolbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: #fff; border-bottom: 1px solid var(--ink-border);
}
.edit-toolbar-inner {
  max-width: var(--container); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px;
}
.edit-toolbar-who { color: var(--on-dark-2); }
.edit-toolbar-who b { color: #fff; }
.edit-toolbar-hint { color: var(--accent-on-dark); font-weight: 700; }
.edit-toolbar .btn { background: #fff; color: var(--ink); border-color: #fff; }
.edit-toolbar .btn.is-on { background: var(--ok-fg); color: #fff; border-color: var(--ok-fg); }
.edit-toolbar .btn-secondary { background: transparent; color: #fff; border-color: var(--ink-border); }

body.editing [data-e] {
  outline: 1.5px dashed var(--accent); outline-offset: 3px;
  cursor: text; border-radius: 2px; min-width: 20px; min-height: 1em; display: inline-block;
}
body.editing [data-e]:hover { background: rgba(30, 79, 194, .07); }
body.editing [data-e]:focus { outline: 2px solid var(--accent); background: #fff; color: var(--ink); }
body.editing h1[data-e], body.editing h2[data-e], body.editing p[data-e], body.editing div[data-e] { display: block; }
body.editing [data-slot] { outline: 1.5px dashed var(--accent); outline-offset: 3px; cursor: pointer; }
body.editing [data-slot]::after {
  content: 'Заменить фото'; position: absolute; inset: auto 0 0 0; text-align: center;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px;
}
body.editing a { pointer-events: none; }
body.editing a [data-e] { pointer-events: auto; }
body.editing .edit-toolbar a, body.editing [data-slot] a { pointer-events: auto; }

.edit-saved {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  background: var(--ok-fg); color: #fff; font-weight: 700; font-size: 14px;
  padding: 12px 20px; border-radius: 8px; box-shadow: var(--shadow-float);
}

/* ---------- Мобильная адаптация страниц ---------- */
@media (max-width: 1024px) {
  .price-scroll-hint { display: block; }
  .brand-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-light { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 40px; }
  .hero-media .slot { height: 240px; }
  .hero-price { left: 12px; bottom: 12px; padding: 12px 16px; }
  .hero-price-value { font-size: 21px; }

  .hero-dark h1 { font-size: 40px; }
  .hero-dark-inner { padding-top: 48px; padding-bottom: 56px; }
  .stat-bar { flex-wrap: wrap; width: 100%; margin-top: 32px; }
  .stat-bar > div { flex: 1 1 50%; border-bottom: 1px solid var(--ink-border); padding: 14px 18px; }
  .stat-bar b { font-size: 24px; }

  .brand-row, a.card.brand-row { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .brand-catalog-row .brand-row-photo .slot { width: 80px; height: 64px; }
  .brand-row > span:nth-child(3), .brand-row > span:nth-child(4) { display: none; }
  .brand-row > span:nth-child(5) { grid-column: 2; }
  .brand-row > span:last-child { display: none; }

  .reviews-delivery { grid-template-columns: 1fr; gap: 32px; }
  .review { flex-direction: column; gap: 12px; }

  .brand-head { grid-template-columns: 1fr; gap: 24px; }
  .brand-specs { grid-template-columns: 1fr; gap: 28px; }
  .brand-main-photo .slot { height: 220px; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .size-line-row { grid-template-columns: 1fr 1fr; gap: 8px; }

  .calc { grid-template-columns: 1fr; gap: 20px; }
  .calc-panel { padding: 20px 18px; }
  .calc-dims { grid-template-columns: 1fr; }
  .calc-openings { grid-template-columns: 1fr; }
  .delivery-top { grid-template-columns: 1fr; gap: 20px; }
  /* Итог калькулятора — закреплённая нижняя плашка (макет «Мобильная версия») */
  .calc-side {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 62;
    max-height: 64vh; overflow-y: auto; box-shadow: 0 -8px 24px rgba(27, 36, 49, .16);
  }
  .calc-result { border-radius: 12px 12px 0 0; padding: 20px; }
  .calc-tiles { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .calc-tile { padding: 10px 12px; }
  .calc-tile b { font-size: 21px; }
  .calc-tile span { font-size: 10.5px; line-height: 1.25; }
  .calc-how { display: none; }
  body.has-calc .mobile-bar, body.has-calc .wa-float { display: none; }
  body.has-calc { padding-bottom: 200px; }

  .steps { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; gap: 28px; }
  .bar-row { grid-template-columns: 110px 1fr; }
  .bar-row > span:last-child { grid-column: 2; }
  .filters { padding: 14px 16px; gap: 12px; }
  .filters .switch { margin-left: 0; }
  .filters-divider { display: none; }
  .filters-select { flex: 1; min-width: 0; }
  .page h1 { font-size: 34px; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1; }
}

@media (max-width: 480px) {
  .brand-card-grid { grid-template-columns: 1fr; }
  .calc-tile .tile-extra { display: none; }
}

/* В режиме редактирования показываем, что цена считается сама и правится в админке */
body.editing [data-e-locked] {
  outline: 1.5px dashed var(--border-secondary); outline-offset: 3px;
  cursor: help; position: relative;
}
body.editing [data-e-locked]::after {
  content: attr(data-e-locked);
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 70;
  background: var(--ink); color: #fff; font-family: Manrope, sans-serif;
  font-size: 11.5px; font-weight: 600; line-height: 1.3; text-transform: none;
  padding: 6px 10px; border-radius: 5px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .12s;
}
body.editing [data-e-locked]:hover::after { opacity: 1; }
