/* ==========================================================================
   Договор-Чек — стили
   ========================================================================== */

:root {
  --ink: #0d1526;
  --ink-2: #24314a;
  --muted: #5d6b85;
  --line: #e2e8f2;
  --line-2: #eef2f8;
  --bg: #ffffff;
  --soft: #f5f8fc;
  --soft-2: #eef4fd;
  --brand: #2563eb;
  --brand-dark: #1a45b8;
  --brand-ink: #12295c;
  --ok: #128a52;
  --ok-bg: #e8f7ef;
  --warn: #b06b00;
  --warn-bg: #fff5e5;
  --bad: #c02b2b;
  --bad-bg: #fdeceb;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(13, 21, 38, .05), 0 8px 24px -12px rgba(13, 21, 38, .18);
  --shadow-lg: 0 2px 4px rgba(13, 21, 38, .06), 0 24px 60px -24px rgba(13, 21, 38, .3);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.3vw, 1.85rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--soft); padding: .1em .35em; border-radius: 5px; }
blockquote { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 800px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.nowrap { white-space: nowrap; }
.link-like { color: var(--brand); text-decoration: underline; cursor: pointer; }

/* ------------------------------- шапка ---------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; font-size: 1.06rem; }
.logo:hover { text-decoration: none; }
.logo-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  color: #fff; font-size: 17px; font-weight: 700;
}
.main-nav { display: flex; gap: 20px; margin-left: 8px; }
.main-nav a { color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.main-nav a:hover, .main-nav a.is-active { color: var(--brand); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ------------------------------ кнопки ---------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -8px rgba(37, 99, 235, .8); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--soft); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-mini { padding: 6px 12px; font-size: .82rem; border-radius: 8px; background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* -------------------------------- hero ---------------------------------- */

.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--soft) 0%, #fff 78%); border-bottom: 1px solid var(--line-2); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px;
  background: var(--soft-2); color: var(--brand-ink); font-size: .79rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 { margin-bottom: 18px; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 40em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .87rem; }
.hero-trust span::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* --------------------------- демо-отчёт в hero --------------------------- */

.report-demo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.report-demo-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #d7dfec; }
.report-demo-title { margin-left: 10px; font-size: .8rem; color: var(--muted); }
.report-demo-body { padding: 16px; display: grid; gap: 12px; }
.report-demo-score { display: flex; align-items: center; gap: 18px; }
.report-demo-meta { display: flex; gap: 16px; color: var(--muted); font-size: .82rem; }
.report-demo-meta b { color: var(--ink); }

/* ------------------------------- секции --------------------------------- */

.section { padding: 64px 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-title { text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); max-width: 46em; margin: 0 auto 34px; }
.section-title-left { font-size: 1.25rem; margin: 0 0 14px; }
.page-title { margin-bottom: 8px; }

.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pain-ico { font-size: 1.6rem; margin-bottom: 8px; }
.pain-card h3 { margin-bottom: 6px; }
.pain-card p { margin: 0; color: var(--muted); font-size: .93rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step-num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--soft-2); color: var(--brand); font-weight: 800; margin-bottom: 12px;
}
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .9rem; }

