/* ==========================================================================
   kochev.ru — компоненты «Бланка анализов»
   Порядок: каркас (шапка, кнопки, подвал) → бланк и его части →
   разделы главной и услуги → статья → форма.
   Брейкпоинты: 1280 (три колонки статьи), 1000, 960, 700, 520.
   ========================================================================== */

/* ---------- Текстура поля ---------- */
/* текстура — роль поля, как цвет: гильош у глубокого синего (секции и подвал), у светлых полей и листов — none.
   Листы, карточки и ячейки на синем закрашены своим surface и остаются гладкими; узор идёт только по полю.
   Рисунок привязан к середине страницы и к верху секции, поэтому одинаково стоит под колонкой на любой ширине */
.section--paper, .section--ink, .section--tone-a, .section--tone-b, .sheet {
  background-image: var(--s-texture);
  background-size: var(--s-texture-size, auto);
  background-position: var(--s-texture-pos, 50% 0);
}
.section--plain { --s-texture: none; }   /* гладкое поле для одной секции */
/* печать, повышенный контраст и принудительные цвета — гладкое поле */
@media print, (prefers-contrast: more), (forced-colors: active) {
  .section--ink { --s-texture: none; }
}

/* ---------- Шапка ---------- */
.site-header { background: var(--s-bg); border-bottom: var(--rule); }
.site-header__row { display: flex; align-items: center; gap: var(--sp-3) var(--sp-6); min-height: 72px; }
.logo { display: flex; align-items: flex-start; gap: var(--sp-3); color: var(--s-text); text-decoration: none; line-height: 1.1; }
/* знак владельца 1,5 : 1 — ровно от верха прописной «К» в имени до базовой линии подписи: имя 20/22, зазор 1, подпись 13/14,3 → верх «К» 3,9 px, база подписи 34,05 px.
   В шапке — в цвете (градиент владельца), в подвале и на синем — currentColor, цвет даёт --s-mark */
.logo__mark { flex: none; display: block; width: auto; height: 30px; aspect-ratio: 5970 / 3967; margin-top: 4px; color: var(--s-mark); }
.logo__text { display: grid; gap: 1px; }
.logo:hover { text-decoration: none; }
.logo__name { font-size: var(--fs-h4); font-weight: var(--fw-heavy); letter-spacing: -0.01em; white-space: nowrap; }
.logo__desc { font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-medium); color: var(--s-muted); white-space: nowrap; }
.site-nav { margin-left: auto; }
.site-nav__list { list-style: none; display: flex; gap: var(--sp-6); font-family: var(--font-text); font-size: var(--fs-nav); font-weight: var(--fw-semibold); }
.site-nav__link { display: block; padding-block: var(--sp-2); text-decoration: none; white-space: nowrap; }
.site-nav__link:hover,
.site-nav__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: var(--bw-rule); text-decoration-color: var(--s-text); }
.site-nav__item--cta { display: none; }
@media (max-width: 1100px) { .site-nav__list { gap: var(--sp-5); } } /* на 961–1100 меню 17 px помещается в строку с запасом от имени */
.site-header__cta { flex: none; }
.site-header__menu {
  display: none; flex: none; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap);
  background: var(--s-surface); border: var(--line-ink); border-radius: var(--r-s);
  color: var(--s-text); cursor: pointer;
}
.site-header__menu svg { width: 20px; height: 14px; }

@media (max-width: 960px) {
  .site-header__row { flex-wrap: wrap; min-height: 64px; padding-block: var(--sp-2); }
  .site-header__cta { margin-left: auto; }
  .site-header__menu { display: inline-flex; }
  .site-nav { order: 10; flex-basis: 100%; margin-left: 0; }
  .js .site-nav { display: none; }
  .js .site-header.is-open .site-nav { display: block; }
  .site-nav__list { flex-direction: column; gap: 0; border-top: var(--line); }
  .site-nav__list { font-size: var(--fs-body); }
  .site-nav__link { padding: 14px 0; border-bottom: var(--line); }
}
@media (max-width: 480px) {
  .site-header__row .site-header__cta { display: none; }
  .site-header__menu { margin-left: auto; }
  .site-nav__item--cta { display: block; padding-block: var(--sp-4); }
  .logo__name { font-size: var(--fs-body); }
  .logo__mark { height: 28.3px; margin-top: 3.5px; } /* имя 18/19,8: верх «К» 3,5 px, база подписи 31,85 px */
  .logo { gap: 10px; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
  min-height: var(--control-h); padding: var(--sp-3) var(--sp-6);
  background: transparent; color: var(--s-text);
  border: var(--line-ink); border-radius: var(--r-s);
  font-family: var(--font-text); font-size: var(--fs-ui); font-weight: var(--fw-bold);
  line-height: var(--lh-ui); letter-spacing: 0.005em; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
}
.btn:hover { background: var(--s-tint); text-decoration: none; }
.btn--primary { background: var(--s-btn-bg); color: var(--s-btn-text); border-color: var(--s-btn-bg); }
.btn--primary:hover { background: var(--s-btn-hover); border-color: var(--s-btn-hover); color: var(--s-btn-text); }
/* акцент главного действия: только «Записаться» в шапке, главная кнопка первого экрана, «Отправить» в формах */
.btn--accent { background: var(--s-accent); color: var(--s-accent-text); border-color: var(--s-accent); }
.btn--accent:hover { background: var(--s-accent-hover); border-color: var(--s-accent-hover); color: var(--s-accent-text); }
.btn--small { min-height: var(--tap); padding: var(--sp-2) var(--sp-4); font-size: var(--fs-ui); }
.btn[disabled],
.btn[aria-disabled="true"] { background: var(--s-tint); color: var(--s-disabled); border-color: var(--s-line); cursor: not-allowed; }
.btn__price { padding-left: var(--sp-3); border-left: var(--bw-thin) solid currentColor; font-family: var(--font-data); font-weight: var(--fw-semibold); }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
@media (max-width: 700px) { .actions > .btn { width: 100%; } }

/* ---------- Метки: КЭВ, «с чего начать», «пример» ---------- */
.tag {
  display: inline-block; padding: 1px 6px;
  border: var(--line-ink); border-radius: var(--r-xs);
  font-family: var(--font-data); font-size: var(--fs-tag); font-weight: var(--fw-bold);
  letter-spacing: 0.02em; line-height: 1.5; white-space: nowrap; vertical-align: 2px;
}
.tag--signal { border-color: var(--s-signal); color: var(--s-signal); }
.tag--muted { border-color: var(--s-frame); color: var(--s-muted); font-weight: var(--fw-semibold); }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-family: var(--font-data); font-size: var(--fs-small); color: var(--s-muted); }
.crumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); }
.crumbs__item + .crumbs__item::before { content: "/"; margin-right: var(--sp-2); }
.crumbs a { color: var(--s-muted); }
.crumbs [aria-current="page"] { color: var(--s-text); }

/* ---------- Фото и заглушка фото ---------- */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--s-tint); border-radius: var(--r-m); }
/* одна обработка для всех кадров: цвет приглушён, кадр — по точке фокуса (--fx, --fy) и масштабу (--zoom) */
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 50%);
  transform: scale(var(--zoom, 1)); transform-origin: var(--fx, 50%) var(--fy, 50%);
  filter: saturate(0.82) contrast(1.03);
}
.photo__caption { margin-top: var(--sp-2); font-family: var(--font-data); font-size: var(--fs-label); color: var(--s-muted); }
.photo--4x5 { aspect-ratio: 4 / 5; }
.photo--3x2 { aspect-ratio: 3 / 2; }
.photo--1x1 { aspect-ratio: 1 / 1; }
.photo--placeholder { display: flex; align-items: flex-end; padding: var(--sp-5); }
.photo--placeholder::before,
.photo--placeholder::after { content: ""; position: absolute; top: var(--sp-3); width: 22px; height: 22px; border: var(--bw-rule) solid var(--s-text); }
.photo--placeholder::before { left: var(--sp-3); border-right: 0; border-bottom: 0; }
.photo--placeholder::after { right: var(--sp-3); border-left: 0; border-bottom: 0; }
.photo__note { font-size: var(--fs-small); line-height: 1.45; max-width: 34ch; }
.photo__note b { display: block; font-weight: var(--fw-bold); }
.photo--avatar { width: 56px; height: 56px; flex: none; padding: 0; display: grid; place-items: center; font-family: var(--font-data); font-size: var(--fs-tag); color: var(--s-muted); }
.photo--avatar { border-radius: var(--r-s); }
.photo--avatar::before, .photo--avatar::after { display: none; }
.photo--placeholder.photo--avatar { background: var(--s-surface); border: var(--line-dash); }

/* ---------- Заглушка содержимого (кейсы, отзывы, логотипы до согласования) ---------- */
.placeholder { padding: var(--sp-4); border: var(--line-dash); border-radius: var(--r-m); color: var(--s-muted); font-size: var(--fs-small); line-height: 1.5; }
.placeholder b { color: var(--s-text); }

