/* ============================================================
   PITER GOLD — основной стиль сайта, версия 2.0
   Палитра «петроль + золото» (согласованный вариант C).
   Один файл на все страницы. Без теней, радиусы 0–2 px.
   Движение — только transform, прозрачность блоков не меняется.
   ============================================================ */

/* ---------- 1. Токены ---------- */
:root {
  /* палитра */
  --ink: #0B2836;        /* тёмный фон: первый экран, «Как нас найти» */
  --ink-2: #123241;      /* второй тон, границы на тёмном */
  --ink-3: #0A2330;      /* подвал */
  --paper: #EFF2F0;      /* светлое тело, прохладное */
  --paper-2: #E6EBE9;    /* полосы, карточки */
  --text: #1B2A33;       /* текст на светлом */
  --text-2: #5A6B70;     /* второстепенный текст на светлом */
  --text-on-ink: #F2F0EA;   /* текст на тёмном: 13,44:1 */
  --text-on-ink-2: #A9B8BA; /* второстепенный на тёмном */
  --gold: #C9A227;       /* акцент, цифры, линии: 6,33:1 на --ink */
  --gold-deep: #8A6520;  /* золото как текст на светлом: 4,70:1 */
  --mint: #7FD4C6;       /* ТОЛЬКО тонкие линии и иконки, не текст */

  /* семантические имена компонентов */
  --text-dark: var(--text);
  --text-light: var(--text-on-ink);
  --muted-dark: var(--text-2);
  --muted-light: var(--text-on-ink-2);

  --bone: var(--paper);
  --bone-2: var(--paper-2);

  --line-dark: var(--ink-2);
  --line-dark-strong: #5A7B87;  /* граница на тёмном: 3,37:1 */
  --line-light: #CBD6D3;        /* декоративная линия на светлом */
  --line-light-strong: #74868A; /* граница на светлом: 3,38:1 */

  /* золото: три роли, один тон */
  --bronze-900: var(--gold-deep);
  --bronze-700: var(--gold);
  --bronze-400: var(--gold);

  /* кнопка: золотая заливка + тёмный текст (6,33:1). Белый текст запрещён. */
  --btn-fill: var(--gold);
  --btn-fill-hover: #B8931F;
  --btn-text: var(--ink);

  /* значения по умолчанию для компонентов вне поверхности */
  --bg: var(--paper);
  --fg: var(--text);
  --muted: var(--text-2);
  --line: var(--line-light);
  --line-strong: var(--line-light-strong);
  --accent: var(--gold-deep);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1200px;
  --pad: 20px;
  --ease: cubic-bezier(.2, .6, .2, 1);

  /* движение: выезд готового контента (решение владельца) */
  --move: cubic-bezier(.22, 1.25, .36, 1);
  --reveal: 1750ms;   /* длительность выезда блока */
  --stagger: 150ms;   /* очередь карточек */
  --t-hover: .22s;    /* наведение: 220 мс */
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }
button, input { font: inherit; }

.icon { flex: none; display: inline-block; vertical-align: -2px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.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;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* поверхности: локальные переменные для компонентов */
.on-dark {
  --bg: var(--ink);
  --fg: var(--text-light);
  --muted: var(--muted-light);
  --line: var(--line-dark);
  --line-strong: var(--line-dark-strong);
  --accent: var(--bronze-400);
}
.on-light {
  --bg: var(--bone);
  --fg: var(--text-dark);
  --muted: var(--muted-dark);
  --line: var(--line-light);
  --line-strong: var(--line-light-strong);
  --accent: var(--bronze-900);
}
.on-paper {
  --bg: var(--paper);
  --fg: var(--text-dark);
  --muted: var(--muted-dark);
  --line: var(--line-light);
  --line-strong: var(--line-light-strong);
  --accent: var(--bronze-900);
}

.on-dark, .on-light, .on-paper { background: var(--bg); color: var(--fg); }

/* Выезд блоков сдвигает их к краям страницы: горизонтальный выезд обрезаем
   на границе страницы, чтобы элемент выглядел выезжающим из-за края,
   а не растягивал документ. `clip` (а не `hidden`) не создаёт
   скролл-контейнер и не ломает якоря и sticky. */
.site { background: var(--bg); color: var(--fg); overflow-x: clip; }

.nowrap { white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ссылка «к содержимому»: видна только при фокусе с клавиатуры */
.skip-link {
  position: absolute;
  top: 0;
  left: var(--pad);
  z-index: 90;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  transform: translateY(-140%);
  transition: transform .15s var(--ease);
}
.skip-link:focus { transform: none; }

/* якоря разделов не прячутся под краем экрана */
.site [id] { scroll-margin-top: 16px; }

/* ---------- 3. Общие компоненты ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 8.6vw, 64px);
  line-height: 1.04;
  letter-spacing: .005em;
}

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: .005em;
}

.lede {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
}
.lede a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sechead {
  display: grid;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.sechead__meta {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--muted);
}
.sechead__meta span { color: var(--accent); }

.fine {
  margin-top: 24px;
  max-width: 62ch;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
/* в сетке цен зазор до сноски даёт padding-bottom сетки карточек */
.prices--grid .fine { margin-top: 0; }
/* Две сноски подряд: пояснение к цене своей пробы (583 → 585) и общая сноска
   прайса. Без правила строки склеиваются: в .prices--grid у .fine margin 0. */
.prices--grid .fine + .fine { margin-top: 10px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--btn-fill);
  color: var(--btn-text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.btn:hover { background: var(--btn-fill-hover); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn--sm {
  min-height: 38px;
  padding: 9px 16px;
  font-size: 13px;
}

.trustline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.trustline .icon { color: var(--accent); }
.trustline i { font-style: normal; color: var(--muted); }

.pricekey__label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.pricekey__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 9vw, 60px);
  line-height: 1;
  letter-spacing: .01em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.pricekey__num span {
  font-size: .55em;
  color: var(--muted);
}
/* Резервная фраза вместо числа, когда в прайсе нет полной цены:
   «0 – 0 ₽» и одинокий «₽» не выводятся. */
.pricekey__note {
  font-size: clamp(16px, 4.4vw, 20px);
  line-height: 1.35;
  color: var(--muted);
}

/* ---------- 4. Шапка ---------- */
.hdr { border-bottom: 1px solid var(--line); }
.hdr__in {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding-block: 8px;
}
.logo {
  /* область нажатия ≥44 px по высоте (WCAG 2.2 AA, 2.5.8): блок 44 px,
     текст отцентрован через line-height, вид прежний.
     flex здесь нельзя: во flex-контейнере текстовый пробел между
     <span>PITER</span> и GOLD — whitespace-only текстовый узел, он
     отбрасывается и логотип читается «PITERGOLD» (регрессия N-3). */
  display: block;
  min-height: 44px;
  line-height: 44px;
  margin-right: auto;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.menu { display: none; }
.hdr__act { display: flex; align-items: center; gap: 12px; }
.hdr__phone {
  display: none;
  /* та же норма области нажатия: ≥44 px по высоте (2.5.8) */
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--fg);
  white-space: nowrap;
}
.hdr__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--fg);
  transition: border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.hdr__call:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 5. Подвал ---------- */
.ftr { border-top: 1px solid var(--line); padding: 24px 0 28px; background: var(--bg); }
.ftr__in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  font-size: 12.5px;
  color: var(--muted);
}
.ftr__logo {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
}
.ftr__addr { flex: 1 1 240px; }
.ftr__tel { color: var(--fg); white-space: nowrap; }
.ftr__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 14px;
  font-size: 12.5px;
}
.ftr__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.ftr__links a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Блок «Разделы»: 15 ссылок с подвала текущего сайта. Компактная сетка,
   на телефоне две колонки, на компьютере — до семи; подвал не растягивается
   в длинный столбец и не даёт горизонтальной прокрутки. */
