/* LearnEnglish — промо-сайт. Образ: вечерняя школьная доска (тёмная зелено-графитовая база,
   меловой белый) и один солнечный жёлтый акцент — цвет золотой «A» на башне Совы Оливии. */
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('fonts/nunito-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('fonts/nunito-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('fonts/nunito-cyrillic-800-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('fonts/nunito-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url('fonts/nunito-cyrillic-900-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url('fonts/nunito-latin-900-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0f1714;
  --bg-2: #15201c;
  --board: #1b2a24;
  --line: rgba(243, 241, 232, .1);
  --chalk: #f3f1e8;
  --muted: rgba(243, 241, 232, .66);
  --dim: rgba(243, 241, 232, .42);
  --accent: #ffc93c;
  --accent-ink: #2a1f00;
  --r: 22px;
  /* тени согласованы со светом сцены: key сверху-справа, тёплый */
  --shadow: -14px 24px 48px rgba(0, 0, 0, .45), -2px 4px 10px rgba(0, 0, 0, .25);
  --glow: 0 10px 40px rgba(255, 201, 60, .28);
  --font: 'Nunito', 'Arial Rounded MT Bold', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: min(1180px, 100% - 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--chalk);
  font: 400 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -.02em; line-height: 1.02; }
p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- фон и 3D-сцена ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 58%, rgba(255, 201, 60, .16), transparent 70%),
    radial-gradient(90% 70% at 50% 110%, #1f3a2e 0%, transparent 60%),
    linear-gradient(180deg, #0c1311 0%, var(--bg) 40%, #101a16 100%);
}
.backdrop::after { /* меловая пыль */
  content: ''; position: absolute; inset: 0; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent);
}
#stage {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1;
  pointer-events: none; opacity: 0; transition: opacity .9s ease;
}
body.gl-on #stage { opacity: 1; }
body.gl-on.gl-dim #stage { opacity: 0; }
main, .top { position: relative; z-index: 2; }

/* ---------- шапка ---------- */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5; /* выше <main>: иначе hero перекрывает ссылки шапки */
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: var(--wrap); margin-inline: auto; padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; text-decoration: none; letter-spacing: -.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 18px; box-shadow: var(--glow);
}
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a {
  text-decoration: none; font-weight: 800; font-size: 15px; color: var(--muted);
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s;
}
.top nav a:hover { color: var(--chalk); background: rgba(255,255,255,.06); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-left: 6px; }
.lang a, .lang span { padding: 5px 10px !important; font-size: 13px !important; border-radius: 999px; }
.lang span { background: var(--chalk); color: var(--bg); font-weight: 900; }

/* ---------- кнопки ---------- */
.btn {
  --h: 58px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 30px; border-radius: 999px;
  font: 900 19px/1 var(--font); text-decoration: none; letter-spacing: .005em;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s, background .2s;
}
.btn-play { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow), inset 0 -4px 0 rgba(0,0,0,.14); }
.btn-play:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 50px rgba(255, 201, 60, .42), inset 0 -4px 0 rgba(0,0,0,.14); }
.btn-play:active { transform: translateY(1px) scale(.99); }
.btn-play svg { width: 18px; height: 18px; }
.btn-ghost { color: var(--chalk); border: 1.5px solid rgba(243,241,232,.28); background: rgba(15, 23, 20, .4); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--chalk); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  padding: 104px 0 44px; text-align: center; position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 14px;
  font-weight: 800; font-size: 15px; color: var(--accent);
  padding: 6px 14px; border-radius: 999px; background: rgba(255, 201, 60, .1); border: 1px solid rgba(255, 201, 60, .25);
}
.hero h1 { font-size: clamp(40px, 9vw, 140px); line-height: .95; letter-spacing: -.04em; text-wrap: balance; }
.hero h1 .en { color: var(--accent); }
.hook { max-width: 640px; margin: 18px auto 0; font-size: clamp(18px, 2vw, 22px); color: var(--muted); }
.hero-visual { position: relative; min-height: 260px; }
.poster {
  position: absolute; left: 50%; top: 50%; width: min(340px, 62vw, 34vh); height: auto; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 36px; object-fit: cover;
  box-shadow: var(--shadow), 0 0 120px rgba(255, 201, 60, .2);
  transition: opacity .8s ease, transform .8s ease;
}
body.gl-on .poster { opacity: 0; transform: translate(-50%, -46%) scale(.94); }
.hero .cta-row { justify-content: center; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--dim); }
.scroll-cue { position: absolute; left: 50%; bottom: 10px; width: 2px; height: 26px; background: linear-gradient(var(--dim), transparent); transform: translateX(-50%); }

