/* «Стоп беспредел» — полноэкранная версия с центральной сеткой 1200px */

:root {
  /* — фирменные цвета — */
  --brand-yellow:      #FFD400;
  --brand-blue:        #16307a;
  --brand-blue-tint:   #e6eaf5;
  --brand-blue-onDark: #c6cee6;
  --brand-yellow-tint: #fff6cc;
  --canvas:            #f4f3f1;

  /* — шрифты — */
  --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;

  /* — раскладка — */
  --container-max: 1200px;
  --pad-x:         40px;
  --pad-y:         56px;
  --gutter:        max(var(--pad-x), calc((100% - var(--container-max)) / 2));
  --rule:          2px solid var(--color-text);
  --tap:           44px;
}

*, *::before, *::after { box-sizing: border-box; }

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

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

body > header,
body > main,
body > footer {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  background: var(--color-bg);
  border: 0;
}

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: none !important; }

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

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

input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 18px; height: 18px;
  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; }

.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: 640px; }

.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(--gutter);
  background: var(--brand-blue); color: #fff;
  border-bottom: var(--rule);
}
.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;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.16s ease;
}
.site-header__badge:hover {
  background: #ffe033;
  color: var(--color-text);
}

/* Кнопка «База знаний» в шапке — ровно как в оригинале */
.header__kb-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.header__kb-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}
.header__kb-btn span { font-size: 11px; }