.ftr__sections { margin-top: 18px; }
.ftr__sections-t {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ftr__sections-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
  align-content: start;
  gap: 0 14px;
  margin-top: 6px;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  line-height: 1.35;
}
.ftr__sections-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.ftr__sections-list a:hover { color: var(--accent); text-decoration-color: var(--accent); }

.ftr__legal {
  margin-top: 10px;
  max-width: 92ch;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.ftr--inline { background: var(--ink-3); }

/* ---------- 6. Первый экран ---------- */
.hero { padding: 32px 0 36px; }

/* C: компактный первый экран без фото — заголовок слева, цена и телефон справа */
.hero--c { padding: 26px 0 28px; }
.hero--c__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.hero--c .display { font-size: clamp(30px, 7.4vw, 56px); margin-bottom: 12px; }
/* Внутренние страницы: H1 длиннее главной, поэтому кегль меньше.
   Три класса в селекторе (0,3,0) — не лишние. У правил главной
   `.hero--c .display` в медиазапросах 1000 и 1200 px (ниже по файлу) тот же
   вес 0,2,0, но они идут позже и при равной специфичности перебивали этот
   кегль. Из-за этого внутренние страницы получали 50–62 px вместо 46 и H1
   разваливался на 3–4 строки. Здесь специфичность выше, порядок уже не
   важен: 62 px остаются только у главной. */
.hero--c.hero--c--sub .display { font-size: clamp(30px, 6.4vw, 46px); }
/* Самый длинный H1 сайта — «Скупка стоматологического золота»: 34 знака при
   46 px требуют 788 px и не влезают в две строки даже в колонку 740 px
   (content/meta-spec.md §4, текст H1 не меняется). Этой странице дан меньший
   кегль; класс `hero--c--long` вешает секция первого экрана, сам H1 и его
   разметка остаются прежними. */
.hero--c.hero--c--sub.hero--c--long .display { font-size: clamp(24px, 6.2vw, 30px); }
.hero--c__lead .lede { max-width: 40ch; }
.hero--c__side {
  display: grid;
  align-content: start;
  gap: 16px;
}
.cprice { padding-top: 14px; border-top: 1px solid var(--line); }
.cprice .pricekey__num { font-size: clamp(38px, 9.2vw, 56px); }
/* Подпись под ценой в первом экране: «за грамм, по текущему прайсу».
   Отдельная строка вместо второй половины `.pricekey__label`, потому что
   в узком столбце страниц проб длинная подпись в верхнем регистре
   переносилась на две строки. Цвет и кегль — как у мелких подписей. */
.pricekey__meta {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
/* Страницы проб: цена своей пробы в правом столбце первого экрана.
   Порядок на телефоне — заголовок → цена → кнопка → телефон (решение
   владельца 16.11.2026); на десктопе цена стоит под телефоном, как на
   главной, и `order` не действует. */
@media (max-width: 999px) {
  .hero--c--sub .hero--c__side .cprice { order: 1; }
  .hero--c--sub .hero--c__side .actions { order: 2; }
  .hero--c--sub .hero--c__side .phonebox { order: 3; }
}
.phonebox {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.phonebox__label {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.phonebox__num {
  font-family: var(--serif);
  font-size: clamp(20px, 5.4vw, 26px);
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color var(--t-hover) var(--ease);
}
.phonebox__num:hover { color: var(--bronze-400); }
.hero--c__side .actions { margin-top: 2px; }
.hero--c__trust {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ---------- 7. Блок цен ---------- */
.prices { padding: 44px 0 48px; }

/* C: сетка карточек */
.pgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  /* нижний запас: карточки выезжают снизу на 24 px и не задевают сноску */
  padding-bottom: 24px;
}
/* Карточка целиком — одна ссылка .pcard__link (или .pcard__in, если страницы
   пробы нет). Внутренние отступы лежат на .pcard__link/.pcard__in, поэтому
   область нажатия совпадает с карточкой, а рамка и тень остаются на li.
   Ссылка не меняет цвет и не получает подчёркивание. */
.pcard {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  transition: border-color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease);
}
/* Наведение — только у карточек-ссылок. Карточки 916 и 958 (страниц этих
   проб нет) и карточка текущей пробы не действие: рамка и фон при наведении
   не меняются, курсор обычный, иначе карточка читается как сломанная ссылка. */
.pcard.is-link:hover { border-color: var(--gold-deep); background: var(--paper-2); }
.pcard:not(.is-link) { cursor: default; }
.pcard__link,
.pcard__in {
  display: block;
  padding: 14px 12px 12px;
  color: inherit;
  text-decoration: none;
}
/* фокус с клавиатуры: золотая рамка внутри карточки, как у ссылок сайта */
.pcard__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.pcard__p {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 6px;
}
.pcard__v {
  display: block;
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 500;
  line-height: 1.25;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.pcard__u {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}
/* Пояснение к карточке без ссылки: 916 и 958 — страниц этих проб нет,
   цена называется по телефону. Мелкая подпись вместо действия. */
.pcard__note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--muted);
}
.pcard.is-key { border-color: var(--gold-deep); }
.pcard.is-key .pcard__p { color: var(--accent); }

/* Текущая проба на странице пробы: рамка + золотой номер + начертание 500.
   Подсветка не только цветом; карточка при этом не ссылка (ссылки на себя нет). */
.pcard.is-current { border-color: var(--gold-deep); }
.pcard.is-current .pcard__p { color: var(--accent); font-weight: 500; }

/* «Цены на серебро»: в карточке не номер пробы, а словесная подпись
   («84-я проба (антикварное)»), поэтому кегль меньше — иначе на 320 px
   в карточке 145 px она занимает три строки. Число и подпись единицы
   остаются как у карточек золота. */
#ceny-serebra .pcard__p { font-size: 14px; line-height: 1.3; }

/* ---------- 8. «Что принимаем» — карточки-ссылки на разделы ---------- */
/* Карточка целиком — одна ссылка <a class="card">: фото, подпись, бейдж.
   Вложенных ссылок нет. Второй ряд показывается кнопкой «Ещё»; без JS
   (нет класса js на <html>) видны все 12 карточек. */
.cats { padding: 40px 0 44px; border-top: 1px solid var(--line); }
.cats__head { display: grid; gap: 12px; margin-bottom: 22px; }
.cats__rule {
  width: 44px;
  height: 2px;
  background: var(--mint); /* единственное место, где цвет выходит за золото */
}
.cats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 10px;
}
.card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink-2) 34%, transparent);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color var(--t-hover) var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card__media {
  position: relative;
  display: block;
  overflow: hidden;          /* рамка кадра: приближение фото не выходит за неё */
  background: var(--ink);    /* тон снимков: пока картинка грузится, нет вспышки */
}
.card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform var(--t-hover) var(--ease); /* 220 мс */
}
.card:hover .card__img { transform: scale(1.04); }
.card__t {
  display: block;
  padding: 12px 12px 14px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: transparent;   /* место подчёркивания не «прыгает» при наведении */
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.card:hover .card__t,
.card:focus-visible .card__t {
  text-decoration-color: var(--accent);  /* золотая линия под подписью */
}
/* Бейджей проб на фото нет: решение владельца 16.11.2026 — «убрать совсем»,
   потому что жёлтые «585» и «750» стояли только на 2 из 9 карточек (handoff
   64, п. 24). Подпись карточки и изображение достаточны. */
/* Второй ряд скрыт только при работающих скриптах. */
html.js .card--more { display: none; }
html.js .cats__grid.is-open .card--more { display: grid; }

.cats__foot { margin-top: 18px; }
/* Без JS кнопка не нужна: все 12 карточек и так видны. */
html:not(.js) .cats__foot { display: none; }
.morebtn { min-height: 44px; }
.morebtn__i { transition: transform var(--t-hover) var(--ease); }
.morebtn[aria-expanded="true"] .morebtn__i { transform: rotate(180deg); }

/* ---------- 9. «Как нас найти»: заголовок, факты, карта, фото входа ---------- */
/* Порядок в разметке — телефонный: заголовок → факты → карта → фото.
   На компьютере (от 900 px) карта уходит полосой 2:1 под заголовок,
   а факты и фото встают двумя колонками под ней (grid-template-areas).
   Блок первый тёмный после светлого тела, поэтому верхней линии нет:
   границу даёт смена фона. */
.findC { padding: 40px 0 48px; }
.findC__in { display: grid; gap: 28px; }
.findC .h2 { margin-bottom: 0; }  /* отступ до карты даёт gap сетки */
.findC__facts { margin: 0; }
.findC__tel { transition: color var(--t-hover) var(--ease); }
.findC__tel:hover { color: var(--accent); }
/* Фото входа компактное: на телефоне во всю ширину, кадр 3:2;
   на компьютере ограничено 380 px и прижато к правому краю колонки. */
.findC__fig { width: 100%; }
.findC__fig img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.findC__fig figcaption {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* Слот карты: заглушка без внешних запросов + место под iframe.
   aspect-ratio задаёт высоту сразу, поэтому при загрузке карты макет
   не сдвигается; iframe лежит абсолютом и не участвует в потоке. */
.mapslot {
  position: relative;
  display: grid;              /* центрирует содержимое <noscript> */
  place-content: center;
  justify-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-dark-strong);
  border-radius: 2px;
  background: var(--paper-2);
  overflow: hidden;
}
.mapslot__stub {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  color: var(--text-2);
  text-align: center;
}
.mapslot .icon { color: var(--text-2); }
.mapslot__t {
  max-width: 24ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2); /* 5,05:1 на --paper-2 */
}
.mapslot__link {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mapslot__link:hover { color: var(--text); }
.mapslot__fallback { max-width: 34ch; padding: 20px; }
.mapslot__frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper-2);
}
/* карта отрисовалась — заглушку убираем из дерева доступности и с экрана */
.mapslot.is-map-loaded .mapslot__stub { display: none; }
/* без JS заглушка не нужна: остаётся ссылка «Открыть в Яндекс.Картах» */
html:not(.js) .mapslot__stub { display: none; }

