/* ============================================================
   LeiTop — дизайн-система маркетингового сайта
   Характер: «кабинет руководителя» — спокойно, надёжно, понятно
   ============================================================ */

:root {
  /* Цвета */
  --ink: #122036;          /* основной текст, глубокий синий */
  --ink-soft: #45566E;     /* вторичный текст */
  --ink-faint: #7A8AA0;    /* подписи */
  --bg: #FFFFFF;
  --bg-soft: #F4F7FB;      /* мягкие секции */
  --bg-deep: #0E1B30;      /* тёмные секции (футер, CTA) */
  --line: #E2E9F2;
  --accent: #2563EB;       /* действия */
  --accent-hover: #1D4FD7;
  --accent-soft: #EAF1FE;
  --green: #178A50;
  --green-soft: #E7F6EE;
  --amber: #B45309;
  --amber-soft: #FDF3E3;
  --red: #C2373C;
  --red-soft: #FCEBEC;

  /* Типографика */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Геометрия */
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1140px;
  --shadow: 0 1px 2px rgba(18, 32, 54, .05), 0 8px 24px rgba(18, 32, 54, .06);
  --shadow-lift: 0 2px 4px rgba(18, 32, 54, .06), 0 16px 40px rgba(18, 32, 54, .10);
}

/* ---------- База ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.2em; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-deep { background: var(--bg-deep); color: #E8EFF9; }
.section-deep h2 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.08rem; }
.section-deep .section-head p { color: #B9C7DC; }

.muted { color: var(--ink-soft); }
.small { font-size: .92rem; color: var(--ink-faint); }
.center { text-align: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none !important; transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, .28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; border-radius: 14px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(18, 32, 54, .05); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; text-decoration: none !important; }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--ink-soft); font-size: .97rem; font-weight: 500; text-decoration: none !important; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--accent); font-weight: 600; }
.header-cta { margin-left: 8px; padding: 10px 20px; font-size: .95rem; }
.burger {
  display: none; margin-left: auto; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center;
}
.burger svg { width: 26px; height: 26px; stroke: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, #F7FAFE 0%, #FFFFFF 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .88rem;
  padding: 7px 14px; border-radius: 100px; margin-bottom: 22px;
}
.hero h1 { margin-bottom: 18px; }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; margin-bottom: 26px; }
.hero-price {
  display: inline-block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 14px 22px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.hero-price .small { display: block; font-weight: 500; margin-top: 2px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: .92rem; color: var(--ink-faint); max-width: 520px; }
.hero-points { margin: 26px 0 0; list-style: none; padding: 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .99rem; }
.hero-points .tick { flex: none; margin-top: 4px; }

.tick {
  width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.tick::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg) translate(0, -1px); }
.cross { width: 20px; height: 20px; border-radius: 50%; background: var(--red-soft); position: relative; display: inline-flex; flex: none; }
.cross::before, .cross::after { content: ""; position: absolute; top: 9px; left: 5px; width: 10px; height: 2px; background: var(--red); border-radius: 2px; }
.cross::before { transform: rotate(45deg); }
.cross::after { transform: rotate(-45deg); }

/* ---------- Мокап кабинета ---------- */
.mockup {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); overflow: hidden; font-size: .88rem;
}
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D6DEE9; }
.mockup-bar .mockup-title { margin-left: 10px; color: var(--ink-faint); font-size: .8rem; font-weight: 500; }
.mockup-body { padding: 18px; display: grid; gap: 12px; }
.mockup-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mockup-head { font-weight: 700; font-size: .95rem; }

