/* ============================================================
   ПОЛИГОН — редизайн: слой совместимости.
   Внутренние страницы сохраняют разметку рабочего сайта,
   поэтому здесь переопределены его классы в новой системе.
   Логика и содержание не тронуты — только внешний вид.
   ============================================================ */

/* ---------- контейнер и секции ---------- */
.container { position: relative; z-index: 3; max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad); }

.section { padding: clamp(52px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }

/* тёмный чередующийся блок — «плотный» ритм системы */
.section-muted { background: var(--surface); border-bottom: 1px solid var(--line); }

.section-heading { display: grid; gap: 12px; margin-bottom: clamp(26px, 3.5vw, 40px); max-width: 62ch; }
.section-kicker, .eyebrow {
  font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0;
}
.section-heading h2 { font-family: var(--display); font-weight: 600; font-size: clamp(23px, 2.2vw, 31px); line-height: 1.12; letter-spacing: -.028em; }

/* ---------- шапка внутренней страницы ---------- */
.page-hero-grid { display: grid; gap: 14px; }
.page-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(27px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -.03em; }
.page-lead { color: var(--ink-2); font-size: 16.5px; line-height: 1.55; max-width: 56ch; margin-top: 4px; }

/* ---------- текстовые блоки ---------- */
.intro-text, .seo-copy p, .case-body p, .two-column p { color: var(--ink-2); font-size: 16px; line-height: 1.62; max-width: 68ch; }
.seo-copy, .case-body { display: grid; gap: 14px; }
.seo-copy h2, .case-body h2 {
  font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.2;
  letter-spacing: -.02em; margin-top: 12px;
}
.two-column { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.clean-list { display: grid; gap: 9px; }
.clean-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 11px; font-size: 15.5px; color: var(--ink-2); }
.clean-list li::before { content: ""; width: 7px; height: 7px; margin-top: 8px; border-radius: 2px; background: var(--acc); }

.text-link { color: var(--acc); font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- карточки ---------- */
.service-grid, .service-detail-grid, .model-grid, .pill-grid, .equipment-links, .case-links, .messenger-cards {
  display: grid; gap: 14px;
}
.service-grid, .service-detail-grid { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.model-grid { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.case-links, .equipment-links { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.messenger-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pill-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.service-card, .detail-card, .price-card, .contact-panel, .case-figure, .process-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s var(--ease), border-color .2s;
}
.service-card:hover, .detail-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.section-muted .service-card, .section-muted .detail-card,
.section-muted .price-card, .section-muted .process-item { background: var(--nested); }

.service-card h3, .detail-card h3, .process-item h3, .price-card h3 {
  font-family: var(--body); font-weight: 700; font-size: 17.5px; line-height: 1.3; letter-spacing: -.01em;
}
.service-card p, .detail-card p, .process-item p, .price-card p { font-size: 14.5px; color: var(--ink-2); }
.service-card .button, .detail-card .button, .service-card .text-link, .detail-card .text-link { margin-top: auto; align-self: start; }

.card-number { font: 500 11px/1 var(--mono); letter-spacing: .16em; color: var(--acc); }

/* ---------- цены ---------- */
.price-label { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price-card p.price-value, .price-value {
  font-family: var(--display); font-weight: 600; font-size: 27px; line-height: 1.05;
  letter-spacing: -.03em; color: var(--acc); font-variant-numeric: tabular-nums;
}

/* ---------- модели ---------- */
.model-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s var(--ease), border-color .2s;
}
.model-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.model-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.model-name { font-weight: 600; font-size: 15.5px; padding: 13px 15px 0; }
.model-meta { font: 400 11.5px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); padding: 5px 15px 15px; }
.model-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 7px;
  background: rgba(14, 17, 21, .78); border: 1px solid var(--line-2); color: var(--ink-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.model-badge.is-free { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.model-badge.is-paid { color: var(--ink); }

/* ---------- портфолио ---------- */
.portfolio-card { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.portfolio-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .92; transition: transform .6s var(--ease), opacity .3s; }
.portfolio-card:hover img { transform: scale(1.03); opacity: 1; }
.portfolio-image-button { display: block; border: 0; padding: 0; background: none; cursor: zoom-in; width: 100%; }
.portfolio-card figcaption { padding: 13px 16px 16px; display: grid; gap: 4px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- процесс ---------- */
.process-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 14px; }

/* ---------- изображения ---------- */
.feature-image, .media-layout img { border-radius: var(--r-card); overflow: hidden; }
.media-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: start; }
/* иллюстрация не должна перерастать текстовую колонку */
.feature-image img, .media-layout img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- контакты ---------- */
.contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; align-items: start; }
.contact-copy { display: grid; gap: 12px; }
.messenger-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 17px 19px; font-weight: 600; font-size: 15.5px;
  transition: transform .2s var(--ease), border-color .2s;
}
.messenger-card:hover { transform: translateY(-2px); border-color: var(--acc); }

/* ---------- итоговая полоса на странице ---------- */
.cta-band { background: var(--acc); color: var(--acc-ink); border-bottom: 0; }
.cta-band .section-kicker, .cta-band .eyebrow { color: rgba(14, 17, 21, .58); }
.cta-band h2 { color: var(--acc-ink); font-family: var(--display); font-weight: 600; font-size: clamp(23px, 2.2vw, 31px); line-height: 1.12; letter-spacing: -.028em; }
.cta-band p { color: rgba(14, 17, 21, .76); }
.cta-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; align-items: center; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 11px; }
.cta-band .button-primary { background: var(--void); color: var(--acc); box-shadow: 0 10px 26px rgba(14, 17, 21, .28); }
.cta-band .button-secondary { background: rgba(255, 255, 255, .34); border-color: rgba(14, 17, 21, .26); color: var(--acc-ink); box-shadow: none; }
.cta-band .button-secondary:hover { background: rgba(255, 255, 255, .55); border-color: var(--acc-ink); }

/* ---------- прочее ---------- */
.case-note { font-size: 13.5px; color: var(--muted); }
.num, td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* класс появления с рабочего сайта: у нас блоки видимы всегда */
.reveal { opacity: 1; }

@media (max-width: 760px) {
  .section-heading { margin-bottom: 24px; }
}

/* карты и любые встроенные рамки не должны рвать вёрстку на телефоне */
iframe { max-width: 100%; border: 0; border-radius: var(--r-card); display: block; }

/* ============================================================
   Сетки страниц, которых не хватало — из-за них и «ехала» вёрстка
   ============================================================ */

/* хлебные крошки живут внутри сетки — тянем на всю ширину */
.portfolio-grid > .breadcrumbs,
.price-grid > .breadcrumbs,
.contact-grid > .breadcrumbs,
.model-grid > .breadcrumbs { grid-column: 1 / -1; margin-bottom: 4px; }

/* ---------- портфолио ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  align-items: start;
}
.portfolio-grid-expanded { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.portfolio-grid { align-items: stretch; }
.portfolio-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.portfolio-card > div { padding: 16px 18px 19px; display: flex; flex-direction: column; gap: 8px; }
.portfolio-card > div > span {
  font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.portfolio-card h2 { font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.portfolio-card p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.portfolio-card .text-link { margin-top: auto; align-self: start; padding-top: 4px; }
/* картинка внутри карточки — фиксированная пропорция, без гигантов */
.portfolio-image-button { aspect-ratio: 4 / 3; overflow: hidden; background: var(--nested); }
.portfolio-image-button img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- цены ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.price-card { gap: 12px; }
.price-card h2 { font-family: var(--body); font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.price-card .clean-list { padding-top: 4px; }
/* выделенный тариф: подписываем существующую метку, не добавляя вторую */
.price-card.featured { border-color: var(--acc); background: var(--nested); }
.price-card.featured .price-label {
  color: var(--acc-ink); background: var(--acc);
  align-self: start; padding: 6px 10px; border-radius: 7px;
}

.factors-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; align-items: start; }
.factor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 14px; }
.large-list { display: grid; gap: 12px; }
.large-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.large-list li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; border-radius: 2px; background: var(--acc); }
.large-list li strong, .large-list li b { color: var(--ink); font-weight: 600; }

