/* ===== Design tokens ===== */
:root {
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --text: #11182D;
  --text-secondary: #667085;
  --text-muted: #98A2B3;

  --blue: #2F66F3;
  --blue-hover: #2457D6;
  --blue-bg: #EEF4FF;
  --blue-border: #BFD0FF;

  --green: #16A34A;
  --green-bg: #ECFDF3;

  --orange: #FF7A1A;
  --orange-hover: #E8690E;
  --orange-bg: #FFF5E8;

  --red: #E5484D;
  --red-bg: #FFF1F1;

  --locked-bg: #F4F6FA;
  --border: #E6EAF2;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow-card: 0 12px 40px rgba(31, 51, 91, 0.07);
}

html {
  /* плавная прокрутка по всему сайту: и по якорным ссылкам, и при возврате наверх */
  scroll-behavior: smooth;
  /* чтобы заголовок секции не заезжал под шапку при переходе по якорю */
  scroll-padding-top: 88px;
}

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

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  /* только системные шрифты — без обращений к внешним сервисам */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Liberation Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

.link-muted {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}
.link-muted:hover { color: var(--text); }

/* ===== Header ===== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-bg);
  border-radius: 9px;
}

.brand__name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 28px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ===== Layout ===== */
.page {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 64px;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand { margin-bottom: 14px; }

.footer-about {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 340px;
  margin-bottom: 12px;
}

.footer-contact {
  font-size: 14px;
  color: var(--blue);
  text-decoration: none;
}
.footer-contact:hover { text-decoration: underline; }

.footer-messengers { display: flex; gap: 16px; margin-top: 8px; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-col a:hover { color: var(--blue); }

.footer-soon {
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-disclaimer { flex-basis: 100%; }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(31, 51, 91, 0.16);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  animation: cookie-in 0.25s ease;
}

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.cookie-banner[hidden] { display: none; }

.cookie-banner__text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.cookie-banner__text p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.cookie-banner__text a { color: var(--blue); }

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 20px;
  }
  .cookie-banner__actions .btn { flex: 1; }
}

/* ===== Legal pages ===== */
/* Статьи набираются той же типографикой, что и юридические документы */
.legal, .article {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 64px;
  color: var(--text);
}

.legal h1, .article h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.legal__meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal h2, .article h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.legal p, .article p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal ul, .article ul {
  margin: 0 0 12px 20px;
  padding: 0;
}

.legal li, .article li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.legal strong, .article strong { color: var(--text); }

/* :not(.btn) — иначе синий цвет ссылок перекрасил бы и текст кнопки,
   а он белый на синей заливке и стал бы невидимым */
.legal a:not(.btn), .article a:not(.btn) { color: var(--blue); }

/* ===== Раздел «Статьи» ===== */
.blog-index {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 64px;
}

.blog-index h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }

.blog-index__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.blog-index__empty { color: var(--text-muted); }

.article-list { display: flex; flex-direction: column; gap: 14px; }

.article-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover {
  border-color: var(--blue-border);
  box-shadow: var(--shadow-card);
}

.article-card__title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
}

.article-card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.article-card__meta { font-size: 13px; color: var(--text-muted); }

.article__back { font-size: 14px; margin-bottom: 20px; }
.article__back a { color: var(--text-muted); text-decoration: none; }
.article__back a:hover { color: var(--blue); }

/* призыв проверить сайт в конце статьи — ради него раздел и существует */
.article__cta {
  margin-top: 40px;
  padding: 28px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
}

.article__cta-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }

.article__cta-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.article__disclaimer {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

/* сноска внутри текста статьи — например, обязательная пометка про Meta */
.article__footnote {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Hero ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 0;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
}

.badge-pill {
  display: inline-block;
  background: var(--blue-bg);
  color: var(--blue);
  border: 1px solid var(--blue-border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero__title .accent { color: var(--blue); }

.hero__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 620px;
  margin-bottom: 8px;
}

.hero__meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.url-form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  width: 100%;
}

.url-form__input {
  /* flex-shrink: 0 — чтобы поле не сжималось по высоте, когда форма
     становится вертикальной на узких экранах */
  flex: 1 1 auto;
  flex-shrink: 0;
  height: 56px;
  padding: 0 18px;
  border: 1.5px solid var(--blue-border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.url-form__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 102, 243, 0.12);
}

.field-error {
  color: var(--red);
  font-size: 14px;
  margin-top: 10px;
  max-width: 560px;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.feature-item__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.confidential-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* иконка не должна сплющиваться, когда текст переносится на две строки */
.confidential-note svg { flex-shrink: 0; }

/* ===== Checks preview (на главной, до проверки) ===== */
.checks-preview { padding-bottom: 48px; }

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 640px;
}

.checks-preview .compliance-row__main { cursor: default; align-items: flex-start; }
.checks-preview .compliance-row__left { align-items: flex-start; }

.compliance-row__desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

#resultsArea:empty { display: none; }

/* ===== Buttons ===== */
.btn {
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

/* кнопки бывают и ссылками — иначе браузер подчёркивает текст внутри */
.btn { text-decoration: none; }

.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--blue-border); outline-offset: 2px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn--lg { height: 56px; padding: 0 28px; white-space: nowrap; }
.btn--md { height: 46px; padding: 0 20px; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.btn--full { width: 100%; }

.btn--primary { background: var(--blue); color: white; }
.btn--primary:hover:not(:disabled) { background: var(--blue-hover); }

.btn--commerce { background: var(--orange); color: white; }
.btn--commerce:hover:not(:disabled) { background: var(--orange-hover); }

.btn--outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue-border);
}
.btn--outline:hover:not(:disabled) { background: var(--blue-bg); }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px;
}

/* ===== Report header ===== */
.report-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 12px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.report-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.report-header__meta {
  color: var(--text-secondary);
  font-size: 14px;
}

.report-header__meta strong { color: var(--text); word-break: break-all; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-bg);
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.pages-list { margin: 12px 0 24px; font-size: 13px; }
.pages-list summary { cursor: pointer; color: var(--blue); font-weight: 500; }
.pages-list ul {
  list-style: none;
  margin-top: 10px;
  padding-left: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pages-list a { color: var(--text-secondary); word-break: break-all; text-decoration: none; }
.pages-list a:hover { color: var(--blue); text-decoration: underline; }

/* ===== Stat cards ===== */
.stats-grid {
  display: grid;
  /* Карточек бывает от трёх до пяти: пустые состояния не показываем */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
}

.stat-card__number { font-size: 30px; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.stat-card__label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

.stat-card--green { background: var(--green-bg); border-color: transparent; }
.stat-card--green .stat-card__number { color: var(--green); }

/* тот же красный, что у пунктов с нарушением — чтобы счётчик и список читались как одно */
.stat-card--red { background: var(--red-bg); border-color: transparent; }
.stat-card--red .stat-card__number { color: var(--red); }

.stat-card--neutral { background: var(--locked-bg); border-color: transparent; }
.stat-card--neutral .stat-card__number { color: var(--text-secondary); }

.stat-card--blue { background: var(--blue-bg); border-color: transparent; }
.stat-card--blue .stat-card__number { color: var(--blue); }

/* ===== Report layout ===== */
.report-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 24px;
  align-items: start;
}

.report-main { min-width: 0; }

/* ===== Compliance list ===== */
.compliance-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 28px;
}

.compliance-row {
  padding: 18px 0;
  border-bottom: 1px solid #EEF1F6;
}

/* в отчёте у строк рамка со всех сторон — там это правило не нужно */
.compliance-list:not(.compliance-list--report) .compliance-row:last-child { border-bottom: none; }

.compliance-row__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.compliance-row__main::-webkit-details-marker { display: none; }

.expand-btn { transition: transform 0.2s ease; flex-shrink: 0; }
.compliance-row[open] .expand-btn { transform: rotate(180deg); }

.compliance-row__left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  /* Название занимает всё свободное место и переносится по словам, а справка
     о штрафе остаётся справа: раньше строка переносилась целиком, и штраф
     уезжал под название. */
  flex: 1 1 auto;
}

.compliance-row__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.status-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compliance-row__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.compliance-row.is-not-required .compliance-row__title { color: var(--text-secondary); }

/* Значок держится на первой строке названия, даже если оно перенеслось */
.compliance-row__left .status-icon { flex-shrink: 0; margin-top: 1px; }

