/* «Стоп беспредел» — вариант 1c «Картотека».
   Все значения берутся из токенов Modernist (_ds/modernist/styles.css).
   Здесь добавлены только те цвета, которых в системе нет: жёлтый и синий —
   они унаследованы со старого сайта. */

:root {
  /* — фирменные цвета сверх системы — */
  --brand-yellow:      #FFD400;
  --brand-blue:        #16307a;
  --brand-blue-tint:   #e6eaf5;   /* hover карточек «ПО ДЕЛУ» */
  --brand-blue-onDark: #c6cee6;   /* текст на синем */
  --brand-yellow-tint: #fff6cc;   /* hover карточки «ИНОЕ» */
  --canvas:            #e6e4e2;   /* поле вокруг страницы на широком экране */

  /* — шрифты: латиница Archivo, кириллица Golos Text — */
  --font-heading: "Archivo", "Golos Text", system-ui, sans-serif;
  --font-body:    "Archivo", "Golos Text", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* — раскладка — */
  --page-max: 1120px;
  --pad-x:    40px;
  --pad-y:    56px;
  --rule:     2px solid var(--color-text);
  --tap:      44px;                /* минимальная высота кликабельного на мобильном */
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

/* Страница — плита шириной 1120px на канве, как в макете.
   Двухцветные развороты (белый|жёлтый, тёмный|белый) держат пропорции
   только в ограниченной ширине; на всю ширину монитора они разъезжаются. */
body > header,
body > main,
body > footer {
  max-width: var(--page-max);
  margin-inline: auto;
  background: var(--color-bg);
  border-inline: var(--rule);
}
body > header { border-top: var(--rule); }
body > footer { border-bottom: var(--rule); }

img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; }

/* Никаких скруглений — правило системы. */
input, textarea, button, select, a, div, section, label { border-radius: 0; }

/* [hidden] должен побеждать display:flex/grid у классов ниже. */
[hidden] { display: none !important; }

/* Фокус с клавиатуры — красная рамка, синюю браузерную не оставляем. */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.form__aside :focus-visible { outline-color: var(--brand-yellow); }

::selection { background: var(--brand-yellow); color: var(--color-text); }

input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 20px; height: 20px;
  flex: none; margin: 0; cursor: pointer;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--color-text); color: var(--color-bg);
  padding: 12px 20px; font-weight: 700; z-index: 10;
}
.skip-link:focus { left: 0; top: 0; }

/* honeypot — вне экрана, но не display:none */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ─── общие детали ──────────────────────────────────────────────────── */

