/* ============================================================
   CAMP — СТИЛИ
   Палитра: тёмный фон, тёмно-синий (рост) + тёмно-красный (падение)
   Чтобы поменять цвета — правь переменные в блоке :root ниже.
   ============================================================ */

:root {
  /* Фон */
  --bg:        #05070d;
  --bg-2:      #080b14;
  --surface:   #0b1020;
  --surface-2: #0e1526;
  --line:      rgba(120, 150, 220, .12);
  --line-2:    rgba(120, 150, 220, .22);

  /* Текст */
  --text:      #e8edf8;
  --text-2:    #9aa8c4;
  --text-3:    #64708c;

  /* ТЁМНО-СИНИЙ (bid / рост) */
  --blue:      #1d4ed8;
  --blue-2:    #2563eb;
  --blue-deep: #0b2a6b;
  --blue-glow: rgba(37, 99, 235, .35);

  /* ТЁМНО-КРАСНЫЙ (ask / падение) */
  --red:       #9f1239;
  --red-2:     #be123c;
  --red-deep:  #4c0519;
  --red-glow:  rgba(190, 18, 60, .30);

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }

/* ---------- ФОН ---------- */
.bg-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#bg-heatmap { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120,150,220,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,150,220,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.bg-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%,  rgba(29,78,216,.16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(159,18,57,.13), transparent 60%),
    linear-gradient(180deg, transparent 0%, var(--bg) 88%);
}

/* ---------- КАРКАС ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.wrap--narrow { max-width: 860px; }
.section { padding: 96px 0; position: relative; z-index: 1; }
.center { text-align: center; margin-top: 36px; }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-head--left { text-align: left; margin-left: 0; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue-2); margin-bottom: 14px;
  font-family: var(--mono);
}
.eyebrow--warn { color: var(--red-2); }
.sec-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.sec-title--sm { font-size: clamp(24px, 3vw, 32px); }
.sec-sub { margin-top: 16px; color: var(--text-2); font-size: 17px; }
.sec-sub--left { margin-left: 0; }

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: .22s ease;
  white-space: nowrap; font-family: var(--font);
}
.btn--lg { padding: 17px 36px; font-size: 16.5px; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; border-color: rgba(120,160,255,.35);
  box-shadow: 0 8px 30px -8px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.2); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255,255,255,.07); border-color: var(--blue-2); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ico { width: 18px; height: 18px; fill: currentColor; }

/* ---------- ВЕРХНЯЯ ПЛАШКА ---------- */
.topbar {
  position: relative; z-index: 30;
  background: linear-gradient(90deg, var(--red-deep), var(--blue-deep));
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 24px; flex-wrap: wrap; }
.topbar__dot { width: 7px; height: 7px; border-radius: 50%; background: #f43f5e; box-shadow: 0 0 12px #f43f5e; animation: pulse 2s infinite; }
.topbar__cta { text-decoration: underline; font-weight: 600; opacity: .9; }
.topbar__cta:hover { opacity: 1; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------- ШАПКА ---------- */
.header {
  position: sticky; top: 0; z-index: 25;
  background: rgba(5,7,13,.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo__mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-2), var(--red)); color: #fff;
  font-weight: 800; font-size: 18px;
  box-shadow: 0 4px 18px -4px var(--blue-glow);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-size: 17px; font-weight: 800; letter-spacing: .06em; }
.logo__text i { font-style: normal; font-size: 10.5px; color: var(--text-3); letter-spacing: .12em; text-transform: uppercase; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 14.5px; color: var(--text-2); transition: .2s; }
.nav a:hover { color: var(--text); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ---------- HERO ---------- */
.hero { padding: 80px 0 90px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(37,99,235,.08); font-size: 12.5px; color: var(--text-2);
  font-family: var(--mono); letter-spacing: .04em;
}
.badge__pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 10px var(--blue-2); animation: pulse 2s infinite; }

.hero__title {
  margin: 24px 0 0; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08;
  font-weight: 800; letter-spacing: -.028em;
}
.hero__title .accent {
  background: linear-gradient(120deg, #60a5fa, var(--blue-2) 45%, var(--red-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 22px; font-size: 18px; color: var(--text-2); max-width: 560px; }
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero__stats { display: flex; gap: 34px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stat b { display: block; font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--text); }
.stat span { font-size: 13px; color: var(--text-3); }

/* ---------- ПАНЕЛИ (стакан + heatmap) ---------- */
.hero__visual { display: grid; gap: 16px; grid-template-rows: auto auto; }
.panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.panel__title { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--text-3); }
.panel__meta { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.panel__live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--red-2); }
.panel__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 8px var(--red-2); animation: pulse 1.6s infinite; }