/* ---------- Поля бланка: подпись и значение ---------- */
.fields {
  --fields-cols: 3;
  display: grid; grid-template-columns: repeat(var(--fields-cols), minmax(0, 1fr));
  gap: var(--bw-thin); margin: 0;
  clip-path: inset(0 round var(--fields-r, 0px)); /* линии сетки — тенями ячеек; внешние края обрезаются, пустая клетка остаётся белой */
  border-radius: var(--fields-r, 0px);
}
.fields--2 { --fields-cols: 2; }
.fields--4 { --fields-cols: 4; }
.fields__item { padding: var(--cell-y) var(--cell-x); background: var(--s-surface); box-shadow: 0 0 0 var(--bw-thin) var(--s-line); }
.fields__item--wide { grid-column: 1 / -1; }
.fields dt { font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); letter-spacing: var(--ls-label); }
.fields dd { margin-top: 2px; font-size: var(--fs-h4); font-weight: var(--fw-heavy); line-height: 1.25; font-variant-numeric: tabular-nums lining-nums; }
.fields--compact dd { font-size: var(--fs-ui); font-weight: var(--fw-bold); line-height: 1.3; }
.fields dd a { font-weight: var(--fw-semibold); }
@media (max-width: 700px) {
  .fields--4 { --fields-cols: 2; }
  .fields--3 { --fields-cols: 2; }
}

/* ---------- Бланк: показатель, результат, ориентир, шкала, отметка ---------- */
.blank { display: flex; flex-direction: column; background: var(--s-surface); }
.blank--framed { border: var(--line-ink); border-radius: var(--r-m); overflow: hidden; } /* скругляется контур, внутренние линии прямые */
.blank__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-1) var(--sp-6); align-items: baseline; padding: var(--cell-y) var(--cell-x); border-bottom: var(--rule); }
.blank__title { font-size: var(--fs-h4); font-weight: var(--fw-heavy); }
.blank__meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-5); font-family: var(--font-data); font-size: var(--fs-small); color: var(--s-muted); }
.blank__meta b { color: var(--s-text); font-weight: var(--fw-semibold); }
.blank__table { width: 100%; table-layout: fixed; font-family: var(--font-data); font-size: var(--fs-ui); line-height: var(--lh-snug); }
.blank__table th { padding: var(--sp-2) var(--cell-x); border-bottom: var(--line-ink); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); letter-spacing: var(--ls-label); text-align: left; vertical-align: bottom; }
.blank__table th:nth-child(1) { width: calc(2 * var(--col)); }
.blank__table th:nth-child(n+2) { width: var(--col); }
.blank__table td { padding: var(--cell-y) var(--cell-x); border-bottom: var(--line); vertical-align: middle; }
.blank__table .is-right { text-align: right; }
.blank__name { font-family: var(--font-text); font-size: var(--fs-ui); font-weight: var(--fw-semibold); }
.blank__cell--name .tag { margin-left: var(--sp-2); }
.blank__value { font-size: var(--fs-value); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums lining-nums; }
.blank__ref { color: var(--s-muted); }
.blank__row--out .blank__value { color: var(--s-signal); }
.blank__row--key { background: var(--s-signal-tint); }
.blank__row--nodata .blank__value { color: var(--s-muted); font-size: var(--fs-ui); font-weight: var(--fw-semibold); }
.blank__end { margin-top: auto; padding: var(--sp-4) var(--cell-x); border-top: var(--rule); }
.blank__conclusion { max-width: 62ch; }
.blank__plan { margin-top: 10px; padding-left: 1.25em; max-width: 62ch; font-size: var(--fs-ui); line-height: 1.45; }
.blank__plan li + li { margin-top: var(--sp-1); }
.blank__plan li::marker { font-family: var(--font-data); font-weight: var(--fw-bold); }
.blank__title .tag { margin-left: var(--sp-2); vertical-align: 3px; }
.blank__next { margin-top: var(--sp-3); font-weight: var(--fw-semibold); }
.blank__foot { padding: var(--sp-2) var(--cell-x) var(--sp-3); font-family: var(--font-data); font-size: var(--fs-label); color: var(--s-muted); }

/* отметка: слово обязательно, цвет только у отклонения */
.mark { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-data); font-size: var(--fs-ui); font-weight: var(--fw-medium); color: var(--s-muted); white-space: nowrap; }
.mark svg { width: 12px; height: 12px; flex: none; }
.mark--out { color: var(--s-signal); font-weight: var(--fw-semibold); }

/* шкала: полоса — ориентир, черта — результат */
.meter { position: relative; width: 100%; max-width: 130px; height: 12px; background: var(--s-tint); border: var(--line); }
.meter::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--from); width: calc(var(--to) - var(--from)); background: var(--s-band); border-inline: var(--bw-thin) solid var(--s-frame); }
.meter__mark { position: absolute; top: -4px; bottom: -4px; left: var(--at); width: 2px; margin-left: -1px; background: var(--s-text); } /* отметка результата — знак, а не линия */
.blank__row--out .meter__mark { background: var(--s-signal); }
.meter--nodata { background: transparent; border: var(--line-dash); }
.meter--nodata::before { display: none; }

@media (max-width: 700px) {
  .blank__head { grid-template-columns: 1fr; }
  .blank__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .blank__table, .blank__table tbody, .blank__table tr, .blank__table td { display: block; width: 100%; }
  .blank__table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-1) var(--sp-3); padding: var(--cell-y) var(--cell-x); border-bottom: var(--line); }
  .blank__table td { padding: 0 !important; border: 0; }
  .blank__cell--name { grid-column: 1 / -1; }
  .blank__cell--value { grid-column: 1; justify-self: end; }
  .blank__cell--mark { grid-column: 2; grid-row: 2; align-self: center; }
  .blank__cell--ref { grid-column: 1 / -1; }
  .blank__cell--ref .blank__ref::before { content: "ориентир "; }
  .blank__cell--meter { grid-column: 1 / -1; }
  .meter { max-width: none; }
}

/* ---------- Главная: первый экран ---------- */
.hero { padding-block: clamp(32px, 4.5vw, 56px) var(--section-y); }
.hero__top { display: grid; grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr); gap: var(--sp-5) var(--gap); align-items: start; }
.hero__title { font-size: var(--fs-display); font-weight: var(--fw-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); max-width: 17ch; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 44ch; text-wrap: pretty; }
.hero__actions { margin-top: var(--sp-5); }
.hero__note { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--s-muted); }
/* блок о себе — белый лист на тёмном поле. Ряды общие: фото вровень с текстом, факты вровень со шкалами */
.profile { display: grid; grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr); grid-template-areas: "photo story" "facts skills"; margin-top: clamp(28px, 3.5vw, 44px); border-radius: var(--r-m); overflow: hidden; }
.profile__photo { grid-area: photo; min-height: 360px; border-right: var(--line); border-radius: 0; } /* угол фото — угол листа: лист обрезает */
.profile__photo img { position: absolute; inset: 0; }
.profile__story { grid-area: story; min-width: 0; }
.profile__facts { grid-area: facts; display: flex; flex-direction: column; border-top: var(--line); border-right: var(--line); }
.profile__name { padding: var(--sp-4) var(--cell-x); }
/* два заголовка листа равны: имя в фактах и «Компетенции» — один кегль и начертание, одна линия сверху */
.profile__name, .skills__title { font-size: var(--fs-h3); font-weight: var(--fw-heavy); line-height: 1.15; letter-spacing: -0.01em; }
/* факты крупными числами: «В маркетинге с / 2005 / года» читается сверху вниз одной фразой */
.facts { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--bw-thin); margin: 0; background: var(--s-line); border-top: var(--line); }
.facts__item { display: flex; flex-direction: column; padding: var(--cell-y) var(--cell-x); background: var(--s-surface); }
.facts dt { font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); line-height: 1.3; color: var(--s-muted); }
.facts dd { margin-top: auto; padding-top: var(--sp-3); font-family: var(--font-data); font-size: var(--fs-ui); font-weight: var(--fw-semibold); line-height: 1.25; }
.facts__num { display: block; margin-bottom: 2px; font-size: var(--fs-facts); font-weight: var(--fw-bold); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.facts__book { font-family: var(--font-text); font-weight: var(--fw-bold); line-height: 1.3; }
.story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-7); padding: var(--sp-6); font-size: var(--fs-ui); line-height: 1.55; }
.story p + p { margin-top: 0.8em; }
.story__lead { font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.story__theses-title { font-weight: var(--fw-bold); }
.story__note { margin-top: var(--sp-3); font-family: var(--font-data); font-size: var(--fs-label); color: var(--s-muted); }
.dash-list { list-style: none; margin-top: var(--sp-2); }
.dash-list li { position: relative; padding-left: 1.2em; }
.dash-list li + li { margin-top: var(--sp-2); }
.dash-list li::before { content: "—"; position: absolute; left: 0; color: var(--s-muted); }
/* шкалы компетенций: 10 сегментов, закрашенные — синий средней светлоты, пустые — лёд с линией 1 px; число рядом */
.skills { grid-area: skills; padding: var(--sp-4) var(--sp-6) var(--sp-6); border-top: var(--line); }
.skills__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--sp-6); margin-top: var(--sp-3); }
.skill { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; gap: var(--sp-2) var(--sp-3); padding: var(--cell-y) 0; border-top: var(--line); }
.skill__name { grid-column: 1 / -1; align-self: end; font-size: var(--fs-small); font-weight: var(--fw-semibold); line-height: 1.3; }
.skill__scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; align-self: center; height: 12px; }
.skill__scale i { background: var(--s-scale-off); border: var(--bw-thin) solid var(--s-line); }
.skill__scale .is-on { background: var(--s-scale-on); border-color: var(--s-scale-on); }
.skill__value { min-width: 3em; font-family: var(--font-data); font-size: var(--fs-ui); font-weight: var(--fw-bold); text-align: right; font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 1100px) {
  .profile { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .story { grid-template-columns: 1fr; }
  .skills__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero__top { grid-template-columns: 1fr; }
  .hero__title { max-width: none; }
  .profile { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); grid-template-areas: "photo facts" "story story" "skills skills"; }
  .profile__photo { min-height: 0; aspect-ratio: 4 / 5; }
  .profile__facts { border-top: 0; border-right: 0; }
  .profile__story { border-top: var(--line); }
  .story, .skills { padding-inline: var(--cell-x); }
}
@media (max-width: 520px) {
  .profile { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "facts" "story" "skills"; }
  .profile__photo { aspect-ratio: 4 / 3; border-right: 0; }
  .profile__facts { border-top: var(--line); }
  .skills__list { grid-template-columns: 1fr; }
}