.facts { display: grid; gap: 0; }
.fact {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact__t {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
}
.fact__d { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.facts--dl { margin: 0; }
.facts--dl .fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.facts--dl .fact__t {
  min-width: 5em;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.facts--dl .fact__d { font-size: 14px; color: var(--fg); }

/* ---------- 10. Адаптив ---------- */
@media (max-width: 559px) {
  .trustline i:last-of-type { display: none; }

  .pcard:last-child { grid-column: 1 / -1; }
  .pcard:last-child .pcard__link,
  .pcard:last-child .pcard__in {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 12px;
    padding: 12px;
  }
  .pcard:last-child .pcard__p { margin: 0; }
  .pcard:last-child .pcard__u { margin-left: auto; }

  /* «Цены на серебро»: последняя карточка тоже на всю ширину, но в ней
     не короткий номер пробы, а словесная подпись. В строку «подпись —
     значение — единица» она не встаёт: подпись занимает всю строку,
     поэтому карточка остаётся обычным блоком. */
  #ceny-serebra .pcard:last-child .pcard__in {
    display: block;
    padding: 14px 12px 12px;
  }
  #ceny-serebra .pcard:last-child .pcard__p { margin-bottom: 6px; }
  #ceny-serebra .pcard:last-child .pcard__u { margin-left: 0; }

  .facts--dl .fact { display: grid; gap: 2px; }
  .facts--dl .fact__t { min-width: 0; }
}

/* 320 px: карточки цен — в одну колонку.
   В две колонки карточка была 136 px, и самый длинный диапазон прайса
   «12 800 – 13 150 ₽» при 15 px в неё не влезал — значение приходилось
   уменьшать до 12.5 px, что мелко. В одну колонку карточка занимает всю
   ширину полосы (≈272 px содержимого), поэтому кегль значения возвращён
   к 16 px — он же на планшете (min-width: 560px). white-space: nowrap
   остаётся: число и «₽» всегда одной строкой. Сетки цен (.pgrid и её
   варианты — .pgrid--silver, #probs, одиночная карточка своей пробы)
   используют один класс .pgrid, поэтому правило покрывает их все; gap
   и padding-bottom не меняются, вертикальный ритм остаётся прежним.
   NBSP в pz_money() не нужен: тесты check-price-inline и check-prices
   сравнивают текст и остаются как есть. */
@media (max-width: 359px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .pcard__v { font-size: 16px; white-space: nowrap; }
  /* Первый экран: та же причина. 30 px на «12 800 – 13 150 ₽» не влезают
     в 280 px, поэтому кегль ниже, строка неразрывная. */
  .cprice .pricekey__num { font-size: 30px; white-space: nowrap; }

  /* Шапка: на 320 px логотип, кнопка и иконка телефона не помещались в одну
     строку (109 + 111 + 44 + отступы при 280 px) — иконка падала на отдельную
     строку и оставляла пустоту справа. Ужимаем отступы и боковые поля кнопки:
     три действия снова в строке логотипа, меню — второй строкой. */
  .hdr__in { gap: 8px; }
  .hdr__act { gap: 8px; }
  .hdr__act .btn { padding-inline: 10px; }

  /* H1: «в Санкт-Петербурге» в nowrap при 30 px — 297 px в колонке 280 px,
     буквы почти срезались краем экрана. 25 px дают видимый запас по 16 px
     с каждой стороны. Стоматология (hero--c--long) сохраняет свой 24 px:
     селектор ниже по весу не перебивает его правило. */
  .hero--c .display,
  .hero--c.hero--c--sub .display { font-size: 25px; }
}

/* Мобильные ссылки-телефоны: зона нажатия ≥44 px по высоте (WCAG 2.2 AA,
   2.5.8). Кегль не растёт — растут только вертикальные отступы, а
   отрицательные margin компенсируют их в потоке, поэтому сетка контактов и
   подвал визуально не сдвигаются. */
@media (max-width: 390px) {
  .phonebox__num,
  .ftr__tel,
  .contacts .fact__d a[href^="tel:"],
  .findC__tel {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .phonebox__num { padding-block: 8px; margin-block: -8px; }
  .ftr__tel { padding-block: 13px; margin-block: -13px; }
  .contacts .fact__d a[href^="tel:"] { padding-block: 12px; margin-block: -12px; }
  /* Телефон в «Как нас найти» (правка 73, D-1 приёмки 72): блок .findC не
     входит в .contacts, поэтому правило выше его не покрывало и ссылка
     оставалась 120×17 px. Отступы по той же схеме, что у остальных: 12 px
     дают высоту 45 px при строке 21 px, отрицательный margin возвращает
     прежний поток — факты и общая высота блока не сдвигаются. */
  .findC__tel { padding-block: 12px; margin-block: -12px; }
}

@media (min-width: 560px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .pcard__v { font-size: 16px; }
  .cats__grid { gap: 14px; }
}

/* «Цены на серебро»: карточек три, в две колонки третья остаётся одна и
   справа от неё пусто (п. 5 визуальной приёмки 64). Ниже 600 px — одна
   колонка на всю полосу; с 600 px состав прежний (.pgrid: 3 колонки от
   560 px, 2 колонки на узком телефоне). Правило стоит после min-width: 560px,
   поэтому в диапазоне 560–599 px тоже одна колонка. */
@media (max-width: 599px) {
  .pgrid--silver { grid-template-columns: minmax(0, 1fr); }
}

/* Телефон и планшет: меню — второй строкой шапки, без «бургера» и без JS.
   Четыре пункта помещаются в 390 px; ссылки не меньше 44 px по высоте. */
@media (max-width: 767px) {
  .hdr__in { flex-wrap: wrap; row-gap: 0; }
  .menu {
    display: flex;
    order: 3;
    width: 100%;
    gap: 20px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }
  .menu a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
    transition: color var(--t-hover) var(--ease);
  }
  .menu a:hover { color: var(--fg); }
}

@media (min-width: 768px) {
  :root { --pad: 32px; }

  .card__t { padding: 14px; font-size: 14px; }

  .hdr__in { min-height: 68px; gap: 16px; }
  .menu { display: flex; gap: 14px; }
  .menu a {
    font-size: 12px;
    letter-spacing: .02em;
    color: var(--muted);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease);
  }
  .menu a:hover { color: var(--fg); border-bottom-color: var(--accent); }
  .logo { font-size: 13px; letter-spacing: .2em; }

  .hero { padding: 48px 0 56px; }
  .hero--c { padding: 34px 0 30px; }
  .cprice .pricekey__num { font-size: clamp(48px, 8vw, 56px); }

  .findC { padding: 56px 0 60px; }

  .prices { padding: 56px 0 64px; }
  .sechead {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding-bottom: 26px;
  }
  .sechead__meta { text-align: right; }

  .cats { padding: 56px 0 60px; }
  .cats__head { margin-bottom: 28px; }
}

/* От 900 px «Как нас найти» перестраивается: карта — полосой 2:1
   во всю ширину контейнера, под ней две колонки: факты слева, фото справа.
   Порог 900 px согласован с дизайном: в полосе 768–899 px карта 2:1
   и фото в колонке получаются слишком мелкими. */
@media (min-width: 900px) {
  .findC__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "head  head"
      "map   map"
      "facts fig";
    column-gap: 44px;
    row-gap: 26px;
    align-items: start;
  }
  .findC__head { grid-area: head; }
  .findC__map { grid-area: map; }
  .findC__facts { grid-area: facts; }
  .findC__fig { grid-area: fig; }

  /* фото входа не на всю колонку: 380 px у правого края */
  .findC__fig {
    justify-self: end;
    width: 100%;
    max-width: 380px;
  }

  .mapslot { aspect-ratio: 2 / 1; }  /* высота задана сразу — нет сдвига при загрузке */

  /* «Что принимаем»: три колонки на десктопе (2 на планшете, 2 на телефоне) */
  .cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

@media (min-width: 1000px) {
  :root { --pad: 40px; }

  .hdr__act { gap: 20px; }
  .hdr__phone { display: inline-flex; }
  .menu { gap: 22px; }
  .menu a { font-size: 13px; }
  .logo { font-size: 14px; letter-spacing: .26em; }
  .hdr__call { display: none; }

  .hero { padding: 64px 0 72px; }

  .hero--c { padding: 48px 0 44px; }
  .hero--c__grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 56px;
    align-items: start;
  }
  .hero--c .display { font-size: clamp(40px, 4.6vw, 60px); }
  /* Внутренние страницы: колонка заголовка шире (740 px на 1200+), чтобы
     длинные H1 укладывались в две строки. На 1000–1199 колонка растёт
     вместе с экраном, правый столбец остаётся 280–340 px. */
  .hero--c.hero--c--sub .hero--c__grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 44px;
  }
  /* В узком столбце 279–295 px (при 44 px отступа) диапазон при 46 px не
     влезает: «10 900 – 11 200 ₽» — это 307 px. Верхний предел 36 px подобран
     по самому длинному диапазону прайса (999: 300 px при 40 px), чтобы число
     не выходило за колонку и не обрезалось. Формат числа тот же. */
  .hero--c--sub .cprice .pricekey__num { font-size: clamp(28px, 3vw, 36px); }
  /* Кнопки в узком столбце не помещаются в один ряд и переносились
     разной ширины. Две равные по ширине кнопки читаются как пара. */
  .hero--c--sub .hero--c__side .actions { display: grid; gap: 10px; }
  .hero--c--sub .hero--c__side .actions .btn { width: 100%; }
  /* Стоматология: на 1000–1199 колонка уже 740 px, поэтому кегль ниже
     40 px и растёт с шириной экрана (на 1200+ — 40 px). */
  .hero--c.hero--c--sub.hero--c--long .display { font-size: clamp(26px, 3vw, 40px); }
  .hero--c__side {
    border-left: 1px solid var(--line);
    padding-left: 44px;
  }
  .cprice { border-top: 0; padding-top: 0; }
  .cprice .pricekey__num { font-size: clamp(38px, 3.6vw, 46px); }
  .phonebox { text-align: left; }
}

