/* ==========================================================================
   DogoVer — лендинг. Базовые токены и сброс
   ========================================================================== */
:root {
  --accent: #e34a16;
  --accent-2: #e34a16cc;
  --bg: #f6efe4;
  --card: #fffaf3;
  --ink: #2a1f17;
  --ink-soft: #3a2a1c;
  --dim: #7a6757;
  --mute: #9a8674;
  --line: rgba(60, 30, 10, 0.08);
  --line-2: rgba(60, 30, 10, 0.12);
  --line-3: rgba(60, 30, 10, 0.18);
  --shadow-soft: 0 8px 20px -10px rgba(60, 30, 10, 0.15);
  --shadow-card: 0 30px 60px -30px rgba(60, 30, 10, 0.25);
  --shadow-cta: 0 8px 20px -8px rgba(227, 74, 22, 0.5);
  --container: 1280px;
  --side-pad: 56px;

  --risk-high: #e85d4e;
  --risk-mid: #f0a330;
  --risk-low: #e8c441;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  display: flex;
  justify-content: center;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.app {
  width: 100%;
  max-width: var(--container);
  background: var(--bg);
}
.section { padding: 80px var(--side-pad); }

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .12s ease;
  white-space: nowrap;
  text-align: center;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 12px; }
.btn-md { padding: 14px 26px; font-size: 15px; border-radius: 14px; }
.btn-lg { padding: 18px 32px; font-size: 17px; border-radius: 16px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: #c93f10; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-3);
}
.btn-secondary:hover { background: rgba(60, 30, 10, 0.04); }
.btn-ghost {
  background: rgba(60, 30, 10, 0.05);
  color: var(--ink);
  border-color: transparent;
}
.btn-ghost:hover { background: rgba(60, 30, 10, 0.09); }
.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: transparent;
}
.btn-light:hover { background: #f4ede1; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--side-pad);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 228, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  box-shadow: 0 6px 14px -6px rgba(227, 74, 22, 0.55);
}
.brand__mark svg {
  width: 20px;
  height: 20px;
  display: block;
}
.brand__name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.nav__menu {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
}
.nav__menu a:hover { color: var(--ink); }
.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid var(--line-3);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: background .2s ease;
}
.nav__burger span::before,
.nav__burger span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: transform .25s ease, top .2s ease;
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top:  6px; }
.nav__burger.is-open span { background: transparent; }
.nav__burger.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav__burger.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 40px var(--side-pad) 80px;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  margin-bottom: 24px;
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
}
.hero__title {
  font-size: 88px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -2.5px;
  margin: 0 0 20px;
  max-width: 1000px;
}
.hero__title .accent {
  background-image: linear-gradient(120deg, var(--accent), #e34a16aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}
.hero__lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--dim);
  max-width: 580px;
  margin: 0 0 32px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

/* Hero animation: doc → analyse → report */
.hero-anim {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 8px;
}
.hero-anim__card {
  border-radius: 24px;
  padding: 24px;
  height: 280px;
  position: relative;
  transition: box-shadow .4s ease;
}
.hero-anim__card--upload {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.hero-anim__card--analyse {
  background: var(--ink);
  color: #fff;
}
.hero-anim__card--report {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.hero-anim__step {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--mute);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.hero-anim__card--analyse .hero-anim__step { color: rgba(255,255,255,.6); }

.doc-lines { display: grid; gap: 6px; }
.doc-lines > span {
  height: 7px;
  border-radius: 3px;
  background: rgba(60, 30, 10, 0.08);
  display: block;
}
.doc-lines > span:nth-child(1) { width: 100%; }
.doc-lines > span:nth-child(2) { width: 80%; }
.doc-lines > span:nth-child(3) { width: 95%; }
.doc-lines > span:nth-child(4) { width: 70%; }
.doc-lines > span:nth-child(5) { width: 88%; }
.doc-lines > span:nth-child(6) { width: 60%; }
.doc-lines > span:nth-child(7) { width: 90%; }

.doc-file {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
}
.doc-file__size { color: var(--accent); }

.analyse-list {
  display: grid;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.5;
}
.analyse-list .ok      { opacity: .8; }
.analyse-list .high    { color: #ff8a7a; }
.analyse-list .warn    { color: #ffe080; }
.analyse-progress {
  margin-top: 12px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}
.analyse-progress__bar {
  height: 100%;
  width: 30%;
  background: var(--accent);
  transition: width 1.5s ease;
}

.hero-anim__arrow {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: rgba(60, 30, 10, 0.08);
  color: var(--mute);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: all .3s ease;
}
.hero-anim__arrow.is-active {
  background: var(--accent);
  color: #fff;
}

.report-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}
.report-num__big {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1.5px;
}
.report-num__caption {
  font-size: 13px;
  color: var(--dim);
}
.report-list { display: grid; gap: 8px; }
.report-row {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11px;
  border-left: 3px solid;
}
.report-row__title { font-weight: 700; }
.report-row__desc  { color: var(--dim); margin-top: 2px; }
.report-row.high { background: rgba(232,93,78,.08); border-left-color: var(--risk-high); }
.report-row.high .report-row__title { color: var(--risk-high); }
.report-row.mid  { background: rgba(240,163,48,.08); border-left-color: var(--risk-mid); }
.report-row.mid .report-row__title  { color: var(--risk-mid); }
.report-row.low  { background: rgba(232,196,65,.08); border-left-color: var(--risk-low); }
.report-row.low .report-row__title  { color: #a08020; }

/* Trust bar */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
  background: var(--card);
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.trust__item {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}
.trust__item:last-child { border-right: none; }
.trust__num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--ink);
}
.trust__cap {
  font-size: 13px;
  color: var(--dim);
  margin-top: 2px;
}

/* ==========================================================================
   Заголовки разделов
   ========================================================================== */
.section--card { background: var(--card); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
}
.section-head--center {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.section-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0;
  line-height: 1;
}
.section-title--md {
  font-size: 48px;
  letter-spacing: -1.2px;
  line-height: 1.05;
}
.section-lead {
  font-size: 16px;
  color: var(--dim);
  max-width: 360px;
  margin: 0;
  line-height: 1.5;
}
.section-lead--center {
  margin: 16px auto 0;
  max-width: 540px;
  font-size: 17px;
}

/* ==========================================================================
   How it works
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  background: var(--bg);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
}
.step__num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
}
.step__icon {
  margin: 20px 0 16px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(227, 74, 22, 0.14), rgba(227, 74, 22, 0.06));
  border: 1px solid rgba(227, 74, 22, 0.18);
  color: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.step__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
.step__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.step__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--dim);
  margin: 0;
}

/* ==========================================================================
   Demo
   ========================================================================== */
.demo {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  background: var(--card);
  border-radius: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.demo__doc {
  background: #fff;
  border-radius: 18px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  position: relative;
  max-height: 460px;
  overflow: hidden;
}
.demo__doc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(60, 30, 10, 0.15);
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 1px;
}
.demo__doc-body { font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.demo__doc-body p {
  margin: 0 0 12px;
  padding: 0 8px;
  border-radius: 6px;
  transition: background .15s ease;
}
.demo__doc-body p .num { color: var(--mute); margin-right: 6px; }
.demo__doc-body p[data-risk] {
  cursor: pointer;
  padding: 4px 8px;
}
.demo__doc-body p[data-risk="high"]   { background: rgba(232,93,78,.20);  box-shadow: inset 0 -2px 0 var(--risk-high); }
.demo__doc-body p[data-risk="medium"] { background: rgba(240,163,48,.20); box-shadow: inset 0 -2px 0 var(--risk-mid); }
.demo__doc-body p[data-risk="low"]    { background: rgba(232,196,65,.20); box-shadow: inset 0 -2px 0 var(--risk-low); }
.demo__doc-body p[data-risk].is-active { font-weight: 500; }
.demo__doc-body p[data-risk="high"].is-active   { background: rgba(232,93,78,.40); }
.demo__doc-body p[data-risk="medium"].is-active { background: rgba(240,163,48,.40); }
.demo__doc-body p[data-risk="low"].is-active    { background: rgba(232,196,65,.40); }
.demo__doc::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}
.demo__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo__report {
  background: var(--ink);
  color: #fff;
  border-radius: 18px;
  padding: 20px;
}
.demo__report-eyebrow {
  font-size: 11px;
  opacity: .6;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.demo__report-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.demo__report-num strong {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}
.demo__report-num span {
  font-size: 14px;
  opacity: .8;
}
.demo__report-stats {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.demo__report-stats div {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}
.demo__report-stats .high { background: rgba(232,93,78,.18); color: #ff8a7a; }
.demo__report-stats .mid  { background: rgba(240,163,48,.18); color: #ffc070; }
.demo__report-stats .low  { background: rgba(232,196,65,.18); color: #ffe080; }

.demo__detail {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1.5px solid;
}
.demo__detail.high   { border-color: rgba(232,93,78,.25);  box-shadow: 0 8px 20px -10px rgba(232,93,78,.30); }
.demo__detail.medium { border-color: rgba(240,163,48,.25); box-shadow: 0 8px 20px -10px rgba(240,163,48,.30); }
.demo__detail.low    { border-color: rgba(232,196,65,.25); box-shadow: 0 8px 20px -10px rgba(232,196,65,.30); }
.demo__detail-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.demo__detail.high .demo__detail-tag   { background: rgba(232,93,78,.20);  color: var(--risk-high); }
.demo__detail.medium .demo__detail-tag { background: rgba(240,163,48,.20); color: var(--risk-mid); }
.demo__detail.low .demo__detail-tag    { background: rgba(232,196,65,.20); color: #a08020; }
.demo__detail-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.demo__detail-fix {
  margin-top: 14px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  border: 1.5px solid var(--accent);
  background: rgba(227,74,22,.07);
  color: var(--accent);
  cursor: pointer;
}
.demo__hint {
  background: rgba(60, 30, 10, 0.04);
  border-radius: 14px;
  padding: 14px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
}
.demo__hint strong {
  font-weight: 600;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 4px;
}

/* ==========================================================================
   Features (bento grid)
   ========================================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.feature {
  background: var(--bg);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.feature--span-3 { grid-column: span 3; }
.feature--span-2 { grid-column: span 2; }
.feature__preview {
  flex: 1;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}
.feature__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--dim);
  margin: 0;
}
/* Doc preview */
.fp-doc {
  width: 100%;
  max-width: 280px;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 5px;
}
.fp-doc span {
  height: 5px;
  background: rgba(60, 30, 10, 0.1);
  border-radius: 2px;
  display: block;
}
.fp-doc span.high {
  background: rgba(232,93,78,.27);
  box-shadow: inset 0 -1.5px 0 var(--risk-high);
}
.fp-doc span.mid {
  background: rgba(240,163,48,.27);
  box-shadow: inset 0 -1.5px 0 var(--risk-mid);
}
/* Chat preview */
.fp-chat {
  width: 100%;
  max-width: 280px;
  display: grid;
  gap: 8px;
}
.fp-chat .bubble {
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.4;
}
.fp-chat .bubble--in {
  background: #fff;
  color: var(--ink-soft);
  box-shadow: 0 4px 12px -6px rgba(60, 30, 10, 0.15);
}
.fp-chat .bubble--out {
  background: var(--accent);
  color: #fff;
  justify-self: flex-end;
  max-width: 85%;
}
/* Diff preview */
.fp-diff {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
}
.fp-diff div { border-radius: 10px; padding: 10px; }
.fp-diff .minus { background: #fef0ed; color: #a04030; }
.fp-diff .plus  { background: #edf6f0; color: #306040; }
/* Templates preview */
.fp-tpl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 300px;
}
.fp-tpl div {
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 10px -6px rgba(60, 30, 10, 0.15);
  color: var(--ink);
}
/* Formats preview */
.fp-fmt {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: 220px;
}
.fp-fmt div {
  background: #fff;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--ink-soft);
  box-shadow: 0 4px 10px -6px rgba(60, 30, 10, 0.15);
}

/* ==========================================================================
   Scenarios
   ========================================================================== */
.scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.scenario {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}
.scenario__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 16px;
  background: rgba(227,74,22,.10);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.scenario__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  line-height: 1.2;
}
.scenario__quote {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
  margin: 0;
  font-style: italic;
}
.scenario__author {
  font-size: 12px;
  color: var(--dim);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

/* ==========================================================================
   Comparison
   ========================================================================== */
.compare {
  background: var(--bg);
  border-radius: 24px;
  padding: 8px;
  border: 1px solid var(--line);
  max-width: 1000px;
  margin: 0 auto;
}
.compare__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-radius: 16px;
  overflow: hidden;
}
.compare__cell {
  padding: 16px 24px;
  font-size: 14px;
}
.compare__cell--head {
  padding: 20px 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dim);
}
.compare__cell--head.text-center { text-align: center; }
.compare__cell--accent-head {
  background: var(--accent);
  color: #fff;
  text-align: center;
  border-radius: 12px 12px 0 0;
}
/* Каждый .compare__row растворяется в сетке родителя — все ячейки становятся
   прямыми потомками .compare__grid и попадают в трёхколоночную раскладку. */
.compare__row { display: contents; }

.compare__row > .compare__cell {
  border-top: 1px solid var(--line);
}
.compare__row > .compare__cell:first-child {
  color: var(--ink);
  font-weight: 500;
}
.compare__row > .compare__cell--center {
  text-align: center;
  color: var(--dim);
}
.compare__row > .compare__cell--accent {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-align: center;
  border-top-color: rgba(255,255,255,.15);
}
.compare__row:last-child > .compare__cell--accent {
  border-radius: 0 0 12px 12px;
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.price {
  background: var(--card);
  color: var(--ink);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  position: relative;
}
.price--hl {
  background: var(--ink);
  color: #fff;
  border: none;
}
.price__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.price__name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  opacity: .8;
}
.price__num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.price__num strong {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
}
.price__num span {
  font-size: 22px;
  font-weight: 700;
}
.price__sub {
  font-size: 12px;
  opacity: .6;
  margin-bottom: 16px;
}
.price__desc {
  font-size: 13px;
  line-height: 1.5;
  opacity: .85;
  margin: 0;
}
.pricing-cta {
  text-align: center;
  margin-top: 32px;
}
.pricing-cta__sub {
  font-size: 13px;
  color: var(--dim);
  margin-top: 12px;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testimonial {
  background: var(--bg);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
}
.testimonial__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 16px;
}
.testimonial__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 20px;
}
.testimonial__name { font-size: 13px; font-weight: 600; }
.testimonial__role { font-size: 12px; color: var(--dim); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: flex-start;
}
.faq__intro { position: sticky; top: 100px; }
.faq__title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin: 0 0 24px;
  line-height: 1.05;
}
.faq__about {
  font-size: 16px;
  color: var(--dim);
  line-height: 1.55;
}
.faq__about a {
  color: var(--accent);
  font-weight: 600;
}
.faq-item { border-top: 1px solid var(--line); }
.faq-item__btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  gap: 16px;
}
.faq-item__q {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.faq-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: rgba(60, 30, 10, 0.06);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all .15s ease;
}
.faq-item.is-open .faq-item__icon {
  background: var(--accent);
  color: #fff;
}
.faq-item__a {
  font-size: 15px;
  line-height: 1.55;
  color: var(--dim);
  margin: 0 0 20px;
  max-width: 600px;
  display: none;
}
.faq-item.is-open .faq-item__a { display: block; }
.faq-item__icon::before { content: '+'; line-height: 1; }
.faq-item.is-open .faq-item__icon::before { content: '−'; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta-wrap {
  padding: 40px var(--side-pad) 80px;
}
.final-cta {
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}
.final-cta::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227,74,22,.55), transparent 70%);
  filter: blur(20px);
}
.final-cta__inner { position: relative; z-index: 1; max-width: 700px; }
.final-cta__title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -1.8px;
  margin: 0 0 20px;
  line-height: 0.95;
}
.final-cta__lead {
  font-size: 19px;
  line-height: 1.5;
  opacity: .8;
  margin: 0 0 32px;
  max-width: 480px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 32px var(--side-pad) 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 13px;
  color: var(--dim);
}
.footer__disclaimer {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
}
.footer__disclaimer p { margin: 0; }
.footer__disclaimer p + p { margin-top: 10px; }
.footer__disclaimer strong { color: var(--ink); font-weight: 700; }
.footer__legal {
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.1px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a:hover { color: var(--ink); }

/* ==========================================================================
   Auth popup
   ========================================================================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(28, 22, 18, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: dvFade .18s ease;
}
.auth-overlay.is-open { display: flex; }
@keyframes dvFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dvPop  { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.auth {
  background: var(--card);
  border-radius: 28px;
  padding: 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 80px -20px rgba(60, 30, 10, .35), 0 8px 20px -8px rgba(60, 30, 10, .15);
  animation: dvPop .22s cubic-bezier(.2,.7,.3,1);
  position: relative;
}
.auth__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  border: none;
  background: rgba(60, 30, 10, .06);
  cursor: pointer;
  font-size: 18px;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
}
.auth__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.auth__mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  box-shadow: 0 8px 18px -8px rgba(227, 74, 22, 0.6);
  flex-shrink: 0;
}
.auth__mark svg {
  width: 26px;
  height: 26px;
  display: block;
}
.auth__title { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
.auth__sub   { font-size: 14px; color: var(--dim); }
.auth__intro {
  font-size: 14px;
  line-height: 1.5;
  color: #5a4a3c;
  margin: 0 0 22px;
}
.auth__socials { display: grid; gap: 10px; margin-bottom: 18px; }
.auth__sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}
.auth__sep::before,
.auth__sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(60, 30, 10, 0.10);
}
.auth__sep span {
  font-size: 12px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.auth__label {
  display: block;
  font-size: 13px;
  color: #5a4a3c;
  margin-bottom: 6px;
  font-weight: 500;
}
.auth__input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line-2);
  background: #fff;
  font-family: inherit;
  outline: none;
  color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
.auth__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(227,74,22,.13);
}
.auth__submit {
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: rgba(60, 30, 10, .1);
  color: var(--mute);
  font-family: inherit;
  transition: all .12s ease;
}
.auth__submit.is-active {
  background: var(--accent);
  color: #fff;
}
.auth__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  cursor: pointer;
}
.auth__agree input {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.auth__agree-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--dim);
}
.auth__agree-text a {
  color: var(--accent);
  font-weight: 500;
}

.social-btn {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform .08s ease, opacity .12s;
}
.social-btn:active { transform: scale(.98); }
.social-btn--yandex { background: #000; color: #fff; }
.social-btn--vk     { background: #0077FF; color: #fff; }
.social-btn--phone  { background: rgba(60, 30, 10, .06); color: var(--ink); }
.social-btn__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.social-btn--phone .social-btn__icon { background: rgba(60,30,10,.08); color: var(--accent); }
.social-btn--yandex .social-btn__icon { color: #fc3f1d; font-size: 18px; }
.social-btn--vk .social-btn__icon { font-size: 16px; font-style: italic; }

/* ==========================================================================
   Адаптив. Tablet — 1024px и ниже
   ========================================================================== */
@media (max-width: 1100px) {
  :root { --side-pad: 40px; }
  .hero__title { font-size: 72px; letter-spacing: -2px; }
  .section-title { font-size: 48px; letter-spacing: -1.2px; }
  .section-title--md { font-size: 40px; letter-spacing: -1px; }
  .final-cta__title { font-size: 56px; letter-spacing: -1.5px; }
  .final-cta { padding: 56px 40px; }

  .hero-anim {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-anim__arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .features {
    grid-template-columns: repeat(4, 1fr);
  }
  .feature--span-3 { grid-column: span 4; }
  .feature--span-2 { grid-column: span 2; }

  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq__intro { position: static; }
}

/* Tablet portrait — до 820px */
@media (max-width: 820px) {
  :root { --side-pad: 28px; }
  .section { padding: 64px var(--side-pad); }
  .hero { padding: 24px var(--side-pad) 56px; }

  .nav { padding: 18px var(--side-pad); position: sticky; }
  .nav__menu { display: none; }
  .nav__burger { display: inline-flex; }
  /* Кнопка «Войти» прижимается к бургеру справа */
  .nav > .btn { margin-left: auto; }
  .nav__menu.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--card);
    padding: 16px var(--side-pad) 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
    box-shadow: 0 16px 40px -20px rgba(60,30,10,.25);
  }

  .hero__title { font-size: 56px; letter-spacing: -1.5px; }
  .hero__lead  { font-size: 17px; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .section-title { font-size: 40px; letter-spacing: -1px; }
  .section-title--md { font-size: 34px; letter-spacing: -.8px; }

  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2) { border-right: none; }
  .trust__item:nth-child(1),
  .trust__item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .trust__item:nth-child(3) { border-right: 1px solid var(--line); }

  .steps        { grid-template-columns: 1fr; }
  .demo {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 22px;
  }
  .demo__doc { padding: 18px 20px; max-height: none; }
  .demo__doc::after { display: none; }

  .features     { grid-template-columns: repeat(2, 1fr); }
  .feature--span-3,
  .feature--span-2 { grid-column: span 2; }

  .scenarios    { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }

  /* Comparison — стек на мобильных, одна колонка */
  .compare__grid {
    grid-template-columns: 1fr;
  }
  /* Прячем «пустую» ячейку и заголовок «Обычный юрист» в мобильной раскладке —
     значения подписываем псевдоэлементами в каждой строке */
  .compare__cell--head:nth-child(1),
  .compare__cell--head:nth-child(2) { display: none; }
  .compare__cell--accent-head {
    border-radius: 12px;
  }
  .compare__row > .compare__cell:first-child {
    background: rgba(60, 30, 10, 0.04);
    font-weight: 700;
    border-top: 1px solid var(--line);
  }
  .compare__row > .compare__cell--center::before {
    content: 'Юрист: ';
    color: var(--dim);
    font-weight: 500;
  }
  .compare__row > .compare__cell--accent {
    border-top: none;
  }
  .compare__row > .compare__cell--accent::before {
    content: 'ДогоВер: ';
    opacity: .85;
    font-weight: 500;
  }
  .compare__row:not(:last-child) > .compare__cell--accent {
    border-radius: 0;
  }
  .compare__row:last-child > .compare__cell--accent {
    border-radius: 0 0 12px 12px;
  }

  .pricing { grid-template-columns: repeat(2, 1fr); }

  .final-cta { padding: 40px 28px; border-radius: 24px; }
  .final-cta__title { font-size: 40px; letter-spacing: -1px; }
  .final-cta__lead  { font-size: 16px; }
  .final-cta-wrap   { padding: 24px var(--side-pad) 56px; }

  .footer { padding: 24px var(--side-pad) 32px; gap: 20px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-direction: column; gap: 10px; }
  .footer__disclaimer { padding: 16px 18px; }
}

/* Mobile — до 540px */
@media (max-width: 540px) {
  :root { --side-pad: 20px; }
  .section { padding: 48px var(--side-pad); }
  .hero { padding: 16px var(--side-pad) 48px; }

  .hero__title { font-size: 44px; letter-spacing: -1.2px; }
  .hero__lead  { font-size: 16px; }
  .hero__cta   { gap: 8px; }
  .hero__cta .btn { width: 100%; }

  .section-title { font-size: 32px; letter-spacing: -0.8px; }
  .section-title--md { font-size: 28px; letter-spacing: -.6px; }
  .faq__title { font-size: 32px; letter-spacing: -.8px; }

  .pricing { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature--span-3,
  .feature--span-2 { grid-column: span 1; }
  .feature { min-height: 0; padding: 24px; }

  .step { padding: 22px; }
  .scenario { padding: 22px; min-height: 0; }
  .testimonial { padding: 22px; }

  .demo__report-stats { flex-direction: column; gap: 6px; }

  .final-cta__title { font-size: 32px; letter-spacing: -.8px; }
  .final-cta { padding: 32px 22px; }

  .auth { padding: 28px 22px; border-radius: 24px; }
  .auth__title { font-size: 20px; }
}

@media (max-width: 360px) {
  .hero__title { font-size: 38px; }
  .nav { padding: 14px var(--side-pad); }
  .brand__name { font-size: 18px; }
}

/* ==========================================================================
   Nav: action group и кнопки правого края (используется на terms/privacy)
   ========================================================================== */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Стили длинных текстовых страниц: оферта, политика
   ========================================================================== */
.terms {
  padding: 48px var(--side-pad) 96px;
  color: var(--ink);
}
.terms__head { margin-bottom: 40px; }
.terms__title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 12px 0 20px;
}
.terms__meta {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.6;
  margin: 0 0 28px;
}
.terms__meta a { color: var(--accent); border-bottom: 1px solid currentColor; }
.terms__notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.terms__notice strong { color: var(--ink); }

.terms__toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 28px;
  margin: 40px 0 56px;
}
.terms__toc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.terms__toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.terms__toc a { color: inherit; }
.terms__toc a:hover { color: var(--accent); }

.terms__section {
  margin-bottom: 36px;
  scroll-margin-top: 96px;
}
.terms__section h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.6px;
  margin: 0 0 16px;
  color: var(--ink);
}
.terms__section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.terms__section ul {
  margin: 4px 0 16px;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.terms__section ul li { margin-bottom: 6px; }
.terms__section a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.terms__section strong {
  color: var(--ink);
  font-weight: 600;
}

.terms__top {
  display: inline-block;
  margin-top: 32px;
  padding: 10px 18px;
  background: rgba(60, 30, 10, 0.05);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.terms__top:hover {
  background: rgba(60, 30, 10, 0.09);
  color: var(--accent);
}

@media (max-width: 820px) {
  .terms { padding: 32px var(--side-pad) 64px; }
  .terms__title { font-size: 36px; letter-spacing: -1px; }
  .terms__notice { padding: 16px 18px; font-size: 14px; }
  .terms__toc { padding: 18px 22px; margin: 28px 0 36px; }
  .terms__toc ol { grid-template-columns: 1fr; gap: 6px; }
  .terms__section h2 { font-size: 22px; }
  .terms__section p,
  .terms__section ul { font-size: 14.5px; }

  /* На узких экранах с бургером прячем "На главную", оставляем только Войти */
  .nav__home { display: none; }
  .nav__actions { margin-left: auto; gap: 0; }
}

@media (max-width: 540px) {
  .terms__title { font-size: 28px; letter-spacing: -.7px; }
}

/* === Auth code step (SMS) === */
.auth__code-step { margin-top: 14px; }
.auth__code-back {
  background: none; border: 0; padding: 4px 0; margin-bottom: 8px;
  color: #6b6b6b; font-size: 13px; cursor: pointer;
}
.auth__code-back:hover { color: #1a1a1a; }
.auth__code-title {
  font-size: 18px; font-weight: 700; margin-bottom: 6px;
}
.auth__code-sub { color: #6b6b6b; font-size: 13px; margin-bottom: 14px; }
.auth__code-error {
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
  padding: 8px 10px; border-radius: 8px; font-size: 13px; margin-bottom: 12px;
}
.auth__code-inputs { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.auth__code-inputs input {
  width: 52px; height: 56px; text-align: center; font-size: 22px; font-weight: 700;
  border: 1px solid #d4d4d4; border-radius: 12px; background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.auth__code-inputs input:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}
.auth__code-resend { text-align: center; font-size: 13px; color: #6b6b6b; }
.auth__code-resend-btn {
  background: none; border: 0; color: #1e3a8a;
  font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 0;
}
.auth__code-resend-btn:hover { text-decoration: underline; }