/* ─── 2 + 3. Первый экран (Hero) ────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "main photo"
    "main urgent";
  padding-inline: var(--gutter);
  background: #fff;
}

.hero__main {
  grid-area: main;
  background: #fff;
  padding: 52px 48px 60px 0;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__title {
  margin: 0 0 24px;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 620px;
}
.hero__text {
  margin: 0 0 28px;
  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;
  max-width: 560px;
  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;
}

/* Фото юриста + автослайдер 3.5 сек внутри правой колонки */
.hero__photo {
  grid-area: photo;
  margin: 0;
  background: #1f1f1f; color: #fff;
  border-inline: var(--rule);
}
.hero-slider {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
  background: #141414;
  border-bottom: 8px solid var(--color-accent);
}
.hero-slider__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 3.5s ease-out;
  pointer-events: none;
}
.hero-slider__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.hero-slider__dots {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 5px 7px;
  background: rgba(17, 17, 17, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-slider__dot {
  width: 22px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background-color 0.25s ease, width 0.25s ease;
}
.hero-slider__dot:hover {
  background: rgba(255, 255, 255, 0.75);
}
.hero-slider__dot.is-active {
  width: 32px;
  background: var(--brand-yellow);
}
.hero__photo figcaption {
  margin: 0; color: #fff;
  padding: 20px 28px;
  display: flex; flex-direction: column; gap: 6px;
}
.hero__photo strong {
  font-family: var(--font-heading); font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
}
.hero__photo span { font-size: 14px; line-height: 1.45; color: #e9ecef; }

.hero__urgent {
  grid-area: urgent;
  background: var(--brand-yellow);
  border-inline: var(--rule);
  border-top: var(--rule);
  padding: 36px 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.hero__urgent .kicker { margin: 0; letter-spacing: 0.12em; }
.hero__urgent-lead {
  margin: 0;
  font-family: var(--font-heading); font-size: 24px; font-weight: 800;
  line-height: 1.18; letter-spacing: -0.02em;
}
.hero__urgent-text { margin: 0; font-size: 15px; 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; cursor: pointer;
}
.btn-cta:hover, .btn-cta:active { background: var(--color-accent-700); color: #fff; }

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

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-inline: var(--gutter);
  border-top: var(--rule);
  background: var(--brand-blue); color: #fff;
}
.stats__item {
  padding: 32px 24px;
  display: flex; flex-direction: column; gap: 6px;
  border-right: 2px solid rgba(255, 255, 255, 0.16);
}
.stats__item:first-child { padding-left: 0; }
.stats__item:last-child  { border-right: 0; padding-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 + 5. Аккуратная карточка формы заявки ───────────────────────── */

.form {
  border-top: var(--rule);
  padding: var(--pad-y) var(--gutter);
  background: var(--color-bg);
}

.form__card {
  display: grid;
  grid-template-columns: 420px 1fr;
  border: var(--rule);
  background: #ffffff;
  box-shadow: 6px 6px 0 var(--color-text);
}

.form--compact { font-size: 14px; }

.form--compact .form__aside {
  background: #f8f9fa;
  color: #111111;
  border-right: var(--rule);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
}

.form--compact .form__aside .chip--red {
  align-self: flex-start;
}

.form--compact .form__aside-title {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.1;
  color: #111111;
  letter-spacing: -0.02em;
}

.form--compact .form__aside-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #495057;
}

.form--compact .kicker--onDark { color: #495057; }

.form__summary { width: 100%; margin-top: 4px; }
.form__summary .kicker { margin-bottom: 8px; }
.form__summary-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.form__summary-list li,
#topic-summary-list li {
  background: var(--brand-yellow);
  color: #111111 !important;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 700 !important;
  border: 1px solid #111111;
}

.steps {
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.steps__item {
  display: flex; gap: 14px; align-items: baseline;
  padding: 14px 0;
  font-size: 15px; font-weight: 500; color: #212529;
  border-top: 1px solid #dee2e6;
}
.steps__item:last-child { border-bottom: 1px solid #dee2e6; }
.steps__num {
  font-family: var(--font-mono); color: #ec3013; font-weight: 700; flex: none;
}

.form--compact .form__body {
  background: #ffffff;
  padding: 36px 40px;
}
.form--compact .form__fields {
  display: flex; flex-direction: column; gap: 18px;
}

.field { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.field > legend { padding: 0; margin-bottom: 8px; }
.label { font-size: 13px; font-weight: 700; color: #212529; }
.form--compact .kicker { font-size: 11.5px; font-weight: 700; margin-bottom: 6px; color: #495057; }

/* Вкладки категорий */
.topic-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #f1f3f5;
  padding: 4px;
  margin: 0 0 10px;
  border: var(--rule);
}
.topic-tab {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 8px;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit; font-size: 13px; font-weight: 700; color: #495057;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.topic-tab:hover { color: #111111; }
.topic-tab.is-active {
  background: #ffffff;
  color: #111111;
  border-color: #111111;
  box-shadow: 2px 2px 0 #111111;
}
.topic-tab--urgent {
  color: #b51f08;
  background: rgba(236, 48, 19, 0.06);
  border-color: rgba(236, 48, 19, 0.38);
  box-shadow: 0 0 12px rgba(236, 48, 19, 0.24), inset 0 0 0 1px rgba(236, 48, 19, 0.14);
  animation: urgent-tab-glow 2.4s ease-in-out infinite;
}
.topic-tab--urgent:hover {
  color: #ec3013;
  background: rgba(236, 48, 19, 0.11);
  border-color: #ec3013;
  box-shadow: 0 0 16px rgba(236, 48, 19, 0.36);
}
.topic-tab--urgent.is-active {
  background: #ec3013;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 2px 2px 0 #111111, 0 0 18px rgba(236, 48, 19, 0.45);
  animation: none;
}
.topic-tab--urgent.is-active .topic-tab__dot--red {
  background: #ffffff;
}

@keyframes urgent-tab-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(236, 48, 19, 0.22), inset 0 0 0 1px rgba(236, 48, 19, 0.12);
  }
  50% {
    box-shadow: 0 0 18px rgba(236, 48, 19, 0.42), inset 0 0 0 1px rgba(236, 48, 19, 0.28);
  }
}

.topic-tab__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.topic-tab__dot--red    { background: #ec3013; }
.topic-tab__dot--blue   { background: #16307a; }
.topic-tab__dot--yellow { background: #f59f00; }

/* Панели с чипами тем */
.topic-pane { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-pane[hidden] { display: none !important; }

.topic-pill {
  position: relative; display: inline-flex; align-items: center;
  cursor: pointer; user-select: none;
}
.topic-pill input { position: absolute; opacity: 0; pointer-events: none; }
.topic-pill span {
  display: inline-block;
  padding: 8px 13px;
  font-size: 13px; font-weight: 600; line-height: 1.25;
  border: 1.5px solid #adb5bd;
  background: #ffffff;
  color: #212529;
  transition: all 0.15s ease;
}
.topic-pill:hover span {
  border-color: #111111;
  background: #f8f9fa;
}
.topic-pill input:checked + span {
  background: #111111; border-color: #111111; color: #ffffff;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}
.topic-pill--urgent input:checked + span {
  background: #ec3013; border-color: #ec3013; color: #ffffff;
}
.topic-pill--case input:checked + span {
  background: var(--brand-blue); border-color: var(--brand-blue); color: #ffffff;
}
.topic-pill--other input:checked + span {
  background: var(--brand-yellow); color: #111111; border-color: #111111;
}

/* Каналы связи */
.channels--compact {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px;
}
.channel {
  display: flex; gap: 8px; align-items: center;
  border: var(--rule);
  padding: 8px 14px; min-height: 40px;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  background: #ffffff;
}
.channel:hover,
.channel:has(input:checked) { background: var(--color-accent-200); }
.channel:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.label__opt {
  font-weight: 400;
  color: #6c757d;
  font-size: 12px;
}

.field-row {
  display: grid; grid-template-columns: 1fr 210px; gap: 12px;
}

.control {
  width: 100%; font: inherit; font-size: 15.5px;
  border: var(--rule);
  background: #f8f9fa;
  color: var(--color-text);
  padding: 11px 14px; min-height: var(--tap);
  caret-color: var(--color-accent);
}
textarea.control { resize: vertical; min-height: 88px; }
.control::placeholder { color: #6c757d; }
.control[aria-invalid="true"] { border-color: var(--color-accent-700); background: var(--color-accent-100); }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.45; color: #495057; cursor: pointer;
}
.consent a { color: var(--color-accent-700); text-underline-offset: 3px; }

.error { margin: 0; font-size: 13px; 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: 4px;
  background: var(--color-accent); color: #fff; border: 0;
  padding: 16px 24px; min-height: 50px;
  font-family: var(--font-heading); font-size: 16px; font-weight: 800;
  text-align: center; letter-spacing: 0.01em; 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(--gutter);
  border-top: var(--rule);
  background: var(--color-bg);
}
.cases__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.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(--gutter);
  border-top: var(--rule);
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  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; }

.prose .video__kicker { margin: 32px 0 12px; }
.video {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--color-text); border: var(--rule);
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--color-text);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: #141414;
  cursor: pointer; display: block;
}
.video__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
}
.video__poster:hover .video__thumb {
  transform: scale(1.02);
  filter: brightness(0.95);
}
.video__poster:hover .video__play,
.video__poster:focus-visible .video__play { background: var(--color-accent-700); }
.video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 68px;
  background: var(--color-accent);
  border: 2px solid #111111;
}
.video__play::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 24px; height: 28px; background: #fff;
  transform: translate(-35%, -50%); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.prose .video__link { margin: 12px 0 0; font-size: 14px; }

/* ─── 7б. Блок подписки на соцсети ──────────────────────────────────── */

.subscribe-banner {
  padding: var(--pad-y) var(--gutter);
  border-top: var(--rule);
  background: var(--brand-blue); color: #fff;
}
.subscribe-banner__inner { max-width: 780px; }
.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(--gutter);
  border-top: var(--rule);
  background: var(--color-bg);
}
.reviews__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.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: 24px var(--gutter);
  border-top: var(--rule);
  font-size: 13px; color: var(--color-neutral-700);
  display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #fff;
}
.site-footer__copy {
  max-width: 560px;
  line-height: 1.45;
}
.site-footer__links {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.footer__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: #f8f9fa;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.footer__btn:hover {
  background: #ffffff;
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--color-text);
}
.footer__btn:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

/* ─── Документные страницы (статьи УК РФ и политика) ────────────────── */

.doc { padding: var(--pad-y) var(--pad-x); max-width: 840px; margin-inline: auto; }
.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; }

/* ─── Выезжающее меню базы знаний ───────────────────────────────────── */

.kb-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.kb-backdrop.is-open { opacity: 1; pointer-events: auto; }

.kb-drawer {
  position: fixed; top: 0; right: 0; width: 100%; max-width: 460px; height: 100%;
  background: #ffffff; color: #111111; z-index: 10001;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
}
.kb-drawer.is-open { transform: translateX(0); }

.kb-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid #e9ecef; background: #f8f9fa;
}
.kb-drawer__title {
  font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #111111;
}
.kb-drawer__close {
  background: none; border: none; font-size: 20px; color: #495057;
  cursor: pointer; padding: 4px 8px; line-height: 1;
}
.kb-drawer__close:hover { color: #ec3013; }

.kb-drawer__content { flex: 1; overflow-y: auto; padding: 24px; -webkit-overflow-scrolling: touch; }
.kb-subgroup {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.4px; color: #ec3013; margin: 20px 0 8px;
}
.kb-subgroup:first-child { margin-top: 0; }
.kb-links { list-style: none; padding: 0; margin: 0; }
.kb-links li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; color: #212529; text-decoration: none;
  font-size: 14px; font-weight: 500; transition: all 0.15s ease;
  background: #f8f9fa; margin-bottom: 6px; border: 1px solid #edf2f7;
}
.kb-links li a:hover {
  background: #ffffff; border-color: #ec3013; color: #ec3013; transform: translateX(4px);
}
.kb-links .kb-arrow { color: #adb5bd; transition: transform 0.15s ease, color 0.15s ease; }
.kb-links li a:hover .kb-arrow { transform: translateX(3px); color: #ec3013; }

/* ─── Совместимость для внутренних страниц ──────────────────────────── */

.topics { padding: var(--pad-y) var(--gutter); 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: center;
  background: #fff; border: var(--rule); padding: 24px;
  font-size: 20px; font-weight: 700; line-height: 1.3; cursor: pointer;
}
.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); }

.floating-kb-btn {
  position: fixed; top: 18px; right: 18px; z-index: 9999;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: #111111; color: #ffffff !important;
  font-size: 14px; font-weight: 700; text-decoration: none;
  border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.floating-kb-btn:hover { background: #ec3013; border-color: #ec3013; }

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

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

.channel,
.case-card,
.review-card {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.16s ease;
}
.channel:hover,
.channel:has(input:checked) {
  transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--color-text);
}
.case-card:hover,
.review-card:hover {
  transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--color-text);
}

.control { transition: box-shadow 0.16s ease, background-color 0.16s ease; }
.control:focus { background: #fff; box-shadow: 4px 4px 0 var(--color-text); }

.video__play {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 4px 4px 0 #111111;
}
.video__poster:hover .video__play {
  transform: translate(calc(-50% - 2px), calc(-50% - 2px)) scale(1.06);
  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; }

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

/* ─── Адаптив: планшеты и мобильные ─────────────────────────────────── */

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

  .hero, .form__card, .prose, .topics__grid,
  .stats, .cases__grid, .reviews__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-areas: "photo" "main" "urgent";
    padding-inline: 0;
  }
  .hero__main { padding: 36px var(--pad-x); }
  .hero__title { font-size: 32px; }
  .hero__offer { flex-direction: column; align-items: flex-start; }
  .btn-cta { display: block; width: 100%; text-align: left; }

  .hero__photo { border-inline: 0; }
  .hero-slider { height: 360px; }
  .hero__photo figcaption { padding: 20px var(--pad-x); }
  .hero__urgent { border-inline: 0; padding: 32px var(--pad-x); }
  .hero__urgent-lead { font-size: 22px; }

  .site-header { flex-wrap: wrap; gap: 12px; }
  .site-header__badge { margin-left: 0; order: 3; width: 100%; text-align: center; }
  .header__kb-btn { margin-left: auto; }

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

  .form { padding: 32px var(--pad-x); }
  .form__card { box-shadow: none; }
  .form--compact .form__aside {
    border-right: 0; border-bottom: var(--rule); padding: 24px 20px;
  }
  .form--compact .form__body { padding: 24px 20px; }

  .section-title { font-size: 28px; }
  .prose { gap: 32px; }
  .video__play { width: 54px; height: 54px; }
  .prose__title { font-size: 26px; }

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

  .site-footer__links { width: 100%; }
  .footer__btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 768px) {
  .cases__grid,
  .reviews__grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 14px !important;
    margin-inline: calc(var(--pad-x) * -1) !important;
    padding: 8px var(--pad-x) 20px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cases__grid::-webkit-scrollbar,
  .reviews__grid::-webkit-scrollbar { display: none; }

  .case-card,
  .review-card {
    flex: 0 0 88% !important;
    max-width: 340px !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    margin: 0 !important;
  }
}

@media (max-width: 640px) {
  .form { padding: 24px 14px; }
  .form--compact .form__aside-title { font-size: 22px; }
  .form--compact .form__aside-text,
  .form--compact .steps { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 14px; }
  .topic-pill span { padding: 6px 10px; font-size: 12px; }
}

@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 { background: #fff; }
}