/* ---------- Список болей с отметками ---------- */
/* табличный формат: колонка «что проверю» — последние 2/6 строки, как числовые колонки таблиц */
.checklist__head,
.checklist__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) calc(2 * var(--col)); }
.checklist__head { padding: var(--sp-2) 0; border-bottom: var(--rule); font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); }
.checklist__row { padding: var(--cell-y) 0; border-bottom: var(--line); align-items: start; }
.checklist__head > :nth-child(2), .checklist__q { padding-right: var(--cell-x); }
.checklist__head > :nth-child(3), .checklist__what { padding-left: var(--cell-x); }
.checklist__box { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--s-text); cursor: pointer; }
.checklist__q { font-size: var(--fs-h4); font-weight: 650; line-height: var(--lh-snug); text-indent: -0.4em; }
.checklist__q a { text-decoration-color: var(--s-line); }
.checklist__what { font-size: var(--fs-ui); line-height: 1.45; color: var(--s-muted); text-wrap: balance; }
.checklist__what-label { display: none; font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); }
.checklist__tip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-5); font-weight: var(--fw-semibold); }
.checklist__tip .btn { display: none; }
/* короткая заявка под списком: одна строка полей на белом листе; отмеченные пункты скрипт добавляет в «Коротко о задаче» */
.quick { margin-top: var(--sp-6); padding: var(--sp-4) var(--cell-x); border: var(--rule); border-radius: var(--r-m); }
.quick__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-4); margin-bottom: var(--sp-3); }
.quick__title { font-size: var(--fs-h4); font-weight: var(--fw-heavy); }
.quick__hint { font-size: var(--fs-small); color: var(--s-muted); }
.quick__hint-two { display: none; color: var(--s-text); font-weight: var(--fw-semibold); }
.no-js .quick__hint-base { display: none; }
.checklist__row:has(:checked) ~ .checklist__row:has(:checked) ~ .quick .quick__hint-base { display: none; }
.checklist__row:has(:checked) ~ .checklist__row:has(:checked) ~ .quick .quick__hint-two { display: inline; }
.quick__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--sp-3); align-items: end; }
/* согласие — перед кнопкой и по чтению, и на экране: поля → галочка → «Отправить» → строка об ответе */
.quick__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-4); }
.quick__note { grid-column: 1 / -1; font-family: var(--font-data); font-size: var(--fs-label); color: var(--s-muted); }
.krc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* ловушки для роботов — как в теме */
@media (max-width: 960px) {
  .quick__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick__row .quick__task { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .quick__row, .quick__foot { grid-template-columns: minmax(0, 1fr); } .quick__foot .btn { width: 100%; } }
/* отметили два пункта и больше — совет превращается в кнопку */
.checklist__row:has(:checked) ~ .checklist__row:has(:checked) ~ .checklist__tip .btn { display: inline-flex; }
@media (max-width: 700px) {
  .checklist { border-top: var(--rule); } /* шапка скрыта — тёмная линия переходит наверх */
  .checklist__head { display: none; }
  .checklist__row { grid-template-columns: 36px minmax(0, 1fr); }
  .checklist__q { padding-right: 0; }
  .checklist__what { grid-column: 2; margin-top: 6px; padding-left: 0; }
  .checklist__what-label { display: block; }
  .checklist__what { hyphens: auto; } /* цитату не переносим по слогам */
}

/* ---------- «Думают так, на деле иначе»: карточки по 3 в ряд, на планшете 2, на телефоне 1 ---------- */
/* карточки в рамке 1 px через промежуток; части карточек стоят на общей подсетке, поэтому «На деле» начинается вровень во всём ряду */
.myths { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.myths__card { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; background: var(--s-surface); border: var(--line); border-radius: var(--r-m); overflow: hidden; }
/* верх карточки — белый лист (.myths__part.sheet): тёмный текст, гильош не просвечивает; низ — лист бланка поля (surface). Между ними линия 1 px */
.myths__part { padding: var(--sp-5); }
.myths__part + .myths__part { border-top: var(--line); }
.myths__label { font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); }
.myths__belief { margin-top: var(--sp-2); text-indent: -0.4em; }
/* убеждение и первая фраза ответа — один кегль и начертание */
.myths__belief, .myths__fact b { font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-snug); color: var(--s-text); }
.myths__fact { margin-top: var(--sp-2); font-size: var(--fs-ui); line-height: 1.5; }
.myths__fact b { display: block; margin-bottom: var(--sp-2); }
@media (max-width: 1100px) { .myths { grid-template-columns: repeat(2, minmax(0, 1fr)); } .myths--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .myths { grid-template-columns: minmax(0, 1fr); } .myths__part { padding: var(--sp-4) var(--cell-x); } .myths__belief, .myths__fact { hyphens: manual; } }

/* ---------- Схема процесса: шаги слева направо со стрелками, на телефоне — сверху вниз ---------- */
/* без карточек: номер в плитке 48 × 48, от него к следующему шагу — линия 1 px и наконечник (37°, не 45°) */
.process {
  --arrow-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14'%3E%3Cpath d='M1.5 1.5L8.5 7L1.5 12.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
  --arrow-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M1.5 1.5L7 8.5L12.5 1.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.process__step { min-width: 0; padding-right: var(--sp-6); }
.process__step:last-child { padding-right: 0; }
.process__head { display: flex; align-items: center; margin-bottom: var(--sp-5); }
.process__n { flex: none; display: grid; place-items: center; width: 48px; height: 48px; margin-right: var(--sp-3); border-radius: var(--r-m); background: var(--s-text); color: var(--s-surface); font-family: var(--font-data); font-size: 1.375rem; font-weight: var(--fw-bold); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.process__step:not(:last-child) .process__head::before { content: ""; order: 2; flex: 1 1 auto; border-top: var(--bw-thin) solid var(--s-frame); }
.process__step:not(:last-child) .process__head::after { content: ""; order: 3; flex: none; width: 10px; height: 14px; margin: 0 calc(var(--sp-3) - var(--sp-6)) 0 -8.5px; background: var(--s-frame); -webkit-mask: var(--arrow-r) center / 10px 14px no-repeat; mask: var(--arrow-r) center / 10px 14px no-repeat; }
.process__title { font-size: var(--fs-h4); font-weight: var(--fw-heavy); line-height: var(--lh-snug); text-wrap: pretty; }
.process__text { margin-top: var(--sp-2); font-size: var(--fs-ui); line-height: 1.5; text-wrap: pretty; }
@media (max-width: 860px) {
  .process { grid-template-columns: minmax(0, 1fr); }
  .process__step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--sp-4); padding-right: 0; }
  .process__head { grid-row: 1 / span 2; flex-direction: column; margin-bottom: 0; }
  .process__n { margin-right: 0; }
  .process__title { display: flex; align-items: center; min-height: 48px; }
  .process__text { margin-top: var(--sp-1); padding-bottom: var(--sp-7); }
  .process__step:last-child .process__text { padding-bottom: 0; }
  .process__step:not(:last-child) .process__head::before { width: 0; margin-top: var(--sp-3); border-top: 0; border-left: var(--bw-thin) solid var(--s-frame); }
  .process__step:not(:last-child) .process__head::after { width: 14px; height: 10px; margin: -8.5px 0 var(--sp-3); -webkit-mask-image: var(--arrow-d); mask-image: var(--arrow-d); -webkit-mask-size: 14px 10px; mask-size: 14px 10px; }
}