.kicker {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.kicker--muted  { color: var(--color-neutral-700); }
.kicker--onDark { color: var(--color-neutral-400); }

.section-title { margin: 0 0 8px; font-size: 34px; letter-spacing: -0.02em; }
.section-lead  { margin: 0 0 32px; font-size: 16px; color: var(--color-neutral-700); max-width: 600px; }

.chip {
  display: inline-flex; align-items: center; flex: none;
  padding: 6px 12px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
}
.chip--red    { background: var(--color-accent);  color: #fff; }
.chip--blue   { background: var(--brand-blue);    color: #fff; }
.chip--yellow { background: var(--brand-yellow);  color: var(--color-text); }

.req { color: var(--color-accent); text-decoration: none; border: 0; }

/* ─── 1. Шапка ──────────────────────────────────────────────────────── */

.site-header {
  display: flex; align-items: center; gap: 16px;
  padding: 16px var(--pad-x);
  background: var(--brand-blue); color: #fff;
}
.site-header__logo { width: 44px; height: 44px; flex: none; }
.site-header__name { font-family: var(--font-heading); font-size: 20px; font-weight: 800; letter-spacing: 0.02em; }
.site-header__badge {
  margin-left: auto;
  background: var(--brand-yellow); color: var(--color-text);
  padding: 8px 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}

/* ─── 2. Приветствие ────────────────────────────────────────────────── */

.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas: "main photo" "main urgent";
}
.hero__main   { grid-area: main; }
.hero__urgent { grid-area: urgent; }
.hero__photo  { grid-area: photo; }
.hero__main   { background: #fff; padding: 48px var(--pad-x) 64px; display: flex; flex-direction: column; justify-content: flex-start; }
.hero__title  { margin: 0 0 24px; font-size: 56px; line-height: 1.02; letter-spacing: -0.03em; }
.hero__text   { margin: 0 0 24px; font-size: 17px; line-height: 1.55; max-width: 560px; text-wrap: pretty; }

.hero__offer {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 28px; padding: 14px 16px;
  background: var(--brand-yellow-tint); border: var(--rule); border-left: 6px solid var(--brand-yellow);
  font-size: 15px; font-weight: 700; line-height: 1.35;
}

.hero__urgent {
  background: var(--brand-yellow);
  padding: 64px var(--pad-x);
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.hero__urgent .kicker { margin: 0; letter-spacing: 0.12em; }
.hero__urgent-lead { margin: 0; font-family: var(--font-heading); font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.hero__urgent-text { margin: 0; font-size: 16px; line-height: 1.5; }

.btn-cta {
  display: inline-block; align-self: flex-start;
  background: var(--color-accent); color: #fff; text-decoration: none;
  padding: 18px 28px; min-height: var(--tap);
  font-family: var(--font-heading); font-size: 17px; font-weight: 700;
  text-align: left; border: 0;
}
.btn-cta:hover, .btn-cta:active { background: var(--color-accent-700); color: #fff; }

/* ─── 3. Фото юриста (внутри приветствия) ───────────────────────────── */

.hero__photo { margin: 0; background: #1f1f1f; color: #fff; border-left: var(--rule); }
.hero__photo img {
  display: block; width: 100%; height: 420px; object-fit: cover; object-position: 58% 22%;
  border-bottom: 8px solid var(--color-accent);
}
.hero__photo figcaption { margin: 0; color: #fff; padding: 20px var(--pad-x); display: flex; flex-direction: column; gap: 6px; }
.hero__photo strong { font-family: var(--font-heading); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.hero__photo span   { font-size: 15px; line-height: 1.45; }

/* ─── 3б. Ключевые цифры ────────────────────────────────────────────── */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: var(--rule); background: var(--brand-blue); color: #fff;
}
.stats__item {
  padding: 28px 24px; display: flex; flex-direction: column; gap: 6px;
  border-right: 2px solid rgba(255, 255, 255, 0.16);
}
.stats__item:last-child { border-right: 0; }
.stats__num {
  font-family: var(--font-heading); font-size: 26px; font-weight: 800;
  color: var(--brand-yellow); letter-spacing: -0.02em;
}
.stats__label { font-size: 14px; line-height: 1.4; color: var(--brand-blue-onDark); }

/* ─── 4. С чем можно обратиться ─────────────────────────────────────── */

.topics { padding: var(--pad-y) var(--pad-x); border-top: var(--rule); }
.topics__group { border: 0; padding: 0; margin: 0 0 36px; }
.topics__group:last-child { margin-bottom: 0; }
.topics__legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px; }
.topics__hint { font-size: 17px; color: var(--color-neutral-700); }

.topics__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.topics__grid--single { grid-template-columns: 1fr; }

.topic {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: var(--rule); padding: 28px 28px;
  font-size: 22px; font-weight: 700; line-height: 1.3;
  cursor: pointer; min-height: 96px; align-items: center;
}
.topic input[type="checkbox"] { width: 32px; height: 32px; flex: none; margin: 0; }
.topic--urgent { border-left: 8px solid var(--color-accent); }
.topic--case   { border-left: 8px solid var(--brand-blue); }
.topic--other  { border-left: 8px solid var(--brand-yellow); }
.topic--urgent:hover { background: var(--color-accent-200); }
.topic--case:hover   { background: var(--brand-blue-tint); }
.topic--other:hover  { background: var(--brand-yellow-tint); }
.topic:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.topic:has(input:checked) { background: var(--color-bg); }
.topic--urgent:has(input:checked) { background: var(--color-accent-200); }
.topic--case:has(input:checked)   { background: var(--brand-blue-tint); }
.topic--other:has(input:checked)  { background: var(--brand-yellow-tint); }

/* ─── 5. Форма заявки ───────────────────────────────────────────────── */

.form { border-top: var(--rule); display: grid; grid-template-columns: 1fr 1fr; }

.form__aside {
  background: var(--color-text); color: var(--color-bg);
  padding: 48px var(--pad-x);
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.form__aside-title { margin: 0; font-size: 34px; color: #fff; letter-spacing: -0.02em; }
.form__aside-text  { margin: 0; font-size: 16px; line-height: 1.55; color: var(--color-neutral-400); }

.form__summary .kicker { margin-bottom: 10px; }
.form__summary-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.form__summary-list li {
  background: var(--brand-yellow); color: var(--color-text);
  padding: 5px 10px; font-size: 13px; font-weight: 600;
}

.steps { margin: 8px 0 0; padding: 0; list-style: none; }
.steps__item {
  display: flex; gap: 14px; align-items: baseline;
  padding: 12px 0; font-size: 15px;
  border-top: 2px solid var(--color-neutral-800);
}
.steps__item:last-child { border-bottom: 2px solid var(--color-neutral-800); }
.steps__num { font-family: var(--font-mono); color: var(--brand-yellow); flex: none; }

.form__body { background: #fff; padding: 48px var(--pad-x); }
.form__fields { display: flex; flex-direction: column; gap: 18px; }

.field { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.field > legend { padding: 0; margin-bottom: 10px; }
.label { font-size: 14px; color: var(--color-neutral-700); }

.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.channel {
  display: flex; gap: 10px; align-items: center;
  border: var(--rule); padding: 12px 14px; min-height: var(--tap);
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.channel:hover { background: var(--color-accent-200); }
.channel:has(input:checked) { background: var(--color-accent-200); }
.channel:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.control {
  width: 100%; font: inherit; font-size: 16px;  /* не меньше 16px — иначе iOS зумит при фокусе */
  border: var(--rule); background: var(--color-bg); color: var(--color-text);
  padding: 14px; min-height: var(--tap);
  caret-color: var(--color-accent);
}
textarea.control { resize: vertical; min-height: 110px; }
.control::placeholder { color: var(--color-neutral-600); }
.control[aria-invalid="true"] { border-color: var(--color-accent-700); background: var(--color-accent-100); }

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; line-height: 1.45; color: var(--color-neutral-700); cursor: pointer;
}
.consent a { color: var(--color-accent-700); text-underline-offset: 3px; }
.consent:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.error {
  margin: 0; font-size: 14px; font-weight: 600;
  color: var(--color-accent-700);
}
.error--form { border-left: 4px solid var(--color-accent-700); padding-left: 12px; }

.btn-submit {
  align-self: stretch; margin-top: 6px;
  background: var(--color-accent); color: #fff; border: 0;
  padding: 20px 28px; min-height: var(--tap);
  font-family: var(--font-heading); font-size: 18px; font-weight: 700;
  text-align: left; cursor: pointer;
}
.btn-submit:hover, .btn-submit:active { background: var(--color-accent-700); }
.btn-submit[disabled] { background: var(--color-neutral-600); cursor: progress; }

.done { border: var(--rule); padding: 32px; background: var(--color-bg); }
.done__title { margin: 0 0 12px; font-size: 28px; }
.done__text  { margin: 0; font-size: 17px; line-height: 1.5; }

/* ─── 5в. Примеры из практики (Кейсы) ───────────────────────────────── */

.cases {
  padding: var(--pad-y) var(--pad-x);
  border-top: var(--rule);
  background: var(--color-bg);
}
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  background: #fff;
  border: var(--rule);
  border-top: 8px solid var(--brand-blue);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-card:first-child {
  border-top-color: var(--color-accent);
}
.case-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.case-card__art {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-neutral-700);
}
.case-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}
.case-card__dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  line-height: 1.5;
}
.case-card__dl dt {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-neutral-700);
  margin-top: 8px;
}
.case-card__dl dt:first-child {
  margin-top: 0;
}
.case-card__dl dd {
  margin: 0;
}
.case-card__res {
  background: var(--brand-yellow-tint);
  border-left: 4px solid var(--brand-yellow);
  padding: 10px 12px;
  font-weight: 700;
}

/* ─── 6 + 7. Тексты ─────────────────────────────────────────────────── */

.prose {
  padding: var(--pad-y) var(--pad-x); border-top: var(--rule);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  background: #fff;
}
.prose__title { margin: 0 0 16px; font-size: 30px; }
.prose p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; }
.prose p:last-child { margin-bottom: 0; }

.how { margin: 0; padding: 0; list-style: none; }
.how__item {
  display: flex; gap: 16px; padding: 16px 0;
  border-top: var(--rule); font-size: 16px; line-height: 1.5;
}
.how__item:last-child { border-bottom: var(--rule); }
.how__num { font-family: var(--font-mono); font-size: 13px; color: var(--color-accent); flex: none; }

/* ─── Видео (плеер VK подгружается по клику) ─────────────────────────── */

.prose .video__kicker { margin: 32px 0 12px; }
.video {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--color-text); border: var(--rule);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px;
  padding: 24px; border: 0; background: transparent; color: #fff;
  text-align: left; cursor: pointer;
}
.video__poster:hover .video__play, .video__poster:focus-visible .video__play { background: var(--color-accent-700); }
.video__play {
  position: absolute; top: 24px; left: 24px;
  width: 72px; height: 72px; background: var(--color-accent);
}
.video__play::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 26px; height: 30px; background: #fff;
  transform: translate(-35%, -50%); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.video__label { font-family: var(--font-heading); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.video__meta  { font-size: 14px; color: var(--brand-blue-onDark); }
.prose .video__link { margin: 12px 0 0; font-size: 14px; }


/* ─── 7б. Блок подписки на соцсети ──────────────────────────────────── */
.subscribe-banner {
  padding: var(--pad-y) var(--pad-x);
  border-top: var(--rule);
  background: var(--brand-blue);
  color: #fff;
}
.subscribe-banner__inner {
  max-width: 800px;
}
.subscribe-banner__title {
  margin: 0 0 16px;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: #fff;
}
.subscribe-banner__text {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--brand-blue-onDark);
}
.subscribe-banner__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-cta--tg {
  background: #2AABEE;
  color: #fff;
  box-shadow: 4px 4px 0 var(--brand-yellow);
}
.btn-cta--tg:hover, .btn-cta--tg:active {
  background: #2298D6;
  box-shadow: 6px 6px 0 var(--brand-yellow);
  color: #fff;
}
.btn-cta--vk {
  background: #0077FF;
  color: #fff;
  box-shadow: 4px 4px 0 var(--brand-yellow);
}
.btn-cta--vk:hover, .btn-cta--vk:active {
  background: #0066DB;
  box-shadow: 6px 6px 0 var(--brand-yellow);
  color: #fff;
}

/* ─── 8. Отзывы доверителей ─────────────────────────────────────────── */

.reviews {
  padding: var(--pad-y) var(--pad-x);
  border-top: var(--rule);
  background: var(--color-bg);
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  margin: 0;
  background: #fff;
  border: var(--rule);
  border-left: 8px solid var(--brand-yellow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: var(--rule);
}
.review-card__meta strong {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
}
.review-card__meta span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-neutral-700);
}
.review-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
.reviews__cta {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--brand-blue);
  color: #fff;
  border: var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.reviews__cta p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
}

/* ─── 9. Подвал ─────────────────────────────────────────────────────── */

.site-footer {
  padding: 20px var(--pad-x); border-top: var(--rule);
  font-size: 13px; color: var(--color-neutral-700);
  display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap;
}
.site-footer a { color: var(--color-neutral-700); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--color-accent); }

/* ─── Документные страницы (политика конфиденциальности) ────────────── */

.doc { padding: var(--pad-y) var(--pad-x); max-width: 760px; }
.doc__title { margin: 0 0 8px; font-size: 40px; letter-spacing: -0.02em; }
.doc__meta  { margin: 0 0 32px; font-family: var(--font-mono); font-size: 13px; color: var(--color-neutral-700); }
.doc__h2    { margin: 32px 0 12px; font-size: 22px; }
.doc p      { margin: 0 0 12px; font-size: 16px; line-height: 1.6; }
.doc__list  { margin: 0 0 12px; padding-left: 20px; font-size: 16px; line-height: 1.6; }
.doc__list li { margin-bottom: 6px; }
.doc__warning {
  border: var(--rule); border-left: 8px solid var(--color-accent);
  background: #fff; padding: 20px; margin-bottom: 32px;
}
.doc__warning p:last-child { margin-bottom: 0; }
.doc__back { margin-top: 40px; padding-top: 20px; border-top: var(--rule); }
.doc__back a { color: var(--color-accent-700); }

mark { background: var(--brand-yellow); color: var(--color-text); padding: 1px 4px; }


/* ─── Анимации и микро-взаимодействия в стиле «Картотека» ───────────── */

html {
  scroll-behavior: smooth;
}

/* Индикатор «Срочно / В эфире» — пульсирующая точка */
.hero__urgent .kicker::before,
.chip--red::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: currentColor;
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse-dot 1.6s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
.hero__urgent .kicker::before {
  background: var(--color-accent);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.85); }
}