/* ---------- контакты ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.contact-list { display: grid; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--nested); padding: 13px 15px;
}
.contact-row > a, .contact-row > span:first-child { display: grid; gap: 3px; min-width: 0; }
.contact-row span span:first-child,
.contact-row a span:first-child {
  font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.contact-row a span:last-child, .contact-row > span > span:last-child { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.contact-row a:hover span:last-child { color: var(--acc); }
.contact-copy {
  flex: none; background: none; border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--muted); font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 9px; cursor: pointer; transition: color .15s, border-color .15s;
}
.contact-copy:hover { color: var(--acc); border-color: var(--acc); }
.form-note { font-size: 13.5px; color: var(--muted); }

.map-band { padding: 0; border-bottom: 1px solid var(--line); }
.map-embed { width: 100%; aspect-ratio: 21 / 9; min-height: 300px; border-radius: 0; }
.map-embed iframe { width: 100%; height: 100%; border-radius: 0; }

.messenger-menu { position: relative; display: grid; gap: 10px; }
.messenger-toggle { align-self: start; }
.messenger-options { display: grid; gap: 8px; }

/* ---------- карточка модели ---------- */
.model-figure { border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.model-figure img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.model-figure figcaption { padding: 13px 16px 16px; font-size: 14px; color: var(--muted); }

/* первая секция не должна отваливаться от шапки страницы */
.page-hero + .section { padding-top: clamp(30px, 3.5vw, 46px); }

/* ---------- читабельность ---------- */
/* строка основного текста не длиннее 68 знаков — правило системы */
.section p, .page-hero p, .case-body p, .seo-copy p { max-width: 68ch; }
.section-heading + .intro-text { margin-top: -8px; }
.intro-text + .intro-text { margin-top: 12px; }
.section-muted + .section-muted { border-top: 1px solid var(--line); }
.container > * + .section-heading { margin-top: 34px; }
.table-wrap + .intro-text, .table-wrap + p { margin-top: 16px; }
.clean-list + p, p + .clean-list, .large-list + p, p + .large-list { margin-top: 14px; }

/* ============================================================
   Вертикальный ритм текста.
   Сброс полей в базе убрал расстояния между абзацами и
   заголовками внутри простых блоков — возвращаем их адресно,
   только там, где у родителя нет собственного gap.
   ============================================================ */
.media-layout > div > * + *,
.page-hero-grid > div > * + *,
.two-column > div > * + *,
.section > .container > div.reveal > * + * { margin-top: 12px; }

.media-layout > div > h2,
.two-column > div > h2,
.section > .container > div.reveal > h2 { margin-top: 22px; }

.media-layout > div > .breadcrumbs,
.section > .container > div.reveal > .breadcrumbs { margin-bottom: 6px; }

.media-layout > div > .section-kicker + h2,
.section > .container > div.reveal > .section-kicker + h2 { margin-top: 8px; }

.page-hero-grid > div > h1 { margin-top: 8px; }

/* но внутри карточек и сеток отступы задаёт gap, поля не нужны */
.detail-card > * + *, .service-card > * + *, .price-card > * + *,
.portfolio-card > div > * + *, .contact-panel > * + * { margin-top: 0; }

/* Текстовые блоки на сетке: колонка равна контейнеру.
   Без этого grid растягивал колонку под max-width абзаца. */
.case-body, .seo-copy, .contact-copy, .section-heading,
.clean-list, .large-list, .messenger-menu, .page-hero-grid > div {
  grid-template-columns: minmax(0, 1fr);
}
.clean-list li, .large-list li { grid-template-columns: 16px minmax(0, 1fr); }

/* ============================================================
   Новые содержательные страницы: материалы, оборудование,
   портфолио и кейсы
   ============================================================ */
.two-col { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 26px; align-items: start; }
.pros { display: grid; gap: 14px; }

.spec-rows { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; margin-top: 12px; }
.spec-rows > div { background: var(--surface); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 16px; }
.spec-rows dt { color: var(--muted); font-size: 14px; }
.spec-rows dd { font: 500 14px/1.3 var(--mono); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* ограничения помечаем иначе, чем плюсы — это не список достоинств */
.warn-list { display: grid; gap: 9px; grid-template-columns: minmax(0, 1fr); }
.warn-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 11px; font-size: 15.5px; color: var(--ink-2); }
.warn-list li::before { content: ""; width: 9px; height: 1.5px; margin-top: 12px; background: var(--muted); }

.callout {
  margin-top: 22px; padding: 15px 18px;
  border-left: 2px solid var(--acc);
  background: rgba(205, 245, 70, .05);
  border-radius: 0 10px 10px 0;
  font-size: 15.5px; color: var(--ink); max-width: 74ch;
}

.mat-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.mat-link {
  display: grid; gap: 4px; padding: 15px 17px;
  background: var(--nested); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: transform .2s var(--ease), border-color .2s;
}
.mat-link:hover { transform: translateY(-2px); border-color: var(--acc); }
.mat-link b { font-size: 15.5px; }
.mat-link span { font: 400 11.5px/1.3 var(--mono); letter-spacing: .06em; color: var(--muted); }

/* ---------- портфолио на новых данных ---------- */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; align-items: stretch; }
.work-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s;
}
.work-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.work-card picture { display: block; background: var(--nested); }
.work-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card figcaption { padding: 16px 18px 19px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-cat { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.work-card h2 { font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.work-card p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.work-card .text-link { margin-top: auto; align-self: start; padding-top: 4px; }

/* ---------- кейс ---------- */
.case-text { display: grid; gap: 12px; margin: 30px 0; grid-template-columns: minmax(0, 1fr); }
.case-text h2 { margin-top: 16px; }
.case-text h2:first-child { margin-top: 0; }
.case-text p { font-size: 16px; line-height: 1.62; color: var(--ink-2); max-width: 68ch; }
.case-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.case-shots figure { border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.case-shots img { width: 100%; object-fit: cover; }
.sources { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.sources a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.sources a:hover { color: var(--acc); }

.figs { display: flex; flex-wrap: wrap; gap: 30px; }
.figs div { display: grid; gap: 4px; }
.figs b { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1; letter-spacing: -.03em; }
.figs span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Классы, оставшиеся от рабочего сайта: юридические страницы,
   404, текстовые колонки услуг и список форматов файлов
   ============================================================ */
.legal-content { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); max-width: 78ch; }
.legal-content h2 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; margin-top: 18px; }
.legal-content h3 { font-family: var(--body); font-weight: 700; font-size: 16.5px; margin-top: 12px; }
.legal-content p, .legal-content li { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.legal-content ul, .legal-content ol { display: grid; gap: 8px; padding-left: 20px; }
.legal-content li { list-style: disc; }
.legal-content ol li { list-style: decimal; }
.legal-content a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }

.not-found { display: grid; gap: 18px; justify-items: start; padding: clamp(50px, 8vw, 90px) 0; }
.not-found h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.03em; }
.not-found p { color: var(--ink-2); font-size: 16.5px; max-width: 60ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }

.media-copy { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-content: start; }
.media-copy h2 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.1vw, 29px); line-height: 1.15; letter-spacing: -.025em; }
.media-copy p { color: var(--ink-2); font-size: 16px; line-height: 1.62; max-width: 68ch; }