/* шаги по времени: «до встречи», «0:20» — строками */
/* табличный формат без шапки: тёмная линия сверху; колонки 1/6 — 3/6 — 2/6 */
.timetable { list-style: none; border-top: var(--rule); }
.timetable__item { display: grid; grid-template-columns: var(--col) minmax(0, 1fr) calc(2 * var(--col)); gap: var(--sp-2) 0; padding: var(--cell-y) 0; border-bottom: var(--line); }
.timetable__item > * { padding-inline: var(--cell-x); }
.timetable__item > :first-child { padding-left: 0; }
.timetable__item > :last-child { padding-right: 0; }
.timetable__time { font-family: var(--font-data); font-size: var(--fs-value); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.timetable__time small { display: block; font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); }
.timetable__title { font-size: var(--fs-h4); }
.timetable__text { margin-top: 6px; line-height: 1.5; max-width: 56ch; }
.timetable__tool { font-size: var(--fs-small); line-height: 1.45; color: var(--s-muted); text-wrap: pretty; }
.timetable__tool b { color: var(--s-text); }
.timetable__note { margin-top: var(--sp-4); font-size: var(--fs-small); color: var(--s-muted); }
@media (max-width: 960px) {
  .timetable__item { grid-template-columns: 110px minmax(0, 1fr); }
  .timetable__tool { grid-column: 2; padding-left: var(--cell-x); }
}
@media (max-width: 520px) {
  .timetable__item { grid-template-columns: 1fr; }
  .timetable__item > * { padding-inline: 0; }
  .timetable__tool { grid-column: 1; padding-left: 0; }
}

/* ---------- Прейскурант ---------- */
.pricelist { width: 100%; table-layout: fixed; font-size: var(--fs-ui); }
.pricelist thead th { padding: var(--sp-2) var(--cell-x); border-bottom: var(--rule); font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); text-align: left; }
.pricelist thead th:last-child { text-align: right; }
.pricelist thead th:nth-child(-n+2) { width: calc(2 * var(--col)); }
.pricelist thead th:nth-child(n+3) { width: var(--col); }
.pricelist__group th { padding: var(--sp-5) 0 var(--sp-2); border-bottom: var(--line-ink); font-size: var(--fs-ui); font-weight: var(--fw-heavy); text-align: left; }
.pricelist td { padding: var(--cell-y) var(--cell-x); border-bottom: var(--line); vertical-align: top; line-height: 1.4; }
.pricelist__name { font-size: var(--fs-ui); font-weight: var(--fw-bold); }
.pricelist__name a { text-decoration-color: var(--s-line); }
.pricelist__cell--name .tag { margin-left: var(--sp-2); }
.pricelist__what { color: var(--s-muted); }
.pricelist__term { font-family: var(--font-data); white-space: nowrap; }
.pricelist__sum { text-align: right; font-family: var(--font-data); font-size: var(--fs-value); font-weight: var(--fw-bold); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.pricelist__per { display: block; font-size: var(--fs-label); font-weight: var(--fw-medium); color: var(--s-muted); }
.pricelist__row--start { background: var(--s-tint); }
/* прейскурант по группам: крупное название группы слева на все её строки, между группами — тёмная линия; «что на руках» — под названием */
.pricelist--groups thead th:nth-child(1) { width: var(--col); }
.pricelist--groups thead th:nth-child(2) { width: calc(3 * var(--col)); }
.pricelist--groups thead th:nth-child(n+3) { width: var(--col); }
.pricelist.pricelist--groups td:first-child { padding-left: var(--cell-x); }
.pricelist__label { padding: var(--cell-y) var(--cell-x) var(--sp-5) 0; text-align: left; vertical-align: top; }
.pricelist__group-title { display: block; font-size: var(--fs-h3); font-weight: var(--fw-heavy); line-height: 1.15; letter-spacing: -0.01em; }
.pricelist__group-note { display: block; margin-top: var(--sp-2); font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-medium); color: var(--s-muted); }
/* при слиянии границ верхняя ячейка главнее — поэтому тёмная линия идёт низом последней строки группы */
.pricelist--groups tbody:not(:last-child) > tr:last-child > td, .pricelist--groups tbody:not(:last-child) .pricelist__label { border-bottom: var(--rule); }
.pricelist--groups tbody:last-child .pricelist__label { border-bottom: var(--line); }
.pricelist--groups .pricelist__what { display: block; margin-top: 2px; }

.pricelist__caption { caption-side: bottom; padding-top: var(--sp-3); text-align: left; font-size: var(--fs-small); color: var(--s-muted); }
/* заметки к ценам — три плашки: заголовок карточки и текст; фон tint поля, линия 1 px, скругление 16 px */
.price-notes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-7); }
.price-notes__item { padding: var(--sp-5); background: var(--s-tint); border: var(--line); border-radius: var(--r-m); }
.price-notes__title { font-size: var(--fs-h4); font-weight: var(--fw-heavy); line-height: var(--lh-snug); }
.price-notes__text { margin-top: var(--sp-2); font-size: var(--fs-ui); line-height: 1.5; }
@media (max-width: 860px) { .price-notes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .pricelist thead { display: none; }
  .pricelist, .pricelist tbody, .pricelist tr, .pricelist td, .pricelist th { display: block; width: 100%; }
  .pricelist tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--sp-3); padding: var(--cell-y) 0; border-bottom: var(--line); }
  .pricelist td { padding: 0 !important; border: 0; }
  .pricelist__group { padding: 0 !important; border: 0 !important; }
  .pricelist__group th { grid-column: 1 / -1; padding: var(--sp-5) 0 var(--sp-2); }
  .pricelist__caption { display: block; padding: 0 0 var(--sp-3); }
  .pricelist__cell--what { grid-column: 1 / -1; grid-row: 2; }
  .pricelist__cell--term { grid-column: 1 / -1; grid-row: 3; color: var(--s-muted); }
  .pricelist__sum { grid-column: 2; grid-row: 1; }
  .pricelist .pricelist__row--start { padding-inline: var(--cell-x) !important; }
  .pricelist--groups tbody:not(:last-child) > tr:last-child > td, .pricelist--groups tbody:not(:last-child) .pricelist__label, .pricelist--groups tbody:last-child .pricelist__label { border: 0; }
  .pricelist--groups tbody:not(:last-child) > tr:last-child { border-bottom: var(--rule); }
  .pricelist--groups .pricelist__label { grid-column: 1 / -1; padding: var(--sp-3) 0 var(--sp-2) !important; }
  .pricelist--groups .pricelist__cell--term { grid-row: 2; }
  .pricelist--groups tr:has(.pricelist__label) > .pricelist__cell--name, .pricelist--groups tr:has(.pricelist__label) > .pricelist__sum { grid-row: 2; }
  .pricelist--groups tr:has(.pricelist__label) > .pricelist__cell--term { grid-row: 3; }
}

/* ---------- Кейс: бланк «было — стало» ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.case { display: flex; flex-direction: column; background: var(--s-surface); border: var(--line-ink); border-radius: var(--r-m); overflow: hidden; }
.case__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); padding: var(--cell-y) var(--cell-x); border-bottom: var(--rule); }
.case__title { font-size: var(--fs-h4); font-weight: var(--fw-heavy); }
.case__story { margin: 0; }
.case__story div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--sp-4); padding: var(--cell-y) var(--cell-x); border-bottom: var(--line); }
.case__story dt { font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); padding-top: 3px; }
.case__story dd { font-size: var(--fs-ui); line-height: 1.45; }
.case__table { width: 100%; table-layout: fixed; font-family: var(--font-data); font-size: var(--fs-ui); }
.case__table th { padding: var(--sp-2) var(--cell-x); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); text-align: right; border-bottom: var(--line-ink); }
/* карточка — половина строки, шестая доля в ней слишком узкая для «430 000 ₽»: числа по 1/4, название 1/2 */
.case__table th:first-child { text-align: left; width: calc(3 * var(--col)); }
.case__table th:nth-child(n+2) { width: calc(1.5 * var(--col)); }
.case__table td { padding: var(--cell-y) var(--cell-x); border-bottom: var(--line); text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.case__table td:first-child { text-align: left; font-family: var(--font-text); font-weight: var(--fw-semibold); white-space: normal; }
.case__was { color: var(--s-muted); }
.case__now { font-size: var(--fs-value); font-weight: var(--fw-bold); }
.case__foot { margin-top: auto; padding: var(--cell-y) var(--cell-x); font-family: var(--font-data); font-size: var(--fs-label); color: var(--s-muted); }
.logo-strip { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--bw-thin); margin-top: var(--gap); background: var(--s-line); border: var(--line); border-radius: var(--r-m); overflow: hidden; }
.logo-strip__cell { display: grid; place-items: center; min-height: 96px; padding: var(--sp-3); background: var(--s-surface); font-family: var(--font-data); font-size: var(--fs-label); color: var(--s-muted); text-align: center; }
@media (max-width: 1100px) { .cases { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .logo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-strip__cell { min-height: 72px; }
  .case__story div { grid-template-columns: 1fr; gap: 2px; }
  /* на телефоне доли не держатся: числа по ширине значения, название переносится */
  .case__table { table-layout: auto; }
  .case__table th:first-child, .case__table th:nth-child(n+2) { width: auto; }
}

/* ---------- Как я работаю: фото и пункты ---------- */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
.about__text { min-width: 0; }
.about__text p + p { margin-top: 1em; }
.about__disclosure { margin-top: var(--sp-6); padding: var(--sp-4) var(--cell-x); background: var(--s-tint); border-radius: var(--r-m); font-size: var(--fs-ui); line-height: 1.5; }
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .about .photo { max-width: 420px; }
}

