/* ==========================================================================
   кардан38.рф — один файл стилей (этап 2, статический сайт).
   Перенесён из утверждённого прототипа 2026-08-20: шрифты Unbounded + Golos Text (self-hosted),
   фон #f2f2f2. Панель переключателей и варианты оформления прототипа удалены.
   ========================================================================== */

/* ---------- 0. Шрифты (вариативные woff2, OFL; см. assets/fonts/LICENSE-note.txt) ---------- */
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("/assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("/assets/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Токены ---------- */
:root {
  --c-dark: #333333;
  --c-accent: #f36639;
  --c-accent-hover: #b45435;
  --c-accent-light: #fd8d47;
  --c-bg: #f2f2f2;
  --c-text: #333333;
  --c-muted: #6b6f72;
  --c-muted-dark: #9a9ea0;      /* вторичный на тёмном (4,7:1 на #333) */
  --c-text-dark: #c9ccce;       /* основной текст на тёмном */
  --c-red: #e01820;
  --c-white: #ffffff;
  --c-line: #bbbebf;            /* границы, разделители на светлом */
  --c-line-dark: rgba(255,255,255,.14);
  --c-line-soft: #dcdedf;

  /* Шрифты: Unbounded (заголовки/цифры) + Golos Text (текст) */
  --font-head: "Unbounded", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --w-head: 600;
  --w-head-light: 500;
  --h1: clamp(27px, 1rem + 1.8vw, 37px);
  --h2: clamp(22px, .95rem + 1.2vw, 29px);
  --h3: 18px;
  --h-lh: 1.2;
  --h-ls: -0.01em;
  --num: clamp(26px, 1.2rem + 1.4vw, 36px);

  --radius: 4px;
  --container: 1240px;
  --gutter: 16px;
  --section-y: 48px;
  --header-h: 64px;
  --topbar-h: 40px;
  --shadow: none;
}
@media (min-width: 768px) {
  :root { --gutter: 24px; --section-y: 72px; --header-h: 72px; }
}
@media (min-width: 1024px) {
  :root { --section-y: 88px; }
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-accent-hover); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--w-head);
  line-height: var(--h-lh);
  letter-spacing: var(--h-ls);
  color: var(--c-dark);
  margin: 0 0 .5em;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: var(--w-head); }
h4 { font-size: 16px; font-family: var(--font-body); font-weight: 600; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--c-accent); color: #fff; padding: 10px 14px; z-index: 200; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 8px; }
.callibri-phone { white-space: nowrap; }
.nowrap { white-space: nowrap; }
.h-sm { font-size: var(--h3); margin-bottom: 16px; }
.mt-16 { margin-top: 16px; }
.mb-20 { margin-bottom: 20px; }
@media (min-width: 900px) { .hide-desktop { display: none !important; } }

