/* ============================================================
   Дизайн-система: Андрей Чичеров — внешний технический директор
   Палитра: глубокий тёмно-синий + электрик + золото
   Шрифты: Unbounded (заголовки) + Manrope (текст)
   ============================================================ */

:root {
  --bg: #080C16;
  --bg-2: #0D1322;
  --bg-card: #111A2E;
  --bg-light: #17223B;
  --line: #1F2C48;
  --line-soft: rgba(91,140,255,.12);

  --accent: #5B8CFF;
  --accent-2: #7AA5FF;
  --accent-soft: rgba(91,140,255,.14);
  --gold: #E8B45A;
  --gold-soft: rgba(232,180,90,.14);
  --good: #4ADE80;
  --bad: #E4656F;

  --text: #EEF2FA;
  --gray: #97A3BC;
  --gray-2: #6B7894;

  --grad-hero: radial-gradient(ellipse 80% 60% at 70% 35%, #16224a 0%, var(--bg) 70%);
  --grad-accent: linear-gradient(120deg, #5B8CFF 0%, #8B6BFF 100%);
  --grad-gold: linear-gradient(120deg, #E8B45A 0%, #F0CE8A 100%);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
  --shadow-1: 0 4px 24px rgba(0,0,0,.35);
  --shadow-2: 0 20px 60px rgba(0,0,0,.5);
  --glow-accent: 0 0 0 1px rgba(91,140,255,.25), 0 10px 40px rgba(91,140,255,.18);
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: 'Manrope', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.66;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 90px 0; border-bottom: 1px solid var(--line); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 2.5px; font-size: 11.5px;
  color: var(--accent); font-weight: 700; margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--grad-accent); }

.section-title { font-size: 32px; margin-bottom: 16px; }
.section-title em { color: var(--accent); font-style: normal; }
.section-sub { color: var(--gray); font-size: 17px; max-width: 720px; margin-bottom: 52px; font-weight: 400; }

/* КНОПКИ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; background: var(--grad-accent);
  color: #fff; text-decoration: none; font-weight: 700; font-size: 15.5px;
  border-radius: 12px; border: none; cursor: pointer;
  box-shadow: 0 8px 28px rgba(91,140,255,.35);
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(91,140,255,.45); }
.btn-outline {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  box-shadow: none;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.btn-gold { background: var(--grad-gold); box-shadow: 0 8px 28px rgba(232,180,90,.3); color: #201604; }
.btn-gold:hover { box-shadow: 0 14px 40px rgba(232,180,90,.4); }
.btn-sm { padding: 12px 22px; font-size: 14px; }
.btn-note { display: block; margin-top: 16px; color: var(--gray-2); font-size: 13.5px; line-height: 1.5; position: relative; z-index: 1; }
.hero-note { margin-top: 30px; clear: both; }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--grad-hero);
  padding: 70px 0 90px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.22fr 0.78fr; gap: 64px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: 46px; margin: 20px 0 24px; }
.hero h1 em { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.hero p { font-size: 18px; color: var(--gray); margin-bottom: 32px; max-width: 560px; }
.trust { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; font-size: 14px; color: var(--text); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust i { color: var(--good); font-size: 16px; }

/* Видео в Hero */
.hero-video { text-align: center; }
.hero-video-ph {
  width: 300px; height: 530px; margin: 0 auto;
  border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #101828 0%, #0A0F1C 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-2); text-align: center; padding: 24px; font-size: 14px;
  box-shadow: var(--shadow-2), var(--glow-accent);
  position: relative; overflow: hidden;
}
.hero-video-ph::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(91,140,255,.12), transparent 60%);
  pointer-events: none;
}
.hero-video-note { margin-top: 18px; color: var(--gray); font-size: 13.5px; line-height: 1.55; }
/* Реальное видео в рамке */
.video-live { padding: 0; }
.video-live video { width: 100%; height: 100%; object-fit: cover; border-radius: 23px; display: block; }