@media (min-width: 1200px) {
  .hero--c__grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); gap: 64px; }
  .hero--c .display { font-size: 62px; }
  /* Внутренние страницы: заголовку 740 px (требование дизайна), остаток
     отдаётся правому столбцу — 324 px при ширине контейнера 1120 px. */
  .hero--c.hero--c--sub .hero--c__grid {
    grid-template-columns: minmax(0, 740px) minmax(0, 1fr);
    gap: 56px;
  }
}

/* ---------- 11. Движение: выезд готового контента ---------- */
/* Главное правило: НИКАКОГО проявления из прозрачности. Блок с самого начала
   виден на 100 %, просто смещён; при попадании в экран смещение убирается
   длинной плавной кривой — читается как движение готового контента,
   а не как «прогрузка сайта».

   Направления (классы в разметке):
     .rv-l    — левая часть блока выезжает слева: translateX(-32px)
     .rv-r    — правая часть выезжает справа:      translateX(32px)
     .rv-u    — карточки и фото снизу:             translateY(24px) + scale(.985)
     .rv-map  — полоса карты снизу, короче:        translateY(16px)
   .reveal + .is-visible — триггер, который вешает IntersectionObserver.
   .reveal--2 — второй элемент пары: задержка 150 мс.
   Горизонтальный выезд обрезается по краю .site, поэтому элемент выглядит
   выезжающим из-за края, а не наползающим на соседей.

   Почему animation, а не transition: fill-mode both фиксирует только
   transform и не перебивает hover-переходы границ и фона у карточек. */