.mcard { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: #fff; }
.mcard-title { font-weight: 650; margin-bottom: 4px; font-size: .92rem; }
.mcard p { color: var(--ink-soft); font-size: .84rem; line-height: 1.5; }
.mcard-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mbtn { font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); }
.mbtn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Чипы статусов ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; padding: 4px 11px; border-radius: 100px; white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-green { background: var(--green-soft); color: var(--green); }
.chip-amber { background: var(--amber-soft); color: var(--amber); }
.chip-red { background: var(--red-soft); color: var(--red); }
.chip-blue { background: var(--accent-soft); color: var(--accent); }
.chip-gray { background: #EEF2F7; color: var(--ink-faint); }

/* ---------- Сетки карточек ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .quote { font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; }

.icon-circle {
  width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  font-size: 1.3rem;
}

/* ---------- Шаги ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 26px 0;
  border-bottom: 1px solid var(--line); counter-increment: step;
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 52px; height: 52px; border-radius: 15px; background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); }
.step .example {
  margin-top: 14px; background: var(--bg-soft); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; font-size: .95rem; color: var(--ink-soft);
}
.step .example b { color: var(--ink); }

/* Компактные шаги (на главной) */
.steps-compact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-c { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-c .n { font-weight: 800; color: var(--accent); font-size: .9rem; margin-bottom: 10px; display: block; }
.step-c h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step-c p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Сравнение (2 колонки) ---------- */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vs-col { border-radius: var(--radius); padding: 32px; }
.vs-old { background: #fff; border: 1px solid var(--line); }
.vs-new { background: var(--bg-deep); color: #DEE8F5; }
.vs-col h3 { margin-bottom: 18px; font-size: 1.15rem; }
.vs-new h3 { color: #fff; }
.vs-col ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.vs-col li { display: flex; gap: 11px; align-items: flex-start; font-size: .97rem; }
.vs-col li .tick, .vs-col li .cross { margin-top: 3px; }
.vs-new .tick { background: rgba(35, 197, 122, .18); }
.vs-new .tick::after { border-color: #4ADE80; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 640px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; font-size: .88rem; color: var(--ink-soft); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td.hl, th.hl { background: var(--accent-soft); font-weight: 600; }
th.hl { color: var(--accent); }

/* ---------- Цена ---------- */
.price-hero {
  background: #fff; border: 1.5px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lift);
  padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
}
.price-big { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.price-big .plus { color: var(--accent); }
.price-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .96rem; }
.price-list .tick { margin-top: 4px; }

/* Калькулятор */
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.calc label { font-weight: 600; display: block; margin-bottom: 14px; }
.calc input[type="range"] { width: 100%; accent-color: var(--accent); height: 32px; cursor: pointer; }
.calc-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.calc-row:last-of-type { border-bottom: none; }
.calc-total { font-size: 1.35rem; font-weight: 800; }
.calc-note { margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 650; list-style: none; position: relative; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 24px; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); top: 28px; }
.faq .faq-body { padding: 0 22px 20px; color: var(--ink-soft); font-size: .97rem; }

/* ---------- Финальный CTA ---------- */
.cta-final { border-radius: 24px; background: var(--bg-deep); color: #DEE8F5; padding: 64px 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.cta-final h2 { color: #fff; margin-bottom: 14px; }
.cta-final p { color: #B9C7DC; }

/* ---------- Форма ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 7px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 96px; }
.field .hint { font-size: .84rem; color: var(--ink-faint); margin-top: 5px; }
.field.error input, .field.error select { border-color: var(--red); }
.field .error-msg { display: none; font-size: .84rem; color: var(--red); margin-top: 5px; }
.field.error .error-msg { display: block; }
.form-error {
  margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--red-soft); color: var(--red); font-size: .92rem; text-align: center;
}
.form-error[hidden] { display: none; }
.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success.show { display: block; }
.form-success .big-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); margin: 0 auto 20px; position: relative; }
.form-success .big-tick::after { content: ""; position: absolute; top: 22px; left: 19px; width: 26px; height: 13px; border-left: 4px solid var(--green); border-bottom: 4px solid var(--green); transform: rotate(-45deg); }

/* ---------- Футер ---------- */
.site-footer { background: var(--bg-deep); color: #93A5BE; padding: 56px 0 32px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .logo { color: #fff; }
.footer-offer { margin-top: 14px; max-width: 380px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #93A5BE; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #66788F; }

/* ---------- Хлебные страницы ---------- */
.page-hero { padding: 72px 0 56px; background: linear-gradient(180deg, #F7FAFE 0%, #FFFFFF 100%); }
.page-hero h1 { max-width: 840px; margin-bottom: 16px; }
.page-hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 700px; }

/* Зоны безопасности */
.zone { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 30px; }
.zone-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.zone h3 { font-size: 1.1rem; }
.zone ul { list-style: none; padding: 0; display: grid; gap: 9px; font-size: .95rem; color: var(--ink-soft); }
.zone li { padding-left: 18px; position: relative; }
.zone li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45; }
.zone-green { border-top: 4px solid var(--green); }
.zone-amber { border-top: 4px solid var(--amber); }
.zone-red { border-top: 4px solid var(--red); }

/* Уровни самостоятельности */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.level { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.level .lvl { font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.level h3 { font-size: 1rem; margin-bottom: 8px; }
.level p { font-size: .88rem; color: var(--ink-soft); }
.level.recommended { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.level .rec-badge { position: absolute; top: -12px; right: 14px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; }

/* Цикл обучения */
.cycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cycle-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; position: relative; }
.cycle-step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.cycle-step h4 { font-size: .93rem; margin-bottom: 5px; }
.cycle-step p { font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }
.cycle-step.human { border-color: var(--amber); background: var(--amber-soft); }
.cycle-5 { grid-template-columns: repeat(5, 1fr); }

/* Пример «было/стало» */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ba { border-radius: var(--radius-sm); padding: 20px 22px; font-size: .95rem; }
.ba-label { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.ba-old { background: var(--red-soft); color: #7C2D2F; }
.ba-old .ba-label { color: var(--red); }
.ba-new { background: var(--green-soft); color: #14532D; }
.ba-new .ba-label { color: var(--green); }

/* Юридические страницы */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 14px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); font-size: .97rem; margin-bottom: 10px; }
.legal ul, .legal ol { margin: 10px 0 16px; }
.legal li { margin-bottom: 6px; }
.legal .doc-meta { color: var(--ink-faint); font-size: .88rem; margin-bottom: 28px; }
.legal .callout {
  background: var(--bg-soft); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px;
  font-size: .93rem; color: var(--ink-soft); margin: 16px 0;
}

/* Анимация появления */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .hero-grid, .price-hero, .cta-final, .footer-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps-compact, .levels, .cycle { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { max-width: 560px; }
  .cta-final { padding: 44px 32px; }
}
@media (max-width: 860px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift);
    flex-direction: column; gap: 0; padding: 8px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 24px; }
  .header-cta { display: none; }
  .burger { display: flex; }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .vs-grid, .before-after { grid-template-columns: 1fr; }
  .steps-compact, .levels, .cycle { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  .step-num { width: 40px; height: 40px; font-size: 1rem; border-radius: 12px; }
  .price-hero { padding: 28px; }
  .form-card { padding: 24px; }
  .hero { padding: 48px 0 64px; }
  .hero-actions .btn { width: 100%; }
}