/* ---------- Отзывы ---------- */

/* ---------- База знаний: темы и калькуляторы ---------- */
.kb { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; }
/* темы плиткой по 2 в ряд: число статей над названием, линии 1 px */
.topic-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bw-thin); border: var(--line); border-radius: var(--r-m); clip-path: inset(0 round var(--r-m)); }
.topic-list__item { background: var(--s-surface); box-shadow: 0 0 0 var(--bw-thin) var(--s-line); }
.topic-list__link { display: flex; flex-direction: column; height: 100%; padding: var(--sp-5); color: var(--s-text); text-decoration: none; transition: background-color var(--dur) ease; }
.topic-list__link:hover { background: var(--s-tint); text-decoration: none; }
.topic-list__count { order: -1; margin-bottom: var(--sp-3); font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); white-space: nowrap; }
.topic-list__title { font-size: var(--fs-h4); font-weight: var(--fw-heavy); line-height: 1.25; }
.topic-list__link:hover .topic-list__title { text-decoration: underline; text-decoration-thickness: var(--bw-rule); }
.topic-list__desc { margin-top: var(--sp-2); font-size: var(--fs-ui); line-height: 1.45; color: var(--s-muted); }
@media (max-width: 520px) { .topic-list { grid-template-columns: minmax(0, 1fr); } }
.tools { display: grid; gap: var(--sp-5); }
.tool-card { display: block; border: var(--line-ink); border-radius: var(--r-m); overflow: hidden; color: var(--s-text); text-decoration: none; transition: background-color var(--dur) ease; }
.tool-card:hover { background: var(--s-tint); text-decoration: none; }
.tool-card__head { display: block; padding: var(--cell-y) var(--cell-x); border-bottom: var(--rule); }
.tool-card__title { font-size: var(--fs-h4); font-weight: var(--fw-heavy); }
.tool-card__text { display: block; padding: var(--cell-y) var(--cell-x) 0; font-size: var(--fs-ui); line-height: 1.45; color: var(--s-muted); }
.tool-card .fields { margin: 12px 0 0; border-top: var(--line); }
.tool-card__go { display: block; padding: var(--cell-y) var(--cell-x); border-top: var(--line); font-weight: var(--fw-bold); text-decoration: underline; text-decoration-color: var(--s-frame); text-underline-offset: 0.22em; }
.tool-card:hover .tool-card__go { text-decoration-color: var(--s-text); }
@media (max-width: 960px) { .kb { grid-template-columns: 1fr; } }

/* ---------- Вопросы и ответы ---------- */
.faq { max-width: 880px; border-top: var(--rule); }
.faq__item { border-bottom: var(--line); }
.faq__q { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: var(--sp-4); padding: var(--sp-5) 0; font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-snug); list-style: none; cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { text-decoration: underline; text-decoration-color: var(--s-frame); text-underline-offset: 0.22em; }
.faq__icon { width: 18px; height: 18px; margin-top: 4px; }
.faq__item[open] .faq__icon-v { display: none; }
.faq__a { max-width: var(--measure); padding-bottom: var(--sp-5); line-height: 1.6; }
.faq__a p + p { margin-top: 0.8em; }

/* ---------- Заявка — последний экран: крупный заголовок и форма-лист на всю ширину контейнера ---------- */
.lead-block__title { font-size: var(--fs-h1); line-height: var(--lh-heading); letter-spacing: var(--ls-h1); text-wrap: balance; }
.lead-block--page { padding-top: clamp(24px, 3.5vw, 40px); }
.lead-block--page .crumbs { margin-bottom: var(--sp-5); }
.lead-form__body { display: grid; gap: var(--sp-5); padding: var(--sp-6); }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.lead-form textarea.field__input { min-height: 132px; }
/* согласие → кнопка и почта с Telegram рядом → строка об ответе; низ листа на tint */
.lead-form__foot { display: grid; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border-top: var(--line); background: var(--s-tint); }
.lead-form__send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }
.lead-form__alt { font-size: var(--fs-ui); line-height: 1.45; color: var(--s-muted); }
.lead-form__alt a { color: var(--s-text); font-weight: var(--fw-semibold); }
.lead-form__note { font-family: var(--font-data); font-size: var(--fs-label); color: var(--s-muted); }
/* формат — сегменты: ячейки в ряд (на телефоне 2 × 2), выбранная залита цветом текста; радиокнопка спрятана, фокус — на ячейке */
.segments { min-width: 0; margin: 0; padding: 0; border: 0; }
.segments__legend { margin-bottom: 6px; padding: 0; font-family: var(--font-data); font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.segments__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-3); }
.segment { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: var(--sp-3) var(--sp-4); background: var(--s-surface); border: var(--bw-thin) solid var(--s-frame); border-radius: var(--r-s); cursor: pointer; transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease; }
.segment input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.segment__name { font-size: var(--fs-ui); font-weight: var(--fw-bold); line-height: 1.3; white-space: nowrap; } /* «Экспресс-разбор» не рвётся на дефисе */
.segment__meta { margin-top: 2px; font-family: var(--font-data); font-size: var(--fs-small); color: var(--s-muted); }
.segment:hover { background: var(--s-tint); }
.segment:has(:checked) { background: var(--s-text); border-color: var(--s-text); color: var(--s-surface); }
.segment:has(:checked) .segment__meta { color: var(--s-line); } /* светлая подпись на тёмной ячейке: 10:1 */
.segment:has(:focus-visible) { outline: var(--focus-ring); outline-offset: 2px; }
@media (max-width: 700px) {
  .lead-form__body { padding: var(--sp-5) var(--cell-x); }
  .lead-form__row { grid-template-columns: minmax(0, 1fr); }
  .lead-form__foot { padding: var(--sp-5) var(--cell-x); }
  .lead-form__send .btn { width: 100%; }
  .segment { padding: var(--sp-3); }
}
.lead-form { border: var(--rule); background: var(--s-surface); border-radius: var(--r-m); overflow: hidden; }
.field { min-width: 0; }
.field__label { display: block; margin-bottom: 6px; font-family: var(--font-data); font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.field__input {
  width: 100%; min-height: var(--control-h); padding: 13px 14px;
  background: var(--s-surface); color: var(--s-text);
  border: var(--bw-thin) solid var(--s-frame); border-radius: var(--r-s);
  font-size: var(--fs-ui); line-height: 1.4;
}
textarea.field__input { min-height: 112px; resize: vertical; }
.field__input::placeholder { color: var(--s-muted); opacity: 1; }
.field__input:focus { outline: var(--focus-ring); outline-offset: 1px; border-color: var(--s-text); }
.field__hint { margin-top: 6px; font-size: var(--fs-small); color: var(--s-muted); }
.field--error .field__input { background: var(--s-signal-tint); border-color: var(--s-signal); }
.field__error { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--s-signal); }
.field__error svg { flex: none; width: 14px; height: 14px; margin-top: 3px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); line-height: 1.45; color: var(--s-muted); }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--s-text); }

/* ---------- Заказ: мост к услуге и блок цены ---------- */
.order { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--s-surface); border: var(--rule); border-radius: var(--r-m); overflow: hidden; }
.order__text { padding: var(--sp-6); border-right: var(--line-ink); }
.order__title { font-size: var(--fs-h2); }
.order__desc { margin-top: 10px; color: var(--s-muted); line-height: 1.5; }
.order__panel { display: flex; flex-direction: column; }
.order__panel .fields { border-bottom: var(--line); }
.order__text .includes { margin-top: var(--sp-5); }
.order__go { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); padding: var(--cell-x); }
.order__note { font-size: var(--fs-small); color: var(--s-muted); }
@media (max-width: 960px) {
  .order { grid-template-columns: 1fr; }
  .order__text { border-right: 0; border-bottom: var(--line-ink); }
}
@media (max-width: 700px) { .order__go .btn { width: 100%; } }