.book { padding: 8px 0; font-family: var(--mono); font-size: 12px; }
.book__row { display: grid; grid-template-columns: 1fr 1fr 70px; align-items: center; padding: 3px 16px; position: relative; }
.book__row .depth { position: absolute; top: 1px; bottom: 1px; right: 0; border-radius: 3px; transition: width .45s ease; }
.book__row.ask .depth { background: linear-gradient(90deg, transparent, rgba(159,18,57,.42)); }
.book__row.bid .depth { background: linear-gradient(90deg, transparent, rgba(29,78,216,.42)); }
.book__row span { position: relative; z-index: 1; }
.book__row .px { font-weight: 600; }
.book__row.ask .px { color: #fb7185; }
.book__row.bid .px { color: #60a5fa; }
.book__row .sz { color: var(--text-2); text-align: right; }
.book__row .tot { color: var(--text-3); text-align: right; font-size: 11px; }
.book__mid {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; margin: 6px 0; font-family: var(--mono);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.book__mid b { font-size: 15px; }
.book__mid small { color: var(--text-3); font-size: 11px; }

.panel--chart canvas { width: 100%; height: 200px; }

/* ---------- ВИДЕО ---------- */
.video-frame { position: relative; max-width: 940px; margin: 0 auto; }
.video-frame__glow {
  position: absolute; inset: -30px; border-radius: 40px; filter: blur(50px); opacity: .55;
  background: linear-gradient(120deg, var(--blue), var(--red)); z-index: 0;
}
.video-ratio {
  position: relative; z-index: 1; aspect-ratio: 16/9; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line-2); background: #000;
}
.video-ratio iframe { width: 100%; height: 100%; border: 0; }
.video-empty {
  width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px;
  text-align: center; padding: 20px;
  background: radial-gradient(ellipse at center, rgba(29,78,216,.14), transparent 70%), var(--surface);
}
.video-empty__play {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 40px -8px var(--blue-glow);
}
.video-empty__play svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }
.video-empty b { font-size: 18px; }
.video-empty span { font-size: 13.5px; color: var(--text-3); }
.video-empty code { font-family: var(--mono); color: var(--blue-2); font-size: 12.5px; }
.video-note { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--text-3); font-family: var(--mono); }

/* ---------- КВИЗ ---------- */
.section--apply { padding-top: 40px; }
.quiz {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.95);
}
.quiz__progress { height: 3px; background: rgba(255,255,255,.05); }
.quiz__bar { height: 100%; width: 33%; background: linear-gradient(90deg, var(--blue-2), var(--red-2)); transition: width .4s ease; }
.quiz__body { padding: 40px; }
.quiz__q { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; line-height: 1.3; margin-bottom: 26px; }
.quiz__sub { color: var(--text-2); font-size: 15px; margin: -18px 0 26px; }

.opts { display: grid; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(255,255,255,.02); cursor: pointer; transition: .2s; font-size: 16px;
}
.opt:hover { border-color: var(--blue-2); background: rgba(37,99,235,.08); transform: translateX(3px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__mark {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2);
  flex-shrink: 0; display: grid; place-items: center; transition: .2s;
}
.opt__mark::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--blue-2); transform: scale(0); transition: .2s; }
.opt.is-selected { border-color: var(--blue-2); background: rgba(37,99,235,.14); box-shadow: 0 0 0 1px var(--blue-2) inset; }
.opt.is-selected .opt__mark { border-color: var(--blue-2); }
.opt.is-selected .opt__mark::after { transform: scale(1); }