/* Механический сдвиг и жёсткая тень для кнопок (эффект штампа/клавиши) */
.btn-cta,
.btn-submit {
  position: relative;
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.16s ease;
  box-shadow: 4px 4px 0 var(--color-text);
}
.btn-cta:hover,
.btn-submit:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--color-text);
}
.btn-cta:active,
.btn-submit:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--color-text);
}

/* На тёмном/синем фоне (.reviews__cta) тень кнопки делаем жёлтой */
.reviews__cta .btn-cta {
  box-shadow: 4px 4px 0 var(--brand-yellow);
}
.reviews__cta .btn-cta:hover {
  box-shadow: 6px 6px 0 var(--brand-yellow);
}
.reviews__cta .btn-cta:active {
  box-shadow: 1px 1px 0 var(--brand-yellow);
}

/* Интерактивность карточек вопросов (.topic) и каналов связи (.channel) */
.topic,
.channel {
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.16s ease,
    border-color 0.16s ease;
}
.topic:hover,
.channel:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--color-text);
}
.topic:active,
.channel:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--color-text);
}
.topic:has(input:checked),
.channel:has(input:checked) {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--color-text);
}

/* Карточки кейсов и отзывов — подъём папки из картотеки при наведении */
.case-card,
.review-card {
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-card:hover,
.review-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--color-text);
}