.compliance-row.is-fail .compliance-row__title { color: #B42318; }
.compliance-row.is-locked .compliance-row__title { color: var(--text-muted); }
.compliance-row.is-unknown .compliance-row__title { color: var(--text-secondary); }

.risk-badge {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  background: var(--locked-bg);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 500;
}

.compliance-row__details {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.compliance-row__details[hidden] { display: none; }

.compliance-row__details dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 10px;
}
.compliance-row__details dt:first-child { margin-top: 0; }
.compliance-row__details dd { margin: 2px 0 0; }

/* ===== Список проверок в отчёте =====
   Каждый пункт — отдельная карточка со своим цветом, чтобы результат читался
   с одного взгляда: зелёный — в порядке, красный — нарушение. Эти правила не
   трогают такой же список на главной (там у строк класс is-preview). */
.compliance-list--report {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compliance-list--report .compliance-row {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--locked-bg);
}

.compliance-list--report .compliance-row.is-ok {
  background: var(--green-bg);
  border-color: #C4EBD4;
}

.compliance-list--report .compliance-row.is-fail {
  background: var(--red-bg);
  border-color: #F8CFD0;
}

.compliance-list--report .compliance-row.is-locked {
  background: var(--surface);
  border-style: dashed;
}

/* внутренний блок с пояснением — белым по цветной подложке, иначе цвета спорят */
.compliance-list--report .compliance-row__details {
  background: rgba(255, 255, 255, 0.72);
}

/* плашка со статьёй закона: на цветной подложке серая выглядит грязно */
.compliance-list--report .risk-badge { background: rgba(255, 255, 255, 0.72); }
.compliance-list--report .compliance-row.is-fail .risk-badge {
  background: rgba(255, 255, 255, 0.85);
  color: #B42318;
}

/* ===== Предложение помощи с правками ===== */
.help-cta {
  margin-top: 24px;
  padding: 24px 28px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.help-cta__title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }

.help-cta__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 380px;
}

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

/* прозрачная кнопка на голубой подложке сливалась бы с ней */
.help-cta .btn--outline { background: var(--surface); }
.help-cta .btn--outline:hover { background: #fff; border-color: var(--blue); }

/* ===== Paywall ===== */
.paywall {
  margin-top: 24px;
  padding: 28px;
  background: var(--orange-bg);
  border: 1.5px dashed #FFCF7A;
  border-radius: var(--radius-lg);
  text-align: center;
}

.paywall__title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.paywall p { color: #7A5B1F; margin-bottom: 16px; font-size: 14px; }

.demo-note {
  margin-top: 12px;
  font-size: 12px;
  color: #B08A4A;
}

/* ===== Sidebar ===== */
.report-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.sidebar-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.score-circle {
  width: 110px;
  height: 110px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.score-circle__label {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.risk-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--orange);
  margin: 4px 0 14px;
}

.risk-hint {
  background: var(--orange-bg);
  color: #7A5B1F;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.sidebar-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== Loading (scan) screen ===== */
.scan-card {
  max-width: 480px;
  margin: 24px auto 48px;
  text-align: center;
}

.scan-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--blue-bg);
  border-top-color: var(--blue);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Misc ===== */
.back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--blue);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}
.back-link:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero { padding: 40px 0; }
  .report-layout { grid-template-columns: 1fr; }
  .report-sidebar { position: static; }
}

@media (max-width: 768px) {
  .page { padding: 0 20px; }
  .site-header__inner { padding: 0 20px; }
  .hero__title { font-size: 34px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .url-form { flex-direction: column; }
  .btn--lg { width: 100%; }
  .site-nav { display: none; }
  /* на узком экране иконка мешает — оставляем только текст */
  .confidential-note svg { display: none; }
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    padding: 36px 20px 28px;
    gap: 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer__bottom { padding: 20px 20px 32px; }
}

@media (max-width: 480px) {
  .card { padding: 24px 20px; }
  .compliance-list { padding: 4px 16px; }
  .compliance-list--report { padding: 10px; }
  .compliance-list--report .compliance-row { padding: 12px 14px; }
  .help-cta { padding: 22px 20px; }
  .help-cta__actions { width: 100%; }
  .help-cta__actions .btn { flex: 1; min-width: 150px; }
  .risk-badge { white-space: normal; }
  .site-footer__inner { grid-template-columns: 1fr; }
}


@media (max-width: 860px) {
}

/* Сумма риска над кнопкой оплаты. Красный — тот же, что у нарушений в списке:
   человек уже видел этот цвет выше и связывает его с проблемой. */
.paywall__risk {
  margin: 20px auto 4px;
  max-width: 460px;
  padding: 16px 20px;
  /* белая, а не красная: блок оплаты оранжевый, и красная подложка на нём
     мутнеет — сумма должна бить в глаза, а не растворяться */
  background: var(--surface);
  border: 1px solid #F8CFD0;
  border-radius: var(--radius-sm);
  text-align: center;
}

.paywall__risk-amount {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--red);
  margin-bottom: 4px;
}

