/* MGCom — общий слой для вариантов лендинга бета-теста антифрода.
   Цвета и шрифты — из «Основной шаблон MGCom.pptx» (theme: Inter Tight, Montserrat; синий 0099FE, тёмно-синий 01162B). */
:root {
  color-scheme: dark;
  --navy: #01162b;
  --navy-2: #06223f;
  --navy-3: #0b2e52;
  --blue: #0099fe;
  --blue-d: #0072be;
  --blue-dd: #004c7f;
  --sky: #65c1fe;
  --ice: #ccebff;
  --orange: #fbae40;
  --red: #ff4d5e;
  --white: #ffffff;
  --ground: var(--navy);
  --ink: var(--white);
  --muted: #8fb3d4;
  --line: rgba(101, 193, 254, .22);
  --font: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --brand: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --console-h: 104px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--console-h) + env(safe-area-inset-bottom, 0px));
}
a { color: inherit; }

/* ---------- Словесный знак ---------- */
.mg {
  font: 600 20px/1 var(--brand);
  letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.mg sup { font: 500 9px/1 var(--mono); letter-spacing: .12em; opacity: .7; text-transform: uppercase; }

/* ---------- Стикеры из шаблона ---------- */
.stk {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font: 500 13px/1 var(--font);
  white-space: nowrap;
  box-shadow: 0 0 0 3px var(--ground), 0 0 0 4.5px currentColor;
}
.stk.fill { background: var(--blue); color: var(--white); border-color: var(--white); box-shadow: 0 0 0 3px var(--blue), 0 0 0 4.5px var(--white); }
.burst {
  display: inline-grid; place-items: center;
  width: 92px; aspect-ratio: 1;
  background: var(--blue); color: var(--white);
  font: 600 15px/1 var(--font);
  clip-path: polygon(50% 0%, 61% 18%, 82% 8%, 80% 31%, 100% 38%, 86% 55%, 98% 75%, 76% 78%, 70% 100%, 52% 86%, 32% 100%, 25% 78%, 3% 76%, 14% 56%, 0% 37%, 21% 30%, 18% 8%, 39% 18%);
}
.spark { display: inline-block; width: 18px; height: 18px; background: currentColor;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }

/* ---------- Общая сетка ---------- */
.page {
  max-width: 1080px; margin: 0 auto;
  padding-inline: 20px;
  padding-block: 20px 28px;
  display: flex; flex-direction: column; gap: 28px;
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.h {
  margin: 0;
  font: 400 clamp(38px, 10.5vw, 88px)/.98 var(--font);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h b { font-weight: 600; }
.sub { margin: 0; font-size: 17px; color: var(--muted); max-width: 34ch; }

/* ---------- Форма ---------- */
.lead-form { display: grid; gap: 10px; max-width: 520px; }
.lead-form .row {
  display: flex;
  background: var(--white);
  border-radius: 999px;
  padding: 6px;
  gap: 6px;
  box-shadow: 0 0 0 1.5px var(--white);
  transition: box-shadow .2s;
}
.lead-form .row:focus-within { box-shadow: 0 0 0 3px var(--sky); }
.lead-form.err .row { box-shadow: 0 0 0 3px var(--red); }
.lead-form input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  color: var(--navy);
  font: 500 17px/1 var(--font);
  padding: 14px 8px 14px 16px;
}
.lead-form input::placeholder { color: #7d93a8; }
.lead-form button {
  border: 0; cursor: pointer;
  border-radius: 999px;
  background: var(--blue); color: var(--white);
  font: 600 15px/1 var(--font);
  padding: 0 22px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.lead-form button:hover { background: var(--blue-d); }
.lead-form button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.lead-form button[disabled] { opacity: .65; cursor: progress; }
.lead-form .hint { margin: 0; font: 400 12px/1.4 var(--mono); color: var(--muted); padding-inline: 16px; min-height: 1.4em; }
.lead-form.err .hint { color: var(--red); }
.lead-done {
  max-width: 520px;
  border-radius: 28px;
  background: var(--blue); color: var(--white);
  padding: 22px 24px;
  display: grid; gap: 6px;
}
.lead-done .n { font: 500 12px/1 var(--mono); letter-spacing: .12em; opacity: .85; }
.lead-done .play {
  justify-self: start; margin-top: 8px;
  background: var(--white); color: var(--navy);
  border-radius: 999px; padding: 14px 20px;
  font: 600 15px/1 var(--font); text-decoration: none;
  animation: play-pulse 1.8s ease-in-out infinite;
}
@keyframes play-pulse { 50% { box-shadow: 0 0 0 8px rgba(255,255,255,.18); } }
.lead-done .t { font: 500 26px/1.1 var(--font); letter-spacing: -.02em; }
@media (max-width: 479px) {
  .lead-form .row { flex-direction: column; border-radius: 26px; }
  .lead-form input { padding: 16px 14px; text-align: center; }
  .lead-form button { justify-content: center; padding: 17px; }
}

/* ---------- Подпись ---------- */
.made {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font: 400 13px/1.3 var(--font); color: var(--muted);
}
.made .mg { color: var(--ink); font-size: 16px; }

/* ---------- Консоль фрода (снизу, всегда идёт) ---------- */
.fconsole {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--console-h) + env(safe-area-inset-bottom, 0px));
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(1, 16, 32, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  font: 400 11px/1.6 var(--mono);
  color: #6f8fae;
  overflow: hidden;
  transform: translateY(100%);
  animation: fc-in .7s .8s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes fc-in { to { transform: none; } }
.fconsole .bar { white-space: nowrap; display: flex; justify-content: space-between; gap: 10px; color: #4f7394; letter-spacing: .1em; text-transform: uppercase; font-size: 10px; margin-bottom: 2px; }
.fconsole .bar .live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 1px; animation: blink 1.2s steps(2) infinite; }
.fconsole .ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: ln-in .35s ease-out; }
.fconsole .k { color: var(--sky); }
.fconsole .x { color: var(--red); }
.fconsole .ok { color: var(--orange); }
.fconsole .stat { color: var(--ice); font-variant-numeric: tabular-nums; }
@keyframes ln-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .fconsole { transform: none; }
}