@media (prefers-reduced-motion: no-preference) {
  /* исходные положения: opacity везде 1, элемент только смещён */
  html.js-anim .rv-l { transform: translateX(-32px); }
  html.js-anim .rv-r { transform: translateX(32px); }
  html.js-anim .rv-u { transform: translateY(24px) scale(.985); }
  html.js-anim .rv-map { transform: translateY(16px); }

  html.js-anim .reveal.is-visible.rv-l { animation: rv-left var(--reveal) var(--move) both; }
  html.js-anim .reveal.is-visible.rv-r { animation: rv-right var(--reveal) var(--move) both; }
  html.js-anim .reveal.is-visible.rv-u { animation: rv-up var(--reveal) var(--move) both; }
  html.js-anim .reveal.is-visible.rv-map { animation: rv-map var(--reveal) var(--move) both; }

  /* порядок пары: заголовок → цена и кнопки; факты → фото */
  html.js-anim .reveal.is-visible.reveal--2 { animation-delay: var(--stagger); }

  /* очередь карточек и фото: 150 мс между соседями */
  html.js-anim .pgrid > .reveal.is-visible:nth-child(2),
  html.js-anim .cats__grid > .reveal.is-visible:nth-child(2) { animation-delay: calc(var(--stagger) * 1); }
  html.js-anim .pgrid > .reveal.is-visible:nth-child(3),
  html.js-anim .cats__grid > .reveal.is-visible:nth-child(3) { animation-delay: calc(var(--stagger) * 2); }
  html.js-anim .pgrid > .reveal.is-visible:nth-child(4),
  html.js-anim .cats__grid > .reveal.is-visible:nth-child(4) { animation-delay: calc(var(--stagger) * 3); }
  html.js-anim .pgrid > .reveal.is-visible:nth-child(5),
  html.js-anim .cats__grid > .reveal.is-visible:nth-child(5) { animation-delay: calc(var(--stagger) * 4); }
  html.js-anim .pgrid > .reveal.is-visible:nth-child(6),
  html.js-anim .cats__grid > .reveal.is-visible:nth-child(6) { animation-delay: calc(var(--stagger) * 5); }
  html.js-anim .pgrid > .reveal.is-visible:nth-child(7) { animation-delay: calc(var(--stagger) * 6); }
  html.js-anim .pgrid > .reveal.is-visible:nth-child(8) { animation-delay: calc(var(--stagger) * 7); }
  html.js-anim .pgrid > .reveal.is-visible:nth-child(9) { animation-delay: calc(var(--stagger) * 8); }

  /* Второй ряд «Что принимаем»: тот же выезд снизу, тоже 1750 мс,
     очередь 150 мс внутри ряда. Класс is-in ставит скрипт после
     снятия display:none — иначе анимация не запускается. */
  html.js-anim .cats__grid.is-open .card--more.is-in { animation: rv-up var(--reveal) var(--move) both; }
  html.js-anim .cats__grid.is-open .card--more.is-in:nth-child(7) { animation-delay: 0ms; }
  html.js-anim .cats__grid.is-open .card--more.is-in:nth-child(8) { animation-delay: calc(var(--stagger) * 1); }
  html.js-anim .cats__grid.is-open .card--more.is-in:nth-child(9) { animation-delay: calc(var(--stagger) * 2); }
  html.js-anim .cats__grid.is-open .card--more.is-in:nth-child(10) { animation-delay: calc(var(--stagger) * 3); }
  html.js-anim .cats__grid.is-open .card--more.is-in:nth-child(11) { animation-delay: calc(var(--stagger) * 4); }
  html.js-anim .cats__grid.is-open .card--more.is-in:nth-child(12) { animation-delay: calc(var(--stagger) * 5); }
}

@keyframes rv-left  { from { transform: translateX(-32px); } to { transform: none; } }
@keyframes rv-right { from { transform: translateX(32px); } to { transform: none; } }
@keyframes rv-up    { from { transform: translateY(24px) scale(.985); } to { transform: none; } }
@keyframes rv-map   { from { transform: translateY(16px); } to { transform: none; } }

/* ---------- 12. Системная настройка «меньше движения» ---------- */
/* При reduce движения нет вовсе: смещения не применяются, переходы гасятся.
   Отдельного тумблера анимаций на сайте нет — только системная настройка. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .rv-l,
  .rv-r,
  .rv-u,
  .rv-map {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- 13. Контент внутренних страниц ---------- */
/* Блоки перенесённых страниц: текст документа, таблицы, FAQ, преимущества,
   галерея, отзывы, контакты, хлебные крошки. Новых цветов нет — только
   токены из раздела 1. */

/* 13.1. Хлебные крошки */
.crumbs { padding: 16px 0 0; }
/* На внутренних страницах крошки стоят внутри тёмного первого экрана. */
.crumbs--inhero { padding: 0 0 18px; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  font-size: 12.5px;
  line-height: 1.4;
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: '/'; color: var(--muted); }
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: color var(--t-hover) var(--ease), text-decoration-color var(--t-hover) var(--ease);
}
.crumbs a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--fg); }