.file-list { display: flex; flex-wrap: wrap; gap: 8px; }
.file-list li {
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 11px; border-radius: 8px;
  border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(255, 255, 255, .04);
}

/* ============================================================
   Правки после проверки всех страниц
   ============================================================ */
/* хлебные крошки внутри любой сетки-контейнера занимают всю строку */
.container > .breadcrumbs { grid-column: 1 / -1; }

/* класс лежит на самом контейнере — ограничивать надо содержимое,
   иначе сужается вся колонка страницы */
.legal-content { max-width: none; }
.legal-content > * { max-width: 78ch; }

/* длинные слова в заголовках карточек не должны вылезать за край */
h1, h2, h3, .service-card h3, .detail-card h3, .price-card h3, .work-card h2 { overflow-wrap: break-word; }

/* ============================================================
   Коммерческие блоки: цены, сроки, юрлица, отзывы.
   Генерируются _build/build_commercial.py из _build/commercial.py.
   ============================================================ */

.sec-prices .table-wrap { margin-top: 4px; }
.sec-prices .compare-table td.price-value {
  font: 500 14.5px/1.3 var(--mono);
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sec-prices .calc-disclaimer { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Сетки завёрнуты в <div class="reveal">, а не помечены им сами: иначе на их
   ячейки падает `.section > .container > div.reveal > * + *` с margin-top: 12px,
   который в гриде смещает ячейку и укорачивает её на те же 12px.
   Строка ниже — страховка на случай, если обёртку потеряют при правке шаблона. */
.b2b-grid > * + *, .review-grid > * + * { margin-top: 0; }

/* — условия для юрлиц — */
.b2b-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 248px), 1fr));
}
.b2b-item { background: var(--surface); padding: 18px 20px; display: grid; gap: 7px; align-content: start; }
.b2b-item h3 { font: 600 15.5px/1.3 var(--body); letter-spacing: -.015em; color: var(--ink); }
.b2b-item p  { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 44ch; }