.fields { display: grid; gap: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; padding: 15px 17px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: rgba(255,255,255,.02);
  color: var(--text); font-size: 16px; font-family: var(--font); transition: .2s;
}
.field input::placeholder { color: var(--text-3); }
.field input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(37,99,235,.18); background: rgba(37,99,235,.05); }
.field.has-error input { border-color: var(--red-2); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); margin-top: 4px; cursor: pointer; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue-2); flex-shrink: 0; }

.err { color: #fb7185; font-size: 13px; margin-top: 10px; display: none; }
.err.is-on { display: block; }

.quiz__nav { display: flex; gap: 12px; margin-top: 30px; }
.quiz__nav .btn--ghost { flex: 0 0 auto; }
.quiz__nav .btn--primary { flex: 1; }

.done { text-align: center; padding: 26px 0; }
.done__ico {
  width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 40px -8px var(--blue-glow);
}
.done__ico svg { width: 32px; height: 32px; fill: #fff; }
.done h3 { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.done p { color: var(--text-2); max-width: 460px; margin: 0 auto 10px; }
.done small { color: var(--text-3); font-size: 13px; }

/* ---------- СЕТКИ / КАРТОЧКИ ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.008));
  transition: .25s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0,0,0,.9); }
.card__num { font-family: var(--mono); font-size: 12px; color: var(--blue-2); letter-spacing: .1em; }
.card h3 { font-size: 18px; font-weight: 700; margin: 12px 0 10px; }
.card p { color: var(--text-2); font-size: 15px; }

.tcard__text { font-size: 15.5px; color: var(--text); font-style: italic; }
.tcard__who { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.tcard__av {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(135deg, var(--blue-deep), var(--red-deep)); color: #fff; flex-shrink: 0;
}
.tcard__who b { display: block; font-size: 14.5px; }
.tcard__who span { font-size: 12.5px; color: var(--text-3); }
.tcard__stars { color: var(--blue-2); font-size: 13px; letter-spacing: 2px; margin-bottom: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.02); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; padding: 20px 24px; background: none; border: 0; cursor: pointer;
  color: var(--text); font-size: 16.5px; font-weight: 600; font-family: var(--font);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__q i { font-style: normal; color: var(--blue-2); font-size: 22px; transition: .25s; flex-shrink: 0; }
.faq__item.is-open .faq__q i { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 24px 22px; color: var(--text-2); font-size: 15px; }
.faq__item.is-open { border-color: var(--line-2); }

/* ---------- ФИНАЛЬНЫЙ CTA ---------- */
.final {
  text-align: center; padding: 68px 32px; border-radius: 28px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(ellipse 60% 100% at 20% 0%, rgba(29,78,216,.22), transparent 65%),
    radial-gradient(ellipse 60% 100% at 85% 100%, rgba(159,18,57,.20), transparent 65%),
    var(--surface);
}
.final__title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.final__text { color: var(--text-2); margin: 16px auto 30px; max-width: 520px; }

/* ---------- РИСКИ ---------- */
.section--disclosure { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(76,5,25,.14), transparent 40%); }
.disclosure { border-left: 2px solid var(--red); padding-left: 26px; }
.disclosure p { color: var(--text-2); font-size: 14.5px; margin-bottom: 18px; }
.disclosure p:last-child { margin-bottom: 0; }

/* ---------- ПОДВАЛ ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg-2); position: relative; z-index: 1; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__about { color: var(--text-3); font-size: 14px; margin-top: 16px; max-width: 320px; }
.footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); margin-bottom: 16px; font-family: var(--mono); }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--text-2); font-size: 14.5px; transition: .2s; }
.footer__links a:hover { color: var(--blue-2); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-3);
}
.footer__legal { max-width: 560px; text-align: right; }

/* ---------- АДАПТИВ ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.is-open {
    display: grid; position: absolute; top: 68px; left: 0; right: 0; padding: 20px 24px; gap: 16px;
    background: rgba(5,7,13,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px);
  }
  .burger { display: block; }
  .header__inner .btn--sm { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .grid--3 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__legal { text-align: left; }
  .quiz__body { padding: 26px 20px; }
  .hero__stats { gap: 22px; }
  .btn--lg { padding: 15px 26px; font-size: 15px; }
  .hero__actions .btn { flex: 1; }
  .final { padding: 44px 22px; }
  .disclosure { padding-left: 18px; }
}