/* -------------------------------- таблицы -------------------------------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .93rem; }
table.compare th, table.compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); }
table.compare thead th { background: var(--soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td:first-child { color: var(--muted); }
.col-us { background: var(--soft-2) !important; color: var(--ink); }
table.compare-plain td:last-child { font-weight: 600; }

table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th, table.list td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.list thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }

/* -------------------------------- тарифы -------------------------------- */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.price-card-featured { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1), var(--shadow-lg); }
.price-badge {
  position: absolute; top: -11px; left: 24px; background: var(--brand); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.price-card h3 { margin-bottom: 10px; }
.price-value { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; }
.price-per { color: var(--muted); font-size: .87rem; margin-bottom: 16px; }
.price-perks { list-style: none; padding: 0; margin: 0 0 20px; }
.price-perks li { padding-left: 24px; position: relative; margin-bottom: 8px; font-size: .93rem; }
.price-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* ---------------------------------- FAQ --------------------------------- */

.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 15px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 46px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 13px; color: var(--brand); font-size: 1.3rem; font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-body { padding: 0 18px 16px; color: var(--ink-2); font-size: .94rem; }

/* --------------------------------- CTA ---------------------------------- */

.cta-final { padding: 72px 0; background: linear-gradient(140deg, var(--brand-ink), var(--brand-dark)); color: #fff; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255, 255, 255, .82); }
.cta-final .btn-primary { background: #fff; color: var(--brand-ink); box-shadow: none; }
.cta-final .btn-primary:hover { background: #eaf0ff; }

.cta-inline {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--soft-2); border: 1px solid #d5e2fb; border-radius: var(--radius);
  padding: 20px 24px; margin: 28px 0;
}
.cta-inline h3 { margin: 0 0 4px; }
.cta-inline p { margin: 0; color: var(--muted); font-size: .92rem; }

/* --------------------------------- карточки ------------------------------ */

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card h2 { font-size: 1.2rem; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.side-card { padding: 20px; }
.balance { font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.tips { padding-left: 18px; margin: 0; font-size: .9rem; color: var(--ink-2); }
.tips li { margin-bottom: 10px; }
.quote-card { font-style: italic; color: var(--ink-2); border-left: 3px solid var(--brand); }

/* --------------------------------- формы -------------------------------- */

.form label { display: block; margin-bottom: 14px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.form input[type="text"], .form input[type="email"], .form input[type="password"], .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400;
  background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid rgba(37, 99, 235, .35); outline-offset: 0; border-color: var(--brand); }
.form textarea { resize: vertical; font-family: var(--mono); font-size: .87rem; line-height: 1.5; }
.checkbox { display: flex; gap: 9px; align-items: flex-start; font-weight: 400 !important; font-size: .87rem; color: var(--muted); }
.checkbox input { margin-top: 3px; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ------------------------------- авторизация ----------------------------- */

.auth { padding: 64px 0 80px; background: var(--soft); min-height: 60vh; }
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-card h1 { font-size: 1.5rem; }
.auth-switch { margin-top: 16px; font-size: .92rem; color: var(--muted); text-align: center; }

/* -------------------------------- кабинет -------------------------------- */

.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; }
.tabs { display: flex; gap: 6px; background: var(--soft); padding: 4px; border-radius: 11px; margin-bottom: 16px; }
.tab { flex: 1; border: 0; background: transparent; padding: 9px 14px; border-radius: 8px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

.dropzone {
  border: 2px dashed #cdd8ea; border-radius: var(--radius); background: var(--soft);
  padding: 34px 20px; text-align: center; cursor: pointer; transition: .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--soft-2); }
.dropzone-icon { font-size: 2rem; margin-bottom: 8px; }
.dropzone.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }

.file-slot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.file-slot .slot-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); min-width: 130px; }
.file-slot .slot-name { flex: 1; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-slot.has-file { border-color: var(--ok); background: var(--ok-bg); }

.paste-block { margin: 16px 0; }
.paste-block summary { cursor: pointer; font-size: .9rem; color: var(--brand); font-weight: 600; }
.paste-block textarea { margin-top: 10px; }

.upload-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: .9rem; background: var(--soft-2); border: 1px solid #d5e2fb; }
.upload-status.is-error { background: var(--bad-bg); border-color: #f4c9c6; color: #8a1f1f; }

.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.chip-done { background: var(--ok-bg); color: var(--ok); }
.chip-error { background: var(--bad-bg); color: var(--bad); }
.chip-run { background: var(--soft-2); color: var(--brand); }
.chip-queue { background: var(--warn-bg); color: var(--warn); }

/* --------------------------------- отчёт -------------------------------- */

.crumbs { font-size: .87rem; color: var(--muted); margin-bottom: 14px; }
.report-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; }
.report-header-actions { display: flex; gap: 12px; align-items: center; }
.report-head { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 24px; }
.report-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 12px; }
.report-stats div { display: flex; flex-direction: column; }
.report-stats b { font-size: 1.5rem; line-height: 1.1; }
.report-stats span { font-size: .8rem; color: var(--muted); }
.report-summary { margin: 0; color: var(--ink-2); }
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.report-h2 { margin: 34px 0 14px; font-size: 1.22rem; }

.score { text-align: center; padding: 18px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.score-num { font-size: 2.8rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.score-num span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.score-label { font-size: .87rem; font-weight: 700; margin-top: 6px; }
.score-ok .score-num, .score-ok .score-label { color: var(--ok); }
.score-warn .score-num, .score-warn .score-label { color: var(--warn); }
.score-bad .score-num, .score-bad .score-label { color: var(--bad); }
.score-ok { background: var(--ok-bg); border-color: #bfe6d0; }
.score-warn { background: var(--warn-bg); border-color: #f0dcb4; }
.score-bad { background: var(--bad-bg); border-color: #f2c9c6; }
.score-compare .score-num { font-size: 2.2rem; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .01em; }
.sev-critical { background: var(--bad-bg); color: var(--bad); }
.sev-high { background: var(--warn-bg); color: var(--warn); }
.sev-medium { background: var(--soft-2); color: var(--brand-dark); }
.sev-low { background: var(--soft); color: var(--muted); }
.kind-bad { background: var(--bad-bg); color: var(--bad); }
.kind-good { background: var(--ok-bg); color: var(--ok); }
.kind-neutral { background: var(--soft); color: var(--muted); }

.risk-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.risk-critical { border-left-color: var(--bad); }
.risk-high { border-left-color: #e0932a; }
.risk-medium { border-left-color: var(--brand); }
.risk-low { border-left-color: #b9c4d8; }
.risk-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.risk-clause { font-weight: 700; font-size: .9rem; color: var(--ink); }
.risk-cat { font-size: .84rem; color: var(--muted); }
.risk-quote { margin: 0 0 12px; padding: 10px 14px; background: var(--soft); border-left: 3px solid var(--line); border-radius: 0 8px 8px 0; font-size: .92rem; color: var(--ink-2); font-style: italic; }
.risk-line { margin: 0 0 8px; font-size: .93rem; color: var(--ink-2); }
.risk-line b { color: var(--ink); }
.risk-fix { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.risk-fix summary { cursor: pointer; font-size: .89rem; font-weight: 600; color: var(--brand); }
.wording { margin: 10px 0 0; padding: 12px 14px; background: var(--ok-bg); border-radius: 8px; font-size: .91rem; color: #0d4a2c; }
.risk-law { margin-top: 10px; font-size: .82rem; color: var(--muted); font-family: var(--mono); }

.diff-line { margin: 0 0 8px; font-size: .92rem; padding: 9px 12px; border-radius: 8px; }
.diff-line span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: 3px; }
.diff-before { background: var(--bad-bg); color: #7c2222; }
.diff-after { background: var(--soft-2); color: var(--brand-ink); }

.passport { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.passport > div { background: #fff; padding: 13px 16px; display: flex; flex-direction: column; gap: 3px; }
.passport span { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.passport b { font-weight: 600; font-size: .93rem; }

.priority-list { padding-left: 22px; }
.priority-list li { margin-bottom: 12px; }
.priority-head { font-weight: 600; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; }
.cat-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.cat-score { margin-left: auto; font-weight: 800; font-size: .9rem; }
.cat-ok { color: var(--ok); } .cat-warn { color: var(--warn); } .cat-bad { color: var(--bad); }

.bar-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.bar-label { font-size: .8rem; color: var(--muted); min-width: 90px; }
.bar-track { flex: 1; height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-ok { background: var(--ok); } .bar-warn { background: #e0932a; } .bar-bad { background: var(--bad); }

.missing-list { display: grid; gap: 12px; }
.missing-item { background: #fff; border: 1px dashed #cdd8ea; border-radius: var(--radius-sm); padding: 15px 18px; }
.missing-item h3 { font-size: 1rem; margin-bottom: 5px; }
.missing-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.missing-item details { margin-top: 9px; }
.missing-item summary { cursor: pointer; font-size: .87rem; color: var(--brand); font-weight: 600; }

.check-list { padding-left: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 9px; font-size: .93rem; }
.check-list li::before { content: "☐"; position: absolute; left: 0; color: var(--brand); font-size: 1.05rem; }
.check-list.ok li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.notes-list { padding-left: 20px; color: var(--ink-2); font-size: .93rem; }
.disclaimer { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ------------------------------- уведомления ----------------------------- */

.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .92rem; border: 1px solid transparent; }
.alert-error { background: var(--bad-bg); border-color: #f2c9c6; color: #7c2222; }
.alert-ok { background: var(--ok-bg); border-color: #bfe6d0; color: #0d4a2c; }
.alert-warn { background: var(--warn-bg); border-color: #f0dcb4; color: #6d4400; }

/* ------------------------------- прогресс -------------------------------- */

.spinner { width: 38px; height: 38px; margin: 0 auto 16px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 7px; background: var(--line-2); border-radius: 999px; overflow: hidden; max-width: 420px; margin: 18px auto 10px; }
.progress-bar { height: 100%; width: 8%; background: var(--brand); border-radius: 999px; transition: width .5s ease; }

/* -------------------------------- админка -------------------------------- */

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 18px 0 24px; }
.kpi-grid-sm { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.kpi-value { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.kpi-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi-sub { font-size: .78rem; color: var(--muted); margin-top: 3px; }

/* ------------------------------ типографика док. ------------------------- */

.doc { font-size: 1rem; }
.doc h2 { margin-top: 34px; font-size: 1.2rem; }
.doc h3 { margin-top: 24px; }
.doc ul { padding-left: 22px; color: var(--ink-2); }
.doc li { margin-bottom: 7px; }
.req-box { background: var(--soft); border: 1px dashed #cdd8ea; border-radius: var(--radius-sm); padding: 16px 18px; line-height: 1.7; }
.req-list { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 0 0 16px; }
.req-row { display: flex; gap: 16px; align-items: baseline; padding: 11px 16px; border-bottom: 1px solid var(--line-2); background: #fff; }
.req-row:last-child { border-bottom: 0; }
.req-row span { flex: 0 0 42%; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.req-row b { font-weight: 600; font-size: .95rem; word-break: break-word; }
.steps-list { padding-left: 22px; color: var(--ink-2); }
.steps-list li { margin-bottom: 9px; }
.related-list { padding-left: 20px; }
.related-list li { margin-bottom: 7px; }
.accordion .faq-item summary { font-weight: 600; }

/* --------------------------------- футер --------------------------------- */

.site-footer { background: var(--ink); color: #c3cddd; padding: 52px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-col h4 { color: #fff; font-size: .84rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer-col a { display: block; color: #a9b6ca; font-size: .9rem; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: .9rem; color: #93a2ba; }
.logo-footer { color: #fff; margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #8593a9; }

/* --------------------------------- печать -------------------------------- */

.print-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.print-mode .report-head, .print-mode .risk-card { box-shadow: none; }
@media print {
  .site-header, .site-footer, .report-actions, .cta-final, .cta-inline { display: none !important; }
  body { font-size: 12pt; }
  .risk-card { break-inside: avoid; }
}

/* -------------------------------- адаптив -------------------------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .report-head { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .pain-grid, .steps, .pricing-grid, .cat-grid, .passport { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .hero { padding: 36px 0 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-inline { flex-direction: column; align-items: flex-start; }
  .header-inner { gap: 12px; }
  .logo-text { display: none; }
}
