/* Главная */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(64px, 8vw, 110px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 154, 77, .28), rgba(255, 154, 77, 0) 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; position: relative; }
.hero h1 { margin: 18px 0 22px; font-size: clamp(34px, 3.7vw, 54px); line-height: 1.08; }
.hero h1 .l { display: block; white-space: nowrap; }
.hero .eyebrow { color: var(--ink-2); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.hero .hl { color: var(--accent); position: relative; width: fit-content; }
.hero .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; background: var(--accent-soft); z-index: -1; border-radius: 4px; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 600px; }
.hero-facts li { border-top: 2px solid var(--line-2); padding-top: 12px; display: grid; gap: 2px; }
.hero-facts b { font: 700 18px/1.2 var(--display); }
.hero-facts span { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .hero-facts { grid-template-columns: 1fr; } .hero h1 { font-size: 31px; } }

/* ── демо: ПК + телефон ── */
.demo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; align-items: end; }
.cap { text-align: center; font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }
.pc-screen {
  position: relative; aspect-ratio: 16 / 10.5; border-radius: 16px; overflow: hidden; border: 10px solid var(--night);
  background: linear-gradient(180deg, #7CC6FF 0%, #BEE5FF 55%, #6FBF5A 55%, #4E9E3F 100%); box-shadow: var(--shadow-lg);
}
.pc-stand { width: 26%; height: 18px; margin: 0 auto; background: linear-gradient(#2A3148, #1B2133); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.blocks i { position: absolute; display: block; width: 13%; aspect-ratio: 1; background: #E2574C; border-radius: 3px;
  box-shadow: inset -6px -6px 0 rgba(0,0,0,.14), inset 6px 6px 0 rgba(255,255,255,.18); }
.blocks i:nth-child(1) { left: 8%; bottom: 45%; }
.blocks i:nth-child(2) { left: 21%; bottom: 45%; background: #F5B83D; }
.blocks i:nth-child(3) { left: 14.5%; bottom: 62%; background: #4C8DE2; }
.blocks i:nth-child(4) { right: 12%; bottom: 45%; background: #9B6BD8; width: 18%; }
.blocks i:nth-child(5) { right: 18%; bottom: 66%; background: #3FB58C; width: 10%; }
.blocks i:nth-child(6) { left: 44%; bottom: 45%; width: 7%; background: #FFFFFF; }
.blocks i:nth-child(7) { left: 44.5%; bottom: 55%; width: 6%; background: #F2C9A0; border-radius: 4px; }
.blocks i:nth-child(8) { left: 44%; bottom: 35%; width: 7%; aspect-ratio: .7; background: #3A6AD6; }
.blocks i:nth-child(9) { left: 60%; top: 10%; width: 16%; aspect-ratio: 2.4; background: rgba(255,255,255,.85); border-radius: 30px; box-shadow: none; }
.pc-game { position: absolute; left: 4%; top: 5%; font: 800 clamp(10px, 1.3vw, 14px)/1 var(--display); color: rgba(255,255,255,.9); letter-spacing: .1em;
  background: rgba(0,0,0,.25); padding: 6px 9px; border-radius: 6px; }

.pill { position: absolute; right: 4%; bottom: 5%; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  border-radius: 999px; background: #22A06B; color: #fff; font: 700 clamp(11px, 1.15vw, 14px)/1 var(--body); box-shadow: 0 6px 16px -6px rgba(0,0,0,.45);
  transition: background .4s var(--ease), transform .3s var(--ease); font-variant-numeric: tabular-nums; }
.pill img { width: 26px; height: 26px; background: #fff; border-radius: 50%; padding: 2px; }
.pill em { font-style: normal; background: rgba(255,255,255,.22); padding: 4px 8px; border-radius: 999px; margin-left: 2px; }
.pill.warn { background: #F59E0B; }
.pill.red { background: #E11D48; }
.pill.bump { transform: scale(1.08); }
.pill.static { position: static; }

.toast { position: absolute; right: 4%; bottom: 17%; width: min(78%, 300px); display: flex; gap: 10px; align-items: center;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 12px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5);
  animation: pop .45s var(--ease); }
.toast img { width: 34px; height: 34px; flex: none; }
.toast b { display: block; font: 700 13px/1.25 var(--body); }
.toast span { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.lock { position: absolute; inset: 0; background: rgba(17, 24, 39, .62); display: grid; place-content: center; justify-items: center; gap: 4px;
  text-align: center; color: #fff; animation: fade .35s var(--ease); padding: 12px; }
.lock img { width: 56px; height: 56px; background: #fff; border-radius: 50%; padding: 4px; margin-bottom: 6px; }
.lock b { font: 700 clamp(13px, 1.6vw, 18px)/1.2 var(--display); }
.lock span { font-size: clamp(11px, 1.2vw, 13px); opacity: .9; }
.lock-btns { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.lock-btns i { font-style: normal; font: 700 11px/1 var(--body); background: #FF8A3D; padding: 7px 10px; border-radius: 8px; }
.lock-btns i + i { background: rgba(255,255,255,.18); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.phone { background: var(--night); border-radius: 30px; padding: 10px; box-shadow: var(--shadow-lg); }
.phone-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; color: #fff; }
.phone-top img { width: 30px; height: 30px; background: #fff; border-radius: 50%; padding: 2px; }
.phone-top b { display: block; font: 700 13px/1.1 var(--body); }
.phone-top span { font-size: 11px; color: #9AA3BD; }
.chat { background: #DCE8F2; border-radius: 22px; padding: 10px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.msg { background: #fff; border-radius: 14px 14px 14px 4px; padding: 10px 11px; font-size: 12.5px; line-height: 1.45; color: var(--ink);
  box-shadow: 0 1px 1px rgba(0,0,0,.06); animation: pop .4s var(--ease); }
.msg.small { font-size: 12px; }
.kb { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.kb button { appearance: none; border: 0; cursor: pointer; background: rgba(255,255,255,.9); color: #2F6DA8; font: 700 12px/1.2 var(--body);
  padding: 9px 6px; border-radius: 10px; transition: background .15s, transform .1s; }
.kb button:hover { background: #fff; }
.kb button:active { transform: scale(.97); }
.kb button.wide { grid-column: 1 / -1; }
.kb button[disabled] { opacity: .5; cursor: default; }
@media (max-width: 620px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .phone { max-width: 320px; margin: 0 auto; width: 100%; }
}

/* ── шаги ── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 28px 26px 30px; box-shadow: var(--shadow); position: relative; }
.step-n { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink);
  font: 800 22px/1 var(--display); margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ── экран ребёнка ── */
.kid { background: linear-gradient(180deg, var(--bg), #FFF1E3); }
.kid-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kc { margin: 0; }
.kc-stage { height: 170px; border-radius: var(--radius); background-color: var(--night);
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px); background-size: 14px 14px;
  display: grid; place-items: center; padding: 16px; box-shadow: var(--shadow); }
.mini-card { width: 100%; background: #fff; border-radius: 14px; padding: 12px; display: flex; gap: 10px; align-items: center;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
.mini-card img { width: 38px; height: 38px; flex: none; }
.mini-card b { display: block; font: 700 14px/1.25 var(--display); }
.mini-card span { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.kc figcaption { padding: 14px 4px 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.kc figcaption b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
@media (max-width: 980px) { .kid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kid-cards { grid-template-columns: minmax(0, 1fr); } }

/* ── задания и звёзды ── */
.stars-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.stars-text h2 { margin: 14px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px; background: var(--ok-soft);
  box-shadow: inset 0 0 0 1.5px rgba(18,128,92,.35); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 9px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks b { color: var(--ink); }
.quest { background: var(--paper); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-lg); }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.q-lvl { display: flex; gap: 12px; align-items: center; }
.q-badge { width: 48px; height: 48px; border-radius: 14px; background: var(--warn-soft); display: grid; place-items: center; font-size: 26px; }
.q-lvl b { display: block; font: 700 18px/1.2 var(--display); }
.q-lvl span { font-size: 13px; color: var(--ink-2); }
.q-stars { display: flex; align-items: baseline; gap: 4px; }
.q-stars b { font: 800 34px/1 var(--display); }
.q-stars span { font-size: 24px; }
.q-bar { height: 10px; background: var(--accent-soft); border-radius: 99px; margin: 16px 0 18px; overflow: hidden; }
.q-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--star), var(--accent)); border-radius: 99px; transition: width .6s var(--ease); }
.q-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.q-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.q-e { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 22px; }
.q-list b { display: block; font-size: 15px; }
.q-list span { font-size: 13px; color: var(--ink-2); }
.q-btn { appearance: none; border: 0; cursor: pointer; background: var(--accent); color: #fff; font: 700 13px/1 var(--body); padding: 10px 14px; border-radius: 10px; }
.q-btn:hover { background: #FF6A00; }
.q-ok { font-style: normal; font-weight: 700; font-size: 13px; color: var(--ok); white-space: nowrap; }
.q-wait { font-style: normal; font-weight: 700; font-size: 13px; color: var(--warn); white-space: nowrap; }
.q-ach { display: flex; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.q-ach span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--warn-soft); }
.q-ach span.off { filter: grayscale(1); opacity: .35; background: #F3EEE8; }
.star-fly { position: fixed; pointer-events: none; font-size: 22px; z-index: 99; animation: fly .9s var(--ease) forwards; }
@keyframes fly { to { transform: translate(var(--dx), var(--dy)) scale(.6); opacity: .2; } }
@media (max-width: 860px) { .stars-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── пульт родителя ── */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pane { background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.pane h3 { font-size: 22px; }
.pane h3 a { color: var(--accent-ink); text-decoration: none; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }

/* ── данные ── */
.privacy-sec { background: var(--night); color: #E6E9F2; }
.privacy-sec h2 { color: #fff; }
.privacy-sec .eyebrow { color: #FFD2B0; background: rgba(255,138,61,.16); }
.priv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.priv { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.priv li { padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #D6DBEA; }
.priv b { color: #fff; }
@media (max-width: 860px) { .priv-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.qa details { border-bottom: 1px solid var(--line-2); }
.qa summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font: 700 18px/1.35 var(--body); position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 500 28px/1 var(--display); color: var(--accent); transition: transform .25s var(--ease); }
.qa details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { padding: 0 0 22px; color: var(--ink-2); max-width: 680px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ── призыв ── */
.cta { padding-top: 0; }
.cta-box { background: linear-gradient(120deg, #FF7A1A, #FF9A4D); color: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; box-shadow: var(--shadow-lg); }
.cta-mascot { width: 96px; height: 96px; background: #fff; border-radius: 50%; padding: 8px; animation: wob 3.6s ease-in-out infinite; }
.cta-box h2 { color: #fff; }
.cta-box p { margin-top: 8px; font-size: 18px; opacity: .95; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-btns .btn { background: var(--night); }
.cta-btns .btn.ghost.light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.cta-btns .btn.ghost.light:hover { background: rgba(255,255,255,.12); }
@keyframes wob { 0%, 100% { transform: rotate(0); } 8% { transform: rotate(-7deg); } 16% { transform: rotate(6deg); } 24% { transform: rotate(-3deg); } 32% { transform: rotate(0); } }
@media (max-width: 860px) { .cta-box { grid-template-columns: minmax(0, 1fr); text-align: left; } .cta-mascot { width: 72px; height: 72px; } }

/* миссия: записка от папы на демо + блок «Почему бесплатно» */
.mf-sticky { position: absolute; z-index: 5; left: -26px; top: -30px; width: 250px; transform: rotate(-3deg); padding: 16px 18px 14px;
  background: #FFF3B8; color: #3D3415; border-radius: 4px 4px 14px 4px; box-shadow: 0 14px 26px -14px rgba(60,40,0,.45);
  font: 600 14.5px/1.42 var(--body); text-decoration: none; transition: transform .25s var(--ease); }
.mf-sticky::before { content: ""; position: absolute; top: -9px; left: 50%; width: 70px; height: 18px; margin-left: -35px;
  background: rgba(255,255,255,.55); transform: rotate(2deg); }
.mf-sticky span { display: block; margin-top: 8px; font-weight: 700; color: #6B5A10; font-size: 13px; }
.mf-sticky:hover { transform: rotate(-1deg) translateY(-2px); color: #3D3415; }
@media (max-width: 1100px) { .mf-sticky { position: relative; left: 0; top: 0; grid-column: 1 / -1; justify-self: start;
  margin: 14px 0 26px; transform: rotate(-1.5deg); width: auto; max-width: 360px; } }
.why { background: var(--paper); border-block: 1px solid var(--line); }
.why-wrap { max-width: 820px; }
.why h2 { margin-top: 16px; font-size: clamp(30px, 3.6vw, 46px); }
.why h2 em { font-style: normal; color: var(--accent); }
.why-text { margin-top: 20px; font-size: 18px; line-height: 1.7; }
.mf-av { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft);
  color: var(--accent-ink); font: 700 20px/1 var(--display); }
.sign { display: flex; gap: 14px; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.sign b { display: block; font: 700 17px/1.2 var(--display); } .sign span { color: var(--ink-3); font-size: 14px; }
