:root {
  --bg: #050d07;
  --bg-2: #0a1a0f;
  --card: rgba(16, 36, 22, 0.72);
  --card-solid: #0f2316;
  --line: rgba(80, 255, 120, 0.16);
  --text: #f2fff4;
  --muted: #9fb8a5;
  --green: #2bff6a;
  --green-deep: #0fb83f;
  --yellow: #ffe31a;
  --tg: #2aabee;
  --wa: #1fb855;
  --danger: #ff4d4d;

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --glow-green: 0 0 0 1px rgba(43, 255, 106, 0.5), 0 10px 40px -8px rgba(43, 255, 106, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Фон ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(43, 255, 106, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 255, 106, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.bg-glow {
  position: fixed; inset: -20% -40% auto; height: 70vh; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(43, 255, 106, 0.28), transparent 60%);
}

.app {
  position: relative; z-index: 1;
  max-width: 480px; margin: 0 auto;
  min-height: 100dvh;
  padding: 0 16px calc(28px + env(safe-area-inset-bottom));
}

/* ---------- Экраны ---------- */
.screen { display: none; }
.screen.is-active { display: block; animation: fadeUp 0.5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Типографика ---------- */
.eyebrow {
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin-bottom: 12px;
}
.eyebrow--green { color: var(--green); margin-bottom: 6px; }
.title {
  font: italic 900 clamp(28px, 8.4vw, 38px)/1.04 var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.title--sm { font-size: clamp(22px, 6.4vw, 28px); }
.hl-yellow { color: var(--yellow); }
.hl-green {
  color: var(--green);
  text-shadow: 0 0 24px rgba(43, 255, 106, 0.55);
}
.lead { color: var(--muted); margin-top: 14px; font-size: 16px; }
.lead b { color: var(--text); }
.micro { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ---------- Старт ---------- */
.hero { position: relative; margin: 0 -16px; height: min(40vh, 340px); overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero__fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(5,13,7,0.35) 16%, rgba(5,13,7,0) 40%, var(--bg) 97%);
}
.start__body { margin-top: -48px; position: relative; }
.start__body .lead { margin-top: 10px; font-size: 15px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/1 var(--font-body);
  padding: 8px 12px; border-radius: 999px;
}
.badge--live {
  position: absolute; top: 16px; left: 16px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(43,255,106,0.7); animation: ping 1.6s infinite;
}
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(43,255,106,0); } }
.badge--hot { background: var(--danger); color: #fff; letter-spacing: 0.04em; }
.badge--flash { animation: flash 0.6s 3; }
@keyframes flash { 50% { transform: scale(1.08); filter: brightness(1.4); } }

.perks { list-style: none; margin: 16px 0 20px; display: grid; gap: 8px; }
.perks li {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--card); border: 1px solid var(--line);
  font-weight: 500; font-size: 15px;
}
.perks span { font-size: 20px; }

/* ---------- Кнопки ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 62px; padding: 16px 20px;
  border-radius: var(--r-md);
  font: italic 900 18px/1 var(--font-display);
  letter-spacing: 0.02em; text-decoration: none;
  transition: transform 0.15s var(--ease), filter 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn--primary {
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  color: #03140a; box-shadow: var(--glow-green);
}
.btn--tg {
  background: linear-gradient(180deg, #3fc0ff, var(--tg));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(42,171,238,0.6), 0 12px 40px -8px rgba(42,171,238,0.7);
}
.btn--wa {
  background: linear-gradient(180deg, #3ee87a, var(--wa));
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  box-shadow: 0 0 0 1px rgba(37,211,102,0.6), 0 12px 40px -8px rgba(37,211,102,0.75);
}
.btn--ghost {
  margin-top: 18px; background: transparent; box-shadow: none;
  border: 2px solid var(--wa); color: #3ee87a; text-shadow: none;
}
.btn--pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@media (hover: hover) { .btn:hover { filter: brightness(1.1); } }

/* ---------- Топбар ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  margin: 0 -16px; padding: 12px 16px;
  background: rgba(5,13,7,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green); }
.topbar__info { flex: 1; }
.topbar__name { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.verified {
  display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%;
  background: var(--tg); color: #fff; font-size: 10px; margin-left: 2px;
}
.topbar__step { font: 800 14px/1 var(--font-display); color: var(--yellow); }
.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.progress__bar {
  height: 100%; background: linear-gradient(90deg, var(--green), var(--yellow));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}

/* ---------- Вопрос ---------- */
.screen--question { padding-top: 28px; }
.q-card--in { animation: slideIn 0.45s var(--ease) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.q-kicker { color: var(--green); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.q-title { font: 800 clamp(23px, 6.6vw, 28px)/1.15 var(--font-display); }
.q-hint { color: var(--muted); font-size: 14px; margin-top: 8px; }
.options { display: grid; gap: 12px; margin-top: 24px; }
.option {
  display: flex; align-items: center; gap: 14px; text-align: left;
  min-height: 64px; padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--card); border: 1.5px solid var(--line);
  transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease);
}
.option:active { transform: scale(0.98); }
.option:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
@media (hover: hover) { .option:hover { border-color: rgba(43,255,106,0.5); } }
.option__emoji {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(255,255,255,0.05);
}
.option__text { flex: 1; font-weight: 600; font-size: 16px; }
.option__tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.22);
  transition: all 0.2s var(--ease);
}
.option.is-selected { border-color: var(--green); background: rgba(43,255,106,0.12); box-shadow: var(--glow-green); }
.option.is-selected .option__tick {
  border-color: var(--green); background: var(--green);
  box-shadow: inset 0 0 0 4px var(--card-solid);
}
.back { margin-top: 22px; color: var(--muted); font-size: 14px; padding: 8px 0; }