/* Поля ввода — чёткий отклик при фокусе */
.control {
  transition:
    box-shadow 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.16s ease,
    border-color 0.16s ease;
}
.control:focus {
  background: #fff;
  box-shadow: 4px 4px 0 var(--color-text);
}

/* Кнопка запуска видео — механический зум значка play */
.video__play {
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease,
    box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 4px 4px 0 #000;
}
.video__poster:hover .video__play {
  transform: translate(-2px, -2px) scale(1.05);
  box-shadow: 6px 6px 0 var(--brand-yellow);
}

/* Анимация появления плашек в сводке «В заявке будет» */
@keyframes chip-in {
  from { opacity: 0; transform: translateY(6px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.form__summary-list li {
  animation: chip-in 0.2s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

/* Плавное появление блоков при прокрутке (Scroll Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.07s; }
.reveal-delay-2 { transition-delay: 0.14s; }
.reveal-delay-3 { transition-delay: 0.21s; }

/* ─── Адаптив. Точка перелома — 900px ───────────────────────────────── */

@media (max-width: 900px) {
  :root { --pad-x: 20px; --pad-y: 40px; }

  body { background: var(--color-bg); }
  body > header, body > main, body > footer { border-inline: 0; }
  body > header { border-top: 0; }
  body > footer { border-bottom: 0; }

  /* все многоколоночные сетки — в одну колонку */
  .hero, .form, .prose,
  .topics__grid, .channels,
  .stats, .cases__grid, .reviews__grid { grid-template-columns: 1fr; }
  .hero { grid-template-areas: "photo" "main" "urgent"; }

  .site-header { flex-wrap: wrap; gap: 12px; }
  .site-header__badge { margin-left: 0; order: 3; width: 100%; }

  .hero__main, .hero__urgent { padding: 40px var(--pad-x); }
  .hero__title { font-size: 32px; }
  .hero__urgent-lead { font-size: 24px; }
  .hero__offer { flex-direction: column; align-items: flex-start; }
  .btn-cta { display: block; width: 100%; text-align: left; }

  .hero__photo { border-left: 0; }
  .hero__photo img { height: 340px; }
  .hero__photo strong { font-size: 22px; }

  .stats__item { border-right: 0; border-bottom: 2px solid rgba(255, 255, 255, 0.16); padding: 20px var(--pad-x); }
  .stats__item:last-child { border-bottom: 0; }

  .section-title { font-size: 28px; }
  .topic { font-size: 19px; padding: 22px 20px; min-height: 84px; }
  .topic input[type="checkbox"] { width: 30px; height: 30px; }

  .form__aside, .form__body { padding: var(--pad-y) var(--pad-x); }
  .form__aside-title { font-size: 28px; }

  .prose { gap: 32px; }
  .video__label { font-size: 20px; }
  .video__play { width: 56px; height: 56px; top: 16px; left: 16px; }
  .video__poster { padding: 16px; }
  .prose__title { font-size: 26px; }

  .reviews__cta { flex-direction: column; align-items: stretch; }

  .doc__title { font-size: 30px; }
  .doc__h2 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Печать: заявку с экрана печатать незачем, но текст должен быть читаем. */
@media print {
  .site-header, .btn-cta, .btn-submit, .video, .video__kicker { display: none; }
  body > header, body > main, body > footer { border: 0; }
  body { background: #fff; }
}
