/* Станция юриста — дизайн-система «Legal Precise» (из макета Stitch, 2026-08-23)
   Светлый продуктовый SaaS: белый, светло-серый, один синий акцент, Inter.
   Шрифт self-hosted (вариативный woff2, latin+cyrillic) — без CDN и внешних хостов. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-var-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-row: #f1f5fd;
  --navy: #0f172a;
  --band-ink: #cbd5e1;
  --band-soft: #93b3f2;
  --ok-bg: #dcfce7;
  --ok-ink: #15803d;
  --shadow-widget: 0 4px 20px rgba(15, 23, 42, 0.06), 0 0 1px rgba(15, 23, 42, 0.16);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.2;
}

h1 { font-size: 46px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 24px; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }

p + p { margin-top: 14px; }

a { color: var(--accent); }

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }

.label-caps {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rule { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* Кнопки: сплошной синий primary, мягкий радиус */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 13px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); }

/* Шапка */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  margin-right: 8px;
}
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); }
.header-cta { margin-left: auto; padding: 10px 18px; font-size: 14px; }

/* Hero */
.hero { padding: 88px 0; }
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero p.lead { margin: 22px 0 32px; font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.quiet-link {
  display: inline-block;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.quiet-link:hover { background: var(--bg-alt); }

/* Карточка дела в hero — «скриншот продукта» */
.case-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-widget);
  padding: 24px;
}
.case-card .case-label { color: var(--accent); margin-bottom: 10px; }
.case-card .case-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
}
.case-card ul { list-style: none; }
.case-card li {
  background: var(--accent-row);
  border-radius: 10px;
  padding: 11px 14px 11px 42px;
  position: relative;
  color: var(--ink);
  font-size: 15px;
}
.case-card li + li { margin-top: 8px; }
.case-card li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}
.case-card .case-status {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding: 14px 2px 0;
  color: var(--ink);
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Зелёная пилюля срока */
.badge-ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* Сетки карточек */
.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 26px;
}

/* Списки-возможности */
.feature-list { list-style: none; }
.feature-list li {
  padding: 15px 0 15px 30px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* Цитата-гвоздь */
.pull-quote {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 24px 30px;
  margin-top: 32px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  position: relative;
}

/* Плашка-граница */
.callout {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--card);
  padding: 16px 20px;
  color: var(--ink);
}

/* Тёмная полоса (приватность + референс) */
.band {
  background: var(--navy);
  color: var(--band-ink);
  padding: 76px 0;
}
.band h2 { color: #ffffff; }
.band .rule { border-color: rgba(255, 255, 255, 0.15); }
.band .ref-quote {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
}

/* Тарифы */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.pricing {
  width: 100%;
  border-collapse: collapse;
}
.pricing th, .pricing td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.pricing tr:last-child th, .pricing tr:last-child td { border-bottom: 0; }
.pricing thead th {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.pricing thead .price {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-top: 6px;
}
.pricing tbody th {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  width: 22%;
}
.pricing td { color: var(--ink); }
.pricing-notes { margin-top: 24px; font-size: 14px; color: var(--ink-soft); }
.pricing-notes li { margin: 6px 0 6px 18px; }

/* FAQ — нативный аккордеон */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 0 22px; max-width: 780px; }

/* Финальный CTA */
.final-cta { text-align: center; padding: 96px 0; }
.final-cta p { max-width: 640px; margin: 18px auto 32px; }

/* Футер */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer .footer-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.site-footer .footer-copy { font-size: 14px; margin-top: 10px; max-width: 420px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.site-footer nav a:hover { color: var(--accent); }

/* Таймлайн «Как мы работаем» */
.timeline { list-style: none; counter-reset: step; margin-top: 40px; }
.timeline li {
  counter-increment: step;
  position: relative;
  padding: 0 0 40px 64px;
}
.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 600;
  line-height: 36px;
  text-align: center;
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 44px;
  bottom: 8px;
  width: 2px;
  border-radius: 1px;
  background: var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline .step-meta { font-size: 12px; color: var(--accent); margin-bottom: 6px; }

/* Адаптив */
@media (max-width: 760px) {
  h1 { font-size: 33px; }
  h2 { font-size: 26px; }
  section, .band { padding: 48px 0; }
  .hero { padding: 56px 0; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .cards-2 { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .header-cta { padding: 9px 14px; font-size: 13px; }
  .pull-quote { font-size: 16px; padding: 20px 22px; }
  .band .ref-quote { font-size: 18px; }
  .pricing th, .pricing td { padding: 12px 14px; font-size: 15px; }
  .pricing thead th { font-size: 15px; }
  .pricing thead .price { font-size: 21px; }
  .final-cta { padding: 64px 0; }
}

/* Форма заявки на демо */
.form-page { max-width: 640px; }
.demo-form { margin-top: 40px; }
.demo-form .field { margin-bottom: 22px; }
.demo-form label {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.demo-form label .req { color: var(--accent); }
.demo-form input[type="text"],
.demo-form select,
.demo-form textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
}
.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.demo-form textarea { min-height: 110px; resize: vertical; }
.demo-form .contact-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
}
.demo-form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-soft);
}
.demo-form .consent input { margin-top: 4px; accent-color: var(--accent); }
.demo-form .hp { position: absolute; left: -9999px; opacity: 0; }
.form-note {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 20px 24px;
  margin-top: 32px;
  color: var(--ink);
}
.form-note.error { border-left: 3px solid #b91c1c; }
.form-note.success { border-left: 3px solid var(--ok-ink); }
.hidden { display: none; }
@media (max-width: 560px) {
  .demo-form .contact-row { grid-template-columns: 1fr; }
}

/* --- Главная v2 --- */

/* Двухколоночный сплит контент+карточка */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-top { align-items: start; }

/* Универсальный чек-список (как в case-card) */
.check-list { list-style: none; }
.check-list li { padding: 8px 0 8px 32px; position: relative; color: var(--ink); }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}

/* Мокап Telegram-алерта (секция сроков) */
.tg-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-widget);
  padding: 24px;
  font-size: 15px;
  color: var(--ink);
}
.tg-card .tg-head {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.tg-card p + p { margin-top: 6px; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}