/* ---------- Анализ ---------- */
.screen--analyzing { padding-top: 12vh; }
.analyze { text-align: center; }
.ring { position: relative; width: 150px; height: 150px; margin: 0 auto 28px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 9; }
.ring__fill {
  fill: none; stroke: var(--green); stroke-width: 9; stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(43,255,106,0.7));
}
.ring__pct { position: absolute; inset: 0; display: grid; place-items: center; font: 900 34px var(--font-display); }
.checks { list-style: none; margin-top: 24px; display: grid; gap: 12px; text-align: left; }
.checks li {
  display: flex; gap: 12px; align-items: center;
  color: var(--muted); font-size: 15px; transition: color 0.3s;
}
.checks li::before {
  content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2); transition: all 0.3s var(--ease);
}
.checks li.is-done { color: var(--text); }
.checks li.is-done::before {
  content: '✓'; display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: var(--green); border-color: var(--green); color: #03140a;
}

/* ---------- Результат ---------- */
.screen--result { padding-top: 24px; }
.result__head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.result__avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none;
  border: 3px solid var(--green); box-shadow: var(--glow-green);
}
.score, .potential, .reserve {
  padding: 16px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line);
  margin-bottom: 14px;
}
.score__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 14px; color: var(--muted); }
.score__row b { font: 900 28px/1 var(--font-display); color: var(--green); }
.score__bar { margin-top: 12px; height: 10px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.score__fill {
  height: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--green-deep), var(--green), var(--yellow));
  transition: transform 1.4s var(--ease);
}
.potential {
  background: linear-gradient(135deg, rgba(255,227,26,0.14), rgba(43,255,106,0.08));
  border-color: rgba(255,227,26,0.35);
}
.potential__label { font-size: 13px; color: var(--muted); }
.potential__value { font: italic 900 26px/1.1 var(--font-display); color: var(--yellow); margin: 6px 0; text-transform: uppercase; }
.potential__sub { font-size: 14px; }

/* Потенциальный доход */
.income {
  position: relative; overflow: hidden;
  padding: 18px 16px 14px; border-radius: var(--r-md); margin-bottom: 14px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(43,255,106,0.22), transparent 60%),
    linear-gradient(160deg, rgba(16,48,26,0.95), rgba(8,24,13,0.95));
  border: 1px solid rgba(43,255,106,0.45);
  box-shadow: var(--glow-green);
}
.income__label { font-size: 13px; color: var(--muted); }
.income__label b { color: var(--text); white-space: nowrap; }
.income__value {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
  margin: 8px 0 14px;
  font: italic 900 clamp(24px, 7.6vw, 38px)/1 var(--font-display);
  color: var(--green); text-shadow: 0 0 24px rgba(43,255,106,0.5);
  font-variant-numeric: tabular-nums;
}
.income__dash { color: var(--muted); font-style: normal; }
.income__value { flex-wrap: nowrap; white-space: nowrap; margin-bottom: 4px; }
.income__per { font: 800 12px/1 var(--font-body); letter-spacing: 0.14em; color: var(--text); margin-bottom: 14px; }
.income__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.income__grid div {
  display: grid; gap: 3px; padding: 10px 8px; text-align: center;
  border-radius: var(--r-sm); background: rgba(0,0,0,0.28); border: 1px solid var(--line);
}
.income__grid b { white-space: nowrap; font: 900 clamp(12px, 3.7vw, 15px)/1.1 var(--font-display); color: var(--yellow); font-variant-numeric: tabular-nums; }
.income__grid span { font-size: 11px; color: var(--muted); line-height: 1.2; }
.income__urgency {
  margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px;
  background: rgba(255,77,77,0.12); border: 1px solid rgba(255,77,77,0.4);
}
.income__urgency b { color: var(--yellow); }
.income__urgency--hot { background: rgba(43,255,106,0.12); border-color: rgba(43,255,106,0.45); }
.income__urgency--hot b { color: var(--green); }

/* Рекомендуемый вариант ответа */
.option--hot { border-color: rgba(255,227,26,0.55); background: linear-gradient(135deg, rgba(255,227,26,0.12), rgba(43,255,106,0.06)); }
.option__tag {
  display: block; width: max-content; margin-bottom: 4px; padding: 3px 7px; border-radius: 6px;
  font: 800 10px/1 var(--font-body); letter-spacing: 0.06em;
  background: var(--yellow); color: #1a1500;
}

.insights { list-style: none; display: grid; gap: 10px; margin: 6px 0 16px; }
.insights li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.insights li > span { font-size: 20px; line-height: 1.2; }
.insights b { color: var(--green); }

.reserve { border-color: rgba(255,77,77,0.45); background: rgba(255,77,77,0.08); }
.reserve__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.reserve p { font-size: 14px; color: var(--muted); }
.reserve p b { color: var(--text); }
.timer { font: 900 26px/1 var(--font-display); color: var(--danger); font-variant-numeric: tabular-nums; }

.proof {
  margin-top: 26px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
}
.proof img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 64%; }
.proof p { padding: 16px; font-size: 15px; font-style: italic; color: var(--muted); }
.proof b { color: var(--text); font-style: normal; }

.screen--result { padding-bottom: 96px; }
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 60%, rgba(5,13,7,0));
  animation: fadeUp 0.5s 1.2s var(--ease) both;
}
.sticky-cta .btn { max-width: 448px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
