:root{
  --bg:#EAF4FF; --bg2:#F7E8F8; --surface:#FFFFFF; --tube:#E9ECFA;
  --ink:#241A5E; --muted:#5F5B8C; --line:#D6D9F2;
  --blue:#3B82F6; --green:#5BD13A; --green-d:#2F9A1B; --gold:#F5B82E; --red:#EF4B4B; --orange:#FF8A2B; --purple:#8B5CF6;
  --shadow:0 2px 0 rgba(36,26,94,.07),0 18px 34px -16px rgba(59,80,200,.38);
  --display:'Baloo 2',system-ui,sans-serif; --body:'Nunito',system-ui,sans-serif;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0F0B2B; --bg2:#201449; --surface:#1C1745; --tube:#2A2560;
  --ink:#F3F1FF; --muted:#B3AEDD; --line:#322C66;
  --shadow:0 2px 0 rgba(0,0,0,.4),0 18px 34px -16px rgba(0,0,0,.7);
}}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth}
body{font:500 17px/1.6 var(--body);color:var(--ink);background:linear-gradient(var(--bg),var(--bg2));background-color:var(--bg);-webkit-font-smoothing:antialiased;min-height:100vh}
a{color:inherit}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:8px}
.wrap{width:min(1120px,100% - 32px);margin-inline:auto}
h1,h2,h3{font-family:var(--display);line-height:1.04;letter-spacing:-.01em}
h1{font-size:clamp(2.5rem,6.4vw,4.6rem);font-weight:800;max-width:13ch}
h2{font-size:clamp(2rem,4.6vw,3.2rem);font-weight:800;max-width:17ch}
p.lead{color:var(--muted);font-size:1.15rem;max-width:46ch;margin-top:16px}
section{padding:72px 0}

nav{display:flex;align-items:center;justify-content:space-between;padding:18px 0}
.brand{display:flex;align-items:center;gap:10px;font:800 1.35rem var(--display);text-decoration:none}
.brand img{width:38px;height:38px;border-radius:11px;box-shadow:var(--shadow)}
.nav-links{display:flex;gap:6px;align-items:center}
.nav-links a{padding:8px 13px;border-radius:999px;text-decoration:none;font-weight:700;color:var(--muted)}
.nav-links a:hover{color:var(--ink);background:var(--surface)}
@media(max-width:640px){.nav-links a.hide-s{display:none}}