/* что входит: отмеченные пункты бланка */
.includes { list-style: none; display: grid; gap: var(--sp-2); }
.includes__item { position: relative; padding-left: 26px; line-height: 1.45; }
.includes__item::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 14px; height: 14px; border: var(--bw-rule) solid var(--s-text); }
.includes__item::after { content: ""; position: absolute; left: 4px; top: calc(0.3em + 4px); width: 6px; height: 6px; background: var(--s-text); }

/* ---------- Страница услуги: первый экран ---------- */
.page-head { padding-block: clamp(24px, 3.5vw, 40px) 0; }
.page-head__title { margin-top: var(--sp-4); font-size: var(--fs-display); font-weight: var(--fw-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); max-width: 20ch; }
.page-head__lead { margin-top: var(--sp-5); font-size: var(--fs-lead); line-height: 1.45; max-width: var(--measure-short); text-wrap: pretty; }
.service-hero { padding-bottom: var(--section-y); }
.service-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; margin-top: var(--sp-2); }
.service-hero__order { margin-top: var(--sp-7); }
.service-hero__order { border: var(--line-ink); background: var(--s-surface); border-radius: var(--r-m); overflow: hidden; }
.service-hero__order .fields { border-bottom: var(--line); }
.service-hero__order .actions { padding: var(--cell-x); }
.service-hero__aside .photo + p { margin-top: var(--sp-2); font-family: var(--font-data); font-size: var(--fs-label); color: var(--s-muted); }
@media (max-width: 960px) { .service-hero__grid { grid-template-columns: 1fr; } }

/* ---------- Пункты с заголовком: «Кому не подойдёт», «Как я работаю» ---------- */
/* табличный формат без шапки: две колонки по 3/6, линии строк сквозные */
/* плитка 2 × 2: ячейки на цвете листа поля, линии 1 px; пустая ячейка остаётся цветом раздела */
.points { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bw-thin); border: var(--line); border-radius: var(--r-m); clip-path: inset(0 round var(--r-m)); }
.points__item { padding: var(--sp-5); background: var(--s-surface); box-shadow: 0 0 0 var(--bw-thin) var(--s-line); }
.section__lead + .points, .section__title + .points { margin-top: var(--sp-6); }
/* те же пункты отдельными карточками: 4 в ряд (или 3), на планшете 2, на телефоне 1 */
.points--cards { --points-cols: 4; grid-template-columns: repeat(var(--points-cols), minmax(0, 1fr)); gap: var(--sp-5); border: 0; border-radius: 0; clip-path: none; }
.points--3 { --points-cols: 3; }
.points--cards .points__item { display: flex; flex-direction: column; border: var(--line); border-radius: var(--r-m); box-shadow: none; }
.points__label { margin-bottom: var(--sp-2); font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); }
.points--3 .points__text:last-child { margin-top: auto; padding-top: var(--sp-3); } /* «С чего начать»: ответ — внизу карточки, вровень по ряду */
@media (max-width: 1100px) { .points--cards { --points-cols: 2; } .points--3 { --points-cols: 1; } }
@media (max-width: 700px) { .points--cards { --points-cols: 1; } }
.points__title { font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.points__text { margin-top: var(--sp-2); font-size: var(--fs-ui); line-height: 1.5; color: var(--s-muted); }
@media (max-width: 700px) { .points { grid-template-columns: minmax(0, 1fr); } .points__item { padding: var(--sp-4) var(--cell-x); } }

/* ---------- Таблица данных: в тексте статьи и на страницах ---------- */
.table,
.prose .wp-block-table table { width: 100%; table-layout: fixed; font-family: var(--font-data); font-size: var(--fs-ui); line-height: 1.35; font-variant-numeric: tabular-nums lining-nums; }
.table caption,
.prose .wp-block-table caption { caption-side: top; padding-bottom: var(--sp-3); font-family: var(--font-text); font-size: var(--fs-ui); font-weight: var(--fw-heavy); text-align: left; }
.table th, .table td,
.prose .wp-block-table th, .prose .wp-block-table td { padding: var(--cell-y) var(--cell-x); text-align: left; vertical-align: top; }
.table thead th,
.prose .wp-block-table thead th { padding-block: var(--sp-2); border-bottom: var(--rule); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); letter-spacing: var(--ls-label); vertical-align: bottom; }
.table tbody tr,
.prose .wp-block-table tbody tr { border-bottom: var(--line); }
.table tbody th,
.prose .wp-block-table tbody th { font-family: var(--font-text); font-weight: var(--fw-bold); }
.table .has-text-align-right,
.prose .wp-block-table .has-text-align-right { text-align: right; }
.table thead th:first-child,
.prose .wp-block-table thead th:first-child { width: calc(2 * var(--col)); }
/* таблица без рамки: крайние ячейки без внешнего отступа — текст по краю колонки страницы */
.pricelist :is(th, td):first-child, .table :is(th, td):first-child, .prose .wp-block-table :is(th, td):first-child { padding-left: 0; }
.pricelist :is(th, td):last-child, .table :is(th, td):last-child, .prose .wp-block-table :is(th, td):last-child { padding-right: 0; }
.pricelist .pricelist__row--start td:first-child { padding-left: var(--cell-x); }
.pricelist .pricelist__row--start td:last-child { padding-right: var(--cell-x); }
.prose .wp-block-table figcaption { margin-top: var(--sp-2); font-family: var(--font-data); font-size: var(--fs-small); color: var(--s-muted); }
@media (max-width: 700px) {
  .table { font-size: var(--fs-small); }
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td, .table--stack th { display: block; width: 100%; }
  .table--stack tr { padding: var(--cell-y) 0; }
  .table--stack th, .table--stack td { padding: 2px 0; }
  .table--stack td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); }
}

/* ---------- Статья: шапка ---------- */
.article-head { padding-block: clamp(24px, 3.5vw, 40px) clamp(32px, 4vw, 48px); border-bottom: var(--line); }
.article-head__title { margin-top: var(--sp-4); font-size: var(--fs-h1); max-width: 24ch; }
.article-head__lead { margin-top: var(--sp-5); font-size: var(--fs-lead); line-height: 1.5; max-width: 58ch; text-wrap: pretty; }
.meta { display: inline-grid; grid-auto-flow: column; margin-top: var(--sp-5); border: var(--line); border-radius: var(--r-m); overflow: hidden; }
.meta__item { padding: var(--cell-y) var(--cell-x); border-right: var(--line); }
.meta__item:last-child { border-right: 0; }
.meta dt { font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); }
.meta dd { font-size: var(--fs-small); font-weight: var(--fw-semibold); }
@media (max-width: 700px) {
  .meta { display: grid; grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .meta__item:nth-child(2n) { border-right: 0; }
  .meta__item:nth-child(n+3) { border-top: var(--line); }
}

/* ---------- Статья: колонки «оглавление — текст — поля» ---------- */
.article-layout { display: grid; grid-template-columns: var(--toc-w) minmax(0, 1fr) var(--notes-w); column-gap: var(--sp-8); align-items: start; padding-block: var(--sp-9) var(--section-y); }
.article-layout__toc { position: sticky; top: var(--sp-6); }
.article-layout__body .prose { max-width: none; }
.article-layout__end { grid-column: 2 / -1; display: grid; gap: var(--sp-10); margin-top: var(--sp-10); }
@media (max-width: 1279px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) var(--notes-w); }
  .article-layout__toc { position: static; grid-column: 1; margin-bottom: var(--sp-7); }
  .article-layout__body { grid-column: 1; }
  .article-layout__end { grid-column: 1 / -1; }
}
@media (max-width: 999px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); padding-top: var(--sp-7); }
}

/* оглавление */
.toc { font-family: var(--font-data); }
.toc__title { display: block; padding-bottom: var(--sp-2); border-bottom: var(--rule); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); list-style: none; }
.toc__title::-webkit-details-marker { display: none; }
.toc__list { list-style: none; counter-reset: toc; }
.toc__item { border-bottom: var(--line); }
.toc__link { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; padding: 9px 0; font-size: var(--fs-small); line-height: 1.35; color: var(--s-text); text-decoration: none; }
.toc__link::before { counter-increment: toc; content: counter(toc); font-weight: var(--fw-bold); color: var(--s-muted); }
.toc__link:hover { text-decoration: underline; }
@media (max-width: 1279px) {
  .toc { max-width: var(--measure); border: var(--line-ink); border-radius: var(--r-m); padding: 0 var(--sp-4) var(--sp-2); }
  .toc__title { padding: 12px 0; cursor: pointer; font-size: var(--fs-ui); color: var(--s-text); font-weight: var(--fw-bold); }
  .toc__item:last-child { border-bottom: 0; }
}