/* 13.2. Секция содержимого и читаемая колонка */
.doc { padding: 34px 0 44px; }
.doc + .doc,
.doc + .prices,
.prices + .doc { border-top: 1px solid var(--line); }
/* на главной блоки .doc идут после «Что принимаем» (.cats) */
.cats + .doc { border-top: 1px solid var(--line); }
.doc__head { margin-bottom: 22px; }
.doc__head .h2 { margin-bottom: 8px; }
.doc__sub {
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
/* подзаголовок подраздела: на текущем сайте это вкладки прайса, здесь — h3 */
.doc > .wrap > h3 {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.3;
}
.doc > .wrap > .doc__head + h3 { margin-top: 6px; }

.prose {
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--fg);
}
.prose > * + * { margin-top: 14px; }
.prose h2,
.prose h3 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .01em;
  margin-top: 30px;
}
.prose h2 { font-size: 20px; }
.prose h3 { font-size: 16.5px; }
.prose > :first-child { margin-top: 0; }
.prose p { font-size: 15.5px; line-height: 1.65; }
.prose ul,
.prose ol { padding-left: 22px; margin-top: 14px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote {
  margin: 20px 0 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg);
}
.prose blockquote p { font-size: 18px; line-height: 1.5; }
.prose hr {
  margin: 26px 0;
  height: 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.prose__note { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* 13.3. Таблица прайса и характеристик */
/* На телефоне таблица не растягивает страницу: она живёт в контейнере
   с собственным горизонтальным скроллом. */
.tablewrap {
  margin-top: 12px;
  max-width: 68ch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ptable {
  width: 100%;
  min-width: 300px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid var(--line);
  background: var(--bg);
}
.ptable caption {
  padding-bottom: 8px;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.ptable th,
.ptable td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.ptable thead th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line-strong);
}
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable td + td {
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

/* 13.4. FAQ на нативных details/summary, без JS */
.faq {
  max-width: 72ch;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  min-height: 44px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  transition: color var(--t-hover) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__q::after {
  content: '+';
  flex: none;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.1;
  color: var(--accent);
}
.faq__item[open] .faq__q::after { content: '−'; }
.faq__a {
  max-width: 66ch;
  padding: 0 30px 18px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
}
.faq__a > * + * { margin-top: 10px; }

/* 13.5. Карточки преимуществ */
.advgrid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.adv {
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
}
.adv__t {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
}
.adv__d {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.adv__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 13.6. Галерея фото */
/* Пропорции заданы атрибутами width/height у <img> и aspect-ratio:
   высота карточки не скачет при загрузке. */
.gal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.gal__item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  overflow: hidden;
}
.gal__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gal__cap {
  padding: 10px 12px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.gal__t {
  display: block;
  margin-bottom: 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg);
}

/* 13.6a. Фото проб: кадр 1:1 и contain, чтобы квадратные иконки не обрезались */
.gal--proby .gal__item img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 10px;
  background: var(--bg);
}
.gal--proby .gal__cap { text-align: center; }

/* 13.6b. Список страниц проб: компактные ссылки-плитки под фото проб.
   Без JS и без картинок; на телефоне две колонки, на компьютере до четырёх. */
.probalist { margin-top: 18px; }
.doc__head + .probalist { margin-top: 0; }
.probalist__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  list-style: none;
}
.probalist__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--fg);
  text-decoration: none;
  transition: border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.probalist__link:hover { border-color: var(--accent); color: var(--accent); }

/* 13.7. Отзывы */
.reviews {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.review {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
}
.review__img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.review blockquote { margin: 0; }
.review blockquote p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg);
}
.review__name {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* 13.8. Блок «Наши контакты» на внутренних страницах */
.contacts { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.contacts__lead {
  max-width: 52ch;
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.contacts__grid {
  display: grid;
  gap: 18px;
  max-width: 68ch;
  margin-top: 18px;
}
.contacts__mail { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.contacts__mail:hover { color: var(--accent); }

/* 13.9. Заглушка «Черновик» (этап 5e)
   Один компонент, четыре формы: .draft--p (абзац), .draft--list (список),
   .draft--qa (вопрос-ответ), .draft--line (короткая строка).
   Источник: design/skeletons/assets/skeletons.css, раздел 3; палитра — токены.
   Новых цветов три: --draft-bar, --draft-bar-2 и фон на тёмном #16394A.
   Метка «Черновик» — золотом на плашке --paper (4,70:1, AA проходит). */
.draft {
  --draft-bg: var(--paper-2);
  --draft-chip: var(--paper);
  --draft-line-color: var(--line-light-strong); /* 3,16:1 на paper-2 */
  --draft-text: var(--text-2);                  /* 4,62:1 на paper-2 */
  --draft-accent: var(--gold-deep);             /* на --paper 4,70:1 */
  --draft-bar: #9CACA8;                         /* 1,96:1 — декоративная полоса */
  --draft-bar-2: #8A9C98;                       /* 2,39:1 — вопрос, чуть плотнее */
  --draft-sep: var(--line-light);

  position: relative;
  margin: 0;
  padding: 13px 16px 15px;
  border: 1px dashed var(--draft-line-color);
  border-radius: 2px;
  background: var(--draft-bg);
  color: var(--draft-text);
  font-size: 12.5px;
  line-height: 1.5;
  animation: none; /* контентный выезд к заглушке не применяется */
}
.on-dark .draft {
  --draft-bg: #16394A;                          /* 1,25:1 к --ink: мягкий сдвиг тона */
  --draft-chip: var(--ink);
  --draft-line-color: #7A98A3;                  /* 4,39:1 внутри плашки */
  --draft-text: var(--text-on-ink-2);           /* 5,97:1 на #16394A */
  --draft-accent: var(--gold);                  /* 6,33:1 на --ink */
  --draft-bar: rgba(242, 240, 234, .34);
  --draft-bar-2: rgba(242, 240, 234, .50);
  --draft-sep: rgba(242, 240, 234, .18);
}
.draft__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.draft__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 8px;
  border-left: 2px solid var(--draft-accent);
  background: var(--draft-chip);
  color: var(--draft-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.7;
  text-transform: uppercase;
  white-space: nowrap;
}
.draft__mark {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
.draft__note { font-size: 12.5px; line-height: 1.5; }
.draft__body { margin-top: 13px; }
.draft__line {
  display: block;
  height: 8px;
  background: var(--draft-bar);
}
.draft__line--w1 { width: 100%; }
.draft__line--w2 { width: 92%; }
.draft__line--w3 { width: 78%; }
.draft__line--w4 { width: 61%; }

.draft--p .draft__line + .draft__line { margin-top: 17px; }
.draft--p .draft__body { min-height: 92px; }

.draft__rows { display: grid; gap: 10px; }
.draft__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 24px;
}
.draft__bullet {
  flex: none;
  width: 4px;
  height: 4px;
  background: var(--draft-accent);
}
.draft__row .draft__line { flex: 0 0 auto; }
.draft__row .draft__line--w1 { width: 66%; }
.draft__row .draft__line--w2 { width: 54%; }
.draft__row .draft__line--w3 { width: 43%; }
.draft__row .draft__line--w4 { width: 33%; }

.draft__qa { display: grid; gap: 18px; }
.draft__pair + .draft__pair {
  padding-top: 18px;
  border-top: 1px solid var(--draft-sep);
}
.draft__q {
  display: flex;
  align-items: center;
  min-height: 18px;
}
.draft__q .draft__line { height: 10px; background: var(--draft-bar-2); }
.draft__q .draft__line--w1 { width: 52%; }
.draft__q .draft__line--w2 { width: 44%; }
.draft__q .draft__line--w3 { width: 56%; }
.draft__a {
  display: flex;
  align-items: center;
  margin-top: 12px;
  padding-left: 24px;
}
.draft__a .draft__line { height: 6px; }
.draft__a .draft__line--w1 { width: 82%; }
.draft__a .draft__line--w2 { width: 74%; }
.draft__a .draft__line--w3 { width: 63%; }

.draft--line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 5px 12px 6px 8px;
}
.draft--line .draft__tag { padding: 0 7px; }

@media (max-width: 559px) {
  .draft__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

@media (min-width: 560px) {
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .advgrid { gap: 14px; }
}
@media (min-width: 720px) {
  .advgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .probalist__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .doc { padding: 40px 0 52px; }
}
@media (max-width: 559px) {
  .ptable { font-size: 13px; }
  .ptable th,
  .ptable td { padding: 8px 10px; }
  .review { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .review__img { width: 44px; height: 44px; }
}

/* ---------- Cookie: плашка-карточка и окно настроек ----------
   Отделка по дизайну v2.0: design/cookie-banner/delta-2-card.md и
   design/cookie-banner/cookie.css (16.11.2026). Прежняя спецификация 1.1
   действует во всём, что дельта не меняет.
   Источник стилей — cookie.css; селекторы оставлены прежними (pz-consent*),
   чтобы не ломать assets/js/consent.js.
   Отклонения от общего стиля сайта — только в этом компоненте и по решению
   владельца: плашка стала компактным «окошком» (скругление 10–14 px,
   кнопки-«пилюли»). Теней нет: карточку отделяет рамка 1 px.
   Фактическую высоту обёртки плашки пишет consent.js в --pz-consent-h,
   ширину полосы прокрутки — в --pz-consent-sbw. */

.pz-consent[hidden],
.pz-consent-modal[hidden] { display: none !important; }

/* Резерв под карточку — в подвале, а не в body: подвал последний в .site и
   тёмный на всех страницах, поэтому запас выглядит его частью и полосы
   другого тона под подвалом не появляется (D2).
   scroll-padding-bottom — чтобы переход по якорю не уводил строку под карточку. */
html[data-pz-consent="banner"] .ftr {
  padding-bottom: calc(28px + var(--pz-consent-h, 0px));
}
html[data-pz-consent="banner"] {
  scroll-padding-bottom: var(--pz-consent-h, 0px);
}

/* Окно настроек модальное: страница не прокручивается, ширина полосы
   прокрутки компенсируется (D6), поэтому сетка не прыгает вправо.
   Плашка на время окна уходит: два элемента снизу одновременно не висят. */
html[data-pz-consent-modal="open"] {
  overflow: hidden;
  padding-right: var(--pz-consent-sbw, 0px);
}
html[data-pz-consent-modal="open"] .pz-consent {
  visibility: hidden;
  pointer-events: none;
}

/* ---------- 1. Плашка-карточка ---------- */
/* Обёртка на всю ширину нужна только для центрирования и для измерения
   высоты: клики она не перехватывает (pointer-events: none). */
.pz-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

/* Сама карточка: светлая поверхность «окошка», тонкая рамка, без тени.
   Клики ловит только она. */
.pz-consent__in {
  pointer-events: auto;
  width: 100%;
  max-width: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  background: #F7F9F8;
  color: var(--text);
  border: 1px solid var(--line-light-strong);
  border-radius: 10px;
  transform: translateY(calc(100% + 32px));
}

/* Показ карточки: выезд снизу 260 мс. Анимация, а не transition: элемент
   появляется из display:none, transition в этом случае не запускается. */
html[data-pz-consent="banner"] .pz-consent__in {
  transform: none;
  animation: pz-consent-in 260ms var(--ease) both;
}
@keyframes pz-consent-in {
  from { transform: translateY(calc(100% + 32px)); }
  to { transform: none; }
}

.pz-consent__text {
  margin: 0;
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  overflow-wrap: break-word;
}
.pz-consent__text a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.pz-consent__text a:hover { color: var(--text); }

.pz-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Кнопки-«пилюли»: высота 44 px (зона нажатия). */
.pz-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-hover) var(--ease),
              border-color var(--t-hover) var(--ease),
              color var(--t-hover) var(--ease);
}

/* Единственная заливка в компоненте: золото + петрольный текст (6,33:1). */
.pz-consent__btn--primary {
  background: var(--btn-fill);
  border-color: var(--btn-fill);
  color: var(--btn-text);
  font-weight: 600;
}
.pz-consent__btn--primary:hover {
  background: var(--btn-fill-hover);
  border-color: var(--btn-fill-hover);
  color: var(--btn-text);
}

/* Вторая кнопка — без заливки, только рамка; наведение петрольное. */
.pz-consent__btn--quiet {
  background: transparent;
  border-color: var(--line-light-strong);
  color: var(--text);
}
.pz-consent__btn--quiet:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Фокус на светлой карточке: золото низкое по контрасту, поэтому кольцо
   тёмно-золотое, а у золотой кнопки — петрольное. */
.pz-consent :focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}
.pz-consent .pz-consent__btn--primary:focus-visible {
  outline-color: var(--ink);
}

/* От 768 px: текст слева, кнопки в один ряд справа. */
@media (min-width: 768px) {
  .pz-consent { padding: 0 24px calc(20px + env(safe-area-inset-bottom, 0px)); }

  .pz-consent__in {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 16px 20px 16px 24px;
    border-radius: 12px;
  }

  .pz-consent__text { max-width: 52ch; font-size: 13.5px; line-height: 1.5; }

  .pz-consent__actions { flex-wrap: nowrap; gap: 10px; }

  .pz-consent__btn { min-height: 40px; padding-inline: 20px; }
}

/* Телефон в альбомной ориентации: высоты экрана мало, карточка становится
   плотнее, кнопки остаются в один ряд. */
@media (max-height: 560px) and (min-width: 480px) {
  .pz-consent__in { gap: 10px; padding: 12px 16px; }
  .pz-consent__text { font-size: 12.5px; line-height: 1.4; }
  .pz-consent__btn { min-height: 40px; padding-inline: 16px; font-size: 13px; }
}

/* Сенсорный ввод: все кнопки не ниже 44 px. */
@media (pointer: coarse) {
  .pz-consent__btn { min-height: 44px; }
}

/* ---------- 2. Окно настроек ---------- */
.pz-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Затемнение без размытия и без анимации. */
.pz-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 40, 54, .72);
}