/* ---------- 3. Сетка и секции ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--white { background: var(--c-white); }
.section--dark { background: var(--c-dark); color: var(--c-text-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding-top: calc(var(--section-y) * .6); padding-bottom: calc(var(--section-y) * .6); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--c-muted); margin: 0; font-size: 1.02em; }
.section--dark .section-head p { color: var(--c-text-dark); }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.section-head--row > div { max-width: 760px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.label { display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; margin-bottom: 10px; }
.section--dark .label { color: var(--c-accent-light); }
.muted { color: var(--c-muted); }
.small { font-size: 14px; }
.lead { font-size: 1.1em; color: var(--c-muted); }

/* ---------- 4. Кнопки, чипы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: var(--radius);
  font: 600 15px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn-primary:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--c-dark); border-color: currentColor; }
.btn-outline:hover { color: var(--c-accent-hover); }
.section--dark .btn-outline, .hero .btn-outline, .site-footer .btn-outline { color: #fff; }
.section--dark .btn-outline:hover, .hero .btn-outline:hover { color: var(--c-accent-light); }
.btn-dark { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
.btn-dark:hover { background: #000; color: #fff; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--c-line); border-radius: var(--radius); font-size: 13px; line-height: 1.3; color: var(--c-text); background: var(--c-white); }
.chip svg { width: 14px; height: 14px; color: var(--c-accent); }
.section--dark .chip, .hero .chip { background: transparent; border-color: var(--c-line-dark); color: #fff; }
.section--dark .chip svg, .hero .chip svg { color: var(--c-accent-light); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Плейсхолдер цифры/факта, который уточняется у владельца */
.tbd { color: var(--c-muted); border-bottom: 1px dotted var(--c-muted); cursor: help; font-style: normal; white-space: nowrap; }
.section--dark .tbd, .hero .tbd { color: var(--c-text-dark); border-bottom-color: var(--c-muted-dark); }
/* Пометка «подтвердить» для прототипа */
.confirm { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 6px; border: 1px dashed #a34a2e; border-radius: 3px; color: #a34a2e; background: var(--c-white); font: 600 10px/1.5 var(--font-body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; cursor: help; }
.section--dark .confirm, .site-footer .confirm, .hero .confirm { border-color: var(--c-accent-light); color: var(--c-accent-light); background: transparent; }
.badge-red { display: inline-block; padding: 2px 8px; background: var(--c-red); color: #fff; font: 600 11px/1.5 var(--font-body); letter-spacing: .05em; text-transform: uppercase; border-radius: 3px; vertical-align: middle; }

/* ---------- 5. Шапка ---------- */
/* Topbar уезжает вместе со страницей (sticky с отрицательным top), а не схлопывается по классу:
   схлопывание меняло высоту шапки в потоке → привязка прокрутки сдвигала scrollY через порог → is-stuck дёргался туда-обратно */
.site-header { position: sticky; top: calc(-1 * var(--topbar-h)); z-index: 100; background: var(--c-dark); color: #fff; }
@media (max-width: 767px) { .site-header { top: 0; } } /* на мобильном topbar скрыт */
.site-header.is-stuck { box-shadow: 0 1px 0 rgba(0,0,0,.22); }
.topbar { height: var(--topbar-h); border-bottom: 1px solid var(--c-line-dark); font-size: 13px; color: var(--c-text-dark); overflow: hidden; }
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 20px; white-space: nowrap; min-width: 0; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__item svg { width: 14px; height: 14px; color: var(--c-accent-light); flex: none; }
.topbar a:hover { color: #fff; }
.topbar .msgr-row { flex-wrap: nowrap; }
.header-main { height: var(--header-h); transition: height .2s; }
.header-main .container { height: 100%; display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-header.is-stuck .header-main { height: 60px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; flex: none; margin-right: 18px; }
.logo:hover { color: #fff; }
.logo__mark { display: block; width: 44px; height: 44px; flex: none; border-radius: 8px; }
.site-header.is-stuck .logo__mark { width: 36px; height: 36px; }
.logo__text { font-family: var(--font-head); font-weight: var(--w-head); font-size: 17px; letter-spacing: .04em; line-height: 1; text-transform: uppercase; white-space: nowrap; color: #fff; }
.logo__text span { font-weight: 400; color: #d7d9da; }


.nav { display: none; margin-left: auto; margin-right: auto; min-width: 0; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 6px; font-size: 14px; font-weight: 500; color: #fff; border-radius: var(--radius); position: relative; white-space: nowrap; }
.nav a:hover { color: var(--c-accent-light); }
.nav a[aria-current="page"], .nav a.is-active { color: #fff; }
.nav a[aria-current="page"]::after, .nav a.is-active::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 2px; background: var(--c-accent); }
.header-phone { display: none; align-items: center; gap: 8px; font: 700 16px/1 var(--font-body); color: #fff; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--c-accent-light); }
.header-phone:hover { color: var(--c-accent-light); }
.header-cta { display: none; min-height: 40px; padding: 6px 12px; font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--c-line-dark); color: #fff; background: transparent; cursor: pointer; padding: 0; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { border-color: var(--c-accent-light); color: var(--c-accent-light); }
.icon-btn--phone { color: var(--c-accent-light); }
.burger { display: inline-flex; }
.burger .ic-close { display: none; }
.burger[aria-expanded="true"] .ic-burger { display: none; }
.burger[aria-expanded="true"] .ic-close { display: block; }

/* Мобильная/планшетная панель меню (до 1279px) */
.nav-panel { display: none; position: fixed; left: 0; right: 0; top: 0; bottom: 0; background: var(--c-dark); color: #fff; z-index: 90; overflow-y: auto; padding: calc(var(--header-h) + 16px) var(--gutter) 32px; }
.nav-panel.is-open { display: block; }
.nav-panel ul { list-style: none; margin: 0 0 24px; padding: 0; }
.nav-panel li { border-bottom: 1px solid var(--c-line-dark); }
.nav-panel li a { display: block; padding: 14px 0; font-size: 18px; font-weight: 500; color: #fff; }
.nav-panel li a[aria-current="page"] { color: var(--c-accent-light); box-shadow: inset 3px 0 0 var(--c-accent); padding-left: 12px; }
.nav-panel__sub { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 24px; font-size: 15px; color: var(--c-text-dark); }
.nav-panel__sub a { padding: 4px 0; }
.nav-panel__sub a:hover { color: #fff; }
.nav-panel__contacts { display: grid; gap: 12px; font-size: 15px; color: var(--c-text-dark); }
.nav-panel__contacts .phone-big { font: 700 24px/1.2 var(--font-body); color: #fff; }
.nav-panel .btn { margin-top: 4px; }
body.nav-open { overflow: hidden; }

@media (max-width: 767px) {
  .topbar { display: none; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  /* планшет: видны topbar (без e-mail), телефон текстом, CTA и бургер */
  .topbar__right .topbar__item { display: none; }
  .header-phone { display: inline-flex; }
  .icon-btn--phone { display: none; }
  .header-cta { display: inline-flex; }
  .nav-panel { padding-top: calc(var(--header-h) + var(--topbar-h) + 16px); }
}
@media (min-width: 1280px) {
  .nav { display: block; }
  .header-phone { display: inline-flex; }
  .header-cta { display: inline-flex; }
  .burger { display: none; }
  .icon-btn--phone { display: none; }
  .header-actions { margin-left: 0; }
}
@media (min-width: 1280px) {
  /* десктоп: иконку у телефона прячем, меню плотнее — иначе телефон наезжает на «Контакты» при широком логотипе */
  .header-phone svg { display: none; }
  .nav a { padding: 8px 5px; font-size: 13.5px; }
  .logo { margin-right: 10px; }
  .header-actions { gap: 10px; }
}

/* Мессенджеры */
.msgr { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: var(--radius); font-size: 13px; font-weight: 600; color: var(--c-text); background: var(--c-white); }
.msgr svg { width: 16px; height: 16px; }
.msgr:hover { border-color: var(--c-accent); color: var(--c-accent-hover); }
.topbar .msgr, .section--dark .msgr, .site-footer .msgr, .nav-panel .msgr { background: transparent; border-color: var(--c-line-dark); color: #fff; }
.topbar .msgr { height: 26px; padding: 0 8px; font-size: 12px; }
.topbar .msgr:hover, .section--dark .msgr:hover, .site-footer .msgr:hover, .nav-panel .msgr:hover { border-color: var(--c-accent-light); color: var(--c-accent-light); }
.msgr-row { display: flex; flex-wrap: wrap; gap: 8px; }
@media (hover: none) { .msgr { height: 40px; } .topbar .msgr { height: 32px; } }

/* ---------- 6. Hero ---------- */
.hero { position: relative; background: var(--c-dark); color: #fff; overflow: hidden; }
.hero__media { position: relative; height: clamp(300px, 60vw, 420px); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__panel { padding: 32px var(--gutter) 40px; }
.hero__panel h1 { color: #fff; margin-bottom: 16px; }
.hero__sub { font-size: 16px; color: var(--c-text-dark); margin-bottom: 24px; max-width: 560px; display: flex; flex-wrap: wrap; gap: 2px 0; }
.hero__sub b { color: #fff; font-weight: 500; }
.hero__fact { white-space: nowrap; }
.hero__fact + .hero__fact::before { content: "·"; color: var(--c-accent-light); margin: 0 8px; }
@media (max-width: 479px) { .hero .btn-row .btn { flex: 1 1 100%; } }
.hero .btn-row { margin-bottom: 24px; }
.hero .chip-row { gap: 8px 10px; }
@media (min-width: 900px) {
  .hero { min-height: 560px; display: flex; align-items: stretch; }
  .hero__media { position: absolute; inset: 0; height: auto; }
  .hero__media img { object-position: left 30%; }
  .hero .container { position: relative; display: flex; justify-content: flex-end; }
  .hero__panel { width: 56%; max-width: 680px; background: rgba(51,51,51,.94); padding: 56px 48px; border-left: 2px solid var(--c-accent); align-self: center; margin: 40px 0; }
  .hero__sub { font-size: 17px; }
}
@media (min-width: 1200px) {
  .hero { min-height: 600px; }
}

/* Внутренний hero (страницы услуг/разделов) */
.page-hero { padding: 24px 0 clamp(40px, calc(var(--section-y) * .7), 64px); background: var(--c-white); border-bottom: 1px solid var(--c-line-soft); }
.page-hero__grid { display: grid; gap: 28px; align-items: center; }
.page-hero__media img { width: 100%; border-radius: var(--radius); }
.page-hero .lead { margin-bottom: 24px; }
.page-hero .btn-row { margin-bottom: 20px; }
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: 7fr 5fr; gap: 48px; }
}
.page-hero--plain { padding-bottom: calc(var(--section-y) * .6); }

/* Хлебные крошки */
.crumbs { font-size: 14px; color: var(--c-muted); margin-bottom: 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--c-line); }
.crumbs a:hover { color: var(--c-accent-hover); }

/* ---------- 7. Карточки ---------- */
.card { background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.card:hover { border-color: var(--c-line); }
.card__media { aspect-ratio: 16 / 9; overflow: hidden; background: #ddd; }
@media (min-width: 640px) { .card__media { aspect-ratio: 10 / 7; } }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { margin: 0; font-size: 17px; font-weight: var(--w-head-light); }
.card__body p { margin: 0; color: var(--c-muted); font-size: 15px; flex: 1; }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--c-dark); margin-top: 4px; }
.card__link svg { width: 16px; height: 16px; color: var(--c-accent); transition: transform .15s; }
.card:hover .card__link svg { transform: translateX(3px); }
a.card { color: inherit; }
a.card:hover { color: inherit; }
a.card:hover h3 { color: var(--c-accent-hover); }
.card--compact .card__media { aspect-ratio: 16 / 9; }
.card--text { padding: 24px; gap: 10px; position: relative; }
.card--text .card__link::after { content: ""; position: absolute; inset: 0; }
.card--text:hover h3 { color: var(--c-accent-hover); }
.card--text h3 { margin: 0 0 4px; font-weight: var(--w-head-light); }
.card--text p { margin: 0; color: var(--c-muted); font-size: 15px; }
.card--text ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--c-text); font-size: 15px; }
.card-list { display: grid; gap: 16px; }
.card__num { font: var(--w-head) 28px/1 var(--font-head); color: var(--c-accent); }
@media (max-width: 639px) {
  /* телефон: карточки услуг горизонтальные — короче страница */
  .grid-4 > .card { flex-direction: row; align-items: stretch; }
  .grid-4 > .card .card__media { flex: 0 0 116px; aspect-ratio: auto; min-height: 116px; }
  .grid-4 > .card .card__body { padding: 12px 14px 12px; gap: 4px; }
  .grid-4 > .card .card__body h3 { font-size: 15px; }
  .grid-4 > .card .card__body p { font-size: 13px; }
  .grid-4 > .card .card__link { font-size: 13px; margin-top: 2px; }
  .grid-4 { gap: 12px; }
}

/* ---------- 8. Почему мы (тёмная секция, цифры) ---------- */
.facts { display: grid; gap: 28px 24px; grid-template-columns: repeat(2, 1fr); margin-bottom: 40px; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(6, 1fr); } }
.fact { border-top: 2px solid var(--c-accent-light); padding-top: 14px; }
.fact__num { font: var(--w-head) var(--num)/1.05 var(--font-head); color: var(--c-accent); letter-spacing: -.01em; margin-bottom: 8px; }
.fact__num small { font-size: .5em; font-weight: var(--w-head-light); color: var(--c-accent-light); }
.fact__num .tbd { color: var(--c-accent-light); border-bottom-color: var(--c-accent-light); }
.fact__label { font-size: 14px; color: var(--c-text-dark); line-height: 1.4; }
.fact__label b { color: #fff; font-weight: 500; }
.reasons { display: grid; gap: 16px 32px; }
@media (min-width: 768px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reasons { grid-template-columns: repeat(3, 1fr); } }
.reason { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--c-line-dark); }
.reason svg { width: 22px; height: 22px; color: var(--c-accent-light); flex: none; margin-top: 2px; }
.reason h3 { font: 600 16px/1.35 var(--font-body); color: #fff; margin: 0 0 4px; }
.reason p { margin: 0; font-size: 14px; color: var(--c-text-dark); }

/* ---------- 9. Шаги ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; } }
.step { counter-increment: step; padding: 20px 20px 22px; background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--radius); position: relative; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font: var(--w-head) 28px/1 var(--font-head); color: var(--c-accent); margin-bottom: 14px; }
.step h3 { font-size: 16px; margin: 0 0 6px; font-weight: var(--w-head-light); }
.step p { margin: 0; font-size: 14px; color: var(--c-muted); }
.section--white .step { background: var(--c-white); border-color: var(--c-line-soft); }
@media (max-width: 639px) {
  .steps { gap: 0; }
  .step, .section--white .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px 0; background: transparent; border: 0; border-top: 1px solid var(--c-line-soft); border-radius: 0; }
  .step:last-child { border-bottom: 1px solid var(--c-line-soft); }
  .step::before { grid-row: 1 / 3; margin: 0; font-size: 24px; line-height: 1.1; }
  .step h3 { margin: 0 0 4px; }
}

/* ---------- 10. Галерея ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #ddd; }
.gallery a { display: block; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery a:focus-visible { outline-offset: -3px; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; font-size: 12px; line-height: 1.3; color: #fff; background: rgba(51,51,51,.82); }
.gallery .tag { position: absolute; top: 8px; left: 8px; padding: 2px 7px; font: 600 11px/1.5 var(--font-body); text-transform: uppercase; letter-spacing: .05em; border-radius: 3px; background: var(--c-dark); color: #fff; }
.gallery .tag--after { background: var(--c-dark); padding-left: 18px; }
.gallery .tag--after::before { content: ""; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--c-accent); }
@media (max-width: 639px) {
  .gallery figure { background: transparent; }
  .gallery a { border-radius: var(--radius); overflow: hidden; background: #ddd; }
  .gallery figcaption { position: static; padding: 6px 2px 0; font-size: 12px; color: var(--c-muted); background: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
.eq-grid figure { margin: 0; }
.eq-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.eq-grid figcaption { font-size: 14px; color: var(--c-muted); margin-top: 10px; }
@media (max-width: 639px) { .eq-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; } .eq-grid figcaption { font-size: 13px; margin-top: 8px; } }
.eq-grid figcaption b { color: var(--c-text); font-weight: 600; display: block; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,20,20,.92); display: none; align-items: center; justify-content: center; padding: 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(100%, 1200px); max-height: calc(100vh - 96px); width: auto; height: auto; border-radius: var(--radius); }
.lightbox__caption { position: absolute; left: 16px; right: 16px; bottom: 16px; text-align: center; color: #fff; font-size: 14px; }
.lightbox__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius); background: rgba(51,51,51,.6); color: #fff; cursor: pointer; font-size: 22px; line-height: 1; }
.lightbox__btn:hover { border-color: var(--c-accent-light); color: var(--c-accent-light); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius); background: rgba(51,51,51,.6); color: #fff; cursor: pointer; font-size: 24px; line-height: 1; }
body.lightbox-open { overflow: hidden; }
body.lightbox-open .fab-call, body.nav-open .fab-call { display: none; }

/* ---------- 11. Отзывы ---------- */
.ratings { display: grid; gap: 16px; margin-bottom: 28px; }
@media (min-width: 480px) { .ratings { grid-template-columns: repeat(2, 1fr); } }
.rating { display: flex; align-items: center; gap: 18px; padding: 18px 20px; background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--radius); }
.rating__num { font: var(--w-head) 40px/1 var(--font-head); color: var(--c-accent); }
.rating__src { font-weight: 600; }
.rating__meta { font-size: 14px; color: var(--c-muted); }
.rating__max { font-size: 14px; color: var(--c-muted); }
.review { padding: 22px 22px 20px; background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.review__head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.review__head b { font-weight: 600; }
.review__text { margin: 0; font-size: 15px; color: var(--c-muted); }
.review__ph { border: 1px dashed var(--c-line); border-radius: var(--radius); padding: 14px; font-size: 13px; color: var(--c-muted); text-align: center; }
.widget-ph { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; border: 1px dashed var(--c-line); border-radius: var(--radius); color: var(--c-muted); text-align: center; font-size: 14px; }
.widget-ph b { color: var(--c-text); font-weight: 600; }
.note { font-size: 13px; color: var(--c-muted); border-left: 3px solid var(--c-accent-light); padding: 6px 12px; margin-top: 20px; }
.route-list { padding-left: 1.1em; margin: 12px 0 0; }
.route-list li { margin-bottom: .3em; }

/* ---------- 12. Таблица цен ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line-soft); border-radius: var(--radius); background: var(--c-white); -webkit-overflow-scrolling: touch; }
/* тень-подсказка справа, пока таблица шире контейнера; background-attachment: local убирает её при докрутке */
.table-wrap--scroll { background: linear-gradient(to right, var(--c-white) 30%, rgba(255,255,255,0)), linear-gradient(to left, var(--c-white) 30%, rgba(255,255,255,0)) 100% 0, linear-gradient(to right, rgba(0,0,0,.12), rgba(0,0,0,0)), linear-gradient(to left, rgba(0,0,0,.14), rgba(0,0,0,0)) 100% 0; background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 18px 100%; background-attachment: local, local, scroll, scroll; }
.table-hint { display: none; font-size: 12px; color: var(--c-muted); margin: 0 0 6px; }
@media (max-width: 639px) { .table-hint.is-shown { display: block; } }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
@media (max-width: 639px) {
  .price-table th, .price-table td { padding: 10px 6px; font-size: 14px; }
  .price-table th { font-size: 11px; letter-spacing: .04em; }
  .price-table th:nth-child(1) { width: 46%; } .price-table th:nth-child(2) { width: 27%; } .price-table th:nth-child(3) { width: 27%; }
  .price-table td:nth-child(2), .price-table td:nth-child(3) { white-space: normal; }
  .price-table td:first-child { overflow-wrap: anywhere; hyphens: auto; }
}
@media (min-width: 640px) { .price-table th:nth-child(1) { width: 46%; } .price-table th:nth-child(2), .price-table th:nth-child(3) { width: 27%; } }
.price-table th, .price-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--c-line-soft); vertical-align: top; }
.price-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 600; background: var(--c-bg); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:nth-child(2), .price-table td:nth-child(3) { white-space: nowrap; font-weight: 500; }
@media (max-width: 639px) { .price-table td:nth-child(3) { white-space: normal; } }
.price-table .free { color: var(--c-dark); font-weight: 700; }
.price-table td:first-child small { display: block; color: var(--c-muted); font-size: 13px; font-weight: 400; }

/* ---------- 13. Чипы работ ---------- */
.works { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.works li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--radius); font-size: 15px; }
.works li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); flex: none; }
.section--white .works li { background: var(--c-bg); border-color: transparent; }
@media (max-width: 639px) {
  .works { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .works li { align-items: flex-start; padding: 8px 10px; font-size: 13px; line-height: 1.35; }
  .works li::before { margin-top: 5px; }
}
.symptoms { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .symptoms { grid-template-columns: repeat(4, 1fr); } }
.symptom { padding: 20px; background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--radius); }
.symptom svg { width: 28px; height: 28px; color: var(--c-accent); margin-bottom: 12px; }
.symptom h3 { font-size: 17px; margin: 0 0 4px; }
.symptom p { margin: 0; font-size: 14px; color: var(--c-muted); }
@media (max-width: 479px) {
  .symptoms { grid-template-columns: 1fr; gap: 10px; }
  .symptom { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 14px 16px; }
  .symptom svg { grid-row: 1 / 3; margin: 2px 0 0; }
  .symptom h3 { font-size: 16px; }
}
.causes { margin-top: 28px; padding: 20px 24px; background: var(--c-white); border-left: 3px solid var(--c-accent); border-radius: var(--radius); }
.causes h3 { font-size: 16px; margin-bottom: 8px; }
.causes ul { margin: 0; columns: 1; }
@media (min-width: 768px) { .causes ul { columns: 2; column-gap: 32px; } }
.causes li { break-inside: avoid; margin-bottom: 4px; }

/* ---------- 14. FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 600; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details[open] summary { border-bottom: 1px solid var(--c-line-soft); }
.faq .faq__body { padding: 14px 20px 18px; color: var(--c-muted); font-size: 15px; }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- 15. Контакты ---------- */
.contacts-grid { display: grid; gap: 28px; }
.contacts-grid > *, .two-col > *, .form-split > *, .grid > * { min-width: 0; }
@media (min-width: 900px) { .contacts-grid { grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; } }
.contact-list { display: grid; gap: 18px; margin: 0 0 24px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item svg { width: 22px; height: 22px; color: var(--c-accent); flex: none; margin-top: 3px; }
.contact-item .k { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 600; margin-bottom: 2px; }
.contact-item .v { font-size: 17px; }
.contact-item .v a:hover { color: var(--c-accent-hover); }
.contact-item .phone-big { font: 700 26px/1.2 var(--font-body); color: var(--c-dark); }
.contact-item .phone-big:hover { color: var(--c-accent-hover); }
.map { position: relative; width: 100%; min-width: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #ddd; border: 1px solid var(--c-line-soft); }
.map--tall { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .map { aspect-ratio: 16 / 10; } .map--tall { aspect-ratio: 16 / 7; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 14px; color: var(--c-muted); }
.req { font-size: 14px; color: var(--c-muted); }
.req dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.req dt { font-weight: 600; color: var(--c-text); }
.req dd { margin: 0; }

/* ---------- 16. Форма ---------- */
.form-wrap { background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--radius); padding: 24px; }
@media (min-width: 768px) { .form-wrap { padding: 36px 40px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label .req-mark { color: var(--c-accent); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--c-text); background: var(--c-white);
  border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 0; border-color: var(--c-accent); }
.field.is-error input, .field.is-error textarea { border-color: var(--c-red); }
.field__err { display: none; color: var(--c-red); font-size: 13px; margin-top: 6px; }
.field.is-error .field__err { display: block; }
.field__hint { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.file-field .field__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.file-field .file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.file-field input[type="file"]:focus-visible + .file-btn { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.file-field .file-list { font-size: 14px; color: var(--c-muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--c-muted); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-accent); flex: none; }
.check a { color: var(--c-text); text-decoration: underline; text-underline-offset: 2px; }
.check.is-error { color: var(--c-red); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-note { display: none; padding: 12px 16px; border-radius: var(--radius); background: var(--c-bg); border-left: 3px solid var(--c-accent); font-size: 15px; }
.form-note.is-shown { display: block; }
.form-note.is-err { border-left-color: var(--c-red); }
.form-split { display: grid; gap: 32px; }
@media (min-width: 1024px) { .form-split { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; } }
.form-split__text h2 { margin-bottom: .4em; }
.form-split__text ul { padding-left: 1.1em; color: var(--c-muted); }

/* ---------- 17. CTA-полоса ---------- */
.cta-band { background: var(--c-dark); color: #fff; padding: 40px 0; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(20px, 1rem + 1vw, 26px); }
.cta-band p { margin: 0; color: var(--c-text-dark); }
.cta-band .phone-big { font: 700 22px/1.2 var(--font-body); color: #fff; }

/* ---------- 18. Футер ---------- */
.site-footer { background: var(--c-dark); color: var(--c-text-dark); font-size: 14px; padding: 56px 0 40px; }
@media (max-width: 1023px) { .site-footer { padding-bottom: 96px; } }
.footer-grid { display: grid; gap: 32px 24px; margin-bottom: 40px; }
@media (max-width: 639px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; } .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; } }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h3, .footer__title { color: #fff; font: 600 13px/1.4 var(--font-body); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer ul a { display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { margin-bottom: 16px; }
.site-footer .phone-big { display: inline-block; font: 700 22px/1.2 var(--font-body); color: #fff; margin: 4px 0 6px; }
.site-footer .phone-big:hover { color: var(--c-accent-light); }
.footer-bottom { border-top: 1px solid var(--c-line-dark); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--c-text-dark); }
.footer-bottom a { color: #fff; }
.footer-req { font-size: 13px; color: var(--c-text-dark); line-height: 1.6; }

/* ---------- 19. Плавающий «Позвонить» (мобильный) ---------- */
.fab-call { position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: var(--c-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.fab-call svg { width: 26px; height: 26px; }
.fab-call:hover { background: var(--c-accent-hover); color: #fff; }
@media (min-width: 1024px) { .fab-call { display: none; } }

/* ---------- 20. Прочее ---------- */
.related { display: grid; gap: 12px; }
@media (min-width: 640px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--radius); font-weight: 600; }
.related a svg { width: 18px; height: 18px; color: var(--c-accent); flex: none; }
.related a:hover { border-color: var(--c-accent); color: var(--c-accent-hover); }
.intro { max-width: 820px; }
.intro p { font-size: 1.05em; }
.hub-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hub-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-white); font-weight: 500; font-size: 15px; }
.hub-links a:hover { border-color: var(--c-accent); color: var(--c-accent-hover); }
.two-col { display: grid; gap: 24px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 40px; } }


/* логотип: знак из фавикона сайта + название набором */
@media (max-width: 560px) { .logo__mark { width: 38px; height: 38px; } .logo__text { font-size: 17px; } }
@media (max-width: 380px) { .logo__mark { width: 34px; height: 34px; } .logo__text { font-size: 15px; } }

/* ---------- 21. Добавлено на этапе 2 ---------- */
/* Плашка STAGING (только --env staging) */
.staging-bar { background: var(--c-red); color: #fff; text-align: center; font: 600 12px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; }

/* Текст из Markdown */
.section--text { padding-top: calc(var(--section-y) * .75); padding-bottom: calc(var(--section-y) * .75); }
.prose { max-width: 820px; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; font-weight: var(--w-head-light); }
.prose li { margin-bottom: .3em; }
.prose a { color: var(--c-accent-hover); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose blockquote { margin: 1em 0; padding: 8px 20px; border-left: 3px solid var(--c-accent); color: var(--c-muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1em 0; background: var(--c-white); }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--c-line-soft); vertical-align: top; }
.prose th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); background: var(--c-bg); }
.prose hr { border: 0; border-top: 1px solid var(--c-line-soft); margin: 2em 0; }

/* Форма: honeypot, состояния отправки */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-wrap { position: relative; }
.form-wrap.is-sending { opacity: .6; pointer-events: none; }
/* после успешной отправки: поля прячем, остаётся сообщение «Спасибо» + кнопка «Отправить ещё» */
.form-wrap.is-done .form-grid > :not(.form-note) { display: none; }
.form-wrap.is-done .form-note { font-size: 17px; padding: 20px; }
.form-wrap.is-done .form-note .btn { margin-top: 14px; }
.form-note.is-ok { border-left-color: #2e8b57; }
.msgr--stub { border-style: dashed; }

/* Сводная страница цен */
.price-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.price-toc a { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--c-line); border-radius: var(--radius); font-size: 14px; font-weight: 500; background: var(--c-bg); }
.price-toc a:hover { border-color: var(--c-accent); color: var(--c-accent-hover); }
@media (min-width: 1024px) { .price-toc { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; background: var(--c-white); padding: 8px 0; margin: -8px 0 24px; } }
.price-group { margin-bottom: 32px; }
.price-group:last-of-type { margin-bottom: 0; }
.price-group__title { font-size: var(--h2); margin-bottom: 16px; }
.price-group__title a:hover { color: var(--c-accent-hover); }
details.price-group { border: 1px solid var(--c-line-soft); border-radius: var(--radius); padding: 0 20px; background: var(--c-bg); }
details.price-group > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 18px 0; margin: 0; }
details.price-group > summary::-webkit-details-marker { display: none; }
details.price-group > summary h2 { margin: 0; font-size: var(--h3); }
details.price-group > summary::before { content: "+"; font: 600 22px/1 var(--font-head); color: var(--c-accent); width: 22px; }
details.price-group[open] > summary::before { content: "–"; }
details.price-group[open] > summary { border-bottom: 1px solid var(--c-line-soft); margin-bottom: 16px; }
details.price-group > :last-child { margin-bottom: 20px; }
.price-group__hint { font-size: 13px; color: var(--c-muted); }
.price-group__more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c-dark); }
.price-group__more svg { width: 16px; height: 16px; color: var(--c-accent); }
details.price-group .price-group__svc:first-of-type { margin-top: 8px; }
@media (max-width: 639px) { details.price-group { padding: 0 12px; } }
.price-group__svc { font-size: var(--h3); margin: 28px 0 12px; font-weight: var(--w-head-light); }
.price-group__svc a:hover { color: var(--c-accent-hover); }
.section--white .table-wrap { background: var(--c-white); }

/* Отзывы: виджеты карт */
.reviews-grid { margin-top: 24px; align-items: start; }
.review-widget { background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.review-widget__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.review-widget__head b { font-weight: 600; font-size: 17px; }
.review-widget__head a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--c-dark); }
.review-widget__head a svg { width: 16px; height: 16px; color: var(--c-accent); }
.review-widget__badge { border: 0; width: 150px; height: 50px; }
.review-widget__frame { border: 0; width: 100%; height: 800px; border-radius: var(--radius); background: var(--c-bg); }
.review-widget__src { font-size: 12px; color: var(--c-muted); }
.dgis-card { display: flex; gap: 20px; align-items: flex-start; padding: 18px 0 4px; }
.dgis-card__num { font: var(--w-head) 48px/1 var(--font-head); color: var(--c-accent); display: flex; flex-direction: column; gap: 4px; }
.dgis-card__num small { font: 500 13px/1.2 var(--font-body); color: var(--c-muted); }
.dgis-card__text p { margin: 0 0 8px; }
.dgis-card__text .btn { margin-top: 6px; }

/* Якоря под sticky-шапкой */
section[id], h2[id], h3[id], .card--text[id], .price-group[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.price-table--custom td, .price-table--custom th { white-space: nowrap; }
.price-table--custom th:nth-child(n), .price-table--custom td:nth-child(n) { width: auto; }
.price-table--custom td:first-child { font-weight: 500; }
.price-table--custom th:first-child, .price-table--custom td:first-child { position: sticky; left: 0; background: var(--c-white); box-shadow: 1px 0 0 var(--c-line-soft); }
.price-table--custom th:first-child { background: var(--c-bg); }
.price-table caption { caption-side: top; text-align: left; padding: 12px 16px; font-weight: 600; font-size: 15px; }
@media (max-width: 639px) {
  .price-table--custom th, .price-table--custom td { padding: 8px 6px; font-size: 13px; }
  .price-table--custom th { white-space: normal; font-size: 10px; letter-spacing: .03em; line-height: 1.25; }
  .price-table--custom td:nth-child(3) { white-space: nowrap; }
  .price-table caption { padding: 10px 8px; font-size: 14px; }
}

/* Таблица цен без колонки «Срок» (сроки владелец не назвал, 14.09.2026) */
.price-table.price-table--2col th:nth-child(1) { width: 68%; }
.price-table.price-table--2col th:nth-child(2) { width: 32%; }
