:root {
  --bg: #121212;
  --card: #1F1F1F;
  --fg: #FFFFFF;
  --fg-muted: #B3B3B3;
  --line: #2A2A2A;
  --accent: #20D466;
  --accent-text: #20D466;
  --accent-soft: #173A24;
  --on-accent: #121212;
  --peach: #F2A48C;
  --gold: #E8B84A;
  --stage: #1A1A1A;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); overflow-x: hidden;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
.wrap { max-width: 1160px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.lead { color: var(--fg-muted); font-size: 19px; margin: 18px 0 0; max-width: 36em; }

.header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.logo img { border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link { text-decoration: none; color: var(--fg-muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav-link:hover { color: var(--fg); background: var(--line); }

.lang-selector { position: relative; }
.lang-current { display: flex; align-items: center; gap: 6px; background: transparent; border: 0; border-radius: 999px; padding: 8px 10px; font: inherit; font-weight: 600; font-size: 15px; color: var(--fg); cursor: pointer; }
.lang-current:hover, .lang-current[aria-expanded="true"] { background: var(--line); }
.lang-flag { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; display: block; flex: 0 0 auto; }
.lang-chevron { width: 14px; height: 14px; opacity: .6; transition: transform .2s; }
.lang-current[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
.lang-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 11rem; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 200; max-height: 70vh; overflow: auto; }
.lang-dropdown.open { display: block; }
.lang-dropdown li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--fg-muted); }
.lang-dropdown li:hover, .lang-dropdown li.active { background: var(--accent-soft); color: var(--fg); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; font-size: 15px; margin-left: 6px; white-space: nowrap; }
.btn:hover { filter: brightness(1.05); }

.store-badge { display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 24px 0 18px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.2); transition: transform .15s; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge svg { width: 26px; height: 30px; }
.store-badge span { display: flex; flex-direction: column; font-size: 23px; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.store-badge small { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.qr { display: flex; align-items: center; gap: 12px; color: var(--fg-muted); font-size: 14px; max-width: 200px; line-height: 1.35; }
.qr img { background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.is-android .ios-only { display: none; }
.on-ios, .lbl-android { display: none; }
.is-ios .on-ios { display: inline-flex; }
.is-ios .not-ios { display: none; }
.is-android .lbl-wide { display: none; }
.is-android .lbl-android { display: inline; }
.web-link { display: inline-block; margin-top: 18px; color: var(--fg-muted); font-weight: 600; text-decoration: none; }
.web-link:hover { color: #fff; }
.is-android .web-link { display: flex; gap: 8px; justify-content: center; align-items: center; height: 60px; margin-top: 32px; border-radius: 14px; background: var(--accent); color: #121212; font-size: 18px; }
.is-android .hero .cta-row { display: none; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
h1 { font-size: clamp(38px, 5.6vw, 64px); }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 24px 0 40px; }
.hero-visual .phone { --pw: 300px; transform: rotate(-4deg); }
.kilim-glow { position: absolute; inset: 12% 0 0 8%; border-radius: 40px; background: url(/kilim.svg) 0 0 / 72px auto; opacity: .16; -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); }

.phone { --pw: 280px; position: relative; z-index: 1; font-size: calc(var(--pw) / 1020); width: 1020em; height: 2154em; border-radius: 168em; padding: 20em; flex: 0 0 auto;
  background: linear-gradient(125deg, #E7987A 0%, #B2482D 22%, #D9785A 46%, #8C3320 74%, #C9654A 100%);
  box-shadow: 0 0 0 3em #F0B49C inset, 0 0 0 10em #050505 inset, 0 60em 140em rgba(0, 0, 0, .35); }
.phone .pb { position: absolute; width: 10em; border-radius: 4em; background: linear-gradient(90deg, #8C3320, #E08A6A); }
.pb1 { left: -6em; top: 330em; height: 70em; } .pb2 { left: -6em; top: 450em; height: 130em; }
.pb3 { left: -6em; top: 610em; height: 130em; } .pb4 { right: -6em; top: 500em; height: 200em; }
.phone .screen { position: absolute; inset: 20em; border-radius: 148em; overflow: hidden; background: #121212; border: 7em solid #000; }
.phone .screen img { display: block; width: 100%; height: auto; }
.phone .glare { position: absolute; inset: 20em; border-radius: 148em; background: linear-gradient(118deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.02) 24%, transparent 38%); pointer-events: none; }
.phone-col { display: flex; justify-content: center; }
.phone-col .phone { --pw: 290px; }

.kilim-line { height: 14px; margin-top: 8px; background: url(/kilim-line.svg) 0 50% / 14px 14px repeat-x; opacity: .85; }
.word-card { position: absolute; z-index: 2; left: 0; bottom: 64px; width: 220px; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.wc-level { font-size: 12px; font-weight: 700; color: var(--accent-text); }
.wc-word { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.wc-word svg { width: 20px; height: 20px; color: var(--accent-text); }
.wc-tr { color: var(--fg-muted); }
.wc-bar { margin-top: 8px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.wc-bar i { display: block; width: 20%; height: 100%; background: var(--accent); }
.wc-meta { font-size: 12px; color: var(--fg-muted); }

.section { padding-top: 112px; }

.faq { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--fg-muted); margin: 10px 0 0; font-size: 16px; }

.final { position: relative; text-align: center; background: url(/kilim.svg) 0 0 / 54px auto, #1B1A19; color: #fff; border-radius: 32px; padding: 80px 24px; overflow: hidden; box-shadow: inset 0 0 0 9999px rgba(20,20,20,.86); }
.final::before, .final::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: url(/kilim-line.svg) 0 50% / 14px 14px repeat-x; }
.final::before { top: 22px; } .final::after { bottom: 22px; }
.final .cta-row { justify-content: center; }
.final-web { display: none; }
.is-android .final .cta-row { display: none; }
.is-android .final-web { max-width: 360px; margin: 32px auto 0; }
.bento { display: grid; gap: 12px; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 172px);
  grid-template-areas: "r c c c t t" "n2 c c c t t" "s g n3 m st st" "s g au au st st"; }
.tile { position: relative; overflow: hidden; border-radius: 22px; background: #1C1C1E; color: #fff; padding: 18px; display: flex; flex-direction: column; }
.tile h3 { position: relative; z-index: 2; font-size: 17px; font-weight: 600; text-align: center; letter-spacing: -0.01em; }
.tile-phone { position: absolute; z-index: 1; left: 50%; bottom: 0; transform: translate(-50%, 40%); }
.tile-phone .phone { --pw: 150px; }

.grad { -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-green { background-image: linear-gradient(135deg, #20D466, #3FD6E0); }
.g-peach { background-image: linear-gradient(135deg, #F2C451, #F2A48C 45%, #B8402E); }
.g-violet { background-image: linear-gradient(135deg, #A685FF, #6E8BFF 60%, #3FD6E0); }
.tile-num { align-items: center; justify-content: center; text-align: center; }
.tile-num b { font-size: clamp(44px, 5vw, 68px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.tile-num span { margin-top: 8px; font-size: 16px; font-weight: 600; color: #D1D1D6; }
.n2 { grid-area: n2; }
.n3 { grid-area: n3; } .n3 b { font-size: clamp(32px, 3.2vw, 44px); }

.tile-course { grid-area: c; padding: 28px; background: radial-gradient(70% 90% at 80% 20%, rgba(32,212,102,.28), transparent 65%), radial-gradient(60% 80% at 10% 100%, rgba(184,64,46,.25), transparent 60%), #141414; }
.tile-course h3 { text-align: left; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.03em; max-width: 54%; line-height: 1.08; }
.tile-course .tile-phone { left: auto; right: 36px; transform: translateY(32%) rotate(6deg); }
.tile-course .tile-phone .phone { --pw: 210px; }
.topic-chips { position: relative; z-index: 2; list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: 50%; }
.topic-chips li { padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 12px; font-weight: 600; }

.tile-games { grid-area: g; } .tile-sets { grid-area: s; }
.tile-games { background: radial-gradient(120% 60% at 50% 100%, rgba(38,166,180,.35), transparent 70%), radial-gradient(80% 40% at 50% 0%, rgba(242,164,140,.12), transparent 70%), #16181A; }
.tile-games h3 { background-image: linear-gradient(90deg, #F2C451, #F2A48C); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.game { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.g-top { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.g-top b { font-size: 22px; letter-spacing: -0.02em; }
.g-lives { margin-left: auto; color: #FF6B81; letter-spacing: 1px; }
.g-board { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.g-card { display: grid; place-items: center; height: 40px; border-radius: 10px; background: linear-gradient(#2E8E9A, #24737D); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); font-size: 13px; font-weight: 700; color: #fff; }
.g-card.done { background: rgba(32,212,102,.14); color: #20D466; box-shadow: inset 0 0 0 1.5px rgba(32,212,102,.6); }
.g-card.sel { background: linear-gradient(#3CB4C2, #2E8E9A); box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(63,214,224,.7); transform: translateY(-2px); }
.tile-sets .tile-phone { transform: translate(-50%, 18%); }

.tile-tutor { grid-area: t; justify-content: center; gap: 18px; background: linear-gradient(rgba(20,20,20,.86), rgba(20,20,20,.86)), url(/kilim.svg) 0 0 / 54px auto, #1B1A19; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { padding: 9px 13px; border-radius: 16px; max-width: 92%; font-size: 13px; line-height: 1.4; }
.bubble-me { align-self: flex-end; background: var(--accent); color: #121212; border-bottom-right-radius: 5px; }
.bubble-ai { align-self: flex-start; background: #2C2C2E; color: #fff; border-bottom-left-radius: 5px; }

.tile-min { grid-area: m; align-items: center; justify-content: center; text-align: center; gap: 2px; }
.ring { width: 64px; height: 64px; margin-bottom: 6px; filter: drop-shadow(0 0 10px rgba(32,212,102,.45)); }
.tile-min b { font-size: 22px; font-weight: 800; }
.tile-min span { font-size: 14px; color: #D1D1D6; }

.tile-audio { grid-area: au; flex-direction: row; align-items: center; justify-content: center; gap: 18px; }
.tile-audio span { font-size: 20px; font-weight: 700; background-image: linear-gradient(90deg, #6E8BFF, #3FD6E0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wave { display: flex; align-items: center; gap: 5px; height: 56px; }
.wave i { width: 6px; border-radius: 3px; background: linear-gradient(#3FD6E0, #6E8BFF); box-shadow: 0 0 10px rgba(63,214,224,.5); }
.wave i:nth-child(1), .wave i:nth-child(9) { height: 20%; } .wave i:nth-child(2), .wave i:nth-child(8) { height: 45%; }
.wave i:nth-child(3), .wave i:nth-child(7) { height: 70%; } .wave i:nth-child(4), .wave i:nth-child(6) { height: 95%; } .wave i:nth-child(5) { height: 60%; }

.tile-stats { grid-area: st; }
.tile-stats { background: radial-gradient(70% 80% at 50% 100%, rgba(32,212,102,.18), transparent 70%), #1C1C1E; }
.tile-stats .tile-phone { transform: translate(-50%, 24%); }
.tile-stats .tile-phone .phone { --pw: 180px; }

.tile-srs { grid-area: r; justify-content: space-between; padding: 16px 12px 10px; background: radial-gradient(90% 70% at 50% 100%, rgba(63,214,224,.14), transparent 70%), #1C1C1E; }
.tile-srs h3 { font-size: 16px; font-weight: 700; line-height: 1.15; }
.srs-chart { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 6px rgba(32,212,102,.35)); }
.srs-days { font: 600 10px system-ui, -apple-system, sans-serif; fill: #8E8E93; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; grid-auto-rows: 160px;
    grid-template-areas: "c c c c" "c c c c" "r n2 n3 m" "s g t t" "s g t t" "au au st st" "au au st st"; }
}
@media (max-width: 560px) {
  .lbl-wide { display: none; }
  .lbl-android { display: inline; }
  .hero .store-badge { width: 100%; justify-content: center; }
  .bento { gap: 8px; grid-template-columns: 1fr 1fr; grid-auto-rows: 150px;
    grid-template-areas: "c c" "c c" "c c" "r n2" "s g" "s g" "t t" "t t" "n3 m" "au au" "st st" "st st"; }
  .tile { padding: 14px; border-radius: 18px; }
  .tile h3 { font-size: 15px; }
  .tile-course { padding: 20px; }
  .tile-course h3 { font-size: 26px; max-width: none; }
  .topic-chips { max-width: none; margin-top: 12px; }
  .tile-course .tile-phone { right: 50%; transform: translate(50%, 48%) rotate(0); }
  .tile-course .tile-phone .phone { --pw: 190px; }
  .tile-num b { font-size: 48px; }
  .tile-stats .tile-phone { transform: translate(-50%, 34%); }
  .n3 b { font-size: 34px; }
  .tile-audio { gap: 12px; } .tile-audio span { font-size: 16px; } .wave { height: 44px; }
}

.footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 28px 0; color: var(--fg-muted); font-size: 14px; }

@media (max-width: 1000px) {
  .nav-link { display: none; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 32px; }
  .qr { display: none; }
  .word-card { left: 12px; bottom: 24px; }
  .faq { grid-template-columns: 1fr; }
  .section { padding-top: 88px; }
}
@media (max-width: 560px) {
  .hero .store-badge { width: 100%; justify-content: center; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .final { padding: 64px 16px; }
}

/* Раскрытие плиток */
.tile[data-f] { cursor: pointer; transition: transform .25s ease; -webkit-tap-highlight-color: transparent; }
.tile[data-f]:hover { transform: scale(1.015); }
.tile[data-f]:focus-visible { outline: 2px solid #3FD6E0; outline-offset: 3px; }
.tile.fx-hide { visibility: hidden; }
.fx-src { display: none; }

.fx { position: fixed; inset: 0; z-index: 100; }
.fx-back { position: absolute; inset: 0; background: rgba(0,0,0,.74); opacity: 0; }
.fx-stage { position: absolute; inset: 0; pointer-events: none; }
.fx-card { pointer-events: auto; }
.fx-card { overflow: hidden; position: absolute; transform-origin: 0 0; will-change: transform; box-shadow: 0 40px 100px rgba(0,0,0,.45); }
.fx-bg { position: absolute; }
.fx-in { position: absolute; width: 100vw; height: 100vh; transform-origin: 0 0; }
.fx-skin { background: none !important; position: absolute; margin: 0; transform-origin: 50% 50%; pointer-events: none; will-change: opacity, transform; }
.fx-skin .tv, .fx-skin .tt { visibility: hidden; }
.fx-tv { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; will-change: transform; grid-area: auto !important; padding: 0 !important; margin: 0 !important; background: none !important; display: block !important; }
.fx-tv > .tv { position: static !important; transform: none !important; margin: 0 !important; }
.fx-tt { position: absolute; left: 0; top: 0; margin: 0; transform-origin: 0 0; white-space: nowrap; will-change: transform, opacity; pointer-events: none; }
.fx-text { pointer-events: auto; position: absolute; overflow-y: auto; overscroll-behavior: contain; padding: 56px 48px 48px 8px; }
.fx-text h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 18px; transform-origin: 0 0; }
.fx-text p { font-size: 18px; line-height: 1.55; color: #D1D1D6; margin: 0 0 28px; }
.fx-text ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fx-text li { padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.07); color: #AEAEB2; font-size: 16px; line-height: 1.5; }
.fx-text li b { display: block; color: #fff; font-size: 17px; margin-bottom: 4px; }
.fx-text h2, .fx-text p, .fx-text li { opacity: 0; }
.fx-close { position: absolute; z-index: 2; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; opacity: 0; display: grid; place-items: center; transition: background .2s; }
.fx-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fx-close:hover { background: rgba(255,255,255,.26); }
.fx-close:focus { outline: none; }
.fx-close:focus-visible { box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
@media (max-width: 760px) {
  .fx-text { padding: 4px 20px 40px; }
  .fx-text p { font-size: 16px; }
}
html { scrollbar-gutter: stable; }
html.fx-lock { overflow: hidden; }