.btn{display:inline-flex;align-items:center;gap:10px;font:800 1.08rem var(--display);padding:14px 28px;border-radius:999px;text-decoration:none;color:#fff;
  background:linear-gradient(#8BEA55,var(--green) 55%,var(--green-d));box-shadow:0 5px 0 #1E7410,0 14px 24px -10px rgba(47,154,27,.7);border:0;cursor:pointer;text-shadow:0 1px 0 rgba(0,0,0,.25)}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(3px);box-shadow:0 2px 0 #1E7410}
.btn.ghost{background:var(--surface);color:var(--ink);text-shadow:none;box-shadow:0 5px 0 var(--line),var(--shadow)}
.btn[aria-disabled="true"]{filter:saturate(.55);cursor:default}
.cta{display:flex;gap:14px;flex-wrap:wrap;margin:28px 0 14px}
small{color:var(--muted);font-weight:600}

.hero{display:grid;grid-template-columns:1.05fr 1fr;gap:32px;align-items:center;padding:28px 0 56px}
@media(max-width:860px){.hero{grid-template-columns:1fr}}
.hero .lead{max-width:40ch}
.stage{position:relative;height:560px;display:flex;justify-content:center;align-items:center}
.phone{border-radius:34px;overflow:hidden;background:var(--surface);border:6px solid #1c1745;box-shadow:var(--shadow);line-height:0}
.phone img{width:100%;height:auto;display:block}
.stage .phone{position:absolute;width:230px}
.stage .mid{z-index:2;width:262px;transform:translateY(-6px)}
.stage .side{transform:translateX(-170px) rotate(-7deg) scale(.9)}
.stage .side.r{transform:translateX(170px) rotate(7deg) scale(.9)}
@media(max-width:520px){.stage{height:500px}.stage .side{transform:translateX(-120px) rotate(-7deg) scale(.82)}.stage .side.r{transform:translateX(120px) rotate(7deg) scale(.82)}.stage .mid{width:230px}}

.banner{border-radius:28px;overflow:hidden;box-shadow:var(--shadow);margin-bottom:8px;line-height:0}
.banner img{width:100%;height:auto}

.rules2{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
@media(max-width:860px){.rules2{grid-template-columns:1fr}}
ol{list-style:none;padding:0;margin-top:26px;display:grid;gap:14px;counter-reset:r}
ol li{counter-increment:r;display:grid;grid-template-columns:44px 1fr;gap:4px 14px;background:var(--surface);padding:16px 18px;border-radius:20px;box-shadow:var(--shadow)}
ol li::before{content:counter(r);grid-row:span 2;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font:800 1.2rem var(--display);color:#fff;background:linear-gradient(135deg,var(--purple),var(--blue))}
ol li b{font:800 1.15rem var(--display)}
ol li span{color:var(--muted)}
.facts{display:flex;gap:14px;flex-wrap:wrap;margin-top:26px}
.facts span{background:var(--surface);border-radius:18px;padding:12px 18px;box-shadow:var(--shadow);color:var(--muted);font-weight:700}
.facts b{display:block;font:800 1.9rem var(--display);color:var(--ink);line-height:1}
.duo{display:flex;gap:18px;justify-content:center}
.duo .phone{width:44%}
.duo .phone:last-child{margin-top:40px}

.try{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
@media(max-width:860px){.try{grid-template-columns:1fr}}
.game{background:var(--surface);border-radius:28px;padding:22px;box-shadow:var(--shadow)}
.hud{display:flex;justify-content:space-between;align-items:center;font-weight:800;margin-bottom:12px;color:var(--muted)}
.hud b{color:var(--ink);font-family:var(--display);font-size:1.3rem}
.board{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;padding:30px 4px 22px;background:linear-gradient(#EDEBFF,#F6E9FA);border-radius:20px}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .board{background:linear-gradient(#2A2560,#33255F)}}
.tube{width:52px;height:208px;border-radius:12px 12px 28px 28px;border:3px solid #b9c5f2;background:rgba(255,255,255,.55);display:flex;flex-direction:column-reverse;align-items:center;padding:6px 0;gap:3px;cursor:pointer;position:relative;transition:transform .15s,box-shadow .15s}
.tube:hover{transform:translateY(-2px)}
.tube.sel{border-color:var(--blue);box-shadow:0 0 0 4px rgba(59,130,246,.25)}
.tube.hint{border-color:var(--gold);box-shadow:0 0 0 4px rgba(245,184,46,.35)}
.ball{width:38px;height:38px;border-radius:50%;flex:none;box-shadow:inset -4px -6px 8px rgba(0,0,0,.22),inset 4px 5px 7px rgba(255,255,255,.55),0 1px 2px rgba(0,0,0,.25)}
.tube.sel .ball:last-child{transform:translateY(-16px)}
.tools{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}
.tools button{font:800 .95rem var(--display);padding:9px 18px;border-radius:999px;border:2px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer}
.tools button:hover{border-color:var(--blue)}
.msg{margin-top:12px;color:var(--muted);font-weight:700;min-height:1.6em}

.loop{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:34px}
@media(max-width:980px){.loop{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.loop{grid-template-columns:1fr}}
.tile{background:var(--surface);border-radius:24px;padding:20px 20px 0;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}
.tile h3{font-size:1.4rem;font-weight:800}
.tile p{color:var(--muted);margin:8px 0 16px}
.phone.crop{height:230px;margin-top:auto;border-bottom:0;border-radius:26px 26px 0 0}

.shots{display:flex;gap:20px;overflow-x:auto;padding:30px 4px 24px;scroll-snap-type:x mandatory;margin-top:8px}
.shots figure{flex:0 0 min(240px,62vw);scroll-snap-align:center}
.shots figcaption{margin-top:12px;font:800 1.1rem var(--display)}
.shots figcaption span{display:block;font:600 .95rem var(--body);color:var(--muted)}

.plans{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:34px;max-width:820px}
@media(max-width:640px){.plans{grid-template-columns:1fr}}
.plan{background:var(--surface);border-radius:26px;padding:26px;box-shadow:var(--shadow)}
.plan.pro{background:linear-gradient(145deg,#6D4BEA,#3B82F6);color:#fff}
.plan h3{font-size:1.7rem;font-weight:800}
.price{font-weight:800;margin:4px 0 14px;opacity:.8}
.plan ul{padding-left:20px;display:grid;gap:8px}

.final{text-align:center}
.final h2{margin-inline:auto}
.final .btn{margin-top:26px}

footer{padding:34px 0 48px;color:var(--muted);font-size:.95rem}
footer .wrap{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}
footer a{text-decoration:none;font-weight:700}
footer a:hover{color:var(--ink);text-decoration:underline}

.doc{padding:30px 0 70px;max-width:760px}
.doc h1{font-size:clamp(2.2rem,5vw,3.2rem);max-width:none}
.doc h2{font-size:1.5rem;margin:34px 0 8px;max-width:none}
.doc p,.doc li{color:var(--muted);margin-top:10px}
.doc ul{padding-left:22px}
.doc a{color:var(--blue);font-weight:700}
.doc table{width:100%;border-collapse:collapse;margin-top:14px;font-size:.95rem;background:var(--surface);border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.doc th,.doc td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top;color:var(--muted)}
.doc th{color:var(--ink);font-family:var(--display)}
.doc .eff{font-weight:700}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