/* ---------- история со сценой ---------- */
.story { padding: 6vh 0 10vh; }
.beat { min-height: 92vh; display: flex; align-items: center; }
.beat .card { max-width: 470px; }
.beat.right { justify-content: flex-end; }
.card {
  background: rgba(21, 32, 28, .74); border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px 34px 32px; box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.kicker { font-weight: 900; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.beat h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 16px; }
.beat p { color: var(--muted); }
.beat p + p { margin-top: 12px; }
.chalk-line {
  margin-top: 20px; padding: 14px 18px; border-radius: 14px; background: var(--board);
  border: 1px dashed rgba(243,241,232,.18); font-weight: 800; font-size: 17px;
}
.chalk-line b { color: var(--accent); }

/* ---------- секции ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(36px, 5vw, 64px); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 20px; }
.solid { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat {
  border-radius: var(--r); padding: 28px 24px 26px; background: rgba(255,255,255,.035);
  border: 1px solid var(--line); transition: transform .3s, border-color .3s, background .3s;
}
.feat:hover { transform: translateY(-4px); border-color: rgba(255, 201, 60, .4); background: rgba(255,255,255,.055); }
.feat .ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 28px;
  background: var(--board); border: 1px solid var(--line); margin-bottom: 20px;
}
.feat h3 { font-size: 22px; line-height: 1.15; margin-bottom: 10px; letter-spacing: -.01em; }
.feat p { color: var(--muted); font-size: 16px; }
.feat .num { color: var(--accent); }

/* учителя */
.teachers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 18px; }
.teacher {
  border-radius: 18px; padding: 18px 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line);
  text-align: center;
}
.teacher .em { font-size: 34px; line-height: 1; }
.teacher b { display: block; margin-top: 10px; font-size: 16px; line-height: 1.2; }
.teacher span { display: block; margin-top: 4px; font-size: 14px; color: var(--dim); line-height: 1.3; }

/* для родителей */
.parents { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
  padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid var(--line);
}
.checks li::before {
  content: '✓'; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 900;
}
.checks b { display: block; font-size: 18px; }
.checks span { color: var(--muted); font-size: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.stat { padding: 18px; border-radius: 18px; background: var(--board); border: 1px solid var(--line); }
.stat b { display: block; font-size: 34px; line-height: 1; color: var(--accent); }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.35; }

/* скриншоты */
.shots { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 18px; align-items: stretch; }
.shot { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--board); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.wide { grid-column: 1 / -1; aspect-ratio: 1400 / 690; }
.shot.land { aspect-ratio: 16 / 9; }
.shot.tall { aspect-ratio: 520 / 1093; }
.shots-2 { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 18px; margin-top: 18px; }
.shots-2 .stack { display: grid; gap: 18px; align-content: start; }
figcaption { padding: 12px 16px 14px; font-size: 14px; color: var(--muted); font-weight: 800; }
.shot.tall, .shot.land { display: flex; flex-direction: column; }
.shot.tall img, .shot.land img { flex: 1; min-height: 0; }

/* живые кадры */
.live[hidden] { display: none; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.live-grid a {
  display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--board);
  border: 1px solid var(--line); position: relative; transition: transform .25s;
}
.live-grid a:hover { transform: translateY(-3px); }
.live-grid img, .live-grid video { width: 100%; height: 100%; object-fit: cover; }
.live-grid .tag {
  position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px;
  background: rgba(0,0,0,.55); font-size: 12px; font-weight: 800;
}

/* финал */
.final { min-height: 100svh; display: grid; align-content: end; text-align: center; padding: 0 0 12vh; }
.final h2 { font-size: clamp(42px, 7vw, 104px); letter-spacing: -.04em; }
.final p { margin: 18px auto 34px; max-width: 560px; color: var(--muted); font-size: 20px; }
.final .cta-row { justify-content: center; }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feat, .live-grid a { transition: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1020px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .teachers { grid-template-columns: repeat(3, 1fr); }
  .parents { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .top nav .page-link { display: none; }
  .hero { padding-top: 92px; }
  .hero-visual { min-height: 46vh; }
  .beat { min-height: 88vh; align-items: flex-end; padding-bottom: 6vh; }
  .beat.right { justify-content: flex-start; }
  .card { padding: 26px 22px; background: rgba(21, 32, 28, .86); }
  .section { padding: 80px 0; }
  .grid4 { grid-template-columns: 1fr; }
  .teachers { grid-template-columns: repeat(2, 1fr); }
  .shots, .shots-2 { grid-template-columns: 1fr 1fr; }
  .shots-2 > .shot.land { grid-column: 1 / -1; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; gap: 14px; }
  .stat span { margin: 0; }
  .btn { --h: 56px; padding: 0 24px; font-size: 18px; }
  .final { padding-bottom: 8vh; }
}
.section-head.flush { margin-bottom: 0; }
.shots { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .shots { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .shot figcaption { font-size: 12px; padding: 8px 10px 10px; }
  .shot.wide figcaption { font-size: 14px; }
}
/* текст поверх 3D: мягкая тёмная подложка, чтобы читался над островом */
.hero h1, .hook, .hero-note, .final h2, .final p { text-shadow: 0 2px 24px rgba(10, 16, 14, .85), 0 1px 3px rgba(10, 16, 14, .6); }
.brand { white-space: nowrap; }
@media (max-width: 380px) { .brand { font-size: 17px; gap: 8px; } }