/* — отзывы — */
.review-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr));
}
.review {
  display: grid;
  gap: 14px;
  align-content: space-between;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  margin: 0;
}
.review blockquote {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 42ch;
}
.review blockquote::before { content: "«"; color: var(--acc); margin-right: 1px; }
.review blockquote::after  { content: "»"; color: var(--acc); margin-left: 1px; }
.review figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.review-author { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.review time { font: 400 13px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.sec-reviews > .container > p:last-child { margin-top: 16px; }

@media (max-width: 720px) {
  .b2b-item { padding: 16px 17px; }
  .review   { padding: 17px 18px; }
}

/* Прайс на узких экранах: вместо горизонтальной прокрутки — карточки.
   Иначе колонка «Что входит» уезжает за край, а это как раз то,
   что читает клиент и индексирует поиск. */
@media (max-width: 640px) {
  .sec-prices .table-wrap { overflow-x: visible; border: 0; border-radius: 0; }
  .sec-prices .compare-table { min-width: 0; display: block; }
  .sec-prices .compare-table thead { display: none; }
  .sec-prices .compare-table tbody { display: grid; gap: 10px; }
  .sec-prices .compare-table tr {
    display: grid;
    gap: 6px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
  }
  .sec-prices .compare-table td { display: block; padding: 0; border: 0; }
  .sec-prices .compare-table td[data-label="Услуга"] {
    font-weight: 600; font-size: 15.5px; color: var(--ink);
  }
  /* цена — основным цветом текста: зелёный акцент на светлом фоне
     давал контраст 2,4:1 при норме 4,5:1 */
  .sec-prices .compare-table td.price-value {
    font: 500 15px/1.3 var(--mono); color: var(--ink); white-space: normal;
  }
  .sec-prices .compare-table td[data-label="Что входит"] {
    font-size: 14px; line-height: 1.5; color: var(--muted);
    padding-top: 3px; border-top: 1px solid var(--line); margin-top: 3px;
  }
}

/* Пункты списков с маркером. Раньше li был гридом «маркер | текст», и если
   в пункте текст и ссылка, ссылка становилась отдельной ячейкой и падала
   на новую строку. Маркер вынесен абсолютом — текст и ссылки идут одним потоком. */
.clean-list li, .large-list li, .warn-list li { display: block; position: relative; padding-left: 27px; }
.clean-list li::before, .large-list li::before, .warn-list li::before { position: absolute; left: 0; top: 0; }

/* Подписи под фото в .case-shots (страница литья) */
.case-shots figure { margin: 0; display: grid; align-content: start; }
/* атрибут height у img иначе перебивает aspect-ratio, и фото в ряду разной высоты */
.case-shots img { height: auto; }
.case-shots figcaption { display: grid; gap: 4px; padding: 13px 16px 15px; border-top: 1px solid var(--line); }
.case-shots figcaption b { font-size: 15px; font-weight: 600; color: var(--ink); }
.case-shots figcaption span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