/* заметка на полях: на широком экране — в правой колонке, на узком — под абзацем */
.sidenote { font-size: var(--fs-small); line-height: 1.5; color: var(--s-muted); }
.sidenote__term { color: var(--s-text); font-weight: var(--fw-bold); }
.sidenote a { color: var(--s-text); }
@media (min-width: 1000px) {
  .prose .sidenote { float: right; clear: right; position: relative; width: var(--notes-w); margin: 0.3em calc(-1 * (var(--notes-w) + var(--sp-8))) 0 0; padding-top: var(--sp-2); border-top: var(--line-ink); }
}
@media (max-width: 999px) {
  .prose .sidenote { margin-block: 1em; padding-top: var(--sp-3); border-top: var(--line); }
}

/* цитата: в WordPress — блок «Выделенная цитата» */
.pullquote,
.prose .wp-block-pullquote { margin-block: 1.8em; padding: var(--sp-5) 0; border-top: var(--rule); border-bottom: var(--line); }
.pullquote p,
.prose .wp-block-pullquote p { font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: var(--lh-snug); letter-spacing: -0.01em; text-wrap: balance; }
.pullquote cite,
.prose .wp-block-pullquote cite { display: block; margin-top: var(--sp-2); font-family: var(--font-data); font-size: var(--fs-small); font-style: normal; color: var(--s-muted); }
.prose .wp-block-pullquote blockquote { padding: 0; }

/* резюме в конце статьи */
.summary { margin-top: 2em; padding: var(--sp-4) var(--cell-x); border: var(--rule); border-radius: var(--r-m); }
.prose .summary h2 { margin: 0; font-size: var(--fs-h4); font-weight: var(--fw-heavy); }
.summary ul, .summary ol { margin-top: 10px; padding-left: 1.2em; }
.summary li + li { margin-top: 6px; }

/* бланк внутри текста */
.prose .blank { margin-block: 1.8em; }
/* широкий блок: бланк или таблица на текст и поля — шестые доли остаются читаемыми. В WordPress — выравнивание «По ширине» */
@media (min-width: 1000px) {
  .prose .alignwide { clear: right; margin-right: calc(-1 * (var(--notes-w) + var(--sp-8))); }
}

/* автор */
.author-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--sp-5); padding: var(--sp-6) 0; border-top: var(--rule); border-bottom: var(--line); }
.author-card__name { font-size: var(--fs-h4); font-weight: var(--fw-heavy); }
.author-card__text { margin-top: 6px; line-height: 1.55; max-width: 60ch; }
.author-card__links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-3); font-weight: var(--fw-semibold); }
@media (max-width: 520px) { .author-card { grid-template-columns: 72px minmax(0, 1fr); gap: var(--sp-4); } }

/* похожие материалы */
.related { list-style: none; border-top: var(--rule); }
.related__item { border-bottom: var(--line); }
.related__link { display: grid; grid-template-columns: var(--col) minmax(0, 1fr) auto; gap: var(--sp-1) var(--cell-x); align-items: baseline; padding: var(--cell-y) 0; text-decoration: none; }
.related__type { font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); }
.related__title { font-size: var(--fs-ui); font-weight: var(--fw-bold); line-height: 1.35; }
.related__link:hover .related__title { text-decoration: underline; text-decoration-thickness: var(--bw-rule); }
.related__time { font-family: var(--font-data); font-size: var(--fs-small); color: var(--s-muted); white-space: nowrap; }
@media (max-width: 700px) {
  .related__link { grid-template-columns: minmax(0, 1fr) auto; }
  .related__type { grid-column: 1 / -1; }
}
.article-end__title { margin-bottom: var(--sp-5); font-size: var(--fs-h3); }

/* ---------- Подвал ---------- */
.site-footer { padding-block: var(--sp-10) var(--sp-7); }
.site-footer a { color: var(--s-text); text-decoration-color: var(--s-frame); }
.site-footer a:hover { text-decoration-color: var(--s-text); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: var(--gap); }
.site-footer__about { margin-top: var(--sp-4); max-width: 36ch; font-size: var(--fs-small); line-height: 1.5; color: var(--s-muted); }
.site-footer__title { margin-bottom: var(--sp-3); font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); }
.site-footer__list { list-style: none; display: grid; gap: var(--sp-2); font-size: var(--fs-ui); }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-7); margin-top: var(--sp-9); padding-top: var(--sp-5); border-top: var(--bw-thin) solid var(--s-line); font-size: var(--fs-small); color: var(--s-muted); }
.site-footer__bottom a { color: var(--s-muted); }
/* «Настройки cookie»: кнопка выглядит как соседние ссылки; показывает её скрипт уведомления (ядро, inc/metrika.php). */
.site-footer__cookie { padding: 0; border: 0; background: none; font: inherit; color: var(--s-muted); cursor: pointer; text-decoration-line: underline; text-decoration-thickness: var(--bw-thin); text-decoration-color: var(--s-frame); text-underline-offset: 0.22em; }
.site-footer__cookie:hover { text-decoration-color: var(--s-text); text-decoration-thickness: var(--bw-rule); }
.site-footer__cookie[hidden] { display: none; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Подсказка по ширине: «Справа — …» на широком, «Под каждым пунктом — …» на узком ---------- */
.text-narrow { display: none; }
@media (max-width: 700px) { .text-wide { display: none; } .text-narrow { display: inline; } } /* 700 px — список болей и таблицы становятся карточками */

/* ---------- Страница «Обо мне» ---------- */
/* первый экран на песке: имя, роль и действие слева, портрет 4:5 справа */
.about-hero { padding-block: clamp(24px, 3.5vw, 40px) var(--section-y); }
.about-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-6) var(--gap); align-items: center; margin-top: var(--sp-5); }
.about-hero__title { font-size: var(--fs-display); font-weight: var(--fw-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
.about-hero__role { margin-top: var(--sp-4); max-width: 26ch; font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: var(--lh-snug); text-wrap: balance; }
.about-hero__lead { margin-top: var(--sp-4); max-width: 46ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--s-muted); text-wrap: pretty; }
.about-hero .actions { margin-top: var(--sp-6); }
.about-hero__note { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--s-muted); }
.about-hero__photo { aspect-ratio: 4 / 5; }
@media (max-width: 960px) {
  .about-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .about-hero__photo { max-width: 480px; }
}

/* цифры строкой: подпись поля сверху, крупное число, пояснение; между ячейками линии 1 px */
.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: var(--rule); border-bottom: var(--line); }
.ledger__item { display: flex; flex-direction: column; padding: var(--sp-5) var(--cell-x) var(--sp-6); border-left: var(--line); }
.ledger__item:first-child { padding-left: 0; border-left: 0; }
.ledger dt { font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); }
.ledger dd { margin-top: var(--sp-3); font-size: var(--fs-ui); line-height: 1.45; color: var(--s-muted); }
.ledger__num { display: block; margin-bottom: var(--sp-2); font-family: var(--font-data); font-size: var(--fs-ledger); font-weight: var(--fw-bold); line-height: 1; letter-spacing: -0.02em; color: var(--s-text); font-variant-numeric: lining-nums; }
@media (max-width: 960px) {
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .ledger__item:nth-child(n+3) { border-top: var(--line); }
}
@media (max-width: 520px) {
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger__item, .ledger__item:nth-child(3) { padding-inline: 0; border-left: 0; }
  .ledger__item + .ledger__item { border-top: var(--line); }
}