/* Интерактивные точки в Hero */
.hero-dots { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hdot {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); pointer-events: auto; cursor: pointer;
  box-shadow: 0 0 14px rgba(91,140,255,.8), 0 0 32px rgba(91,140,255,.35);
  border: 1.5px solid rgba(255,255,255,.7);
}
.hdot .tip {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--bg-light); color: var(--text); border: 1px solid var(--line);
  padding: 8px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; opacity: 0; transition: all .3s ease; pointer-events: none;
  box-shadow: var(--shadow-1);
}
.hdot:hover .tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* КАРТОЧКИ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 32px;
  transition: transform .35s cubic-bezier(.2,.8,.3,1), border-color .3s ease, box-shadow .35s ease;
  will-change: transform;
}
.card:hover { transform: translateY(-5px); border-color: rgba(91,140,255,.4); box-shadow: var(--shadow-1); }
.card h3 { font-size: 19px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.card h3 i { color: var(--accent); font-size: 22px; }
.card p { color: var(--gray); font-size: 15px; }
.card.num { position: relative; }
.card.num::before {
  content: attr(data-n);
  font-family: 'Unbounded'; font-weight: 700; font-size: 18px;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card.num::after {
  content: ''; display: inline-block; width: 34px; height: 2px; margin-left: 10px;
  background: var(--grad-accent); border-radius: 2px; opacity: .6; vertical-align: middle;
}
/* Шапка карточки: номер+чёрточка в одну строку, иконка под ними */
.card.num .ic { margin-top: 18px; }
.conclusion {
  margin-top: 0; padding: 28px 32px; background: var(--bg-2);
  border-left: 3px solid; border-image: linear-gradient(180deg,#5B8CFF,#8B6BFF) 1;
  border-radius: var(--r-sm); font-size: 17px; line-height: 1.65;
}
.conclusion strong { color: var(--accent-2); }

/* Иконка-бейдж в карточках */
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: 22px; margin-bottom: 18px;
}
.card .ic.gold { background: var(--gold-soft); color: var(--gold); }
.card .ic.bad { background: rgba(228,101,111,.12); color: var(--bad); }

/* КЕЙСЫ */
.case {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 44px; margin-bottom: 32px; position: relative; overflow: hidden;
}
.case::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad-accent); opacity: .5;
}
.case-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-soft); color: var(--accent);
  padding: 6px 15px; border-radius: 20px; font-size: 12.5px; font-weight: 700; margin-bottom: 20px;
  border: 1px solid rgba(91,140,255,.2);
}
.case h3 { font-size: 24px; margin-bottom: 10px; max-width: 800px; }
.case .who { color: var(--gray-2); font-size: 14px; margin-bottom: 28px; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.case-grid h4 {
  font-family: 'Manrope'; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gray-2); margin-bottom: 12px; font-weight: 700;
}
.case-grid p { font-size: 15px; color: var(--text); line-height: 1.65; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0; }
.metric {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 20px 14px; text-align: center;
  transition: border-color .3s ease, transform .3s ease;
}
.metric:hover { border-color: rgba(74,222,128,.4); transform: translateY(-3px); }
.metric .val {
  font-family: 'Unbounded'; font-weight: 700; font-size: 23px; color: var(--good);
  display: block; white-space: nowrap;
}
.metric .lbl { font-size: 12.5px; color: var(--gray); margin-top: 8px; line-height: 1.5; }
.case-letter {
  display: grid; grid-template-columns: 172px 1fr; gap: 32px; align-items: start;
  margin-top: 30px;
}
.case-letter .case-quote { margin-top: 0; }
.case-letter .letter-thumb { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 0; }
.case-letter .letter-thumb img { width: 172px; height: 232px; }
.case-letter .letter-thumb span { max-width: 172px; font-size: 12.5px; }
.case-quote {
  border-left: 3px solid var(--gold); padding: 18px 22px; color: var(--gray);
  font-style: italic; font-size: 15px; line-height: 1.65;
  background: var(--gold-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.case-quote b { color: var(--text); display: block; margin-top: 10px; font-style: normal; font-size: 13.5px; }
.letter-thumb { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.letter-thumb img {
  width: 108px; height: 148px; object-fit: cover; object-position: top;
  border-radius: 8px; border: 1px solid var(--line);
  background: #fff;
}
.letter-thumb span { color: var(--accent); font-size: 13.5px; max-width: 230px; }

/* ТАБЛИЦА */
.table-scroll { overflow-x: auto; border-radius: var(--r-md); }
.table-hint { display: none; }
.compare {
  width: 100%; border-collapse: collapse; background: var(--bg-card);
  border-radius: var(--r-md); overflow: hidden; min-width: 900px;
  border: 1px solid var(--line);
}
.compare th, .compare td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.compare td:first-child { font-weight: 700; color: var(--text); max-width: 200px; }
.compare th {
  background: var(--bg-light); font-size: 12px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--gray); font-weight: 700; white-space: nowrap;
}
.compare th.hl { color: #fff; background: var(--grad-accent); }
.compare td.hl { background: var(--accent-soft); font-weight: 700; }
.compare .bad { color: var(--bad); }
.compare .good { color: var(--good); }
.compare td.hl.good { color: var(--good); }
.compare tr:last-child td { border-bottom: none; }

/* ШАГИ (как работаем) */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.step {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 30px; position: relative;
  transition: transform .3s ease, border-color .3s ease;
}
.step:hover { transform: translateY(-4px); border-color: rgba(91,140,255,.4); }
.step h3 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.step h3 .step-n {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-family: 'Unbounded'; font-size: 15px; font-weight: 700;
}
.step p { color: var(--gray); font-size: 15px; }

/* ДОРОЖНАЯ КАРТА */
.roadmap { max-width: 780px; position: relative; }
.roadmap::before {
  content: ''; position: absolute; left: 19px; top: 30px; bottom: 30px; width: 2px;
  background: var(--line);
}
.rm-line-fill {
  position: absolute; left: 19px; top: 30px; bottom: 30px; width: 2px;
  background: var(--grad-accent); transform: scaleY(0); transform-origin: top;
  box-shadow: 0 0 12px rgba(91,140,255,.5);
}
.rm-item {
  position: relative; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 32px; margin-bottom: 22px; margin-left: 58px;
  transition: border-color .3s ease, transform .3s ease;
}
.rm-item:hover { border-color: rgba(91,140,255,.4); transform: translateX(4px); }
.rm-item::before {
  content: attr(data-step); position: absolute; left: -58px; top: 30px;
  width: 40px; height: 40px; background: var(--bg); border: 2px solid var(--accent);
  color: var(--accent); border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-family: 'Unbounded'; font-size: 15px;
}
.rm-item.free::before { border-color: var(--good); color: var(--good); }
.rm-item.final { border-color: rgba(232,180,90,.4); }
.rm-item.final::before { border-color: var(--gold); color: var(--gold); }
.rm-item h3 { font-size: 20px; margin-bottom: 8px; }
.rm-item .rm-sub { color: var(--accent); font-size: 13.5px; margin-bottom: 14px; font-weight: 700; }
.rm-item p { color: var(--gray); font-size: 15px; margin-bottom: 18px; }
.rm-badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 5px 13px; border-radius: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.rm-badge.free { background: rgba(74,222,128,.12); color: var(--good); }
.rm-badge.gold { background: var(--gold-soft); color: var(--gold); }

/* FAQ */
.faq-item { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 12px; overflow: hidden; transition: border-color .3s ease; }
.faq-item:hover { border-color: rgba(91,140,255,.3); }
.faq-q { padding: 22px 26px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 16px; gap: 16px; }
.faq-icon { color: var(--accent); font-size: 22px; transition: transform .3s ease; font-weight: 400; flex-shrink: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--gray); font-size: 15px; }
.faq-a > div { padding: 0 26px 24px; }
.faq-item.open { border-color: rgba(91,140,255,.4); }
.faq-item.open .faq-a { max-height: 420px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* CTA финальный */
.cta-final { text-align: center; background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(91,140,255,.1), transparent); }
.cta-final h2 { font-size: 36px; margin-bottom: 20px; }
.cta-final .btn { font-size: 17px; padding: 19px 42px; }

/* ФУТЕР */
footer { padding: 48px 0 70px; color: var(--gray); font-size: 14px; border-top: 1px solid var(--line); }
footer a { color: var(--accent); text-decoration: none; }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-about { line-height: 1.7; }
.footer-about strong { color: var(--text); }
.footer-req { max-width: 420px; }
.footer-req summary {
  cursor: pointer; color: var(--accent); font-weight: 700; font-size: 14px;
  border-bottom: 1px dashed var(--accent); display: inline-block; list-style: none;
}
.footer-req summary::-webkit-details-marker { display: none; }
.footer-req summary::after { content: ' ↓'; }
.footer-req[open] summary::after { content: ' ↑'; }
.req-grid { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--gray); }
.footer-copy { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--gray-2); }