/* Светлая панель в том же языке, что карточка: бумага, тонкая рамка,
   скругление только сверху (лист снизу). */
.pz-consent-modal__panel {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #F7F9F8;
  color: var(--text);
  border: 1px solid var(--line-light-strong);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  animation: pz-consent-modal-in 240ms var(--ease) both;
}
@keyframes pz-consent-modal-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}

.pz-consent-modal__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pz-consent-modal__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .005em;
  color: var(--text);
}
/* Заголовок получает фокус программно (tabindex="-1"), кольцо ему не нужно:
   рамка вокруг заголовка читается как дефект. Правило идёт последним. */
.pz-consent-modal__title:focus,
.pz-consent-modal__title:focus-visible { outline: none; }

.pz-consent-modal__close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--text-2);
  line-height: 1;
  cursor: pointer;
  transition: color var(--t-hover) var(--ease),
              border-color var(--t-hover) var(--ease);
}
.pz-consent-modal__close:hover {
  color: var(--ink);
  border-color: var(--line-light);
}

.pz-consent-modal__intro {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

/* ---------- строки настроек ---------- */
.pz-consent-opt {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}
.pz-consent-opt__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
}
.pz-consent-opt__txt { min-width: 0; }
.pz-consent-opt__name {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}
.pz-consent-opt__hint {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-2);
}

