*{box-sizing:border-box}
[hidden]{display:none!important}
:root{--accent:#1d6b46;--dark:color-mix(in srgb,var(--accent) 45%,#07110c);--mint:color-mix(in srgb,var(--accent) 11%,#fff);--mint2:color-mix(in srgb,var(--accent) 26%,#fff);--bg:#fff;--ink:#0f172a;--muted:#5b6672;--card:#fff;--line:#e3e8e5;--radius:18px}
html{color-scheme:light;scroll-behavior:smooth}
body{overflow-anchor:none;margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;min-height:100dvh}
body.focus{background:#f3f6f5}
body.focus #page{display:none}
#stage{min-height:100dvh;display:flex;flex-direction:column}
.wrap{max-width:1040px;margin:0 auto;padding:0 20px}
h1,h2,h3{letter-spacing:-.015em;line-height:1.15;margin:0}
p{line-height:1.55;margin:0 0 14px}
.lead{color:var(--muted);font-size:16px}
.arr{display:inline-block;transition:transform .15s}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:15px 22px;font-size:16px;font-weight:600;cursor:pointer;font-family:inherit;transition:transform .08s,opacity .15s,background .15s;text-decoration:none}
.btn:hover .arr{transform:translateX(3px)}
.btn:active{transform:scale(.98)}
.btn[disabled]{opacity:.5;cursor:default}
.btn-primary{background:var(--accent);color:#fff}
.btn-mint{background:var(--mint2);color:var(--dark)}
.btn-white{background:#fff;color:var(--dark)}
.btn-sm{padding:10px 16px;font-size:14px;border-radius:10px}
.btn-secondary{background:transparent;color:var(--muted);margin-top:8px;padding:12px;width:100%}
.btn-outline{background:#fff;color:var(--accent);border:2px solid var(--accent);width:100%}
/* header */
.hdr{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:5}
.hdr-in{display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{display:flex;align-items:center;gap:10px}
.logo-ic{width:38px;height:38px;border-radius:12px;background:var(--mint);color:var(--accent);display:grid;place-items:center}
.logo b{display:block;font-size:17px;line-height:1.1}.logo small{color:var(--muted);font-size:11px}
/* hero */
.hero{background:radial-gradient(900px 500px at 85% 20%,color-mix(in srgb,var(--accent) 80%,#000) 0%,var(--dark) 60%);color:#fff;padding:44px 0 40px;overflow:hidden;position:relative}
.hero-in{display:grid;grid-template-columns:1.2fr .8fr;gap:30px;align-items:center}
.badge-dark{display:inline-block;background:rgba(255,255,255,.14);color:var(--mint2);font-weight:600;font-size:13px;padding:6px 12px;border-radius:999px;margin-bottom:16px}
.hero h1{font-size:40px;font-weight:800;margin-bottom:14px}
.hero p{font-size:17px;color:rgba(255,255,255,.82);max-width:520px;margin-bottom:22px}
.trust{list-style:none;padding:0;margin:20px 0 0;display:flex;flex-wrap:wrap;gap:8px 20px;font-size:14px;color:rgba(255,255,255,.82)}
.trust li{display:flex;align-items:center;gap:8px}.trust svg{color:var(--mint2)}
.hero-art{position:relative;min-height:220px}
.orb{position:absolute;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle at 35% 35%,var(--mint2),var(--accent) 60%,transparent 72%);opacity:.55;right:10px;top:-20px;filter:blur(2px)}
.orb2{width:120px;height:120px;right:220px;top:150px;opacity:.35}
.note{font-family:Caveat,cursive;font-size:32px;line-height:1.1;color:#fff;transform:rotate(-4deg);position:absolute;right:20px;top:60px;max-width:280px;text-shadow:0 2px 12px rgba(0,0,0,.35)}
/* main */
.main{padding:20px 20px 40px}
.quizcard{background:var(--mint);border-radius:var(--radius);padding:22px;margin:-30px 0 34px;position:relative;z-index:2;box-shadow:0 12px 40px rgba(15,42,30,.18)}
.quizcard h2{font-size:22px;margin:12px 0 6px}
.qhead{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:13px;margin-bottom:10px}
.qtime{display:flex;align-items:center;gap:6px}
.progress{height:6px;background:rgba(0,0,0,.08);border-radius:999px;overflow:hidden}
.progress i{display:block;height:100%;background:var(--accent);border-radius:999px;transition:width .3s}
.hint{color:var(--muted);font-size:14px;margin:0 0 10px}
.options{display:flex;flex-direction:column;gap:10px;margin:14px 0 4px}
.opt{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#fff;border:2px solid transparent;border-radius:12px;padding:14px 16px;font:inherit;font-size:16px;color:var(--ink);cursor:pointer;transition:border-color .12s,background .12s;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.opt:hover{border-color:var(--mint2)}
.opt.on{border-color:var(--accent);background:#f2faf5}
.opt .box{flex:none;width:22px;height:22px;border-radius:50%;border:2px solid #cbd5d0;display:grid;place-items:center}
.opt.multi .box{border-radius:6px}
.opt.on .box{border-color:var(--accent);background:var(--accent)}
.opt.on .box::after{content:"";width:10px;height:6px;border:2px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px)}
.qfoot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;flex-wrap:wrap}
.qfoot .btn{min-width:140px}
.qfoot small{color:var(--muted)}
.sec{margin:0 0 40px}
.h{font-size:26px;font-weight:800;margin-bottom:14px}
.recog{list-style:none;padding:0;margin:0 0 16px;display:grid;gap:10px}
.recog li{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:15px}
.recog svg{color:var(--accent);flex:none;margin-top:1px}
.stages{list-style:none;padding:0;margin:8px 0 14px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.stage{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;position:relative}
.stage .num{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:13px;font-weight:700;margin-bottom:10px;color:#fff}
.s0 .num{background:#4caf7d}.s1 .num{background:#e0a100}.s2 .num{background:#d9534f}
.s1{border-color:#f2d27a;background:#fffbeb}
.stage b{display:block;font-size:16px;margin-bottom:6px}.stage p{font-size:14px;color:var(--muted);margin:0}
.stage-note{display:flex;gap:8px;align-items:flex-start;color:var(--accent);font-weight:500;font-size:15px}.stage-note svg{flex:none;margin-top:2px}
.proof{background:var(--mint);border-radius:var(--radius);padding:22px}
.counter{font-size:16px;margin-bottom:14px}.counter b{font-size:26px;font-weight:800;margin-right:6px}
.features{list-style:none;padding:0;margin:0 0 16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.features li{display:flex;gap:8px;align-items:center;font-size:14px;font-weight:500}.features svg{color:var(--accent);flex:none}
.quote{margin:0;background:var(--dark);color:#fff;border-radius:14px;padding:18px 20px}
.quote p{font-size:16px;line-height:1.5;margin-bottom:10px}
.quote footer{font-size:13px;color:rgba(255,255,255,.7)}.quote footer b{color:#fff;margin-right:8px}
.method{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px}
.method h3{font-size:15px;margin-bottom:6px}.method p{font-size:14px;color:var(--muted);margin:0}
.faq{border:1px solid var(--line);border-radius:12px;padding:0 16px;margin-bottom:8px;background:#fff}
.faq summary{cursor:pointer;padding:14px 0;font-weight:600;list-style:none;display:flex;justify-content:space-between;align-items:center}
.faq summary::after{content:"+";font-size:20px;color:var(--muted)}
.faq[open] summary::after{content:"–"}
.faq p{color:var(--muted);font-size:15px;padding-bottom:14px}
.final{background:linear-gradient(135deg,var(--accent),var(--dark));color:#fff;border-radius:var(--radius);padding:30px 26px;display:flex;justify-content:space-between;align-items:center;gap:20px;position:relative;overflow:hidden}
.final h2{font-size:26px;font-weight:800;margin-bottom:8px}.final p{color:rgba(255,255,255,.82);margin-bottom:16px;max-width:460px}
.note-sm{position:static;font-size:30px;transform:rotate(-6deg);flex:none}
.foot{text-align:center;color:var(--muted);font-size:12px;padding:14px 16px calc(14px + env(safe-area-inset-bottom));line-height:1.4}
/* экраны опроса внутри карточки на странице */
#quiz{scroll-margin-top:72px}
.quizcard .screen{display:block;padding:0}
.quizcard .card{background:transparent;box-shadow:none;padding:0;max-width:680px;border-radius:0}
.quizcard .card .progress{background:rgba(0,0,0,.08);margin-bottom:12px}
.quizcard .card h2{margin-top:0}
.quizcard .btn{width:auto;min-width:200px}
.quizcard .btn-secondary,.quizcard .btn-outline{width:auto;display:inline-flex;margin-left:8px}
.quizcard .push-icon,.quizcard .bonus{max-width:680px}
@media (max-width:760px){.quizcard .btn{width:100%}.quizcard .btn-secondary,.quizcard .btn-outline{margin:8px 0 0}}
/* фокус-режим: экраны опроса, пуша, результата */
.screen{flex:1;display:flex;align-items:center;justify-content:center;padding:20px 16px;padding-top:max(20px,env(safe-area-inset-top))}
.card{width:100%;max-width:520px;background:var(--card);border-radius:20px;padding:26px 22px;box-shadow:0 10px 40px rgba(15,23,42,.08)}
.card h2{font-size:22px;margin:0 0 6px}
.card .progress{margin-bottom:18px;background:var(--line)}
.card .btn{width:100%}
.back{background:none;border:0;color:var(--muted);font:inherit;font-size:14px;cursor:pointer;padding:4px 0}
input.text{width:100%;font:inherit;font-size:16px;padding:14px 16px;border:2px solid var(--line);border-radius:14px;margin:6px 0 16px}
input.text:focus{outline:0;border-color:var(--accent)}
.push-icon{width:64px;height:64px;border-radius:18px;background:var(--mint);display:grid;place-items:center;margin-bottom:14px;font-size:30px}
.bonus{display:flex;gap:12px;align-items:center;background:var(--mint);border-radius:12px;padding:12px 14px;margin:6px 0 16px;font-size:14px;font-weight:500}
.bonus .gift{font-size:26px}
.ios-hint{margin-top:14px;padding:12px 14px;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;color:#7c2d12;font-size:14px;line-height:1.45}
.msg{margin-top:12px;color:var(--muted);font-size:14px}
.level{display:inline-block;padding:6px 12px;border-radius:999px;font-weight:700;font-size:14px;margin:6px 0 12px}
.level-low{background:#dcfce7;color:#166534}.level-medium{background:#fef3c7;color:#92400e}.level-high{background:#fee2e2;color:#991b1b}
.spinner{width:22px;height:22px;border:3px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:sp .7s linear infinite;margin:0 auto}
@keyframes sp{to{transform:rotate(360deg)}}
.fade{animation:fade .25s ease}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (max-width:760px){
  .hero{padding:26px 0 44px}.hero-in{grid-template-columns:1fr;gap:10px}.hero h1{font-size:30px}.hero p{font-size:16px}
  .hero .btn{width:100%}
  .hero-art{min-height:0}.orb{width:220px;height:220px;right:-70px;top:-120px;opacity:.35}.orb2{display:none}.note{position:static;font-size:26px;max-width:none;transform:rotate(-2deg);margin:4px 0 0;text-align:right}
  .quizcard{margin-top:-34px;padding:18px}.quizcard h2{font-size:20px}
  .h{font-size:22px}.stages{grid-template-columns:1fr}.features{grid-template-columns:1fr}
  .final{flex-direction:column;align-items:flex-start;padding:24px 20px}.final .btn{width:100%}.note-sm{align-self:flex-end}
  .sec .btn-primary{width:100%}
}

/* выброс из встроенного браузера */
.breakout{position:fixed;inset:0;z-index:50;background:color-mix(in srgb,var(--dark) 96%,transparent);display:flex;align-items:center;justify-content:center;padding:20px;color:#fff}
.bo-card{max-width:420px;text-align:center}
.bo-ic{font-size:52px;margin-bottom:10px}
.bo-card h2{font-size:26px;font-weight:800;margin-bottom:10px}
.bo-card p{color:rgba(255,255,255,.82);font-size:16px;margin-bottom:22px}
.bo-btn{width:100%;font-size:18px;padding:18px}
.bo-skip{background:none;border:0;color:rgba(255,255,255,.6);font:inherit;font-size:14px;margin-top:18px;cursor:pointer;text-decoration:underline}
.bo-manual{margin:12px 0 4px;padding:12px 14px;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;font-size:14px;line-height:1.45}
.bo-manual p{margin:0 0 8px;color:#7c2d12}
.bo-link{background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 10px;margin-bottom:8px;overflow-wrap:anywhere;font-size:12px}
.quizcard .bo-manual .btn{width:100%;margin:0}
.gate-skip{font-size:14px;opacity:.8}
.proof-line{display:flex;gap:8px;align-items:center;background:#fff;border-radius:10px;padding:8px 10px;font-size:13px;color:#166534;margin-bottom:10px}
.timer{background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12;border-radius:10px;padding:8px 10px;font-size:13px;margin:0 0 12px}
.timer b{font-variant-numeric:tabular-nums}
.btn.pulse{animation:pulse 1.6s infinite}@keyframes pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 45%,transparent)}50%{box-shadow:0 0 0 12px transparent}}
.perm-guide{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.6);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:150px 28px 0;text-align:center;color:#fff;pointer-events:none}
.pg-arrow{font-size:52px;animation:bounce 1s infinite}@keyframes bounce{50%{transform:translateY(-10px)}}
.pg-text{font-size:18px;font-weight:700;line-height:1.35;text-shadow:0 2px 10px rgba(0,0,0,.5)}
/* layout quiz-first: над тестом только заголовок — первый вопрос виден без скролла */
body.quiz-first .hero{padding:16px 0 34px}
body.quiz-first .hero h1{font-size:24px;margin-bottom:0}
body.quiz-first .hero p,body.quiz-first .hero .btn,body.quiz-first .trust,body.quiz-first .hero-art{display:none}
body.quiz-first .hero-in{grid-template-columns:1fr;gap:0}
body.quiz-first .badge-dark{margin-bottom:10px;font-size:12px}
body.quiz-first .hdr .btn{display:none}
@media (min-width:761px){body.quiz-first .hero h1{font-size:30px}}
.howto{margin:0 0 14px;padding-left:22px;font-size:14px;line-height:1.6;color:#334155}
.inapp-start{margin:0 0 16px;padding:14px;background:#fff;border-radius:14px;border:2px solid var(--accent)}
.inapp-start .btn{width:100%;font-size:18px;padding:16px}
.inapp-note{margin:10px 0 6px;font-size:13px;color:var(--muted);line-height:1.45}
.inapp-here{text-align:center;font-size:13px;color:var(--muted)}
.opt.big{justify-content:center;text-align:center;font-size:19px;font-weight:600;padding:18px 16px;border:2px solid var(--accent);color:var(--accent);background:#fff}
.opt.big.on{background:var(--accent);color:#fff}
.opt.big:active{transform:scale(.98)}
.quizcard .qfoot{position:sticky;bottom:0;background:var(--mint);padding:10px 0 6px;margin-top:10px;z-index:1}