/* Липкая CTA */
.sticky-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 26px; background: var(--grad-accent); color: #fff;
  font-weight: 700; font-size: 15px; border-radius: 30px; text-decoration: none;
  box-shadow: 0 10px 34px rgba(91,140,255,.5);
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.sticky-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ДВА ПУТИ (референс-картинка) */
.paths { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; margin-top: 20px; }
.path-col { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; }
.path-col h3 { font-size: 19px; margin-bottom: 26px; display: flex; align-items: center; gap: 12px; }
.path-col h3 i { font-size: 22px; }
.path-col.bad h3 i { color: var(--gray-2); }
.path-col.good h3 i { color: var(--good); }
.path-col.good { border-color: rgba(74,222,128,.3); }
.path-svg { width: 100%; height: auto; display: block; }
.path-svg .p-line { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.path-svg .p-gray { stroke: #3A4763; }
.path-svg .p-blue { stroke: var(--accent); }
.path-svg .p-dot { fill: var(--bg); stroke-width: 2; }
.path-svg .p-dot-g { stroke: #3A4763; }
.path-svg .p-dot-b { stroke: var(--accent); fill: var(--accent); }
.path-svg text { font-family: 'Manrope'; font-size: 12px; fill: var(--gray); font-weight: 600; }
.path-svg .p-check { fill: var(--good); }
.path-legend { margin-top: 22px; font-size: 14px; color: var(--gray); }
.path-legend b { color: var(--text); }

/* Reveal-анимации (начальное состояние) */
.rv { opacity: 0; transform: translateY(34px); }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; }
  * { animation: none !important; transition: none !important; }
}

/* Мостик-CTA после кейсов */
.bridge-cta { text-align: center; margin-top: 42px; }

/* Карточки-статьи */
.article-card { display: block; text-decoration: none; color: inherit; }
.article-card h3 { min-height: 0; }
.article-link { display: inline-block; margin-top: 16px; color: var(--accent); font-size: 14px; font-weight: 700; border-bottom: 1px dashed var(--accent); }
.article-card:hover .article-link { color: var(--accent-2); }

/* АДАПТИВ */
@media (max-width: 960px) {
  .cards-3, .cards-2, .steps, .case-grid, .paths { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 56px 0 70px; min-height: auto; }
  .hero h1 { font-size: 32px; }
  .metrics { grid-template-columns: 1fr; gap: 14px; }
  .metric { padding: 20px 16px; min-width: 0; }
  .metric .val { font-size: 21px; white-space: normal; overflow-wrap: anywhere; }
  .metric .lbl { font-size: 13px; }
  .section-title { font-size: 26px; }
  .cta-final h2 { font-size: 27px; }
  .hero-video-ph, .video-ph { margin: 0 auto; }
  .rm-item { margin-left: 48px; padding: 26px; }
  .rm-item::before { left: -48px; width: 34px; height: 34px; font-size: 13px; }
  .roadmap::before, .rm-line-fill { left: 16px; }
  .case { padding: 24px; min-width: 0; }
  .case-tag { width: auto; max-width: 100%; }
  .case-letter { grid-template-columns: 1fr; gap: 20px; }
  .case-letter .letter-thumb { flex-direction: column; align-items: flex-start; max-width: 100%; }
  .case-letter .letter-thumb img { width: 100%; max-width: 360px; height: auto; aspect-ratio: 172 / 232; }
  .case-letter .letter-thumb span { max-width: 100%; }
  .hero-dots { display: none; }
  /* Липкая CTA: компактная круглая на мобильном */
  .sticky-cta {
    bottom: 18px; right: 18px; left: auto;
    width: 58px; height: 58px; padding: 0; border-radius: 50%;
    justify-content: center; font-size: 0; gap: 0;
    box-shadow: 0 10px 30px rgba(91,140,255,.55);
  }
  .sticky-cta i { font-size: 26px; }
  /* Отступ снизу, чтобы липкая CTA не перекрывала контент */
  body { padding-bottom: 90px; }
  /* Таблица: заметная подсказка сверху и закреплённый столбец с критериями */
  .table-hint {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin: 0 0 12px; padding: 10px 14px; border: 1px solid rgba(91,140,255,.45);
    border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-2);
    font-size: 13px; font-weight: 700;
  }
  .table-hint i { font-size: 18px; }
  .table-scroll { position: relative; -webkit-overflow-scrolling: touch; }
  .compare th:first-child,
  .compare td:first-child {
    position: sticky; left: 0; z-index: 2; width: 154px; min-width: 154px;
    background: var(--bg-card); box-shadow: 8px 0 14px rgba(8,12,22,.7);
  }
  .compare th:first-child { z-index: 3; background: var(--bg-light); }
}