/* Переключатель: 44×24, «пилюля», зона нажатия 44 px.
   Состояние читается не только цветом — рядом слово
   «Включено/Выключено» (требование доступности). */
.pz-consent-opt__label {
  position: relative;
  flex: none;
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 4px;
  min-height: 44px;
  cursor: pointer;
}
/* Скрытый чекбокс: остаётся в дереве доступности и в фокусе. */
.pz-consent-opt__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.pz-consent-opt__track {
  position: relative;
  flex: none;
  display: block;
  width: 44px;
  height: 24px;
  border: 1px solid var(--line-light-strong);
  border-radius: 999px;
  background: transparent;
  transition: background-color 160ms var(--ease),
              border-color 160ms var(--ease);
}
.pz-consent-opt__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--line-light-strong);
  transition: transform 160ms var(--ease),
              background-color 160ms var(--ease);
}
.pz-consent-opt__state {
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-2);
  white-space: nowrap;
}
.pz-consent-opt__label:hover .pz-consent-opt__track { border-color: var(--ink); }
.pz-consent-opt__input:checked + .pz-consent-opt__track {
  background: var(--gold);
  border-color: var(--gold);
}
.pz-consent-opt__input:checked + .pz-consent-opt__track .pz-consent-opt__knob {
  transform: translateX(20px);
  background: var(--ink);
}
.pz-consent-opt__input:checked ~ .pz-consent-opt__state { color: var(--text); }
.pz-consent-opt__input:focus-visible + .pz-consent-opt__track {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* Строка «Обязательные»: включена и заблокирована. Переключатель
   не отвечает на наведение и не входит в порядок Tab (disabled).
   Слово состояния здесь — «Всегда включены»: оно и значит «включено»,
   и объясняет блокировку. */
.pz-consent-opt__label--locked { cursor: default; }
.pz-consent-opt__label--locked:hover .pz-consent-opt__track { border-color: var(--gold); }
.pz-consent-opt__label--locked .pz-consent-opt__state,
.pz-consent-opt__label--locked .pz-consent-opt__input:checked ~ .pz-consent-opt__state {
  color: var(--gold-deep);   /* 4,70:1 на светлом */
  font-weight: 500;
}

/* Подпись про срок хранения — под переключателями. */
.pz-consent-modal__note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-2);
}
.pz-consent-modal__pol { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; }
.pz-consent-modal__pol a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- низ окна ---------- */
.pz-consent-modal__foot {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}
.pz-consent-modal__foot .pz-consent__btn {
  width: 100%;
  font-size: 14px;
}
.pz-consent-modal__cancel {
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-light);
  cursor: pointer;
}
.pz-consent-modal__cancel:hover { color: var(--ink); }

.pz-consent-modal :focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}
.pz-consent-modal .pz-consent__btn--primary:focus-visible { outline-color: var(--ink); }

/* От 768 px: окно по центру, 460 px, рамка со всех сторон. */
@media (min-width: 768px) {
  .pz-consent-modal { align-items: center; padding: 24px; }

  .pz-consent-modal__panel {
    max-width: 460px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    padding: 22px 24px 20px;
    border-bottom: 1px solid var(--line-light-strong);
    border-radius: 12px;
  }

  .pz-consent-modal__title { font-size: 22px; }
  .pz-consent-opt__row { padding: 14px 0; }

  /* Переключатель в строку: дорожка, затем слово состояния. */
  .pz-consent-opt__label {
    grid-auto-flow: column;
    align-items: center;
    gap: 10px;
  }

  .pz-consent-modal__foot {
    grid-template-columns: auto auto 1fr;
    align-items: center;
    justify-content: start;
    gap: 8px 12px;
  }
  .pz-consent-modal__foot .pz-consent__btn { width: auto; padding-inline: 28px; }
  .pz-consent-modal__cancel { justify-self: start; }
  .pz-consent-modal__note,
  .pz-consent-modal__pol { grid-column: 1 / -1; margin-top: 0; }
}

/* Низкий экран (320×568 и подобные): лист прокручивается, поэтому
   сначала ужимаем отступы — экономит ~40 px до первого экрана. */
@media (max-height: 640px) {
  .pz-consent-modal__panel { padding-top: 14px; }
  .pz-consent-modal__intro { margin-top: 6px; font-size: 12.5px; line-height: 1.45; }
  .pz-consent-opt { margin-top: 12px; }
  .pz-consent-opt__row { padding: 10px 0; }
  .pz-consent-modal__note { margin-top: 10px; }
  .pz-consent-modal__foot { margin-top: 12px; }
}

/* ---------- 3. Служебное ---------- */
@media (prefers-reduced-motion: reduce) {
  .pz-consent__in,
  .pz-consent-modal__panel,
  .pz-consent-opt__track,
  .pz-consent-opt__knob { animation: none; transition: none; }
  .pz-consent__in { transform: none; }
}

@media print {
  .pz-consent,
  .pz-consent-modal { display: none !important; }
}

@media (forced-colors: active) {
  .pz-consent__in,
  .pz-consent-modal__panel,
  .pz-consent-opt__track { border-color: CanvasText; }
  .pz-consent__text a,
  .pz-consent-opt__label--locked .pz-consent-opt__state,
  .pz-consent-modal__pol a { color: LinkText; }
  .pz-consent__btn--primary,
  .pz-consent-modal__foot .pz-consent__btn--primary { border-color: ButtonText; }
  .pz-consent-opt__input:checked + .pz-consent-opt__track { background: Highlight; }
}