.paywall__risk-note {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* ===== Анкета раздела документов ===== */
.anketa {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.anketa__title { font-size: 32px; font-weight: 700; margin: 12px 0 10px; }

.anketa__lead {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.anketa-note {
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 24px;
}

.anketa-note p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.anketa-note p + p { margin-top: 8px; }
.anketa-note strong { color: var(--text); }

.anketa-alert {
  background: var(--red-bg);
  color: #B42318;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}

.anketa-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

/* Поле-приманка для роботов. Не display:none и не hidden — такие поля роботы
   пропускают. Уводим за край экрана: человек его не увидит и не заполнит. */
.anketa-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.anketa-progress { margin-bottom: 24px; }

.anketa-progress__bar {
  height: 6px;
  background: var(--locked-bg);
  border-radius: 999px;
  overflow: hidden;
}

.anketa-progress__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.anketa-progress__text {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.anketa-step[hidden] { display: none; }

.anketa-step__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.anketa-step__number {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anketa-step__lead {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 20px;
}

.q { margin-bottom: 22px; }
.q[hidden] { display: none; }

.q__label { font-weight: 600; font-size: 15px; margin-bottom: 4px; }

.q__optional {
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted);
}

.q__hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.q__input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
}

textarea.q__input { height: auto; padding: 12px 14px; line-height: 1.5; }

.q__input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); }
.q__input::placeholder { color: var(--text-muted); }

.q--error .q__input { border-color: var(--red); }

.q__error {
  margin-top: 6px;
  font-size: 13px;
  color: var(--red);
}
.q__error[hidden] { display: none; }

.options { display: flex; flex-direction: column; gap: 8px; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  line-height: 1.4;
}

.option:hover { border-color: var(--blue-border); background: var(--blue-bg); }

.option input { margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }

.option:has(input:checked) { border-color: var(--blue); background: var(--blue-bg); }

.option__text { display: flex; flex-direction: column; gap: 2px; }

.option__note { font-size: 13px; color: var(--text-secondary); }

.option--consent { align-items: flex-start; }

.anketa-nav {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.anketa-nav .btn[hidden] { display: none; }

.anketa-reset { margin-top: 16px; text-align: center; }

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
}
.link-button:hover { color: var(--text-secondary); }

/* ===== Сверка ответов перед оплатой ===== */
.review-card__title { font-size: 17px; font-weight: 700; margin-bottom: 12px; }

.review-block, .review-card, .review-lawyer, .review-next { margin-bottom: 16px; }

.review-docs { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.review-docs li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 22px;
  position: relative;
  font-size: 15px;
}

.review-docs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.review-docs li span { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.review-docs__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.review-lawyer { background: var(--orange-bg); border-color: transparent; }
.review-lawyer__lead { font-size: 14px; color: #7A5B1F; line-height: 1.55; margin-bottom: 12px; }
.review-lawyer__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.review-lawyer__list li { font-size: 14px; line-height: 1.55; color: #7A5B1F; }
.review-lawyer__list strong { color: var(--text); }

.review-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.review-list dt { font-size: 13px; color: var(--text-secondary); }
.review-list dd { font-size: 15px; margin: 0; word-break: break-word; }

.review-next p { font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.review-next__note { margin-top: 8px; color: var(--text-muted); }

.review-actions { margin-top: 20px; }

@media (max-width: 600px) {
  .anketa { padding: 24px 16px 56px; }
  .anketa-form { padding: 20px 16px; }
  .anketa__title { font-size: 26px; }
  .review-list { grid-template-columns: 1fr; gap: 4px 0; }
  .review-list dd { margin-bottom: 10px; }
  .anketa-nav { flex-direction: column-reverse; }
  .anketa-nav .btn { width: 100%; }
}

/* ===== Выдача документов ===== */
.review-pay { border: 1px solid var(--blue-border); background: var(--blue-bg); }
.review-pay__desc { font-size: 14px; line-height: 1.55; color: var(--text-secondary); margin-bottom: 16px; }

.review-pay__form {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.review-pay__count { font-size: 14px; color: var(--text-secondary); }

.review-pay__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.ready-actions { margin-bottom: 20px; }

.ready-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.ready-list li { display: flex; flex-direction: column; gap: 2px; }

.ready-list a {
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.ready-list a:hover { text-decoration: underline; }

.ready-list span { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Ошибка на шаге: красным видно и сам вопрос, а не только поле ввода —
   у переключателей и галочек подсвечивать нечего. */
.q--error .q__label { color: #B42318; }
.q--error .options { border-left: 2px solid var(--red); padding-left: 10px; margin-left: -12px; }

.scan-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.scan-card form { margin-top: 18px; }
.scan-card [hidden] { display: none; }

/* Значок «?» с пояснением к вопросу. Внутри <details>, поэтому открывается
   и без javascript, и с клавиатуры.

   Подпись вопроса — обычный блок, а не флекс: значок должен оставаться на
   строке вопроса, а раскрытое пояснение — вставать под ним во всю ширину.
   Во флексе пояснение делало значок отдельным элементом, и при открытии
   «?» уезжал на строку ниже. */
.q__help { display: inline; }

.q__help summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  vertical-align: middle;
  margin-left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.q__help summary::-webkit-details-marker { display: none; }
.q__help summary:hover { background: var(--blue-border); }
.q__help summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.q__help[open] summary { background: var(--blue); color: white; }

.q__help-text {
  display: block;
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--blue-bg);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
}
.q__help-text p + p { margin-top: 8px; }

/* ===== Блок про документы на главной ===== */
.docs-promo { padding: 0 0 48px; }

.docs-promo__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

.docs-promo .badge-pill { margin-bottom: 14px; }
.docs-promo .section-title { text-align: left; }
.docs-promo .section-subtitle { text-align: left; max-width: 640px; margin-bottom: 18px; }

.docs-promo__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.docs-promo__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
}

.docs-promo__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

/* Кому какой документ достаётся — рядом с названием, помельче */
.docs-promo__when { color: var(--text-secondary); font-size: 13px; white-space: nowrap; }
.docs-promo__when::before { content: "· "; }

/* Кнопка в блоке — по ширине текста: .btn растягивается на всю строку,
   когда лежит прямо в блочном контейнере. */
.docs-promo .btn { display: inline-flex; }

.docs-promo__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 560px;
}

.help-cta--docs { background: var(--orange-bg); border-color: transparent; }

@media (max-width: 600px) {
  .docs-promo__card { padding: 22px 18px; }
  .docs-promo .btn { width: 100%; }
}

/* Пометка «кому нужен пункт» рядом с названием */
.compliance-row__applies {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Пункты, которые сайту не нужны */
.not-needed {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--locked-bg);
  border-radius: var(--radius-md);
}

.not-needed__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.not-needed ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.not-needed li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.not-needed li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.not-needed strong { color: var(--text); font-weight: 600; }

/* Тот же блок в отчёте — только отступы другие */
.docs-promo--report { padding: 0; margin: 24px 0; }
.docs-promo--report .docs-promo__card { padding: 24px; }

/* Длинные слова в названии переносятся, а не вылезают из своей колонки:
   иначе на узком экране «Пользовательское соглашение» уезжало под плашку
   со штрафом и текст оказывался под ней. */
.compliance-row__title { overflow-wrap: anywhere; }

/* На телефоне справка о штрафе встаёт под названием, а не рядом: рядом с ней
   на 375 точках название рвётся на пять строк. Стрелка раскрытия остаётся
   у правого края той же строки. */
@media (max-width: 600px) {
  .compliance-row__main { flex-wrap: wrap; gap: 10px; }
  .compliance-row__left { flex: 1 1 100%; }
  .compliance-row__right {
    flex: 1 1 100%;
    justify-content: space-between;
    align-items: center;
  }
  .risk-badge { white-space: normal; text-align: left; max-width: none; }
}

/* ===== Посадочная страница документа ===== */
.landing {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.landing h1 { font-size: 32px; font-weight: 700; margin: 12px 0 12px; line-height: 1.25; }
.landing h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }

.landing__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.landing ul { margin: 0 0 8px; padding-left: 22px; }
.landing li { font-size: 15px; line-height: 1.6; margin-bottom: 8px; color: var(--text); }
.landing p { font-size: 15px; line-height: 1.65; color: var(--text-secondary); }
.landing a:not(.btn) { color: var(--blue); }

.landing__law {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--locked-bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.landing__law strong { color: var(--text); }

/* Призыв под заголовком и в конце — заметный, но не кричащий */
.landing__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--orange-bg);
  border-radius: var(--radius-md);
}

.landing__cta--bottom { margin-top: 36px; }

.landing__check {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
}

.landing__cta-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.landing__cta-desc { font-size: 14px; line-height: 1.55; margin-bottom: 0; }
.landing__check .landing__cta-desc { margin-bottom: 14px; }

.landing__faq { display: flex; flex-direction: column; gap: 10px; }

.landing__faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--surface);
}

.landing__faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  list-style: none;
}
.landing__faq-item summary::-webkit-details-marker { display: none; }
.landing__faq-item summary::before { content: "— "; color: var(--blue); }
.landing__faq-item[open] summary::before { content: "× "; }
.landing__faq-item p { margin-top: 10px; font-size: 14px; }

.landing__article { margin-top: 28px; font-size: 15px; }

.landing__package { list-style: none; padding-left: 0; margin-top: 4px; }

.landing__package li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 20px;
  position: relative;
}

.landing__package li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.landing__package span { font-size: 13px; color: var(--text-muted); }

/* Второй призыв в статьях — про документы */
.article__cta--docs { background: var(--orange-bg); border-color: transparent; }

.article__cta-links {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}
.article__cta-links a { color: var(--text-secondary); }

@media (max-width: 600px) {
  .landing { padding: 24px 16px 56px; }
  .landing h1 { font-size: 26px; }
  .landing__cta { padding: 18px; }
  .landing__cta .btn { width: 100%; }
}

/* Таблицы и чек-листы в статьях */
.article__table { overflow-x: auto; margin: 18px 0 8px; }

.article__table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 420px;
}

.article__table th {
  text-align: left;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.article__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.article__table tr:last-child td { border-bottom: none; }

.article__checklist { padding-left: 22px; }
.article__checklist li { margin-bottom: 18px; }
.article__checklist li > strong { font-size: 16px; }
.article__checklist p { margin: 4px 0 0; }

.article__checklist-note {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.article__checklist-fix { font-size: 14px; color: var(--text-secondary); }
.article__checklist-fix em { color: var(--text-muted); font-style: normal; }

.article code {
  background: var(--locked-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* Состав пакета внутри статьи */
.article__docs { list-style: none; padding-left: 0; }

.article__docs li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article__docs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.article__docs span { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }


/* Связка «отчёт + документы» */
.paywall__bundle { font-size: 13px; color: #7A5B1F; margin-top: 10px; }
.review-pay__offer {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 10px;
}

/* --- Образец документа на посадочной сочетания ---
   Выглядит как лист документа, а не как текст страницы: человек пришёл за
   образцом и должен с первого взгляда понять, что перед ним именно он. */
.sample {
  margin: 18px 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 28px 30px 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.sample__title {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 18px;
}

.sample__heading {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin: 18px 0 8px;
}

.sample p { margin-bottom: 10px; }
.sample__list { margin: 0 0 10px; padding-left: 20px; }
.sample__list li { margin-bottom: 6px; }
.sample__note { font-size: 13px; color: var(--text-muted); }

/* Обрыв текста. Не прячем содержимое за размытием — честнее показать
   перечень оставшихся разделов: человек видит, что именно он получит. */
.sample__cut {
  margin: 0 -30px;
  padding: 20px 30px 26px;
  border-top: 1px solid var(--border);
  background: var(--locked-bg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.sample__cut-title { font-weight: 600; color: var(--text); margin-bottom: 8px; }
.sample__cut-desc { font-size: 13px; color: var(--text-secondary); margin: 10px 0 14px; }

.sample__rest {
  margin: 0 0 4px;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}
.sample__rest li { margin-bottom: 4px; }

/* Ссылки на соседние сочетания того же документа */
.landing__combos { list-style: none; padding-left: 0; margin-top: 4px; }

.landing__combos li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.landing__combos li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

@media (max-width: 600px) {
  .sample { padding: 20px 18px 0; }
  .sample__cut { margin: 0 -18px; padding: 18px 18px 22px; }
  .sample__cut .btn { width: 100%; }
}

/* Группы сочетаний на общей странице документа. Их бывает под сотню, поэтому
   свёрнуты: открыт только первый блок, остальные разворачиваются по нажатию. */
.landing__combo-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: var(--surface);
  margin-bottom: 8px;
}

.landing__combo-group summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  list-style: none;
}
.landing__combo-group summary::-webkit-details-marker { display: none; }
.landing__combo-group summary::before { content: "— "; color: var(--blue); }
.landing__combo-group[open] summary::before { content: "× "; }

.landing__combo-group summary span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 13px;
}

.landing__combo-group .landing__combos { margin-top: 10px; }