/* рассказ: неформальное фото слева, текст владельца в колонке чтения справа */
.story-page { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
.story-page__photo { position: sticky; top: var(--sp-6); aspect-ratio: 3 / 4; }
.story-page__text { min-width: 0; }
.story-page__text .prose { margin-top: var(--sp-5); }
.prose .story-page__lead { font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: 1.3; text-wrap: pretty; }
.prose .story__theses-title { margin-top: 1.6em; font-weight: var(--fw-bold); }
.prose .dash-list { padding-left: 0; }
.prose .story__note { margin-top: var(--sp-4); }
@media (max-width: 960px) {
  .story-page { grid-template-columns: minmax(0, 1fr); }
  .story-page__photo { position: static; max-width: 420px; }
}

/* компетенции бланком: направление 3/6, шкала 2/6, балл 1/6 */
.blank__table--skills th:nth-child(1) { width: calc(3 * var(--col)); }
.blank__table--skills th:nth-child(2) { width: calc(2 * var(--col)); }
.blank__table--skills th:nth-child(3) { width: var(--col); }
.blank__table--skills .skill__scale { max-width: 260px; }
@media (max-width: 700px) {
  .blank__table--skills .blank__cell--name { grid-column: 1; }
  .blank__table--skills .blank__cell--value { grid-column: 2; grid-row: 1; justify-self: end; }
  .blank__table--skills .blank__cell--meter { grid-column: 1 / -1; }
  .blank__table--skills .skill__scale { max-width: none; }
}

/* агентство: заявление слева, две ячейки «здесь / в агентстве» справа */
.agency { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-5) var(--gap); align-items: start; }
.agency__text { max-width: 56ch; font-size: var(--fs-lead); line-height: 1.5; }
.agency .fields { margin-top: var(--sp-5); --fields-r: var(--r-m); }
@media (max-width: 960px) { .agency { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .agency .fields { --fields-cols: 1; } }

/* выступления и публикации: плитка; блок показывается, когда владелец утвердит список */
.press { margin-top: var(--sp-10); padding-top: var(--sp-8); border-top: var(--line); }
.press__draft { padding: var(--sp-4); border: var(--line-dash); border-radius: var(--r-m); }
.press__draft-note { margin-bottom: var(--sp-4); font-size: var(--fs-small); color: var(--s-muted); }
.press__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--bw-thin); border: var(--line); border-radius: var(--r-m); clip-path: inset(0 round var(--r-m)); }
/* вложенный угол: внутренний радиус = внешний − отступ (16 − 16), но не меньше малого радиуса */
.press__draft .press__list { border-radius: var(--r-s); clip-path: inset(0 round var(--r-s)); }
.press__item { display: flex; flex-direction: column; padding: var(--sp-5); background: var(--s-surface); box-shadow: 0 0 0 var(--bw-thin) var(--s-line); }
.press__outlet { font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); }
.press__title { margin-top: var(--sp-2); font-size: var(--fs-ui); font-weight: var(--fw-bold); line-height: 1.4; }
.press__title a { color: var(--s-text); }
.press__meta { margin-top: auto; padding-top: var(--sp-3); font-family: var(--font-data); font-size: var(--fs-label); color: var(--s-muted); }
@media (max-width: 960px) { .press__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .press__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Хаб «Услуги» ---------- */
.hub-head { padding-bottom: var(--section-y); }
.hub-head__actions { margin-top: var(--sp-6); }
/* три группы ссылками на первом экране: название, что внутри, цена «от» */
.groups-nav { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-8); }
.groups-nav__link { display: flex; flex-direction: column; height: 100%; padding: var(--sp-5); background: var(--s-surface); border: var(--line); border-radius: var(--r-m); color: var(--s-text); text-decoration: none; transition: background-color var(--dur) ease; }
.groups-nav__link:hover { background: var(--s-tint); text-decoration: none; }
.groups-nav__title { font-size: var(--fs-h3); font-weight: var(--fw-heavy); line-height: 1.15; }
.groups-nav__note { margin-top: var(--sp-2); font-size: var(--fs-ui); line-height: 1.45; color: var(--s-muted); }
.groups-nav__price { margin-top: auto; padding-top: var(--sp-4); font-family: var(--font-data); font-size: var(--fs-value); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 860px) { .groups-nav { grid-template-columns: minmax(0, 1fr); } }

/* карточка услуги — вся ссылка: название, что получаете, для кого, срок и цена, переход */
.service-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.service-card { display: flex; flex-direction: column; height: 100%; background: var(--s-surface); border: var(--line-ink); border-radius: var(--r-m); overflow: hidden; color: var(--s-text); text-decoration: none; transition: background-color var(--dur) ease; }
.service-card:hover { background: var(--s-tint); text-decoration: none; }
.service-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-3); padding: var(--sp-5) var(--sp-5) 0; }
.service-card__title { font-size: var(--fs-h3); font-weight: var(--fw-heavy); line-height: 1.15; }
.service-card__what { display: block; padding: var(--sp-3) var(--sp-5) 0; font-size: var(--fs-body); line-height: 1.45; }
.service-card__for { display: block; padding: var(--sp-4) var(--sp-5) var(--sp-5); font-size: var(--fs-ui); line-height: 1.5; color: var(--s-muted); }
.service-card__label { display: block; margin-bottom: 2px; font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); }
.service-card .fields { margin-top: auto; border-top: var(--line); }
.service-card .fields dd.service-card__price { font-family: var(--font-data); font-size: var(--fs-value); font-weight: var(--fw-bold); }
.service-card__go { display: block; padding: var(--cell-y) var(--sp-5); border-top: var(--line); font-weight: var(--fw-bold); text-decoration: underline; text-decoration-color: var(--s-frame); text-underline-offset: 0.2em; }
.service-card:hover .service-card__go { text-decoration-color: var(--s-text); }
@media (max-width: 860px) { .service-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Калькулятор «Сложный процент в воронке» ---------- */
/* белый лист в рамке 1 px: слева два выбора, справа результат строкой бланка — подпись, крупное число, «в X,XX раза»,
   пояснение; внизу мост к экспресс-разбору. Формула и округление — в assets/calc.js и DESIGN.md */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: var(--rule); border-radius: var(--r-m); overflow: hidden; }
.calc__inputs { display: grid; gap: var(--sp-5); align-content: start; padding: var(--sp-6); }
.calc__result { padding: var(--sp-6); border-left: var(--line); }
.calc__label { font-family: var(--font-data); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--s-muted); }
.calc__value { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-4); margin-top: var(--sp-2); }
.calc__value output { font-family: var(--font-data); font-size: var(--fs-ledger); font-weight: var(--fw-bold); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.calc__ratio { font-family: var(--font-data); font-size: var(--fs-h3); font-weight: var(--fw-semibold); color: var(--s-muted); white-space: nowrap; }
.calc__note { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: var(--line); max-width: 54ch; font-size: var(--fs-ui); line-height: 1.5; }
.calc__note b { font-family: var(--font-data); font-variant-numeric: tabular-nums lining-nums; }
.calc__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-5); padding: var(--sp-4) var(--sp-6); border-top: var(--line); background: var(--s-tint); }
.calc__bridge { font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
/* выбор из списка: своя стрелка вместо системной, поле как у формы — 52 px, рамка 1 px, скругление 8 px */
.select { --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M1.5 1.5L7 8.5L12.5 1.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E"); position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; font-family: var(--font-data); font-size: var(--fs-body); font-weight: var(--fw-semibold); cursor: pointer; }
.select::after { content: ""; position: absolute; top: 50%; right: 16px; width: 14px; height: 10px; margin-top: -5px; background: var(--s-text); -webkit-mask: var(--chevron) center / 14px 10px no-repeat; mask: var(--chevron) center / 14px 10px no-repeat; pointer-events: none; }
@media (max-width: 860px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__inputs, .calc__result { padding: var(--sp-5) var(--cell-x); }
  .calc__result { border-left: 0; border-top: var(--line); }
  .calc__foot { padding: var(--sp-4) var(--cell-x); }
  .calc__foot .btn { width: 100%; }
}

/* ---------- Отзывы: карусель скриншотов ---------- */
/* карточки одного формата 1 : 1 — скриншот вписан в сам файл (640 × 640); по 3 на компьютере, по 2 на планшете,
   на телефоне одна и край следующей. Без скрипта — прокрутка вбок со scroll-snap и тонкой полосой прокрутки;
   со скриптом (assets/carousel.js) — стрелки, клавиши ← →, свайп и круг без конца; автопрокрутки нет */
.reviews-carousel__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4) var(--sp-6); margin-bottom: var(--stack-head); }
.reviews-carousel__top .section__head { margin-bottom: 0; }
.reviews-carousel__controls { display: flex; gap: var(--sp-3); }
.reviews-carousel__controls[hidden] { display: none; }
.reviews-carousel__btn { display: inline-grid; place-items: center; width: var(--control-h); height: var(--control-h); padding: 0; background: transparent; color: var(--s-text); border: var(--line-ink); border-radius: var(--r-s); cursor: pointer; transition: background-color var(--dur) ease; }
.reviews-carousel__btn:hover { background: var(--s-tint); }
.reviews-carousel__btn:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.reviews-carousel__btn svg { width: 20px; height: 20px; }
.reviews-carousel__viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--s-frame) transparent; padding-bottom: var(--sp-3); }
.reviews-carousel.is-ready .reviews-carousel__viewport { scrollbar-width: none; padding-bottom: 0; }
.reviews-carousel.is-ready .reviews-carousel__viewport::-webkit-scrollbar { display: none; }
.reviews-carousel__viewport:focus-visible { outline: var(--focus-ring); outline-offset: 4px; border-radius: var(--r-m); }
.reviews-carousel__track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--sp-5)) / 3); gap: var(--sp-5); }
.reviews-carousel__slide { min-width: 0; scroll-snap-align: start; }
.reviews-carousel__card { margin: 0; overflow: hidden; background: var(--c-shot-bg); color: var(--c-ink); border: var(--line); border-radius: var(--r-m); } /* цвет — для скрытой подписи с текстом отзыва */
.reviews-carousel__card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
/* сноска о Meta, как в блоке о себе: в карусели есть скриншоты из Instagram Direct */
.reviews-carousel__note { margin-top: var(--sp-3); font-family: var(--font-data); font-size: var(--fs-label); color: var(--s-muted); }
@media (max-width: 960px) { .reviews-carousel__track { grid-auto-columns: calc((100% - var(--sp-5)) / 2); } }
@media (max-width: 600px) { .reviews-carousel__track { grid-auto-columns: 86%; gap: var(--sp-3); } }
