/* Royal Academy School — homepage styles (iteration 4: gold wordmark, navy about, skyline art, 3D motion). Mobile-first. Tokens in tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
h1, h2, h3, h4, .level__code, .snake__n { font-variant-numeric: lining-nums; }
body { margin: 0; background: var(--bg); color: var(--blue-700); font: 400 var(--fs-body)/1.6 var(--font-text); overflow-x: clip; }
img, svg, canvas, picture { display: block; max-width: 100%; }
a { color: var(--blue-500); text-underline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }
.site-footer :focus-visible, .cta-band :focus-visible, .fmt__back :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.ic--sm { width: 1em; height: 1em; }
.flag { width: 27px; height: 18px; flex: none; border-radius: 4px; box-shadow: 0 0 0 1.5px #fff, 0 1px 4px rgba(16,32,64,.25); }
.flag--lg { width: 54px; height: 36px; border-radius: 6px; box-shadow: 0 0 0 2.5px #fff, 0 6px 16px rgba(16,32,64,.3); }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue-900); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.center { display: flex; justify-content: center; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 40em; }
.h2 { font: 600 var(--fs-h2)/1.15 var(--font-display); letter-spacing: -.02em; color: var(--blue-900); text-wrap: balance; }

/* section rhythm — compact, consistent (N§6: no big white gaps) */
.sec { padding-block: var(--sec-y); position: relative; }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 3.2vw, 44px); }
.sec-head--center { justify-items: center; text-align: center; }
.sec-head--center .lead { margin-inline: auto; }
.sec--langs, .sec--steps, .sec--results, .sec--platform { background: var(--bg-soft); }
.gold-text { background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* wordmark: owner's name, one line, Montserrat 800 caps, metallic gold (logotype) */
.wordmark { font: 800 1.1875rem/1 var(--font-wordmark); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--gold-deep);
  background: linear-gradient(100deg, #8C6A22 0%, #B8913A 30%, #D9B864 50%, #B8913A 70%, #8C6A22 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: background-position 1.2s var(--ease); }
.logo:hover .wordmark { background-position: 100% 0; }
.wordmark--head { font-size: clamp(1.0625rem, .6rem + 1.5vw, 1.375rem); letter-spacing: .05em; }
.wordmark--sm { font-size: .9375rem; }

/* ---------- buttons ---------- */
.btn { --bh: 48px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--bh); padding: 0 24px; border-radius: var(--r-pill); border: 1.5px solid transparent; font-weight: 700; font-size: .9375rem; line-height: 1.15; text-decoration: none; text-align: center; transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn--sm { --bh: 44px; padding: 0 18px; font-size: .8125rem; }
.btn--lg { --bh: 56px; padding: 0 30px; font-size: .9375rem; }
.btn--caps { text-transform: uppercase; letter-spacing: .08em; }
.btn--block { width: 100%; }
.btn--primary { background: var(--burgundy-700); color: #fff; box-shadow: 0 10px 24px rgba(142,26,40,.26); }
.btn--primary:hover { background: var(--burgundy-600); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(142,26,40,.32); }
.btn--primary:active { background: var(--burgundy-800); transform: none; }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--on-dark { box-shadow: 0 0 0 1.5px rgba(255,255,255,.5), 0 10px 24px rgba(0,0,0,.25); }
.btn--outline { background: #fff; color: var(--blue-700); border-color: var(--blue-700); }
.btn--outline:hover { background: var(--blue-700); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: #fff; color: var(--blue-900); }
.btn--light { background: #fff; color: var(--burgundy-700); }
.btn--white { position: relative; overflow: hidden; gap: 14px; padding: 0 8px 0 28px; background: #fff; color: var(--blue-900); font-weight: 800; letter-spacing: .02em; box-shadow: 0 10px 30px rgba(0,0,0,.28); transition: background-color .3s var(--ease), color .3s, transform .25s var(--ease), box-shadow .25s; }
.btn--white:hover { background: var(--burgundy-700); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(142,26,40,.5); }
.btn__circle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--burgundy-700); color: #fff; transition: transform .35s var(--ease), background-color .3s, color .3s; }
.btn--white:hover .btn__circle { transform: rotate(-45deg); background: #fff; color: var(--burgundy-700); }
.btn--white:hover .ic { transform: none; }
.btn--shine { position: relative; overflow: hidden; isolation: isolate; }
.btn--shine::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none; }
.btn--shine:hover::after { left: 120%; }
.btn--white.btn--shine::after { z-index: 0; }
.btn--light:hover { background: var(--sky-50); }
.btn--ghost { background: transparent; color: var(--blue-700); }
.btn--ghost:hover { background: var(--sky-50); }
.btn--icon { --bh: 44px; width: 44px; padding: 0; }
.header-call { --bh: 50px; width: 50px; background: transparent; color: var(--burgundy-700); border: 2px solid var(--burgundy-700); box-shadow: none; }
.header-call:hover { background: var(--burgundy-700); color: #fff; transform: translateY(-2px); }
.header-call .ic { width: 22px; height: 22px; }
.btn--icon:hover .ic { transform: none; }
.link-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; font-weight: 700; font-size: .9375rem; color: var(--burgundy-700); text-decoration: none; }
.link-more .ic { transition: transform .25s var(--ease); }
.link-more:hover .ic { transform: translateX(4px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 10px; border-radius: var(--r-pill); background: var(--sky-50); color: var(--blue-700); font-size: .75rem; font-weight: 600; }
.badge-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(145deg, var(--burgundy-600), var(--burgundy-800)); color: #fff; box-shadow: 0 8px 18px rgba(142,26,40,.22); }
.badge-ic .ic { width: 24px; height: 24px; }

/* ---------- header ---------- */
/* no backdrop-filter: re-blurring over the live globe cost ~20% of frames (perf, iteration 4) */
.site-header { position: sticky; top: 0; z-index: 40; padding: 10px max(10px, var(--gutter)) 0; pointer-events: none; }
.site-header__inner { position: relative; pointer-events: auto; display: flex; align-items: center; gap: 20px; height: 68px; max-width: 1400px; margin-inline: auto; padding: 0 12px 0 18px; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 34px; box-shadow: 0 10px 30px rgba(16,32,64,.10); transition: box-shadow .25s, transform .25s var(--ease); }
.site-header.is-scrolled .site-header__inner { box-shadow: 0 16px 40px rgba(16,32,64,.18); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; min-width: 0; }
.logo__seal { width: 48px; height: 48px; flex: none; }
@media (max-width: 379px) { .wordmark--head { font-size: .9375rem; letter-spacing: .02em; } .logo__seal { width: 38px; height: 38px; } }
.main-nav, .header-actions { display: none; }
@media (min-width: 1360px) {
  .site-header__inner { height: var(--header-h); padding: 0 12px 0 22px; max-width: min(1560px, 100%); }
  .wordmark--head { font-size: clamp(1.55rem, 1.9vw, 2.3rem); letter-spacing: .045em; }
  .logo__seal { width: 60px; height: 62px; }
  .main-nav { display: block; flex: 1; }
  .main-nav__list { display: flex; justify-content: center; gap: 2px; }
  .main-nav__link { white-space: nowrap; min-width: 44px; justify-content: center; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 11px; border-radius: 10px; border: 0; background: none; color: var(--blue-700); font-weight: 600; font-size: .9375rem; text-decoration: none; position: relative; }
  .main-nav__link::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 6px; height: 2px; background: var(--burgundy-700); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .main-nav__link:hover { color: var(--burgundy-700); }
  .main-nav__link:hover::after { transform: scaleX(1); }
  .main-nav__btn[aria-expanded="true"] { color: var(--burgundy-700); }
  .main-nav__btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .has-sub { position: relative; }
  .sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; }
  .sub.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s, visibility 0s; }
  .sub a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--blue-700); font-weight: 600; text-decoration: none; }
  .sub a:hover { background: var(--sky-50); color: var(--burgundy-700); }
  .header-actions { display: flex; align-items: center; gap: 8px; }
}
@media (min-width: 1360px) and (max-width: 1559px) { .logo__seal { width: 50px; height: 50px; } .main-nav__link { padding: 0 7px; font-size: .875rem; } .main-nav__link::after { left: 7px; right: 7px; } .site-header__inner { gap: 12px; } }

/* ---------- bottom bar (mobile & tablet) ---------- */
.bottom-bar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1fr 1.6fr; gap: 6px; padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + var(--safe-b)) max(10px, env(safe-area-inset-right)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16,32,64,.08); transition: transform .25s var(--ease), visibility .25s; }
.bottom-bar.is-hidden { transform: translateY(110%); visibility: hidden; }
.bottom-bar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border: 0; border-radius: 14px; background: transparent; color: var(--blue-700); font-size: .75rem; font-weight: 700; text-decoration: none; }
.bottom-bar__item:active { background: var(--sky-50); }
.bottom-bar__item--primary { flex-direction: row; gap: 6px; background: var(--burgundy-700); color: #fff; font-size: .875rem; }
@media (max-width: 359px) { .bottom-bar { gap: 2px; } .bottom-bar__item { font-size: .6875rem; } }
@media (min-width: 1360px) { .bottom-bar { display: none; } }

/* ---------- drawer & modal ---------- */
.drawer, .modal { position: fixed; inset: 0; z-index: 60; }
.drawer__scrim, .modal__scrim { position: absolute; inset: 0; background: rgba(16,32,64,.55); opacity: 0; transition: opacity .2s; }
.is-open .drawer__scrim, .is-open .modal__scrim { opacity: 1; }
.drawer__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow: auto; overscroll-behavior: contain; background: #fff; border-radius: var(--r-dir) var(--r-dir) 0 0; padding: 14px 20px calc(16px + var(--safe-b)); transform: translateY(100%); transition: transform .25s var(--ease); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.drawer__head .logo__seal { width: 36px; height: 36px; }
.drawer__head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--sky-200); }
.drawer__list > li { border-bottom: 1px solid var(--line); }
.drawer__link { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 4px; border: 0; background: none; color: var(--blue-900); font-size: 1.0625rem; font-weight: 700; text-decoration: none; text-align: left; }
.drawer__link[aria-expanded="true"] .ic { transform: rotate(180deg); }
.drawer__sub { padding: 0 0 10px 12px; }
.drawer__sub a { display: flex; align-items: center; min-height: 48px; color: var(--blue-700); font-weight: 600; text-decoration: none; }
.drawer__actions { display: grid; gap: 10px; padding-top: 16px; }
@media (min-width: 760px) { .drawer__panel { left: auto; top: 0; width: 420px; max-height: none; border-radius: 0; transform: translateX(100%); } }
.modal { display: grid; place-items: end center; padding: 12px; padding-bottom: calc(12px + var(--safe-b)); }
@media (min-width: 760px) { .modal { place-items: center; padding: 24px; } }
.modal__panel { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 24px); overflow: auto; background: #fff; border-radius: 24px; padding: 28px; display: grid; gap: 14px; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .25s var(--ease), opacity .2s; }
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__title { font: 600 1.375rem/1.2 var(--font-display); color: var(--blue-900); }
.modal__x { position: absolute; top: 10px; right: 10px; }
.modal__panel--video { width: min(440px, 100%); }
.has-dialog body { overflow: hidden; }

/* ---------- form (in dialog) ---------- */
.lead-form { display: grid; gap: 14px; }
.lead-form__title { font: 600 1.5rem/1.2 var(--font-display); color: var(--blue-900); padding-right: 40px; }
.lead-form__lead { color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .9375rem; color: var(--blue-900); }
.field input, .field select { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: var(--r-input); border: 1.5px solid var(--sky-200); background: #fff; color: var(--blue-900); font-size: 1rem; transition: border-color .2s; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid rgba(44,90,160,.3); outline-offset: 0; border-color: var(--blue-500); }
.field__err { font-size: .875rem; font-weight: 700; color: var(--burgundy-700); }
.field.is-invalid input { border-color: var(--burgundy-600); }
.field--check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 22px; min-height: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--burgundy-700); }
.field--check label { font-weight: 500; font-size: .875rem; color: var(--muted); }
.field--check .field__err { grid-column: 1 / -1; }
.lead-form__errors { padding: 12px 14px; border-radius: 12px; background: var(--burgundy-50); color: var(--burgundy-800); border-left: 4px solid var(--burgundy-700); }
.lead-form__errors ul { list-style: disc; padding-left: 20px; margin-top: 6px; }
.lead-form__errors a { color: var(--burgundy-700); font-weight: 700; }
.lead-form__done, .lead-form__fail { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--sky-50); color: var(--blue-900); }
.lead-form__done .ic { color: var(--blue-500); width: 28px; height: 28px; }
.lead-form__fail { color: var(--burgundy-800); border-left: 4px solid var(--burgundy-700); display: block; }

/* ---------- reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- 1. hero ---------- */
.hero { --hb: 78px; --gh: min(104vw, 470px, 38svh); margin-top: calc(-1 * var(--hb)); padding-top: var(--hb); --p: 0; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; background: radial-gradient(70% 60% at 76% 38%, var(--sky-50) 0%, rgba(234,243,251,0) 70%), #fff; }
.hero__inner { position: relative; z-index: 2; display: grid; padding-block: calc(var(--gh) + 8px) 12px; pointer-events: none; }
.hero__inner > * { pointer-events: auto; }
.hero.is-zoomed .hero__copy { opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.hero__copy { transition: opacity .6s var(--ease) .2s, transform .6s var(--ease) .2s, visibility 0s; }
.hero__copy { position: relative; z-index: 3; display: grid; justify-items: start; gap: 24px; }
.hero__title { font: 700 var(--fs-h1)/1.08 var(--font-display); letter-spacing: -.03em; color: var(--blue-900); text-wrap: balance; }
.hero__title span { display: block; }
.hero__title em { color: var(--burgundy-700); font-style: normal; }
.globe { position: relative; }
.globe__poster, .globe__poster img, .globe__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe__poster img { object-fit: cover; object-position: 70% 50%; }
.globe__canvas { opacity: 0; transition: opacity .8s var(--ease); }
.globe.is-live .globe__canvas { opacity: 1; }
.globe.is-live .globe__poster { opacity: 0; transition: opacity .8s .2s; }
.globe--hero { position: absolute; z-index: 1; inset: 0; touch-action: pan-y; cursor: grab; }
.globe--hero.is-dragging { cursor: grabbing; }
/* skyline: one continuous, static city line under the globe (no names — the landmarks speak for themselves) */
.hero__sky { position: relative; z-index: 4; margin-top: auto; height: clamp(96px, 16vw, 210px); overflow: hidden; color: color-mix(in srgb, var(--blue-700) calc(100% - var(--p) * 100%), var(--gold-soft)); pointer-events: none; }
.hero__sky svg.sky { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); }
.hero__sky .sky__back { opacity: .4; } .hero__sky .sky__mid { opacity: .75; }
@media (max-width: 699px) { .hero__sky { height: 120px; } }
/* scroll: the hero melts into the navy "about" section (smooth colour change, no hard cut) */
.hero__veil { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(0deg, var(--blue-900) calc(var(--p) * 140% - 40%), rgba(16,32,64,0) calc(var(--p) * 140% + 6%)); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 90px; pointer-events: none; background: linear-gradient(180deg, rgba(16,32,64,0), rgba(16,32,64,.05)); }
@media (min-width: 1000px) {
  .hero { --hb: calc(var(--header-h) + 10px); --gh: 0px; min-height: clamp(760px, 64vw, 1040px); }
  .hero__title { font-size: clamp(2.1rem, .4rem + 2.3vw, 3rem); }
  .hero__inner { flex: 1; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; padding-block: 8px 0; gap: 0; }
}
/* globe labels: same flag style as the rest of the site; expand on hover / tap */
.globe__labels { position: absolute; inset: 0; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .6s var(--ease); }
.globe.is-live .globe__labels { opacity: 1; }
.globe__leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.globe__leaders line { stroke: rgba(16,32,64,.35); stroke-width: 1; }
.globe__label { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border: 0; border-radius: 999px; background: #fff; color: var(--blue-900); font: 600 .8125rem/1.1 var(--font-text); white-space: nowrap; box-shadow: 0 6px 18px rgba(16,32,64,.18); pointer-events: auto; cursor: pointer; transition: box-shadow .2s, background .2s, color .2s; will-change: transform; }
.globe__label .flag { width: 24px; height: 16px; border-radius: 3px; }
.globe__label--home { background: var(--burgundy-700); color: #fff; }
.globe__label.is-active { box-shadow: 0 10px 26px rgba(16,32,64,.28), 0 0 0 2px var(--burgundy-700); }
.globe__label:hover { background: var(--sky-50); }
.globe__label--home:hover { background: var(--burgundy-600); }
.globe__card { position: absolute; z-index: 6; left: 2%; bottom: 200px; display: flex; align-items: stretch; gap: 20px; width: min(560px, 94%); padding: 16px 48px 18px 16px; border-radius: 26px; background: #fff; border-left: 6px solid var(--burgundy-700); box-shadow: 0 28px 64px rgba(16,32,64,.34); pointer-events: auto; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
.globe__card.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.globe__card img { width: 148px; height: auto; min-height: 116px; flex: none; border-radius: 16px; object-fit: cover; }
.globe__card > div { display: grid; gap: 8px; min-width: 0; justify-items: start; align-content: center; }
.globe__card b { display: flex; align-items: center; gap: 10px; font: 700 1.625rem/1.15 var(--font-display); letter-spacing: -.015em; color: var(--blue-900); }
.globe__card b .flag { width: 42px; height: 28px; }
.globe__card > div > span { font-size: 1rem; line-height: 1.45; color: var(--muted); }
.globe__more { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin-top: 4px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--burgundy-700); color: #fff; font: 700 .9375rem/1 var(--font-text); cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.globe__more:hover { background: var(--burgundy-600); transform: translateX(2px); }
.globe__x { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--blue-700); cursor: pointer; }
.globe__x:hover { background: var(--sky-50); }
.globe__x .ic { width: 16px; height: 16px; }
@media (min-width: 1000px) { .globe__card { left: 4%; bottom: 220px; } }
@media (max-width: 999px) { .globe__card { left: 50%; bottom: auto; top: calc(var(--hb) + var(--gh) - 150px); width: min(480px, 94%); gap: 14px; padding: 12px 44px 14px 12px; transform: translate(-50%, 10px); } .globe__card img { width: 104px; min-height: 88px; } .globe__card b { font-size: 1.25rem; } .globe__card b .flag { width: 34px; height: 23px; } .globe__card > div > span { font-size: .875rem; } .globe__card.is-open { transform: translate(-50%, 0); } .globe--hero .globe__hint { bottom: auto; top: calc(var(--hb) + var(--gh) - 34px); } }
.globe__hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--blue-700); font-size: .75rem; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px rgba(16,32,64,.12); pointer-events: none; transition: opacity .4s; }
.globe__hint.is-gone { opacity: 0; }
@media (min-width: 1000px) { .globe__hint { display: none; } }

/* ---------- 2. about (navy, owner's layout) ---------- */
.sec--about { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--blue-900) 0%, #13284c 100%); color: #fff; padding-bottom: calc(var(--sec-y) + clamp(190px, 27vw, 380px)); }
.about__city { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: clamp(150px, 26vw, 380px); color: var(--sky-200); opacity: .34; pointer-events: none; }
.about__city svg { width: 100%; height: 100%; }
.about__3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s var(--ease); }
.about__city.is-3d { opacity: 1; height: clamp(300px, 38vw, 580px); }
.about__city.is-3d .about__3d { opacity: 1; }
.about__city.is-3d svg { opacity: 0; }
.about__city.is-3d::after { display: none; }
.about__city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #13284c 0%, rgba(19,40,76,0) 45%); }
.about__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(34px, 4.5vw, 64px); }
.about__head .h2 { font-size: clamp(1.875rem, .9rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -.02em; text-align: left; }
.about__head .h2 > span { display: block; }
/* «Більше про нас»: a round badge hanging off the heading's lower right, with a slowly turning dashed ring */
.about__more { --mx: 50%; --my: 50%; position: relative; isolation: isolate; flex: none; display: grid; place-content: center; justify-items: center; gap: 8px; width: clamp(112px, 11vw, 160px); aspect-ratio: 1; margin-bottom: -10px; border-radius: 50%; background: #fff; color: var(--blue-900); font: 800 clamp(.75rem, .6rem + .35vw, .9375rem)/1.2 var(--font-text); text-align: center; text-decoration: none; box-shadow: 0 16px 40px rgba(0,0,0,.3); transition: transform .6s var(--ease), color .5s; overflow: visible; }
.about__more::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: 50%; background: linear-gradient(160deg, var(--burgundy-600), var(--burgundy-700)); clip-path: circle(0px at var(--mx) var(--my)); transition: clip-path .8s cubic-bezier(.45,.05,.25,1); }
.about__more::after { content: ""; position: absolute; z-index: -2; inset: -12px; border-radius: 50%; border: 1.5px dashed rgba(232,212,168,.7); animation: spin-slow 28s linear infinite; }
.about__more:hover { color: #fff; transform: scale(1.05); }
.about__more:hover::before { clip-path: circle(150% at var(--mx) var(--my)); }
.about__more .ic { width: 28px; height: 28px; transition: transform .35s var(--ease); }
.about__more:hover .ic { transform: translate(3px, -3px); }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .about__more::after { animation: none; } }
.about__head .h2 { color: #fff; }
.about__grid { display: grid; gap: 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 20px; } .tiles--side { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 20px; } .tiles--main { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 20px; } }
.tile { --mx: 50%; --my: 50%; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 132px; padding: clamp(16px, 2vw, 26px); border-radius: 24px; background: rgba(255,255,255,.05); border: 1px solid rgba(232,212,168,.2); transition: transform .6s var(--ease), border-color .5s, box-shadow .6s; cursor: default; }
/* hover: the tile fills with colour from the bottom (burgundy) */
.tile::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(160deg, var(--burgundy-600), var(--burgundy-700)); clip-path: circle(0px at var(--mx, 50%) var(--my, 50%)); transition: clip-path .87s cubic-bezier(.45,.05,.25,1); }
.tile:hover::before, .tile:focus-within::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.tile:hover { transform: translateY(-6px); border-color: var(--burgundy-600); box-shadow: 0 18px 40px rgba(142,26,40,.38); }
.tile__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(232,212,168,.5); color: var(--gold-soft); transition: background .6s, color .6s, border-color .6s; }
.tile__ic .ic { width: 22px; height: 22px; }
.tile:hover .tile__ic { background: #fff; color: var(--burgundy-700); border-color: #fff; }
.tile h3 { transition: color .6s; font: 600 clamp(1rem, .85rem + .45vw, 1.25rem)/1.25 var(--font-display); color: #fff; letter-spacing: -.01em; text-wrap: balance; }
.tile__num { display: block; font: 700 clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem)/1.05 var(--font-display); letter-spacing: -.02em; color: var(--gold-soft); margin-bottom: 4px; transition: color .6s; }
.tile:hover .tile__num { color: #fff; }
.tiles--side .tile { min-height: 168px; } .tiles--side .tile h3 { font-size: clamp(1.125rem, .9rem + .7vw, 1.5rem); }
@media (min-width: 900px) { .tile { min-height: 168px; } .tiles--side .tile { min-height: 0; } }
@media (max-width: 459px) { .tile { padding: 14px; border-radius: 18px; min-height: 120px; } .tile h3 { font-size: .9375rem; } }

/* ---------- 3. formats (flip cards) ---------- */
.fmt-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .fmt-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.fmt { position: relative; aspect-ratio: 3 / 4; perspective: 1400px; }
@media (max-width: 699px) { .fmt { aspect-ratio: 4 / 3.6; } }
.fmt__title { min-width: 0; overflow-wrap: anywhere; }
.fmt { --stripe: var(--blue-500); transform-style: preserve-3d; transition: transform .5s var(--ease); transform: perspective(1200px) rotateX(calc(var(--ty, 0) * -6deg)) rotateY(calc(var(--tx, 0) * 8deg)); }
.fmt--kids { --stripe: var(--kids); --stripe-2: #C8961E; --on-stripe: var(--blue-900); } .fmt--adults { --stripe: var(--blue-500); --stripe-2: var(--blue-900); --on-stripe: #fff; } .fmt--corporate { --stripe: var(--burgundy-600); --stripe-2: var(--burgundy-800); --on-stripe: #fff; }
.fmt__face::after { content: ""; position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 8px; background: var(--stripe); }
.fmt__stripe-label { display: none; }
.fmt__face { position: absolute; inset: 0; border-radius: var(--r-dir); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .7s var(--ease), visibility 0s .35s; box-shadow: var(--shadow); }
.fmt__front picture, .fmt__img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.fmt__front picture { position: relative; display: block; }
.fmt__front picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,32,64,0) 50%, rgba(16,32,64,.78) 100%); pointer-events: none; }
.fmt__front::before { content: ""; position: absolute; inset: 10px; z-index: 2; border: 1px solid rgba(255,255,255,.45); border-radius: calc(var(--r-dir) - 8px); pointer-events: none; }
.fmt__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; }
.fmt__title { font: 600 clamp(1.25rem, 1rem + .9vw, 1.75rem)/1.15 var(--font-display); color: #fff; }
.fmt__open { position: absolute; z-index: 5; top: 22px; right: 22px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--blue-900); overflow: hidden; isolation: isolate; box-shadow: 0 8px 20px rgba(16,32,64,.18); transition: color .35s var(--ease), transform .35s var(--ease); }
.fmt__open::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--stripe); transform: scale(0); transition: transform .45s var(--ease); }

.fmt__open .ic { width: 24px; height: 24px; }
.fmt__front { cursor: pointer; }
.fmt:hover .fmt__open, .fmt__open:focus-visible { color: var(--on-stripe, #fff); transform: scale(1.06); }
.fmt:hover .fmt__open::before, .fmt__open:focus-visible::before { transform: scale(1); }
.fmt__img { transition: transform .8s var(--ease); }
.fmt:hover .fmt__img { transform: scale(1.04); }
.fmt__back { transform: rotateY(180deg); visibility: hidden; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px; color: var(--on-stripe); background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 55%), linear-gradient(160deg, var(--stripe), var(--stripe-2)); }
.fmt__back .fmt__title { color: var(--on-stripe); }
.fmt__go { background: var(--on-stripe); color: var(--stripe-2); }
.fmt--kids .fmt__go { color: #fff; }
.fmt__go:hover { transform: translateY(-2px); }
.fmt__back::before { content: ""; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--on-stripe) 22%, transparent); border-radius: calc(var(--r-dir) - 8px); pointer-events: none; }
.fmt.is-flipped .fmt__front { transform: rotateY(-180deg); visibility: hidden; }
.fmt.is-flipped .fmt__back { transform: rotateY(0); visibility: visible; transition: transform .7s var(--ease), visibility 0s; }
.fmt__back-btn { position: relative; align-self: flex-start; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: var(--on-stripe); font-weight: 600; font-size: .875rem; }
.fmt__back-btn:hover { background: rgba(255,255,255,.12); }
.fmt__subs { position: relative; display: grid; gap: 2px; flex: 1; align-content: start; }
.fmt__subs button { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 4px; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--on-stripe) 25%, transparent); background: none; color: var(--on-stripe); font-weight: 600; font-size: 1.0625rem; text-align: left; }
.fmt__subs button:hover { opacity: .8; }
.fmt__subs .ic { transition: transform .25s var(--ease); }
.fmt__subs button:hover .ic { transform: translate(2px, -2px); }
.fmt__back .btn { position: relative; }
@media (prefers-reduced-motion: reduce) { .fmt__face { transition: none; } }

/* ---------- 4. languages: 5 in one row, bright rounded portraits, popup ---------- */
/* language cards: square city photographs, all visible (no carousel); static flag; the card fills with colour on hover */
.lang-row { --g: clamp(10px, 1.4vw, 20px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g); }
.lang { position: relative; isolation: isolate; overflow: hidden; flex: 0 0 calc((100% - var(--g)) / 2); aspect-ratio: 3 / 4.1; border-radius: 22px; cursor: pointer; background: var(--blue-900); box-shadow: 0 14px 34px rgba(16,32,64,.16); transition: transform .4s var(--ease), box-shadow .4s; }
@media (min-width: 600px) { .lang { flex-basis: calc((100% - 2 * var(--g)) / 3); } }
@media (min-width: 1000px) { .lang { flex-basis: calc((100% - 4 * var(--g)) / 5); } }
.lang:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(16,32,64,.26); }
.lang__img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.lang:hover .lang__img { transform: scale(1.08); }
.lang::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(16,32,64,0) 38%, rgba(16,32,64,.82) 100%); transition: opacity .3s; }
.lang::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(168,36,52,.30), rgba(142,26,40,.62)); clip-path: circle(0px at var(--mx, 50%) var(--my, 50%)); transition: clip-path .6s cubic-bezier(.45,.05,.25,1); }
.lang:hover::after, .lang:focus-within::after { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.lang > .flag { position: absolute; left: 12px; top: 12px; width: 48px; height: 32px; border-radius: 6px; }
.lang__body { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; justify-items: start; padding: clamp(12px, 1.4vw, 18px); }
.lang__title { font: 600 clamp(1rem, .85rem + .45vw, 1.375rem)/1.15 var(--font-display); color: #fff; letter-spacing: -.01em; }
.lang__more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: #fff; color: var(--blue-900); font-weight: 700; font-size: .8125rem; cursor: pointer; transition: background .25s, color .25s; }
.lang__more .ic { transition: transform .35s var(--ease); }
.lang:hover .lang__more, .lang__more:focus-visible { background: var(--blue-900); color: #fff; } .lang:hover .lang__more .ic, .lang__more:focus-visible .ic { transform: translateY(-3px) rotate(-90deg); }
@media (max-width: 459px) { .lang { border-radius: 18px; } .lang__more { padding: 0 11px; font-size: .75rem; } .lang > .flag { width: 40px; height: 27px; left: 9px; top: 9px; } }
/* language popup */
.modal__panel--lang { width: min(560px, 100%); padding: 0 0 24px; gap: 0; }
.linfo { display: grid; gap: 14px; padding: 0 26px; }
.linfo__hero { position: relative; height: 170px; margin: 0 -26px 6px; overflow: hidden; }
.linfo__hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.linfo__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 50%, #fff); }
.linfo__hero .flag { position: absolute; z-index: 1; left: 24px; bottom: 8px; }
.linfo__hook { font: 600 1.0625rem/1.4 var(--font-text); color: var(--burgundy-700); }
.linfo__pts { display: grid; gap: 10px; }
.linfo__pts li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; background: var(--bg-soft); font-size: .9375rem; line-height: 1.45; color: var(--blue-700); }
.linfo__pts li > span { font-size: 1.375rem; line-height: 1.1; }
.linfo__pts b { color: var(--blue-900); }
.linfo__exams { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--blue-900); }
.chip { padding: 5px 12px; border-radius: 999px; background: linear-gradient(135deg, #FBF3DF, #F1E1B5); color: #6B4E12; font-weight: 700; font-size: .8125rem; }
.linfo__for { color: var(--muted); font-weight: 600; }
.modal__panel--lang .modal__x { z-index: 2; background: rgba(255,255,255,.9); }
@media (prefers-reduced-motion: no-preference) { .linfo:not([hidden]) .linfo__pts li { animation: card-in .5s var(--ease) both; } .linfo__pts li:nth-child(2) { animation-delay: .06s !important; } .linfo__pts li:nth-child(3) { animation-delay: .12s !important; } .linfo__pts li:nth-child(4) { animation-delay: .18s !important; } }

/* ---------- 5. levels: mini-test ad (left) + staircase chart drawn by scroll (right) ---------- */
/* pinned scene: the block stays on screen while the scroll raises the steps one by one */
.sec--levels { padding-block: 0; }
.levels-stick { padding-block: clamp(28px, 4vw, 56px); }
.js .levels-scene { height: calc(100svh + 260vh); }
.levels-scene { --lt: 84px; --bb: 78px; }
@media (min-width: 1000px) { .levels-scene { --bb: 0px; } }
@media (min-width: 1360px) { .levels-scene { --lt: 106px; } }
.js .levels-stick { position: sticky; top: var(--lt); height: calc(100svh - var(--lt) - var(--bb)); min-height: 480px; display: grid; align-content: center; box-sizing: border-box; }
.levels2 { display: grid; gap: 22px; align-items: stretch; }
@media (min-width: 1000px) { .levels2 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 36px; } }
.promo { align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: clamp(20px, 3vw, 36px); border-radius: 28px; background: linear-gradient(160deg, #fff 0%, var(--sky-100) 100%); border: 1.5px solid var(--sky-200); color: var(--blue-900); box-shadow: 0 18px 44px rgba(26,48,88,.12); }
.promo__chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--sky-200); color: var(--blue-700); font-weight: 700; font-size: .9375rem; }
.promo h3 { font: 600 clamp(1.375rem, 1.1rem + 1vw, 2rem)/1.15 var(--font-display); letter-spacing: -.01em; }
.stairs { --draw: 0; position: relative; display: grid; grid-template-columns: 1fr; gap: 0; list-style: none; padding: 0; margin: 0; min-height: 300px; }
.stairs__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.stairs__line { stroke: var(--burgundy-700); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw)); }
.stair { --k: 1; --mx: 50%; --my: 50%; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; padding: 14px 18px; background: #fff; border-radius: 6px 6px 0 0; opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 46px)); transition: opacity .15s linear; box-shadow: 0 10px 24px rgba(16,32,64,.07); }
.js .stair { --k: 0; }
.stair::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(160deg, var(--burgundy-600), var(--burgundy-700)); clip-path: circle(0px at var(--mx) var(--my)); transition: clip-path .53s cubic-bezier(.45,.05,.25,1); }
.stair:hover::before { clip-path: circle(150% at var(--mx) var(--my)); }
.stair__n { grid-column: 1 / -1; font-size: .75rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); transition: color .4s; }
.stair__code { font: 800 clamp(1.75rem, 1.2rem + 2vw, 2.75rem)/1 var(--font-text); color: var(--blue-900); transition: color .4s; }
.stair__t { font-weight: 700; color: var(--blue-700); line-height: 1.3; font-size: .9375rem; transition: color .4s; }
.stair:hover .stair__code, .stair:hover .stair__t, .stair:hover .stair__n { color: #fff; }
/* phones: bars that grow downward (a staircase seen from the side) */
@media (max-width: 759px) {
  .sec--levels .sec-head .lead { display: none; }
  .sec--levels .sec-head { margin-bottom: 14px; }
  .levels2 { gap: 14px; } .stairs { order: -1; min-height: 0; }
  .stair:nth-of-type(1) { width: 52%; } .stair:nth-of-type(2) { width: 63%; } .stair:nth-of-type(3) { width: 74%; } .stair:nth-of-type(4) { width: 86%; } .stair:nth-of-type(5) { width: 100%; }
  .stair { min-height: 54px; padding: 8px 14px; } .stair__n { display: none; } .stair__code { font-size: 1.5rem; } .stair__t { font-size: .8125rem; }
  .promo { padding: 16px 18px; gap: 12px; border-radius: 22px; } .promo h3 { font-size: 1.1875rem; } .promo .btn { min-height: 48px; }
}
@media (min-width: 760px) {
  .stairs { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; }
  .stair { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; padding: 16px 14px; }
  .stair:nth-of-type(1) { min-height: 110px; } .stair:nth-of-type(2) { min-height: 164px; } .stair:nth-of-type(3) { min-height: 218px; } .stair:nth-of-type(4) { min-height: 272px; } .stair:nth-of-type(5) { min-height: 326px; }
  .stair__n { margin-bottom: auto; }
}
@media (prefers-reduced-motion: reduce) { .levels-scene { height: auto !important; } .levels-stick { position: static !important; height: auto !important; } .stairs { --draw: 1; } .stair { --k: 1 !important; } }

/* ---------- 6. steps: six rectangles in a snake, a dashed path draws itself; the last one is the goal and bursts ---------- */
.snake { --draw: 0; position: relative; display: grid; gap: 26px; list-style: none; padding: 0; margin: 0; }
.snake__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.snake__base, .snake__fill { stroke-linecap: round; stroke-dasharray: 10 14; }
.snake__base { stroke: var(--sky-200); stroke-width: 3; }
.snake__fill { stroke: var(--burgundy-700); stroke-width: 3.5; }
.snake__mask { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw)); }
.snake__card { --mx: 50%; --my: 50%; position: relative; z-index: 1; isolation: isolate; display: grid; gap: 8px; align-content: start; min-height: 160px; padding: clamp(18px, 2vw, 26px); border-radius: 22px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 10px 28px rgba(16,32,64,.07); transition: transform .5s var(--ease), border-color .4s, box-shadow .4s; }
.snake__card::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: linear-gradient(160deg, var(--burgundy-600), var(--burgundy-700)); clip-path: circle(0px at var(--mx) var(--my)); transition: clip-path .6s cubic-bezier(.45,.05,.25,1); }
.snake__card:hover::before { clip-path: circle(150% at var(--mx) var(--my)); }
.snake__card:hover { transform: translateY(-5px); border-color: var(--burgundy-700); box-shadow: 0 20px 44px rgba(142,26,40,.28); }
/* the number is a coin that fills in (Duolingo-style) once the path has reached the card */
.snake__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid var(--sky-200); background: #fff; font: 800 1.125rem/1 var(--font-text); color: var(--muted); letter-spacing: 0; transition: background .5s, color .5s, border-color .5s, transform .5s var(--ease); }
.snake__n .ic { width: 26px; height: 26px; }
.snake__card.is-reached .snake__n { background: var(--burgundy-700); border-color: var(--burgundy-700); color: #fff; animation: coin-pop .6s var(--ease); }
.snake__card.is-reached { border-color: rgba(168,36,52,.5); }
@keyframes coin-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.snake__card h3 { font: 600 clamp(1.125rem, 1rem + .5vw, 1.4rem)/1.2 var(--font-display); color: var(--blue-900); transition: color .4s; }
.snake__card p { color: var(--muted); font-size: 1rem; line-height: 1.4; transition: color .4s; }
.snake__card:hover h3 { color: #fff; } .snake__card:hover p { color: #fbe9ec; } .snake__card:hover .snake__n { border-color: #fff; }
/* goal card */
.snake__card--goal { background: linear-gradient(160deg, var(--blue-900), #1b3a6e); border-color: var(--blue-900); }
.snake__card--goal h3 { color: #fff; } .snake__card--goal p { color: var(--gold-soft); }
.snake__card--goal .snake__n { border-color: var(--gold); color: var(--gold); background: transparent; }
.snake__card--goal.is-reached .snake__n { background: var(--gold); border-color: var(--gold); color: var(--blue-900); }
.snake__card--goal.is-reached { border-color: var(--gold); box-shadow: 0 18px 50px rgba(201,162,77,.4); }
.burst { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: visible; }
.burst i { position: absolute; left: 26px; top: 26px; width: 8px; height: 8px; margin: -4px; border-radius: 2px; background: hsl(var(--h) 85% 62%); opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.4); }
.snake__card--goal.is-burst .burst i { animation: burst-out 1.15s cubic-bezier(.15,.7,.2,1) both; animation-delay: calc(var(--d) / 800); }
.burst i:nth-child(3n) { background: var(--gold); border-radius: 50%; } .burst i:nth-child(3n+1) { background: var(--burgundy-600); } .burst i:nth-child(4n+2) { background: #fff; }
@keyframes burst-out { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.5); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -2.4)) rotate(260deg) scale(1.1); } }
.snake-cta { display: grid; place-items: center; margin-top: clamp(26px, 3vw, 44px); }
@media (max-width: 899px) { .snake__card:nth-of-type(odd) { margin-right: 9%; } .snake__card:nth-of-type(even) { margin-left: 9%; } }
@media (min-width: 900px) {
  .snake { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; }
  .snake__card--1 { grid-area: 1 / 1; } .snake__card--2 { grid-area: 1 / 2; } .snake__card--3 { grid-area: 1 / 3; }
  .snake__card--4 { grid-area: 2 / 3; } .snake__card--5 { grid-area: 2 / 2; } .snake__card--6 { grid-area: 2 / 1; }
}
@media (prefers-reduced-motion: reduce) { .snake { --draw: 1; } .burst { display: none; } .snake__card.is-reached .snake__n { animation: none; } }

/* ---------- 7. why ---------- */
.why-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.why { display: flex; flex-direction: column; border-radius: var(--r-dir); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.why:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why__img { aspect-ratio: 16 / 8; overflow: hidden; }
.why__img picture, .why__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.why:hover .why__img img { transform: scale(1.05); }
.why__body { position: relative; display: grid; gap: 8px; padding: 34px 22px 24px; }
.why__body .badge-ic { position: absolute; top: -24px; left: 22px; transition: transform .5s var(--ease), background .3s; }
.why:hover .why__body .badge-ic { transform: translateY(-6px) rotate(-8deg); background: var(--gold-grad); color: var(--blue-900); }
.why__img { position: relative; }
.why__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(16,32,64,.0) 40%, rgba(201,162,77,.25)); opacity: 0; transition: opacity .5s; }
.why:hover .why__img::after { opacity: 1; }
.why__body h3 { font: 600 1.125rem/1.3 var(--font-display); color: var(--blue-900); }
.why__body p { color: var(--muted); font-size: .9375rem; }

/* ---------- 8. results & reviews ---------- */
.seg { position: relative; display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.seg__thumb { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px; background: var(--burgundy-700); box-shadow: 0 6px 16px rgba(142,26,40,.28); transition: transform .5s cubic-bezier(.6,.0,.2,1.3), width .5s var(--ease); }
.seg__btn { position: relative; z-index: 1; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--blue-700); font-weight: 700; transition: color .3s; }
.seg__btn[aria-selected="true"] { color: #fff; }
.no-thumb .seg__btn[aria-selected="true"] { background: var(--burgundy-700); }
@media (prefers-reduced-motion: no-preference) {
  .rpanel:not([hidden]) .story { animation: card-in .7s var(--ease) both; animation-delay: calc(var(--k, 0) * 60ms); }
  .rpanel:not([hidden]) .grev { animation: card-in .6s var(--ease) both; animation-delay: calc(200ms + var(--i, 0) * 80ms); }
}
@keyframes card-in { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
/* video/story strip: one line, drifts left → right; pauses on hover/focus; manual scroll when motion is reduced */
.marquee { position: relative; overflow: hidden; padding-block: 18px 8px; }
.marquee__track { display: flex; width: max-content; }
.marquee .stories { display: flex; gap: 16px; padding-right: 16px; }
.marquee .story { width: clamp(260px, 72vw, 300px); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: drift var(--dur, 60s) linear infinite; }
  .marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
}
@keyframes drift { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; -webkit-mask: none; mask: none; } .marquee .stories[aria-hidden] { display: none; } .marquee .stories { padding-inline: var(--gutter); } }
.story { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s; }
.story:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.story__media { position: relative; aspect-ratio: 4 / 3.4; }
.story__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .9s var(--ease); }
.story:hover .story__media img { transform: scale(1.06); }
.story__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,32,64,0) 55%, rgba(16,32,64,.55)); pointer-events: none; }
.story__play { position: absolute; z-index: 1; inset: 0; margin: auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--burgundy-700); box-shadow: 0 10px 30px rgba(16,32,64,.35); transition: transform .25s var(--ease); }
.story__play::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); }
@media (prefers-reduced-motion: no-preference) { .story__play::before { animation: pulse 2.2s infinite; } }
@keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.story__play .ic { width: 26px; height: 26px; margin-left: 3px; }
.story__play:hover { transform: scale(1.08); }
.story__avatar { position: relative; display: grid; place-items: center; height: 96px; background: linear-gradient(145deg, var(--blue-900), var(--blue-700)); color: var(--gold-soft); }
.story__avatar .ic { width: 40px; height: 40px; }
.story__kind { position: absolute; z-index: 1; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--burgundy-700); font-size: .75rem; font-weight: 700; }
.story__body { display: grid; gap: 10px; padding: 18px 20px 22px; flex: 1; align-content: start; }
.story__name { font: 600 1.125rem/1.25 var(--font-display); color: var(--blue-900); }
.ab { display: grid; gap: 10px; }
.ab dt { display: flex; align-items: center; gap: 8px; font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ab dt span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sky-50); color: var(--blue-700); letter-spacing: 0; font-size: .75rem; }
.ab div:last-child dt span { background: var(--burgundy-700); color: #fff; }
.ab dd { margin-top: 4px; font-size: .9375rem; color: var(--blue-700); line-height: 1.45; }
.ab div:last-child dd { color: var(--blue-900); font-weight: 600; }
.greviews { margin-top: 20px; padding: clamp(18px, 2.5vw, 28px); border-radius: var(--r-dir); background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(16,32,64,.05); }
.greviews__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.greviews__logo { width: 40px; height: 40px; }
.greviews__meta { display: grid; gap: 2px; }
.greviews__meta b { color: var(--blue-900); }
.greviews__score { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .875rem; }
.greviews__score strong { font-size: 1.375rem; color: var(--blue-900); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .ic { width: 18px; height: 18px; }
.stars--sm .ic { width: 15px; height: 15px; }
.greviews__list { display: grid; gap: 12px; grid-auto-flow: column; grid-auto-columns: min(86%, 340px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.greviews__list::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .greviews__list { grid-auto-columns: calc((100% - 40px) / 3); } }
.greviews__list { gap: 20px; }
.greviews__tools { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.greviews__link .ic { width: 16px; height: 16px; }
@media (max-width: 699px) { .greviews__head { flex-wrap: wrap; } .greviews__tools { width: 100%; justify-content: space-between; margin-left: 0; } }
.grev { --mx: 50%; --my: 50%; display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 16px; background: radial-gradient(240px circle at var(--mx) var(--my), rgba(201,162,77,.14), transparent 65%), var(--bg-soft); scroll-snap-align: start; transition: transform .35s var(--ease), box-shadow .35s; }
.grev:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16,32,64,.1); }
.grev__top { display: flex; align-items: center; gap: 10px; }
.grev__ava { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; color: #fff; font-weight: 700; background: var(--blue-500); }
.grev__ava[data-c="1"] { background: var(--burgundy-600); } .grev__ava[data-c="2"] { background: var(--blue-700); } .grev__ava[data-c="3"] { background: #5E7EAE; }
.grev__who { display: grid; font-size: .8125rem; line-height: 1.3; flex: 1; }
.grev__who b { font-size: .9375rem; color: var(--blue-900); }
.grev__g { width: 18px; height: 18px; }
.grev p { font-size: .9375rem; line-height: 1.5; color: var(--blue-700); }

/* video player (dialog) */
.vplayer { position: relative; border-radius: 18px; overflow: hidden; background: var(--blue-900); aspect-ratio: 4 / 5; }
.vplayer img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.vplayer__btn { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; border: 0; background: #fff; color: var(--burgundy-700); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s, opacity .3s; }
.vplayer__btn .ic { width: 30px; height: 30px; margin-left: 4px; }
.vplayer.is-playing .vplayer__btn { opacity: 0; }
.vplayer__bar { position: absolute; left: 16px; right: 16px; bottom: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); }
.vplayer__bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--burgundy-600); }
.vplayer.is-playing .vplayer__bar span { width: 100%; transition: width 84s linear; }
.vplayer__time { position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: .75rem; font-weight: 600; }

/* ---------- 9. teachers ---------- */
.teachers__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.teachers__head .sec-head { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--blue-700); font-weight: 700; font-size: .875rem; transition: background .2s, color .2s, border-color .2s; }
.filter .flag { width: 24px; height: 16px; }
.filter:hover { border-color: var(--burgundy-700); }
.filter[aria-pressed="true"] { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }
.teacher-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .teacher-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .teacher-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.teacher { display: flex; flex-direction: column; border-radius: var(--r-dir); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.teacher:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.teacher__photo img { transition: transform .9s var(--ease), filter .6s; filter: saturate(.92); }
.teacher:hover .teacher__photo img { transform: scale(1.06); filter: saturate(1.05); }
.teacher__photo::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(232,212,168,.0); border-radius: 18px; transition: border-color .5s, inset .5s var(--ease); pointer-events: none; }
.teacher:hover .teacher__photo::after { inset: 14px; border-color: rgba(232,212,168,.85); }
.teacher.is-out { display: none; }
.teacher__photo { position: relative; aspect-ratio: 4 / 4.4; }
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.teacher__lang { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--blue-900); font-size: .8125rem; font-weight: 700; }
.teacher__body { display: grid; gap: 8px; padding: 18px 20px 14px; flex: 1; align-content: start; }
.teacher__name { font: 600 1.375rem/1.2 var(--font-display); color: var(--blue-900); }
.teacher__cred { font-size: .8125rem; font-weight: 700; color: var(--blue-700); }
.spark { color: var(--gold); margin-right: 6px; }
.teacher__body > p:not(.teacher__cred) { color: var(--muted); font-size: .9375rem; }
.teacher__body .link-more { justify-self: start; }

/* ---------- 10. platform ---------- */
.plat { display: grid; gap: 24px; }
.plat__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.plat__chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--blue-700); font-weight: 700; font-size: .875rem; transition: background .25s, color .25s, border-color .25s, box-shadow .25s; }
.plat__chip:hover { border-color: var(--burgundy-700); color: var(--burgundy-700); }
.plat__chip[aria-selected="true"] { background: var(--burgundy-700); border-color: var(--burgundy-700); color: #fff; box-shadow: 0 8px 20px rgba(142,26,40,.25); }
@media (max-width: 699px) { .plat__chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; } .plat__chips::-webkit-scrollbar { display: none; } .plat__chip { white-space: nowrap; } }
.plat__stage { position: relative; display: flex; justify-content: center; padding: 0 0 28px; max-width: 980px; width: 100%; margin-inline: auto; perspective: 1800px; }
/* iPad Pro (landscape) — aluminium edge, thin black bezel, front camera */
.ipad { --s: 1; position: relative; width: min(100%, 820px); aspect-ratio: 4.3 / 3; padding: clamp(8px, 1.4vw, 14px); border-radius: clamp(22px, 3vw, 38px); background: #0b0f17; box-shadow: 0 0 0 1.5px #9aa3b2, 0 0 0 3px #d5dbe4, 0 40px 80px rgba(16,32,64,.28), 0 12px 24px rgba(16,32,64,.16); transform: rotateX(calc(var(--s) * 22deg + var(--ty, 0) * -4deg)) rotateY(calc(var(--tx, 0) * 6deg)) translateY(calc(var(--s) * 40px)) scale(calc(1 - var(--s) * .06)); transform-origin: 50% 100%; transition: transform .25s linear; }
.ipad__cam { position: absolute; z-index: 1; top: 50%; left: clamp(3px, .6vw, 6px); width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #2a3242; box-shadow: inset 0 0 0 1px #3c4659; }
.ipad__screen { height: 100%; border-radius: clamp(12px, 1.8vw, 24px); overflow: hidden; background: #fff; }
@media (max-width: 699px) { .ipad { aspect-ratio: 3 / 3.6; } }
/* iPhone 15 — dynamic island, titanium edge */
.iphone { position: absolute; z-index: 2; right: max(-4px, calc(50% - 490px)); bottom: 0; width: clamp(110px, 17vw, 176px); aspect-ratio: 9 / 19.5; padding: 6px; border-radius: clamp(22px, 3vw, 34px); background: #0b0f17; box-shadow: 0 0 0 1.5px #8d96a6, 0 0 0 3px #cfd6e0, 0 30px 60px rgba(16,32,64,.35); transform: translateY(calc(var(--s, 0) * 80px)) rotate(calc(var(--s, 0) * 6deg)); transition: transform .25s linear; }
.iphone__island { position: absolute; z-index: 2; top: 12px; left: 50%; width: 32%; height: 4.4%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.iphone__screen { height: 100%; display: flex; flex-direction: column; border-radius: clamp(17px, 2.5vw, 28px); overflow: hidden; background: #fff; padding-top: 14%; }
.app__status { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; } .app__status i { width: 18px; height: 9px; border-radius: 2px; border: 1px solid var(--blue-700); position: relative; } .app__status i::after { content: ""; position: absolute; inset: 1px 4px 1px 1px; background: var(--blue-700); border-radius: 1px; }
.app { height: 100%; display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.app__top { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--blue-900); }
.app__dots { display: flex; gap: 5px; } .app__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-200); }
.app__dots i:first-child { background: var(--burgundy-600); }
.app__sub { margin-left: auto; color: var(--muted); font-size: .75rem; }
@media (max-width: 459px) { .app__sub { display: none; } }
.app__views { position: relative; flex: 1; padding: clamp(10px, 2vw, 22px); overflow: hidden; font-size: clamp(.75rem, .6rem + .45vw, .9375rem); }
.view { height: 100%; display: grid; gap: 14px; align-content: start; }
@media (prefers-reduced-motion: no-preference) { .view:not([hidden]), .pview:not([hidden]) { animation: fade-up .45s var(--ease); } }
.view[data-view="1"] { grid-template-columns: 2.2fr 1fr; }
.v-video { display: grid; gap: 8px; align-content: start; }
.v-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); display: grid; place-items: center; }
.v-video__play { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--burgundy-700); }
.v-video__cap { position: absolute; left: 10px; bottom: 8px; color: #fff; font-weight: 700; }
.v-video__bar { height: 4px; border-radius: 4px; background: var(--sky-100); } .v-video__bar span { display: block; height: 100%; border-radius: 4px; background: var(--burgundy-700); }
.v-video__meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .85em; }
.v-side { display: grid; gap: 6px; align-content: start; } .v-side li { padding: 8px 10px; border-radius: 8px; background: var(--bg-soft); color: var(--blue-700); font-weight: 600; } .v-side .is-on { background: var(--blue-900); color: #fff; }
.v-rule { display: grid; gap: 10px; align-content: start; } .v-rule h4 { font: 700 1.6em/1 var(--font-display); color: var(--blue-900); } .v-rule__f { font-size: 1.2em; color: var(--burgundy-700); }
.v-rule table { border-collapse: collapse; width: 100%; } .v-rule th { width: 32px; color: var(--burgundy-700); text-align: left; } .v-rule td, .v-rule th { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.v-rule__tip { color: var(--muted); }
.v-ex { display: grid; gap: 12px; align-content: start; max-width: 520px; } .v-ex__q { font-size: 1.25em; font-weight: 700; color: var(--blue-900); }
.v-ex__opts { display: grid; gap: 8px; } .v-ex__opts li { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); }
.v-ex__opts .is-ok { border-color: var(--blue-500); background: var(--sky-50); color: var(--blue-900); font-weight: 700; }
.v-ex__prog { height: 6px; border-radius: 6px; background: var(--sky-100); } .v-ex__prog span { display: block; height: 100%; border-radius: 6px; background: var(--blue-500); } .v-ex__score { color: var(--muted); }
.v-words { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; } .v-words li { position: relative; display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.v-words b { font-size: 1.15em; color: var(--blue-900); } .v-words span { color: var(--muted); font-size: .85em; } .v-words i { font-style: normal; color: var(--burgundy-700); font-weight: 600; } .v-words .ic { position: absolute; right: 10px; top: 10px; color: var(--blue-500); }
.v-topics { display: grid; gap: 8px; align-content: start; } .v-topics li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); color: var(--blue-900); font-weight: 600; }
.v-topics i { font-style: normal; min-width: 56px; text-align: center; padding: 3px 8px; border-radius: 999px; background: linear-gradient(90deg, var(--sky-200) var(--p, 0%), var(--sky-50) var(--p, 0%)); color: var(--blue-900); font-size: .85em; } .v-topics .is-done { background: var(--blue-900); color: #fff; }
.v-note { display: flex; align-items: center; gap: 8px; color: var(--burgundy-700); font-weight: 700; }
.v-tasks { display: grid; gap: 8px; align-content: start; } .v-tasks li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--blue-900); } .v-tasks span { flex: 1; } .v-tasks i { font-style: normal; font-size: .85em; color: var(--burgundy-700); font-weight: 700; } .v-tasks .is-done { opacity: .6; } .v-tasks .ic { color: var(--blue-500); }
.v-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; } .v-grid li { display: grid; gap: 6px; font-weight: 600; color: var(--blue-900); }
.v-thumb { display: grid; place-items: center; aspect-ratio: 16 / 8; border-radius: 10px; background: linear-gradient(135deg, var(--blue-900), var(--blue-500)); color: #fff; }
.phone__top { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px; font-size: .75rem; color: var(--blue-900); }
.phone__live { width: 8px; height: 8px; border-radius: 50%; background: var(--burgundy-600); }
.phone__views { flex: 1; padding: 6px 10px 12px; font-size: clamp(.5625rem, .45rem + .4vw, .75rem); }
.pview { height: 100%; display: grid; align-content: center; justify-items: center; gap: 8px; text-align: center; color: var(--blue-700); }
.p-vid { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 12px; background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); color: #fff; } .p-vid--sm { aspect-ratio: 16 / 10; }
.p-big { font: 700 1.6em/1 var(--font-display); color: var(--burgundy-700); }
.p-ok { padding: 4px 8px; border-radius: 8px; background: var(--sky-50); color: var(--blue-900); font-weight: 700; }
.p-card { display: grid; gap: 2px; padding: 14px 8px; width: 100%; border-radius: 12px; background: var(--blue-900); color: #fff; } .p-card b { font-size: 1.2em; }
.p-ring { display: grid; place-items: center; width: 70%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--burgundy-700) var(--p), var(--sky-100) 0); } .p-ring span { display: grid; place-items: center; width: 74%; aspect-ratio: 1; border-radius: 50%; background: #fff; font-weight: 800; color: var(--blue-900); }
@media (max-width: 699px) { .view[data-view="1"] { grid-template-columns: 1fr; } .v-side { display: none; } .iphone { display: none; } .v-words { grid-template-columns: 1fr; } .v-words li:nth-child(n+4) { display: none; } }

/* ---------- 11. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(56px, 7vw, 96px); color: #fff; background: radial-gradient(70% 90% at 90% 0%, rgba(168,36,52,.45) 0%, rgba(168,36,52,0) 60%), linear-gradient(140deg, var(--blue-900), var(--blue-700) 55%, var(--blue-500)); }
.cta-band::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.cta-band__inner { display: grid; justify-items: center; text-align: center; gap: 16px; }
.cta-band .h2 { color: #fff; }
.cta-band .lead { color: var(--sky-100); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- footer (owner's blocks; night planet over a gold line-drawn panorama) ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(70% 55% at 85% 100%, rgba(44,90,160,.55) 0%, rgba(44,90,160,0) 70%), linear-gradient(180deg, var(--blue-900) 0%, #0b1730 100%); }
.footer__sky { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.globe--footer { position: absolute; width: min(120vw, 560px); aspect-ratio: 1; left: 50%; bottom: -46%; transform: translateX(-50%); opacity: .9; }
@media (min-width: 1000px) { .globe--footer { left: auto; right: 4%; bottom: -330px; width: 720px; transform: none; } }
.footer__grid { position: relative; display: grid; gap: 28px; padding-top: clamp(48px, 6vw, 88px); }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer__brand { grid-column: auto; } }
.logo--light .wordmark { font-size: clamp(1rem, .75rem + 1.1vw, 1.3125rem); }
.footer__brand { display: grid; gap: 14px; align-content: start; justify-items: start; }
.footer__place { display: flex; align-items: center; gap: 8px; color: var(--sky-100); }
.footer__place .ic { color: var(--gold); }
.footer__col h3 { font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.footer__col ul { display: grid; gap: 0; }
.footer__col a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--sky-100); text-decoration: none; font-weight: 500; transition: color .25s, transform .3s var(--ease); }
.footer__col a:hover { color: var(--gold-soft); transform: translateX(4px); }
.footer__col .flag { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
.footer__contacts { position: relative; display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(232,212,168,.22); }
.footer__contacts a, .footer__contacts span { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: #fff; font-weight: 600; font-size: .9375rem; text-decoration: none; }
.footer__contacts a:hover { color: var(--gold-soft); }
.footer__contacts .ic { color: var(--gold); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 14px; font-size: .875rem; color: var(--sky-200); }
.footer__links { display: flex; gap: 18px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sky-200); }
.footer__links a:hover { color: var(--gold-soft); }
.footer__city { position: relative; height: clamp(110px, 17vw, 260px); margin-top: clamp(20px, 4vw, 48px); color: var(--gold); pointer-events: none; }
.footer__city svg { width: 100%; height: 100%; opacity: .75; }
.footer__city::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, rgba(11,23,48,0), #0b1730); }
.footer__bottom { position: relative; text-align: center; padding: 4px var(--gutter) calc(96px + var(--safe-b)); font-size: .8125rem; color: var(--blue-300); background: #0b1730; }
@media (min-width: 1100px) { .footer__bottom { padding-bottom: 48px; } }

/* ---------- mobile: long card lists become swipe carousels (less scrolling, thumb-friendly) ---------- */
@media (max-width: 699px) {
  .lang-grid, .teacher-grid, .why-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter); }
  .lang-grid::-webkit-scrollbar, .teacher-grid::-webkit-scrollbar, .why-grid::-webkit-scrollbar { display: none; }
  .lang, .teacher, .why { scroll-snap-align: start; }
  .js .lang-grid .reveal, .js .teacher-grid .reveal, .js .why-grid .reveal { transition-delay: 0s; }
  .teacher.is-out { display: none; }
}
.swipe-dots { display: none; }
@media (max-width: 699px) { .swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; } .swipe-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--sky-200); transition: width .25s, background .25s; } .swipe-dots i.is-on { width: 18px; border-radius: 3px; background: var(--burgundy-700); } }
.story__media, .teacher__photo, .why__img, .step-panel__img { min-height: 0; overflow: hidden; }

.story__media img, .teacher__photo img { position: absolute; inset: 0; }

main > section, .site-footer { overflow-x: clip; }
.marquee .stories:focus-visible, .lang-grid:focus-visible, .why-grid:focus-visible, .teacher-grid:focus-visible, .greviews__list:focus-visible { outline-offset: -3px; }

/* ---------- generic 3D tilt / spotlight hooks (set by home.js on fine pointers) ---------- */
[data-tilt] { will-change: transform; }
@media (prefers-reduced-motion: reduce) { .fmt, .ipad, .iphone { transform: none !important; } .sky__back, .sky__mid, .sky-item svg.sky, .about__city svg { transform: none !important; } }
/* pause controls for auto-moving content (WCAG 2.2.2) */
.marquee__bar { display: flex; justify-content: flex-end; margin-top: 8px; }
.pause-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--blue-700); font-weight: 700; font-size: .8125rem; }
.pause-btn:hover { border-color: var(--burgundy-700); color: var(--burgundy-700); }
.marquee.is-stopped .marquee__track { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .pause-btn { display: none; } }

/* ---------- iteration 5 ---------- */
/* mini-test card (levels) */
@media (min-width: 900px) { .minitest { grid-template-columns: auto 1fr auto; gap: 24px; } }
.modal__panel--test { width: min(520px, 100%); }
.mt__prog { height: 6px; border-radius: 6px; background: var(--sky-100); overflow: hidden; } .mt__prog span { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--gold), var(--burgundy-600)); transition: width .5s var(--ease); }
.mt__q { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.mt__q legend { display: grid; gap: 6px; padding: 0; font: 600 1.25rem/1.35 var(--font-text); color: var(--blue-900); }
.mt__n { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.mt__opts { display: grid; gap: 8px; }
.mt__opt { min-height: 52px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--sky-200); background: #fff; color: var(--blue-900); font-weight: 600; font-size: 1rem; text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.mt__opt:hover { border-color: var(--blue-500); transform: translateX(3px); }
.mt__opt.is-ok { border-color: #2E8B57; background: #EAF6EF; } .mt__opt.is-bad { border-color: var(--burgundy-600); background: var(--burgundy-50); }
@media (prefers-reduced-motion: no-preference) { .mt__q:not([hidden]), .mt__res:not([hidden]) { animation: card-in .45s var(--ease); } .mt__opt.is-bad { animation: shake .4s; } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.mt__res { display: grid; gap: 12px; justify-items: center; text-align: center; }
.mt__badge { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: conic-gradient(var(--gold) 0 25%, var(--burgundy-600) 25% 50%, var(--blue-500) 50% 75%, var(--gold) 75%); padding: 6px; }
.mt__badge span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; font: 700 2rem/1 var(--font-display); color: var(--blue-900); }
.mt__text { font-size: 1.0625rem; color: var(--blue-900); font-weight: 600; }

/* reviews: video cards in one strip; icon pause on the tab row (touch only) */
.results__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.results__bar .seg { margin-bottom: 0; }
.icon-pause { display: none; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--blue-900); }
@media (hover: none) and (prefers-reduced-motion: no-preference) { .icon-pause { display: grid; } }
.vcard { width: clamp(220px, 62vw, 270px); flex: none; }
.vcard__btn { position: relative; display: block; width: 100%; aspect-ratio: 9 / 14; padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: var(--blue-900); color: #fff; text-align: left; box-shadow: 0 14px 34px rgba(16,32,64,.18); transition: transform .45s var(--ease), box-shadow .45s; }
.vcard__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 1s var(--ease); }
.vcard__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,32,64,.25) 0%, rgba(16,32,64,0) 30%, rgba(16,32,64,0) 45%, rgba(16,32,64,.92) 100%); }
.vcard__btn:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(16,32,64,.28); } .vcard__btn:hover img { transform: scale(1.06); }
.vcard__badge { position: absolute; z-index: 1; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(16,32,64,.72); font-size: .75rem; font-weight: 700; }
.vcard__play { position: absolute; z-index: 1; left: 50%; top: 42%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--burgundy-700); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.vcard__play::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); }
@media (prefers-reduced-motion: no-preference) { .vcard__play::before { animation: pulse 2.2s infinite; } }
.vcard__play .ic { width: 26px; height: 26px; margin-left: 3px; }
.vcard__btn:hover .vcard__play { transform: scale(1.1); }
.vcard__cap { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 6px; }
.vcard__cap .story__name { font: 600 1.0625rem/1.2 var(--font-display); color: #fff; }
.vcard__win { font-size: .9375rem; line-height: 1.35; font-weight: 600; color: #fff; }
@media (prefers-reduced-motion: no-preference) { .rpanel:not([hidden]) .vcard { animation: card-in .7s var(--ease) both; animation-delay: calc(var(--k, 0) * 60ms); } }

/* teachers: photo + language, manual carousel */
.teacher-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, calc((100% - 3 * 20px) / 4)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 8px; }
.teacher-row::-webkit-scrollbar { display: none; }
@media (max-width: 699px) { .teacher-row { grid-auto-columns: 72%; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }
.teacher { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-dir); overflow: hidden; scroll-snap-align: start; background: var(--sky-50); box-shadow: 0 14px 34px rgba(16,32,64,.12); }
.teacher img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1s var(--ease); }
.teacher:hover img { transform: scale(1.06); }
.teacher::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,32,64,0) 55%, rgba(16,32,64,.75)); pointer-events: none; }
.teacher__cap { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 8px; justify-items: start; }
.teacher__name { font: 600 1.375rem/1.2 var(--font-display); color: #fff; }
.teacher__lang { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--blue-900); font-size: .8125rem; font-weight: 700; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav__btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--blue-900); background: #fff; color: var(--blue-900); transition: background .25s, color .25s, opacity .25s; }
.carousel-nav__btn:first-child .ic { transform: scaleX(-1); }
.carousel-nav__btn:hover:not(:disabled) { background: var(--blue-900); color: #fff; }
.carousel-nav__btn:disabled { opacity: .35; cursor: default; }

/* platform: small interactions + smooth screen change */
.plat__hint { text-align: center; color: var(--muted); font-size: .875rem; font-weight: 600; margin-top: -8px; }
@media (prefers-reduced-motion: no-preference) {
  .view:not([hidden]) { animation: screen-in .55s var(--ease); }
  .pview:not([hidden]) { animation: screen-in .55s .05s var(--ease) both; }
}
@keyframes screen-in { from { opacity: 0; transform: translateX(24px) scale(.98); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.v-video__frame { width: 100%; border: 0; cursor: pointer; }
.v-video__play { transition: transform .25s var(--ease); } .v-video__frame:hover .v-video__play { transform: scale(1.1); }
.v-video__bar span { width: 0%; } .is-playing .v-video__bar span { width: 100%; transition: width 12s linear; }
.v-rule__rows { display: grid; gap: 6px; }
.v-rule__rows button { display: flex; width: 100%; gap: 12px; align-items: center; padding: 9px 10px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--blue-700); text-align: left; border-radius: 8px; transition: background .2s; }
.v-rule__rows button:hover, .v-rule__rows button[aria-expanded="true"] { background: var(--sky-50); }
.v-rule__rows button > b { width: 22px; color: var(--burgundy-700); }
.v-rule__rows p { display: none; padding: 4px 10px 6px 44px; color: var(--burgundy-700); font-weight: 600; }
.v-rule__rows button[aria-expanded="true"] + p { display: block; animation: card-in .3s var(--ease); }
.v-ex__opts { display: grid; gap: 8px; }
.v-ex__opts button { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--blue-900); text-align: left; font-weight: 600; transition: border-color .2s, background .2s; }
.v-ex__opts button:hover { border-color: var(--blue-500); }
.v-ex__opts .is-ok { border-color: #2E8B57; background: #EAF6EF; } .v-ex__opts .is-bad { border-color: var(--burgundy-600); background: var(--burgundy-50); animation: shake .4s; }
.v-ex__prog span { width: var(--w, 30%); transition: width .5s var(--ease); }
.v-words li { padding: 0; border: 0; background: none; }
.v-flip { position: relative; display: block; width: 100%; min-height: 76px; padding: 0; border: 0; background: none; perspective: 600px; color: inherit; text-align: left; }
.v-flip__f, .v-flip__b { position: absolute; inset: 0; display: grid; align-content: center; gap: 2px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); backface-visibility: hidden; transition: transform .5s var(--ease); }
.v-flip__f { background: var(--bg-soft); } .v-flip__b { background: var(--blue-900); color: #fff; transform: rotateY(180deg); place-items: center; }
.v-flip__b i { font-style: normal; font-weight: 700; color: var(--gold-soft); }
.v-flip[aria-pressed="true"] .v-flip__f { transform: rotateY(-180deg); } .v-flip[aria-pressed="true"] .v-flip__b { transform: none; }
.v-topic { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-align: left; }
.v-topics i { transition: background .8s var(--ease); }
.v-tasks button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--blue-900); text-align: left; font: inherit; }
.v-tasks button span:nth-child(2) { flex: 1; }
.v-check { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 2px solid var(--blue-500); transition: background .2s; position: relative; }
.v-tasks button[aria-pressed="true"] { opacity: .65; } .v-tasks button[aria-pressed="true"] span:nth-child(2) { text-decoration: line-through; }
.v-tasks button[aria-pressed="true"] .v-check { background: var(--blue-500); }
.v-tasks button[aria-pressed="true"] .v-check::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.v-gvid { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: var(--blue-900); font: inherit; font-weight: 600; text-align: left; }
.v-thumb { position: relative; overflow: hidden; transition: transform .3s var(--ease); } .v-gvid:hover .v-thumb { transform: scale(1.03); }
.v-thumb__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); }
.is-playing .v-thumb__bar { width: 100%; transition: width 8s linear; }

/* scroll-drawn accents */
.sec-head .h2 { --reveal: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .h2 .w { display: inline-block; opacity: 0; transform: translateY(.5em); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--wi) * 55ms); }
  .js .h2.is-in .w { opacity: 1; transform: none; }
}
.sec--langs .wrap { position: relative; }
.teacher { border: 0; display: block; }
.teacher__cap .teacher__lang { position: static; }
.sec--langs { isolation: isolate; }

/* ---------- variant switcher (three dots after the header CTA; does not affect the header's layout) ---------- */
.vswitch { position: absolute; top: 50%; right: -13px; transform: translateY(-50%); z-index: 6; }
@media (min-width: 1360px) { .vswitch { right: -34px; } }
.vswitch__btn { display: grid; place-items: center; width: 26px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--blue-700); opacity: .3; cursor: pointer; transition: opacity .25s; }
.vswitch__btn:hover, .vswitch__btn[aria-expanded="true"], .vswitch__btn:focus-visible { opacity: 1; }
.vswitch__btn i { display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor; }
.vswitch__menu { position: absolute; right: 0; top: calc(100% + 30px); width: 268px; display: grid; gap: 4px; padding: 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 56px rgba(16,32,64,.28); }
.vswitch__menu[hidden] { display: none; }
.vswitch__h { margin: 6px 8px 2px; font: 700 .6875rem/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vswitch__menu button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--blue-900); font: 600 .9375rem/1.2 var(--font-text); text-align: left; cursor: pointer; }
.vswitch__menu button b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sky-100); color: var(--blue-700); font-size: .8125rem; }
.vswitch__menu button:hover { background: var(--sky-50); }
.vswitch__menu button[aria-pressed="true"] { background: var(--burgundy-50); color: var(--burgundy-700); }
.vswitch__menu button[aria-pressed="true"] b { background: var(--burgundy-700); color: #fff; }

/* ---------- hero variants: light (default, white) · space · dawn ---------- */
html[data-hero="space"] .globe__poster, html[data-hero="dawn"] .globe__poster { display: none; }
html[data-hero="space"] .hero { background: radial-gradient(58% 62% at 70% 46%, rgba(36,92,196,.55) 0%, rgba(5,12,40,0) 70%), linear-gradient(180deg, #030A20 0%, #081842 62%, #0E2250 100%); }
html[data-hero="space"] .hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(1.2px 1.2px at 31% 50%, rgba(255,255,255,0.7), transparent), radial-gradient(0.8px 0.8px at 26% 93%, rgba(255,255,255,0.5), transparent), radial-gradient(1.5px 1.5px at 19% 34%, rgba(255,255,255,0.7), transparent), radial-gradient(0.8px 0.8px at 53% 85%, rgba(255,255,255,1), transparent), radial-gradient(1.2px 1.2px at 64% 61%, rgba(255,255,255,1), transparent), radial-gradient(1.2px 1.2px at 75% 27%, rgba(255,255,255,0.5), transparent), radial-gradient(0.8px 0.8px at 64% 32%, rgba(255,255,255,0.9), transparent), radial-gradient(1.2px 1.2px at 68% 55%, rgba(255,255,255,1), transparent), radial-gradient(1px 1px at 94% 17%, rgba(255,255,255,0.5), transparent), radial-gradient(1.5px 1.5px at 10% 52%, rgba(255,255,255,1), transparent), radial-gradient(0.8px 0.8px at 15% 87%, rgba(255,255,255,0.9), transparent), radial-gradient(0.8px 0.8px at 32% 91%, rgba(255,255,255,1), transparent), radial-gradient(1px 1px at 85% 69%, rgba(255,255,255,0.7), transparent), radial-gradient(1.5px 1.5px at 79% 11%, rgba(255,255,255,0.5), transparent), radial-gradient(1px 1px at 64% 92%, rgba(255,255,255,0.7), transparent), radial-gradient(1.5px 1.5px at 76% 61%, rgba(255,255,255,1), transparent), radial-gradient(1px 1px at 38% 74%, rgba(255,255,255,1), transparent), radial-gradient(1.5px 1.5px at 19% 23%, rgba(255,255,255,0.5), transparent), radial-gradient(1px 1px at 70% 91%, rgba(255,255,255,0.9), transparent), radial-gradient(1.5px 1.5px at 84% 66%, rgba(255,255,255,0.7), transparent), radial-gradient(1px 1px at 41% 22%, rgba(255,255,255,0.9), transparent), radial-gradient(0.8px 0.8px at 67% 87%, rgba(255,255,255,0.7), transparent), radial-gradient(0.8px 0.8px at 46% 34%, rgba(255,255,255,0.9), transparent), radial-gradient(1px 1px at 45% 31%, rgba(255,255,255,0.5), transparent), radial-gradient(1.2px 1.2px at 56% 35%, rgba(255,255,255,0.9), transparent), radial-gradient(1px 1px at 92% 56%, rgba(255,255,255,1), transparent), radial-gradient(0.8px 0.8px at 16% 24%, rgba(255,255,255,0.7), transparent), radial-gradient(0.8px 0.8px at 22% 41%, rgba(255,255,255,0.5), transparent), radial-gradient(1px 1px at 50% 46%, rgba(255,255,255,1), transparent), radial-gradient(1.2px 1.2px at 31% 20%, rgba(255,255,255,1), transparent), radial-gradient(0.8px 0.8px at 54% 56%, rgba(255,255,255,0.5), transparent), radial-gradient(0.8px 0.8px at 38% 94%, rgba(255,255,255,0.5), transparent), radial-gradient(0.8px 0.8px at 12% 87%, rgba(255,255,255,0.9), transparent), radial-gradient(1.2px 1.2px at 21% 67%, rgba(255,255,255,0.7), transparent), radial-gradient(1px 1px at 79% 11%, rgba(255,255,255,0.5), transparent), radial-gradient(1.2px 1.2px at 19% 46%, rgba(255,255,255,0.5), transparent), radial-gradient(1px 1px at 97% 41%, rgba(255,255,255,0.9), transparent), radial-gradient(1.2px 1.2px at 48% 3%, rgba(255,255,255,0.7), transparent), radial-gradient(0.8px 0.8px at 9% 82%, rgba(255,255,255,0.7), transparent), radial-gradient(1.2px 1.2px at 24% 46%, rgba(255,255,255,1), transparent), radial-gradient(1px 1px at 17% 13%, rgba(255,255,255,0.7), transparent), radial-gradient(1px 1px at 65% 63%, rgba(255,255,255,1), transparent), radial-gradient(1.5px 1.5px at 17% 16%, rgba(255,255,255,1), transparent), radial-gradient(1.2px 1.2px at 84% 19%, rgba(255,255,255,0.5), transparent), radial-gradient(1.5px 1.5px at 93% 63%, rgba(255,255,255,1), transparent), radial-gradient(1px 1px at 48% 61%, rgba(255,255,255,0.5), transparent); animation: stars-twinkle 7s ease-in-out infinite alternate; }
@keyframes stars-twinkle { from { opacity: .65; } to { opacity: 1; } }
html[data-hero="space"] .hero__title { color: #fff; } html[data-hero="space"] .hero__title em { color: var(--gold-soft); }
html[data-hero="space"] .hero__sky { color: rgba(132,166,226,.5); }
html[data-hero="dawn"] .hero { background: radial-gradient(62% 46% at 50% 100%, rgba(255,210,128,.8) 0%, rgba(255,210,128,0) 72%), linear-gradient(180deg, #9FCDF0 0%, #D3E9FA 36%, #FFF0D6 80%, #FFE0AB 100%); }
html[data-hero="dawn"] .hero::before { content: ""; position: absolute; inset: -4% -6%; z-index: 0; pointer-events: none; background: radial-gradient(190px 52px at 16% 20%, rgba(255,255,255,.9), transparent 72%), radial-gradient(260px 62px at 80% 14%, rgba(255,255,255,.85), transparent 72%), radial-gradient(210px 50px at 62% 36%, rgba(255,255,255,.7), transparent 72%), radial-gradient(160px 44px at 30% 42%, rgba(255,255,255,.6), transparent 72%); animation: cloud-drift 70s ease-in-out infinite alternate; }
@keyframes cloud-drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
html[data-hero="dawn"] .hero__sky { color: rgba(26,48,88,.28); }
@media (min-width: 1000px) {
  html[data-hero="dawn"] .hero__inner { grid-template-columns: 1fr; justify-items: center; align-items: start; text-align: center; padding-top: clamp(36px, 8vh, 110px); }
  html[data-hero="dawn"] .hero__copy { justify-items: center; }
  html[data-hero="dawn"] .hero__title { max-width: 20ch; }
  html[data-hero="dawn"] .hero__sky { display: none; }
  html[data-hero="dawn"] .globe__card { top: 130px; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) { html[data-hero="space"] .hero::before, html[data-hero="dawn"] .hero::before { animation: none; } }

/* ---------- «Знайомтесь» variant B: a narrow professional photo strip behind the block ---------- */
.about__photo { display: none; }
html[data-about="photo"] .about__city { display: none; }
html[data-about="photo"] .about__photo { display: block; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: clamp(180px, 29vw, 470px); pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%); mask-image: linear-gradient(180deg, transparent 0%, #000 24%); }
.about__photo picture, .about__photo img { display: block; width: 100%; height: 100%; }
.about__photo img { object-fit: cover; object-position: 50% 42%; }

/* globe: language switcher (‹ language ›), Kyiv two-flag label with online dot, location chips */
.globe__nav { position: absolute; z-index: 7; top: 104px; left: 70%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 12px 32px rgba(16,32,64,.22); pointer-events: auto; }
.globe__nav-b { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sky-50); color: var(--blue-700); cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease); }
.globe__nav-b:hover { background: var(--burgundy-700); color: #fff; }
.globe__nav-b[data-dir="-1"] .ic { transform: rotate(90deg); } .globe__nav-b[data-dir="1"] .ic { transform: rotate(-90deg); }
.globe__nav-b .ic { width: 20px; height: 20px; }
.globe__nav-m { display: grid; justify-items: center; gap: 5px; min-width: 150px; padding: 0 6px; }
.globe__nav-t { display: inline-flex; align-items: center; gap: 8px; font: 700 1rem/1 var(--font-display); color: var(--blue-900); white-space: nowrap; }
.globe__nav-t .flag { width: 27px; height: 18px; }
.globe__nav-dots { display: flex; gap: 5px; } .globe__nav-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--sky-200); transition: background .3s, transform .3s; } .globe__nav-dots i.is-on { background: var(--burgundy-700); transform: scale(1.35); }
html[data-hero="dawn"] .globe__nav { left: 50%; top: 372px; }
@media (max-width: 999px) { .globe__nav { left: 50%; top: calc(var(--hb) + 8px); } .globe__nav-b { width: 40px; height: 40px; } .globe__nav-m { min-width: 128px; } .globe__nav-t { font-size: .9375rem; } html[data-hero="dawn"] .globe__nav { top: calc(var(--hb) + 8px); } }
.globe__label--home .flag + .flag { margin-left: -13px; box-shadow: -2px 0 0 var(--burgundy-700); }
.globe__live { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
@media (prefers-reduced-motion: reduce) { .globe__live { animation: none; } }
.globe__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.globe__chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 6px; border-radius: 999px; background: var(--sky-50); color: var(--blue-700); font: 600 .8125rem/1 var(--font-text); }
.globe__chips .flag { width: 22px; height: 15px; }
.globe__chips .is-online { background: #E4F8EE; color: #14683A; padding-left: 9px; } .globe__chips .is-online .ic { width: 16px; height: 16px; }

@media (max-width: 999px) {
  .hero__inner { padding-block: calc(var(--gh) + 36px) 12px; }
  .globe__card { top: calc(var(--hb) + var(--gh) - 76px); }
  .globe__card > div > span { display: none; } .globe__card > div { gap: 6px; }
  .globe__card img { width: 72px; min-height: 72px; height: 72px; }
  .globe__card .globe__chips { display: none; } .globe__card .globe__chips + .globe__more { margin-top: 0; }
}
@media (max-width: 999px) and (max-height: 720px) {
  .hero__inner { padding-block: calc(var(--gh) + 10px) 8px; } .hero__copy { gap: 14px; }
  .globe__card { top: calc(var(--hb) + var(--gh) - 92px); padding-block: 8px; } .globe__card img { display: none; }
}
/* globe card: chips without a flag icon (French card: Europe + Canada) */
.globe__chips .is-plain { padding-left: 11px; }

/* ===== iteration 9: solid about tiles (only the statue may overlap), equal-step levels with a lit current step, zigzag steps, emoji, mobile fixes ===== */
.emo { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-style: normal; font-weight: 400; letter-spacing: 0; }
/* about: tiles are opaque; the 3D layer sits above them and is transparent everywhere except the statue */
.tile { background: #1a3562; border-color: rgba(232,212,168,.22); }
.tile__emo { font-size: 1.45rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.tile:hover .tile__emo { transform: scale(1.12); } .tile__emo { transition: transform .4s var(--ease); }
.about__wrap { position: relative; z-index: 1; }
.about__city.is-3d { z-index: 3; }
/* levels: equal height steps; the step that is coming out lights up */
@media (min-width: 760px) { .stair:nth-of-type(n) { min-height: 0; height: calc(156px + var(--i) * 56px); } }
.stair__code { display: flex; align-items: center; gap: 8px; }
.stair__code .emo { font-size: .62em; }
.stair.is-cur::before { clip-path: circle(150% at var(--mx) var(--my)); }
.stair.is-cur .stair__code, .stair.is-cur .stair__t, .stair.is-cur .stair__n { color: #fff; }
.stair.is-cur { box-shadow: 0 16px 36px rgba(142,26,40,.3); }
@media (max-width: 759px) {
  .stair:nth-of-type(1) { width: 52%; } .stair:nth-of-type(2) { width: 64%; } .stair:nth-of-type(3) { width: 76%; } .stair:nth-of-type(4) { width: 88%; } .stair:nth-of-type(5) { width: 100%; }
}
/* steps: a Duolingo-like zigzag — cards alternate sides, coins sit on the winding dashed path between them */
.snake { gap: 40px; }
.snake__card { min-height: 0; }
.snake__card:nth-of-type(odd) { margin-right: 13%; margin-left: 0; padding-right: 44px; }
.snake__card:nth-of-type(even) { margin-left: 13%; margin-right: 0; padding-left: 44px; }
.snake__n { position: absolute; z-index: 2; top: 50%; width: 46px; height: 46px; margin-top: -23px; font-size: 1rem; }
.snake__card:nth-of-type(odd) .snake__n { right: -23px; }
.snake__card:nth-of-type(even) .snake__n { left: -23px; }
.snake__card h3 .emo { font-size: .95em; }
.snake__path { overflow: visible; }
.snake__base, .snake__fill { stroke-dasharray: 2 14; stroke-width: 5; }
.snake__base { stroke: var(--sky-200); } .snake__fill { stroke: var(--burgundy-700); }
.burst i { left: 0; top: 50%; }
@media (min-width: 900px) {
  .snake { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(96px, 11vw, 170px); row-gap: 36px; align-items: start; }
  .snake__card:nth-of-type(n) { grid-area: auto; margin: 0; }
  .snake__card:nth-of-type(odd) { grid-column: 1; padding-right: 52px; }
  .snake__card:nth-of-type(even) { grid-column: 2; margin-top: 104px; padding-left: 52px; }
  .snake__n { width: 54px; height: 54px; margin-top: -27px; }
  .snake__card:nth-of-type(odd) .snake__n { right: -27px; } .snake__card:nth-of-type(even) .snake__n { left: -27px; }
}
/* header: eight buttons fit in one row */
@media (min-width: 1360px) { .main-nav__link { padding: 0 9px; font-size: .9rem; } .main-nav__link::after { left: 9px; right: 9px; } .main-nav__list { gap: 0; } }
/* mobile audit fixes */
.modal__panel { grid-template-columns: minmax(0, 1fr); } .modal__panel > *, .linfo, .linfo__pts li > div { min-width: 0; } .linfo__pts li { overflow-wrap: anywhere; }
@media (max-width: 459px) { .modal__panel { padding: 20px 16px; } .linfo { padding: 0 4px; } .linfo__hero { margin-inline: -16px; } }
@media (max-width: 399px) { .results__bar { flex-wrap: wrap; justify-content: flex-start; } .seg { max-width: 100%; } .seg__btn { padding: 0 12px; font-size: .875rem; } }
@media (hover: none) {
  .marquee { overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .marquee__track { animation: none !important; } .marquee .stories[aria-hidden] { display: none; } .marquee .stories { padding-inline: var(--gutter); }
}
@media (max-width: 759px) { .levels-stick { min-height: 0; align-content: start; padding-block: 8px; } .promo__chip { font-size: .8125rem; } .promo { margin-top: 18px; } }
@media (max-width: 759px) and (max-height: 700px) { .levels-scene { height: calc(100svh + 120vh); } .stair { min-height: 44px; padding: 6px 12px; } .promo { padding: 12px 14px; gap: 8px; } }
@media (max-width: 999px) and (max-height: 700px) { .globe__nav { display: none; } }
@media (pointer: coarse) { .globe__label::after { content: ""; position: absolute; inset: -9px -4px; } .globe__nav-b { width: 44px; height: 44px; } .globe__x { width: 44px; height: 44px; top: 2px; right: 2px; } .site-footer a { display: inline-flex; min-height: 44px; align-items: center; } }
@media (max-width: 359px) { .tile h3 { font-size: .8125rem; overflow-wrap: anywhere; hyphens: auto; } .tile { padding: 12px; } .about__more { width: 100px; } .wordmark--head { font-size: .8125rem; letter-spacing: .01em; } .bottom-bar__item { font-size: .75rem; } }
@media (max-width: 759px) { .vswitch__btn { opacity: .5; } }
/* header: wider pill and tighter links so all eight buttons plus the test button fit */
@media (min-width: 1360px) {
  .site-header { padding-inline: 18px; }
  .site-header__inner { gap: 10px; padding: 0 10px 0 18px; }
  .wordmark--head { font-size: clamp(1.4rem, 1.62vw, 2.15rem); letter-spacing: .04em; }
  .main-nav__link { padding: 0 7px; font-size: .875rem; } .main-nav__link::after { left: 7px; right: 7px; }
  .header-actions .btn--primary { padding-inline: 18px; letter-spacing: .06em; }
}
@media (max-width: 759px) { .stair:nth-of-type(n) { height: 68px; min-height: 0; padding: 6px 14px; } .stair__t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }
/* hero variants, polish: dawn = centred copy over a rising planet, the language card parks bottom-left; space = glass card */
html[data-hero="dawn"] .hero { background: radial-gradient(62% 40% at 50% 100%, rgba(255,222,160,.5) 0%, rgba(255,222,160,0) 72%), linear-gradient(180deg, #A9D3F2 0%, #D8EBFA 40%, #F4F8FD 82%, #FFF3DC 100%); }
@media (min-width: 1000px) {
  html[data-hero="dawn"] .globe__card { top: 452px; bottom: auto; left: clamp(24px, 4vw, 58px); right: auto; }
  html[data-hero="dawn"] .globe__nav { top: 372px; }
  html[data-hero="dawn"] .hero__title { font-size: clamp(2.6rem, 1.2rem + 2.9vw, 4rem); }
}
html[data-hero="space"] .globe__card { background: rgba(10,26,66,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(160,190,240,.28); color: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
html[data-hero="space"] .globe__card h3, html[data-hero="space"] .globe__card .globe__card-t { color: #fff; }
html[data-hero="space"] .globe__card p, html[data-hero="space"] .globe__card .globe__card-d { color: #cfdcf5; }
html[data-hero="space"] .globe__card b { color: #fff; } html[data-hero="space"] .globe__card > div > span { color: #cfdcf5; }
/* globe card pill: keep the label on one line */
.globe__more { white-space: nowrap; }
.footer__credits { margin-top: 6px; font-size: .75rem; opacity: .6; }

.footer__credits { padding-block: 0 14px; text-align: center; color: #fff; }

/* ===== iteration 9b: lighter scroll paint, varied reveals, selective hover fills, tighter gap before «Мови» ===== */
/* hero veil moves with transform (compositor) instead of repainting a gradient on every scroll tick */
.hero__veil { inset: auto 0 0 0; height: 150%; background: linear-gradient(0deg, var(--blue-900) 0%, var(--blue-900) 68%, rgba(16,32,64,0) 100%); transform: translate3d(0, calc((1 - var(--p, 0)) * 100%), 0); will-change: transform; }
/* pulses only on hover/focus, not endlessly */
@media (prefers-reduced-motion: no-preference) { .vcard__play::before, .story__play::before { animation: none; } .vcard__btn:hover .vcard__play::before, .vcard__btn:focus-visible .vcard__play::before, .story__btn:hover .story__play::before { animation: pulse 1.6s infinite; } }
/* levels: shorter pin so the scroll feels brisk */
.levels-scene { height: calc(100svh + 150vh); }
@media (max-width: 759px) { .levels-scene { height: calc(100svh + 105vh); } }
/* gap between «Формат навчання» and «Яку мову…» halved */
.sec--formats { padding-bottom: calc(var(--sec-y) * .5); } .sec--langs { padding-top: calc(var(--sec-y) * .5); }
/* different blocks reveal differently (animation, so hover lifts still work afterwards) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transition: none; transform: none; }
  .js .reveal:not(.is-in) { opacity: 0; }
  .js .reveal.is-in { opacity: 1; animation: rv-rise .7s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
  .js .tile.reveal.is-in { animation-name: rv-pop; }
  .js .lang.reveal.is-in { animation-name: rv-tilt; animation-delay: calc(var(--i, 0) * 90ms); }
  .js .why.reveal.is-in { animation-name: rv-side; }
  .js .why.reveal:nth-child(even).is-in { animation-name: rv-side-r; }
  .js .fmt.reveal.is-in { animation-name: rv-rise-big; animation-delay: calc(var(--i, 0) * 110ms); }
  .js .teacher.reveal.is-in { animation-name: rv-blur; }
}
@keyframes rv-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes rv-rise-big { from { opacity: 0; transform: translateY(54px) scale(.97); } }
@keyframes rv-pop { from { opacity: 0; transform: scale(.88); } }
@keyframes rv-tilt { from { opacity: 0; transform: perspective(700px) rotateX(14deg) translateY(30px); } }
@keyframes rv-side { from { opacity: 0; transform: translateX(-40px); } }
@keyframes rv-side-r { from { opacity: 0; transform: translateX(40px); } }
@keyframes rv-blur { from { opacity: 0; filter: blur(10px); transform: translateY(12px); } }
/* hover: only some things fill; the rest lift, glow or underline */
.tile::before, .stair::before { transition: none; }
.tile:hover::before, .tile:focus-within::before, .stair:hover::before { clip-path: circle(0px at 50% 50%); }
.tile { transition: transform .45s var(--ease), border-color .4s, box-shadow .45s; }
.tile:hover { border-color: var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 0 0 1px rgba(201,162,77,.35), 0 0 36px rgba(201,162,77,.16); }
.tile:hover .tile__ic { background: rgba(201,162,77,.18); border-color: var(--gold); color: var(--gold-soft); }
.tile:hover .tile__num { color: var(--gold); }
.stair:hover .stair__code, .stair:hover .stair__t, .stair:hover .stair__n { color: inherit; }
.stair:not(.is-cur):hover .stair__code { color: var(--burgundy-700); }
.stair:not(.is-cur):hover { transform: translateY(calc((1 - var(--k)) * 46px - 6px)); }
.snake__card::before { transition: none; } .snake__card:hover::before { clip-path: circle(0px at 50% 50%); }
.snake__card:hover h3 { color: var(--burgundy-700); } .snake__card:hover p { color: var(--muted); } .snake__card:hover .snake__n { border-color: var(--burgundy-700); }
.snake__card--goal:hover h3 { color: #fff; } .snake__card--goal:hover p { color: var(--gold-soft); }
.snake__card:hover { box-shadow: 0 18px 40px rgba(16,32,64,.16); }

/* ===== iteration 10: about tiles — chaotic widths (one 12-col grid), four tiles are links with an arrow ===== */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about__grid .tiles { display: contents; }
.about__grid .tile { grid-column: span var(--spm, 1); min-height: 132px; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
  .about__grid .tile { grid-column: span var(--sp, 3); min-height: 168px; }
}
.tile__go { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--gold-soft); border: 1px solid rgba(232,212,168,.45); transition: transform .4s var(--ease), background .3s, color .3s; }
.tile__go::after { content: ""; position: absolute; inset: -400px; } /* whole tile is the hit area */
.tile__go .ic { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.tile--go:hover .tile__go, .tile__go:focus-visible { background: var(--gold); color: var(--blue-900); border-color: var(--gold); }
.tile--go:hover .tile__go .ic { transform: translate(3px, -3px); }
.tile--go { cursor: pointer; }
/* three dots: sit just outside the pill, always visible, no effect on layout */
.vswitch { right: -15px; }
.vswitch__btn { width: 14px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.72); color: var(--blue-700); opacity: .8; box-shadow: 0 2px 8px rgba(16,32,64,.12); }
@media (min-width: 1360px) { .vswitch { right: -17px; } .vswitch__btn { width: 16px; } }
.vswitch__menu { max-height: calc(100svh - 130px); overflow-y: auto; }
/* dawn: planet sits right of centre, the language card is compact and parks in the free sky at the left so the map stays fully visible */
@media (min-width: 1000px) {
  html[data-hero="dawn"] .globe__card { top: 440px; left: clamp(24px, 3.4vw, 50px); width: min(410px, 30vw); gap: 14px; padding: 12px 40px 14px 12px; }
  html[data-hero="dawn"] .globe__card img { width: 96px; min-height: 84px; }
  html[data-hero="dawn"] .globe__card b { font-size: 1.25rem; }
  html[data-hero="dawn"] .globe__card b .flag { width: 34px; height: 23px; }
  html[data-hero="dawn"] .globe__card > div > span { font-size: .875rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html[data-hero="dawn"] .globe__chips { display: none; }
  html[data-hero="dawn"] .globe__nav { left: 62%; }
}

/* ===== iteration 10: steps — roomy zigzag, the line winds through the centre of every card, big translucent gold numerals ===== */
.snake { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(44px, 9vw, 84px); max-width: 920px; margin-inline: auto; align-items: start; }
.snake .snake__card:nth-of-type(n) { grid-area: auto; grid-column: 1; margin: 0; padding: clamp(20px, 2.4vw, 30px); width: 80%; min-height: 0; }
.snake .snake__card:nth-of-type(odd) { margin-right: auto; margin-left: 0; }
.snake .snake__card:nth-of-type(even) { margin-left: auto; margin-right: 0; }
@media (min-width: 900px) { .snake .snake__card:nth-of-type(n) { width: 56%; } .snake { gap: 78px; } }
.snake .snake__n { position: static; width: auto; height: auto; margin: 0 0 4px; border: 0; border-radius: 0; background: none; display: block; font: 700 clamp(3.25rem, 2.4rem + 3.6vw, 5.25rem)/.85 var(--font-display); letter-spacing: -.03em; color: var(--gold); opacity: .5; transition: opacity .6s, transform .6s var(--ease); animation: none; }
.snake .snake__card.is-reached .snake__n { background: none; border: 0; color: var(--gold); opacity: .85; transform: scale(1.04); transform-origin: left bottom; animation: none; }
.snake .snake__card:hover .snake__n { border: 0; }
.snake .snake__n .ic { width: clamp(3rem, 2.2rem + 3vw, 4.5rem); height: clamp(3rem, 2.2rem + 3vw, 4.5rem); }
.snake .snake__card--goal .snake__n, .snake .snake__card--goal.is-reached .snake__n { background: none; color: var(--gold); }
.snake .burst i { left: 40px; top: 44px; }
.snake__base, .snake__fill { stroke-dasharray: 3 15; stroke-width: 5; }
.snake .snake__n .ic { display: block; margin: 0; }

/* ---------- results variant b: «Один екран» (html[data-results=b]) — title + tabs, one row of vertical videos, compact Google strip; all manual (swipe / arrows), no drift ---------- */
.res-b { display: none; }
html[data-results="b"] .results__old { display: none; }
html[data-results="b"] .res-b { display: grid; gap: clamp(12px, 2.2svh, 20px); --rb-gap: 16px; --rb-vh: clamp(190px, 27svh, 240px); }
html[data-results="b"] .sec--results { padding-block: clamp(20px, 3.6svh, 40px); }
.res-b__top { display: grid; gap: 12px; align-items: end; }
.res-b__head { display: grid; gap: 6px; }
.res-b__head .h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); }
.res-b__head .lead { font-size: clamp(.875rem, .8rem + .25vw, 1.0625rem); line-height: 1.45; max-width: 46em; }
.res-b__tools { display: flex; align-items: center; gap: 12px; }
.rb-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); flex: 1; }
.rb-tab { flex: 1; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--blue-700); font-weight: 700; white-space: nowrap; transition: background .3s, color .3s, box-shadow .3s; }
.rb-tab:hover:not([aria-selected="true"]) { color: var(--burgundy-700); }
.rb-tab[aria-selected="true"] { background: var(--burgundy-700); color: #fff; box-shadow: 0 6px 16px rgba(142,26,40,.28); }
.rb-nav { display: none; }
.rb-nav .carousel-nav__btn { width: 44px; height: 44px; }
.rb-panel { display: grid; gap: clamp(12px, 2.2svh, 20px); min-width: 0; }
@media (prefers-reduced-motion: no-preference) { .rb-panel:not([hidden]) { animation: rb-in .45s var(--ease) both; } }
@keyframes rb-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* video row */
.rb-vids { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 42vw, 190px); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px var(--gutter) 28px; margin: -10px calc(-1 * var(--gutter)) -28px; scroll-padding-inline: var(--gutter); }
.rb-vids::-webkit-scrollbar { display: none; }
.rb-vid { height: var(--rb-vh); scroll-snap-align: start; min-width: 0; }
.rb-vid__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--blue-900); color: #fff; text-align: left; box-shadow: 0 8px 20px rgba(16,32,64,.16); transition: transform .4s var(--ease), box-shadow .4s; }
.rb-vid__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .9s var(--ease); }
.rb-vid__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,32,64,.25) 0%, rgba(16,32,64,0) 28%, rgba(16,32,64,0) 40%, rgba(16,32,64,.92) 100%); }
.rb-vid__btn:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(16,32,64,.28); } .rb-vid__btn:hover img { transform: scale(1.05); }
.rb-vid__badge { position: absolute; z-index: 1; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: rgba(16,32,64,.72); font-size: .6875rem; font-weight: 700; }
.rb-vid__play { position: absolute; z-index: 1; left: 50%; top: 38%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--burgundy-700); box-shadow: 0 8px 22px rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.rb-vid__play .ic { width: 20px; height: 20px; margin-left: 2px; }
.rb-vid__btn:hover .rb-vid__play { transform: scale(1.1); }
.rb-vid__cap { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 3px; }
.rb-vid__cap b { font: 600 .875rem/1.2 var(--font-display); color: #fff; }
.rb-vid__win::before { content: "\1F3C6\00a0"; }
.rb-vid__win { font-size: .75rem; line-height: 1.3; font-weight: 600; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Google strip */
.rb-g { display: grid; gap: 10px; padding: 12px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(16,32,64,.05); min-width: 0; }
.rb-g__head { display: flex; align-items: center; gap: 10px; }
.rb-g__logo { width: 30px; height: 30px; flex: none; }
.rb-g__meta { display: grid; gap: 0; line-height: 1.25; min-width: 0; }
.rb-g__meta b { color: var(--blue-900); font-size: .875rem; }
.rb-g__score { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .75rem; }
.rb-g__score strong { font-size: 1.0625rem; color: var(--blue-900); }
.rb-g__tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.rb-g__link .ic { width: 16px; height: 16px; }
.rb-g__list { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 320px); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -12px; padding: 2px 12px 6px; scroll-padding-inline: 12px; }
.rb-g__list::-webkit-scrollbar { display: none; }
.rb-g__list .grev { padding: 12px; gap: 6px; }
.rb-g__list .grev:hover { transform: none; box-shadow: none; }
.rb-g__list .grev__ava { width: 32px; height: 32px; font-size: .875rem; }
.rb-g__list .grev p { font-size: .8125rem; line-height: 1.45; }
.res-b .stars--sm .ic { width: 14px; height: 14px; }
.res-b__top ~ .rb-panel :focus-visible, .res-b :focus-visible { outline-offset: -3px; }
@media (max-width: 699px) and (max-height: 899px), (min-width: 700px) and (max-width: 1099px) and (max-height: 820px) { .res-b__head .lead { display: none; } }
@media (max-width: 699px) {
  .rb-g__link { width: 40px; min-height: 40px; padding: 0; justify-content: center; } .rb-g__cta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rb-g__score .muted { font-size: .75rem; }
}
@media (min-width: 700px) {
  html[data-results="b"] .res-b { --rb-vh: clamp(240px, 36svh, 340px); }
  .res-b__top { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
  .res-b__tools { justify-content: flex-end; }
  .rb-tabs { flex: none; } .rb-tab { padding: 0 22px; }
  .rb-nav--v, .rb-nav--g { display: flex; } .rb-nav.is-idle { visibility: hidden; }
  .rb-vids { padding-inline: 2px; margin-inline: -2px; position: relative; scroll-padding-inline: 2px; grid-auto-columns: calc((100% - 2 * var(--rb-gap)) / 3); gap: var(--rb-gap); }
  .rb-vids.is-few { grid-auto-columns: calc((100% - 2 * var(--rb-gap)) / 3); justify-content: center; }
  .rb-vid__cap b { font-size: 1rem; } .rb-vid__win { font-size: .8125rem; }
  .rb-vid__play { width: 56px; height: 56px; margin: -28px 0 0 -28px; } .rb-vid__play .ic { width: 24px; height: 24px; }
  .rb-vid__badge { left: 12px; top: 12px; padding: 4px 10px; font-size: .75rem; } .rb-vid__cap { left: 14px; right: 14px; bottom: 14px; }
  .rb-g { padding: 14px 18px; gap: 12px; }
  .rb-g__list { grid-auto-columns: calc((100% - 12px) / 2); margin-inline: -4px; padding-inline: 4px; scroll-padding-inline: 4px; }
}
@media (min-width: 1100px) {
  .rb-vids, .rb-vids.is-few { grid-auto-columns: calc((100% - 3 * var(--rb-gap)) / 4); }
  .rb-g__list { grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; }
}
@media (max-width: 399px) { .rb-tab { padding: 0 8px; font-size: .875rem; } }
@media (max-height: 520px) and (min-width: 700px) { html[data-results="b"] .res-b { --rb-vh: 230px; } }

/* formats: larger titles, no inner white outline on the photo */
.fmt__front::before { display: none; }
.fmt__bar .fmt__title { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.1; }
/* variant a on phones: less cramped (smaller video cards, tighter gaps); markup and selectors untouched */
@media (max-width: 699px) {
  .results__old .sec-head { margin-bottom: 16px; } .results__old .sec-head .lead { font-size: .9375rem; line-height: 1.5; }
  .results__old .marquee { padding-block: 12px 4px; }
  .results__old .vcard { width: clamp(160px, 48vw, 200px); }
  .results__old .vcard__btn { border-radius: 20px; }
  .results__old .vcard__badge { left: 8px; top: 8px; padding: 3px 8px; font-size: .6875rem; }
  .results__old .vcard__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; } .results__old .vcard__play .ic { width: 22px; height: 22px; }
  .results__old .vcard__cap { left: 12px; right: 12px; bottom: 12px; gap: 4px; }
  .results__old .vcard__cap .story__name { font-size: .9375rem; } .results__old .vcard__win { font-size: .8125rem; line-height: 1.3; }
  .results__old .greviews { margin-top: 12px; padding: 14px; } .results__old .greviews__head { margin-bottom: 12px; }
  .results__old .grev { padding: 14px; } .results__old .grev p { font-size: .875rem; }
}

/* ============================================================
   7. why — варіанти без фото (data-why = a | b | c; d = фото-сітка за замовчуванням)
   ============================================================ */
.why-v { display: none; }
html[data-why="a"] .why-v--a, html[data-why="b"] .why-v--b, html[data-why="c"] .why-v--c { display: block; }
html[data-why="a"] .why-grid, html[data-why="b"] .why-grid, html[data-why="c"] .why-grid,
html[data-why="a"] .why-grid + .swipe-dots, html[data-why="b"] .why-grid + .swipe-dots, html[data-why="c"] .why-grid + .swipe-dots { display: none; }
html[data-why="c"] #why .sec-head { display: none; }
.why-v .emo { line-height: 1; }

/* ---------- A: вибір переваги (tablist + жива сцена) ---------- */
.wa { display: grid; gap: 16px; min-width: 0; }
.wa__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter); scroll-padding-inline: var(--gutter); }
.wa__tabs::-webkit-scrollbar { display: none; }
.wa__tab { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; flex: none; min-height: 48px; padding: 6px 16px 6px 6px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; color: var(--blue-900); font: 600 .9375rem/1.25 var(--font-display); text-align: left; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.wa__emo { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sky-50); font-size: 1.125rem; transition: transform .35s var(--ease), background-color .25s; }
.wa__tab:hover { background: var(--sky-50); border-color: var(--blue-300); }
.wa__tab[aria-selected="true"] { background: var(--blue-900); border-color: var(--blue-900); color: #fff; box-shadow: var(--shadow); }
.wa__tab[aria-selected="true"] .wa__emo { background: #fff; transform: scale(1.08) rotate(-6deg); }
.wa__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.wa__stage { position: relative; display: grid; border-radius: var(--r-dir); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.wa__panel { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s .35s; }
.wa__panel.is-active { visibility: visible; opacity: 1; transition-delay: 0s; }
.wa__art { position: relative; flex: 1 1 auto; min-height: 300px; overflow: hidden; color: #fff;
  background: radial-gradient(60% 90% at 88% 8%, rgba(201,162,77,.30), transparent 62%), radial-gradient(60% 90% at 0% 100%, rgba(168,36,52,.38), transparent 62%), linear-gradient(150deg, var(--blue-900), var(--blue-700) 70%, #234a86); }
.wa__panel[data-s="3"] .wa__art { background: radial-gradient(60% 90% at 50% 45%, rgba(201,162,77,.22), transparent 62%), linear-gradient(150deg, var(--burgundy-800), #4a1230 60%, var(--blue-900)); }
.wa__panel[data-s="5"] .wa__art { background: radial-gradient(50% 70% at 80% 10%, rgba(255,255,255,.9), transparent 60%), linear-gradient(180deg, var(--sky-100), var(--sky-200)); color: var(--blue-900); }
.wa__panel[data-s="6"] .wa__art { background: radial-gradient(60% 80% at 20% 20%, rgba(201,162,77,.25), transparent 60%), linear-gradient(150deg, var(--blue-700), var(--blue-500)); }
.wa__text { display: grid; gap: 6px; padding: 20px 22px 24px; background: #fff; }
.wa__no { font: 700 .75rem/1 var(--font-display); letter-spacing: .12em; color: var(--burgundy-700); }
.wa__text h3 { font: 600 clamp(1.25rem, 1.05rem + .8vw, 1.5rem)/1.25 var(--font-display); color: var(--blue-900); }
.wa__text p { color: var(--muted); font-size: 1rem; max-width: 46em; }
.wa__pause { position: absolute; right: 12px; top: 12px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); background: rgba(16,32,64,.62); color: #fff; transition: background-color .2s; }
.wa__pause:hover { background: var(--blue-900); }
.wa__pause .ic { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .wa { grid-template-columns: minmax(300px, 370px) minmax(0, 1fr); gap: 28px; align-items: stretch; }
  .wa__tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 10px; }
  .wa__tab { flex: 1 1 0; white-space: normal; border-radius: 22px; padding: 8px 18px 8px 10px; gap: 14px; font-size: 1rem; }
  .wa__emo { width: 48px; height: 48px; font-size: 1.5rem; }
  .wa__art { min-height: 340px; }
  .wa__text { padding: 22px 28px 28px; }
}

/* scene primitives */
.sc { position: absolute; inset: 0; }
.wave { display: flex; align-items: center; gap: 3px; height: 24px; }
.wave i { width: 4px; height: 100%; border-radius: 2px; background: currentColor; transform: scaleY(.45); }
.wave i:nth-child(2) { transform: scaleY(.8); } .wave i:nth-child(3) { transform: scaleY(.6); } .wave i:nth-child(4) { transform: scaleY(1); } .wave i:nth-child(5) { transform: scaleY(.5); } .wave i:nth-child(6) { transform: scaleY(.75); }
.dots { display: flex; gap: 5px; align-items: center; height: 24px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* A1 — «Ми вчимо говорити» */
.sc1 { display: grid; place-items: center; }
.sc1__col { display: grid; gap: 10px; align-content: center; width: min(400px, 84%); }
.sc1__b { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 18px; border-radius: 22px; font-size: 1.375rem; box-shadow: 0 10px 22px rgba(0,0,0,.22); }
.sc1__b--l { justify-self: start; background: #fff; color: var(--blue-900); border-bottom-left-radius: 6px; }
.sc1__b--r { justify-self: end; background: var(--burgundy-600); color: #fff; border-bottom-right-radius: 6px; }
.sc1__mic { display: none; position: absolute; left: 8%; top: 50%; translate: 0 -50%; font-size: 6.5rem; filter: drop-shadow(0 12px 18px rgba(0,0,0,.3)); }
@media (min-width: 700px) { .sc1__mic { display: block; } .sc1__col { margin-left: 22%; } }

/* A2 — «Не привʼязуємося до одного підручника» */
.sc2 { display: grid; grid-template-columns: repeat(2, auto); gap: 12px; place-content: center; justify-content: center; padding: 16px; }
.sc2__c { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px; background: #fff; color: var(--blue-900); font: 600 .875rem/1.2 var(--font-display); box-shadow: 0 10px 24px rgba(0,0,0,.28); transform: rotate(var(--r)); }
.sc2__c b { font-size: 1.5rem; flex: none; }
.sc2__c--sky { background: var(--sky-100); } .sc2__c--gold { background: var(--gold-soft); } .sc2__c--bur { background: var(--burgundy-50); }
@media (min-width: 700px) { .sc2 { grid-template-columns: repeat(3, auto); gap: 16px 18px; } .sc2__c { padding: 14px 18px; font-size: .9375rem; } }

/* A3 — «Програма під реальну мету» */
.sc3 { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-content: center; padding: 14px; }
.sc3__t { position: relative; width: 100%; height: 132px; display: grid; place-items: center; margin-bottom: 4px; }
.sc3__svg, .sc3__dart { position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; translate: -50% -50%; overflow: visible; }
.sc3__svg .r { transform-box: fill-box; transform-origin: center; }
.sc3__svg .r1 { fill: #fff; } .sc3__svg .r2 { fill: var(--burgundy-600); } .sc3__svg .r3 { fill: #fff; } .sc3__svg .r4 { fill: var(--gold); }
.sc3__c { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; background: #fff; color: var(--blue-900); font: 700 .875rem/1 var(--font-display); box-shadow: 0 8px 18px rgba(0,0,0,.28); }
.sc3__c b { font-size: 1.125rem; }
@media (min-width: 700px) {
  .sc3 { display: block; padding: 0; }
  .sc3__t { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 190px; height: 190px; margin: 0; }
  .sc3__svg, .sc3__dart { width: 190px; height: 190px; }
  .sc3__c { position: absolute; translate: -50% -50%; font-size: .9375rem; padding: 10px 16px; }
  .sc3__c:nth-child(2) { left: 20%; top: 17%; } .sc3__c:nth-child(3) { left: 11%; top: 50%; } .sc3__c:nth-child(4) { left: 20%; top: 83%; }
  .sc3__c:nth-child(5) { left: 80%; top: 17%; } .sc3__c:nth-child(6) { left: 89%; top: 50%; } .sc3__c:nth-child(7) { left: 80%; top: 83%; }
}

/* A4 — «Ми показуємо прогрес» */
.sc4 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px 20px; }
.sc4__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; order: 2; width: min(360px, 100%); }
.sc4__list li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.14); color: #fff; font: 600 .875rem/1.2 var(--font-display); }
.sc4__list li.is-next { background: var(--gold-grad); color: var(--blue-900); }
.sc4__chart { position: relative; width: min(300px, 90%); height: 120px; margin-top: 14px; }
.sc4__bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 7%; }
.sc4__bars i { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #fff, var(--sky-200)); transform-origin: bottom; }
.sc4__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sc4__line path { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.sc4__end { position: absolute; right: -10px; top: -28px; font-size: 1.875rem; }
@media (min-width: 700px) {
  .sc4 { flex-direction: row; gap: 44px; }
  .sc4__list { order: 0; grid-template-columns: 1fr; width: auto; min-width: 190px; gap: 10px; }
  .sc4__list li { padding: 11px 16px; font-size: .9375rem; }
  .sc4__chart { width: 300px; height: 190px; margin: 0; }
}

/* A5 — «Мова для реального життя» */
.sc5__s { position: absolute; left: var(--x); top: var(--y); display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--blue-900); font: 700 .875rem/1 var(--font-display); box-shadow: 0 10px 22px rgba(16,32,64,.2); }
.sc5__s b { font-size: 1.25rem; }
.sc5__s--a { background: var(--blue-900); color: #fff; } .sc5__s--b { background: var(--gold-soft); } .sc5__s--c { background: var(--burgundy-700); color: #fff; }
.sc5__s--e { width: 48px; height: 48px; padding: 0; justify-content: center; } .sc5__s--e b { font-size: 1.5rem; }
.sc5__city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; color: rgba(44,90,160,.32); }
@media (min-width: 700px) { .sc5__s { padding: 10px 18px; font-size: 1rem; } .sc5__s--e { width: 56px; height: 56px; } .sc5__s--e b { font-size: 1.75rem; } .sc5__s--a { --x: 12% !important; --y: 14% !important; } .sc5__s--b { --x: 56% !important; --y: 10% !important; } .sc5__s--c { --x: 34% !important; --y: 36% !important; } }

/* A6 — «Усе під рукою» */
.sc6 { display: grid; place-items: end center; }
.sc6__ph { position: relative; width: 214px; height: 270px; margin-bottom: -40px; padding: 26px 9px 9px; border-radius: 34px 34px 0 0; background: var(--blue-900); border: 3px solid var(--gold-soft); border-bottom: 0; box-shadow: 0 -12px 40px rgba(0,0,0,.3); }
.sc6__notch { position: absolute; left: 50%; top: 8px; translate: -50% 0; width: 54px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.28); }
.sc6__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 100%; padding: 8px; border-radius: 22px 22px 0 0; background: var(--sky-50); }
.sc6__grid span { display: grid; place-content: center; justify-items: center; gap: 3px; padding: 6px 4px; border-radius: 14px; background: #fff; color: var(--blue-900); font: 600 .75rem/1.15 var(--font-display); text-align: center; box-shadow: 0 3px 8px rgba(16,32,64,.1); }
.sc6__grid b { font-size: 1.5rem; }
.sc6__pill { position: absolute; right: 5%; top: 12%; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--gold-grad); color: var(--blue-900); font: 700 .875rem/1 var(--font-display); box-shadow: 0 8px 18px rgba(0,0,0,.28); }
@media (min-width: 700px) { .sc6__pill { right: auto; left: 16%; top: 34%; font-size: 1rem; padding: 10px 18px; } .sc6__ph { width: 230px; height: 290px; } }

/* A — анімації (лише transform/opacity), тільки для активної панелі */
@keyframes wa-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wa-pop { from { opacity: 0; transform: translateY(16px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes wa-fly { from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(calc(var(--r) * 4)) scale(.5); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes wa-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wa-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes wa-ring { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes wa-dart { from { opacity: 0; transform: translate(70px, -70px); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes wa-hit { 0%, 100% { transform: none; } 40% { transform: scale(1.07); } }
@keyframes wa-wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes wa-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-5px); opacity: 1; } }
@keyframes wa-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes wa-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@keyframes wa-rise { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .wa.is-auto .wa__tab[aria-selected="true"] .wa__bar { animation: wa-prog 6s linear forwards; }
  .wa:not(.is-vis) .wa__bar, .wa:hover .wa__bar, .wa:focus-within .wa__bar { animation-play-state: paused; }
  .wa__panel.is-active .sc1__b { animation: wa-pop .55s var(--ease) var(--d) both; }
  .wa__panel.is-active .sc1__mic { animation: wa-bob 3.6s ease-in-out infinite; }
  .wa__panel.is-active .wave i { animation: wa-wave 1s ease-in-out infinite; transform-origin: center; }
  .wa__panel.is-active .wave i:nth-child(2) { animation-delay: .12s; } .wa__panel.is-active .wave i:nth-child(3) { animation-delay: .24s; } .wa__panel.is-active .wave i:nth-child(4) { animation-delay: .36s; } .wa__panel.is-active .wave i:nth-child(5) { animation-delay: .48s; } .wa__panel.is-active .wave i:nth-child(6) { animation-delay: .6s; }
  .wa__panel.is-active .dots i { animation: wa-dot 1s ease-in-out infinite; }
  .wa__panel.is-active .dots i:nth-child(2) { animation-delay: .15s; } .wa__panel.is-active .dots i:nth-child(3) { animation-delay: .3s; }
  .wa__panel.is-active .sc2__c { animation: wa-fly .75s var(--ease) var(--d) both; }
  .wa__panel.is-active .sc3__svg .r { animation: wa-ring .6s var(--ease) both; }
  .wa__panel.is-active .sc3__svg .r2 { animation-delay: .1s; } .wa__panel.is-active .sc3__svg .r3 { animation-delay: .2s; } .wa__panel.is-active .sc3__svg .r4 { animation-delay: .3s; }
  .wa__panel.is-active .sc3__dart { animation: wa-dart .6s cubic-bezier(.3,1.2,.4,1) 1.3s both; }
  .wa__panel.is-active .sc3__svg { animation: wa-hit .5s var(--ease) 1.8s both; }
  .wa__panel.is-active .sc3__c { animation: wa-pop .5s var(--ease) var(--d) both; }
  .wa__panel.is-active .sc4__bars i { animation: wa-grow .8s var(--ease) var(--d) both; }
  .wa__panel.is-active .sc4__line path { animation: wa-draw 1.4s ease-out .5s both; }
  .wa__panel.is-active .sc4__end { animation: wa-pop .6s var(--ease) 1.9s both; }
  .wa__panel.is-active .sc4__list li { animation: wa-pop .5s var(--ease) var(--d) both; }
  .wa__panel.is-active .sc5__s { animation: wa-pop .55s var(--ease) var(--d) both, wa-float 4.5s ease-in-out calc(var(--d) + .6s) infinite; }
  .wa__panel.is-active .sc5__s:nth-of-type(even) { animation-duration: .55s, 5.5s; }
  .wa__panel.is-active .sc6__ph { animation: wa-rise .8s var(--ease) both; }
  .wa__panel.is-active .sc6__grid span { animation: wa-pop .45s var(--ease) calc(var(--d) + .3s) both; }
  .wa__panel.is-active .sc6__pill { animation: wa-pop .5s var(--ease) 1.2s both, wa-float 4s ease-in-out 1.8s infinite; }
}

/* ---------- B: мозаїка без фото ---------- */
.wb { display: grid; gap: 16px; }
.wb__c { position: relative; display: flex; flex-direction: column; min-height: 300px; border-radius: var(--r-dir); overflow: hidden; isolation: isolate; color: var(--blue-900); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.wb__art { position: relative; flex: 1 1 auto; min-height: 170px; }
.wb__txt { position: relative; z-index: 2; display: grid; gap: 6px; padding: 4px 22px 24px; }
.wb__txt h3 { font: 600 1.1875rem/1.28 var(--font-display); }
.wb__txt p { font-size: .9375rem; line-height: 1.55; }
.wb__c--1 { background: radial-gradient(70% 50% at 80% 10%, rgba(201,162,77,.3), transparent 60%), linear-gradient(160deg, var(--blue-900), var(--blue-700)); color: #fff; border-color: transparent; }
.wb__c--2 { background: linear-gradient(135deg, var(--sky-100), #fff 80%); }
.wb__c--3 { background: radial-gradient(60% 50% at 20% 0%, rgba(233,207,140,.28), transparent 60%), linear-gradient(160deg, var(--burgundy-600), var(--burgundy-800)); color: #fff; border-color: transparent; }
.wb__c--4 { background: linear-gradient(140deg, #F1DFA6, var(--gold)); border-color: transparent; }
.wb__c--5 { background: linear-gradient(180deg, var(--sky-50), var(--sky-200)); }
.wb__c--6 { background: radial-gradient(60% 60% at 90% 0%, rgba(201,162,77,.3), transparent 60%), linear-gradient(150deg, var(--blue-500), var(--blue-700)); color: #fff; border-color: transparent; }
.wb__c--1 p, .wb__c--3 p, .wb__c--6 p { color: rgba(255,255,255,.9); }
.wb__c--2 p, .wb__c--5 p { color: var(--muted); }
.wb__c--4 p { color: var(--blue-900); }
@media (min-width: 700px) { .wb { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) {
  .wb { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .wb__c--1 { grid-column: 1 / 3; grid-row: 1 / 3; } .wb__c--2 { grid-column: 3 / 7; } .wb__c--3 { grid-column: 3 / 5; } .wb__c--4 { grid-column: 5 / 7; } .wb__c--5 { grid-column: 1 / 4; } .wb__c--6 { grid-column: 4 / 7; }
  .wb__c--2, .wb__c--5, .wb__c--6 { flex-direction: row; min-height: 230px; }
  .wb__c--2 .wb__txt, .wb__c--5 .wb__txt, .wb__c--6 .wb__txt { order: -1; flex: 1 1 52%; align-content: center; padding: 24px 8px 24px 26px; }
  .wb__c--2 .wb__art, .wb__c--5 .wb__art, .wb__c--6 .wb__art { flex: 1 1 48%; min-height: 0; }
  .wb__txt h3 { font-size: 1.25rem; }
}
/* hover-ефекти: transition + spring, стан «on» = :hover або .is-on (тап/демо при появі) */
.wb__c { --sp: cubic-bezier(.34, 1.56, .64, 1); }
/* B1: говорить */
.wb__big { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; font-size: 6.5rem; transition: transform .5s var(--sp); filter: drop-shadow(0 12px 18px rgba(0,0,0,.3)); }
.wb__bub { position: absolute; display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 20px; font-size: 1.375rem; box-shadow: 0 10px 20px rgba(0,0,0,.25); opacity: .55; transform: translateY(14px) scale(.7); transition: transform .55s var(--sp), opacity .3s; }
.wb__bub--1 { left: 8%; top: 14%; background: #fff; color: var(--blue-900); border-bottom-left-radius: 5px; transition-delay: .05s; }
.wb__bub--2 { right: 8%; top: 32%; background: var(--burgundy-600); color: #fff; border-bottom-right-radius: 5px; transition-delay: .2s; }
.wb__bub--3 { left: 14%; top: 56%; background: var(--gold-soft); color: var(--blue-900); border-bottom-left-radius: 5px; transition-delay: .35s; }
.wb__c:is(:hover, .is-on) .wb__bub { opacity: 1; transform: none; }
.wb__c:is(:hover, .is-on) .wb__big { transform: scale(1.06) rotate(-4deg); }
/* B2: монета перевертається + чипи розкладаються */
.wb__c--2 .wb__art { perspective: 700px; }
.wb__coin { position: absolute; left: 50%; top: 44%; translate: -50% -50%; width: 96px; height: 96px; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.wb__face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 26px; font-size: 3.25rem; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 14px 30px rgba(16,32,64,.22); }
.wb__face--f { background: #fff; } .wb__face--b { background: var(--gold-grad); transform: rotateY(180deg); }
.wb__chip { position: absolute; padding: 8px 14px; border-radius: 999px; background: var(--blue-900); color: #fff; font: 600 .8125rem/1 var(--font-display); box-shadow: 0 8px 18px rgba(16,32,64,.2); opacity: .6; transform: scale(.88); transition: transform .6s var(--sp), opacity .3s; white-space: nowrap; }
.wb__chip--1 { left: 6%; top: 10%; transition-delay: .1s; } .wb__chip--2 { right: 6%; top: 26%; background: var(--burgundy-700); transition-delay: .2s; } .wb__chip--3 { left: 10%; bottom: 10%; background: #fff; color: var(--blue-900); transition-delay: .3s; }
.wb__c--2:is(:hover, .is-on) .wb__coin { transform: rotateY(180deg); }
.wb__c--2:is(:hover, .is-on) .wb__chip { opacity: 1; transform: rotate(-5deg) scale(1); } .wb__c--2:is(:hover, .is-on) .wb__chip--2 { transform: rotate(4deg) scale(1); }
/* B3: дротик влучає в ціль, піктограми кружляють */
.wb__tgt, .wb__dart { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 104px; height: 104px; overflow: visible; }
.wb__tgt circle:nth-child(1) { fill: #fff; } .wb__tgt circle:nth-child(2) { fill: var(--burgundy-600); } .wb__tgt circle:nth-child(3) { fill: #fff; } .wb__tgt .dot { fill: var(--gold); }
.wb__dart { transform: translate(52px, -48px) rotate(8deg); transition: transform .55s cubic-bezier(.5, 1.7, .5, 1) .15s; }
.wb__orbit { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 172px; height: 172px; transition: transform 1s var(--ease); }
.wb__orbit i { position: absolute; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.95); font-size: 1.1rem; transition: transform 1s var(--ease); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.wb__orbit i:nth-child(1) { left: 69px; top: -6px; } .wb__orbit i:nth-child(2) { right: -6px; top: 69px; } .wb__orbit i:nth-child(3) { left: 69px; bottom: -6px; } .wb__orbit i:nth-child(4) { left: -6px; top: 69px; }
.wb__c--3:is(:hover, .is-on) .wb__orbit { transform: rotate(360deg); } .wb__c--3:is(:hover, .is-on) .wb__orbit i { transform: rotate(-360deg); }
.wb__c--3:is(:hover, .is-on) .wb__dart { transform: none; }
/* B4: стовпчики ростуть */
.wb__bars { position: absolute; left: 12%; right: 26%; bottom: 0; top: 22%; display: flex; align-items: flex-end; gap: 9px; }
.wb__bars i { flex: 1; height: var(--h); border-radius: 9px 9px 0 0; background: var(--blue-900); transform: scaleY(.4); transform-origin: bottom; transition: transform .8s var(--sp) calc(var(--k) * 1s - .1s); }
.wb__flag { position: absolute; right: 9%; top: 16%; font-size: 2.5rem; opacity: .55; transform: translateY(26px) scale(.8); transition: transform .8s var(--sp) .55s, opacity .4s .55s; }
.wb__c--4:is(:hover, .is-on) .wb__bars i { transform: none; } .wb__c--4:is(:hover, .is-on) .wb__flag { opacity: 1; transform: none; }
/* B5: стікери виринають з міста */
.wb__city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 48%; color: rgba(44,90,160,.34); transition: transform .7s var(--ease); }
.wb__st { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; font-size: 1.75rem; box-shadow: 0 10px 20px rgba(16,32,64,.2); transform: translateY(26px) scale(.8); transition: transform .65s var(--sp); }
.wb__st--1 { left: 12%; top: 18%; transition-delay: .05s; } .wb__st--2 { left: 34%; top: 40%; transition-delay: .15s; } .wb__st--3 { left: 58%; top: 14%; transition-delay: .25s; } .wb__st--4 { left: 78%; top: 38%; transition-delay: .35s; }
.wb__c--5:is(:hover, .is-on) .wb__st--1 { transform: translateY(-6px) rotate(-12deg); } .wb__c--5:is(:hover, .is-on) .wb__st--2 { transform: translateY(-14px) rotate(9deg); } .wb__c--5:is(:hover, .is-on) .wb__st--3 { transform: translateY(-2px) rotate(-8deg); } .wb__c--5:is(:hover, .is-on) .wb__st--4 { transform: translateY(-12px) rotate(12deg); }
.wb__c--5:is(:hover, .is-on) .wb__city { transform: translateY(8px); }
/* B6: шар виїжджає на телефоні */
.wb__ph { position: absolute; left: 50%; bottom: -34px; translate: -50% 0; width: 148px; height: 190px; padding: 22px 8px 8px; border-radius: 28px 28px 0 0; background: var(--blue-900); border: 3px solid var(--gold-soft); border-bottom: 0; }
.wb__ph::before { content: ""; position: absolute; left: 50%; top: 7px; translate: -50% 0; width: 40px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.28); }
.wb__home { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; height: 100%; padding: 7px; border-radius: 18px 18px 0 0; background: var(--sky-50); }
.wb__home i { display: grid; place-items: center; border-radius: 12px; background: #fff; font-size: 1.375rem; box-shadow: 0 2px 6px rgba(16,32,64,.1); }
.wb__sheet { position: absolute; left: 50%; bottom: 0; translate: -50% 0; z-index: 2; width: min(210px, 84%); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; border-radius: 20px 20px 0 0; background: #fff; color: var(--blue-900); box-shadow: 0 -10px 30px rgba(0,0,0,.25); transform: translateY(105%); transition: transform .7s var(--sp); }
.wb__sheet b { display: grid; place-items: center; min-height: 34px; padding: 4px 6px; border-radius: 10px; background: var(--sky-100); font: 600 .75rem/1.1 var(--font-display); text-align: center; }
.wb__sheet b:nth-child(4) { background: var(--gold-soft); }
.wb__c--6:is(:hover, .is-on) .wb__sheet { transform: none; }
@media (max-width: 999px) { .wb__c--6 .wb__art { min-height: 190px; } }
@media (prefers-reduced-motion: no-preference) {
  .wb__c:is(:hover, .is-on) .wave i { animation: wa-wave 1s ease-in-out infinite; transform-origin: center; }
  .wb__c:is(:hover, .is-on) .wave i:nth-child(2) { animation-delay: .15s; } .wb__c:is(:hover, .is-on) .wave i:nth-child(3) { animation-delay: .3s; } .wb__c:is(:hover, .is-on) .wave i:nth-child(4) { animation-delay: .45s; }
}
@media (prefers-reduced-motion: reduce) {
  .wb__bub, .wb__chip, .wb__st, .wb__flag { opacity: 1; transform: none; } .wb__bars i { transform: none; } .wb__dart { transform: none; } .wb__sheet { transform: none; position: static; translate: none; width: auto; margin: 0 14px 12px; border-radius: 14px; }
  .wb__c *, .wb__c { transition: none !important; }
}

/* ---------- C: історія при прокрутці ---------- */
.wc { display: grid; gap: 22px; min-width: 0; }
.wc__side { min-width: 0; }
.wc__count, .wc__big, .wc__dots { display: none; }
.wc__h { text-align: center; text-wrap: balance; }
.wc__list { position: relative; display: grid; gap: 18px; padding-left: 62px; min-width: 0; }
.wc__track { position: absolute; left: 22px; top: var(--y0, 28px); height: var(--y1, 0px); width: 4px; margin-left: -2px; border-radius: 2px; background: var(--sky-200); pointer-events: none; }
.wc__fill { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(var(--burgundy-600), var(--gold)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.wc__card { position: relative; display: block; min-width: 0; padding: 22px 20px 22px; border-radius: 24px; background: var(--bg-soft); border: 1.5px solid var(--line); transition: background-color .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease); }
.wc__badge { position: absolute; left: -62px; top: 6px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sky-100); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); font-size: 1.25rem; transition: background .4s, transform .5s var(--ease), box-shadow .4s; }
.wc__body { position: relative; display: grid; gap: 8px; }
.wc__no { font: 700 .75rem/1 var(--font-display); letter-spacing: .14em; color: var(--burgundy-700); }
.wc__body h3 { font: 600 1.25rem/1.25 var(--font-display); color: var(--blue-900); text-wrap: balance; }
.wc__body p { font-size: 1rem; color: var(--muted); }
.wc__card.is-active { background: #fff; border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateX(4px); }
.wc__card.is-active .wc__badge { background: var(--gold-grad); transform: scale(1.12); box-shadow: 0 0 0 2px var(--gold), 0 8px 18px rgba(201,162,77,.4); }
.wc__card.is-past .wc__badge { background: var(--gold-soft); }
@media (min-width: 900px) {
  .wc { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 56px; align-items: start; }
  .wc__stick { position: sticky; top: calc(var(--header-h) + 36px); display: grid; gap: 22px; padding: 32px 30px 30px; border-radius: var(--r-dir); color: #fff;
    background: radial-gradient(70% 50% at 100% 0%, rgba(201,162,77,.28), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(168,36,52,.4), transparent 60%), linear-gradient(155deg, var(--blue-900), var(--blue-700)); box-shadow: var(--shadow-lg); }
  .wc__h { text-align: left; color: #fff; font-size: clamp(1.625rem, 1.2rem + 1vw, 2.125rem); }
  .wc__count { display: flex; align-items: baseline; gap: 6px; font: 700 clamp(3.5rem, 2rem + 4vw, 5.5rem)/1 var(--font-display); font-variant-numeric: lining-nums tabular-nums; }
  .wc__cur { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
  .wc__sep, .wc__tot { color: rgba(255,255,255,.62); font-size: .6em; }
  .wc__big { position: relative; display: block; height: 92px; }
  .wc__big .emo { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 28px; background: rgba(255,255,255,.12); font-size: 3.25rem; opacity: 0; transform: translateY(14px) scale(.8); transition: opacity .35s, transform .5s var(--ease); }
  .wc__big .emo.is-on { opacity: 1; transform: none; }
  .wc__dots { display: flex; gap: 8px; }
  .wc__dots i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); transition: background-color .4s; }
  .wc__dots i.is-on { background: var(--gold); }
  .wc__list { padding-left: 0; gap: 26px; }
  .wc__track { display: none; }
  .wc__card { display: flex; align-items: center; gap: 28px; min-height: clamp(230px, 36vh, 300px); padding: 30px 34px; border-radius: 30px; overflow: hidden; }
  .wc__badge { position: static; flex: none; width: 84px; height: 84px; font-size: 2.5rem; border-width: 4px; }
  .wc__body { gap: 10px; }
  .wc__body h3 { font-size: clamp(1.375rem, 1rem + .9vw, 1.75rem); }
  .wc__body p { font-size: 1.0625rem; max-width: 34em; }
  .wc__no { font-size: .8125rem; }
  .wc__card.is-active { transform: translateX(-6px) scale(1.01); }
}
@media (prefers-reduced-motion: reduce) { .wc__card, .wc__badge, .wc__big .emo, .wc__dots i { transition: none; } .wc__card.is-active, .wc__card.is-active .wc__badge { transform: none; } }
.sc6__pill--r { right: 5%; left: auto; top: 46%; background: #fff; }
@media (min-width: 700px) { .sc6__pill--r { right: 16%; left: auto; top: 52%; } }
@media (max-width: 699px) { .sc6__pill--r { display: none; } }
.wa__pause { top: auto; bottom: 14px; right: 14px; border: 1.5px solid var(--line); background: var(--sky-50); color: var(--blue-900); }
.wa__pause:hover { background: var(--sky-100); border-color: var(--blue-300); }
.wa__text { padding-right: 74px; }
@media (min-width: 900px) { .wa__text { padding-right: 84px; } .wa__pause { bottom: 20px; right: 22px; } }
/* B: підгонка (стан спокою яскравіший, ціль менша, місто на всю картку) */
.wb__bub { opacity: .85; transform: translateY(8px) scale(.85); }
.wb__chip { opacity: .9; transform: scale(.92); }
.wb__tgt, .wb__dart { width: 88px; height: 88px; }
.wb__orbit { width: 146px; height: 146px; }
.wb__orbit i { width: 32px; height: 32px; }
.wb__orbit i:nth-child(1) { left: 57px; top: -4px; } .wb__orbit i:nth-child(2) { right: -4px; top: 57px; } .wb__orbit i:nth-child(3) { left: 57px; bottom: -4px; } .wb__orbit i:nth-child(4) { left: -4px; top: 57px; }
.wb__dart { transform: translate(44px, -40px) rotate(8deg); }
@media (min-width: 1000px) {
  .wb__c--5 .wb__city { left: -125%; width: 225%; height: 42%; color: rgba(44,90,160,.2); -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 55%); mask-image: linear-gradient(90deg, transparent 5%, #000 55%); }
}
.wb__art { overflow: hidden; }
.wb__txt { padding-top: 14px; }
.wb__c--5:is(:hover, .is-on) .wb__city { transform: translateY(4px); }
.wb__c--3 .wb__art, .wb__c--4 .wb__art { min-height: 190px; }
@media (min-width: 1000px) {
  .wb__c--3, .wb__c--4 { min-height: 330px; }
  .wb__c--2 .wb__txt, .wb__c--5 .wb__txt, .wb__c--6 .wb__txt { padding-top: 24px; }
  .wb__bub { padding: 10px 18px; font-size: 1.75rem; }
  .wb__tgt, .wb__dart { width: 104px; height: 104px; }
  .wb__orbit { width: 170px; height: 170px; } .wb__orbit i { width: 36px; height: 36px; font-size: 1.2rem; }
  .wb__orbit i:nth-child(1) { left: 67px; top: -4px; } .wb__orbit i:nth-child(2) { right: -4px; top: 67px; } .wb__orbit i:nth-child(3) { left: 67px; bottom: -4px; } .wb__orbit i:nth-child(4) { left: -4px; top: 67px; }
}
@media (min-width: 900px) { .wc { align-items: stretch; } .wc__side { align-self: stretch; } .wc__card { min-height: clamp(210px, 32vh, 270px); } }
.sc5__s { white-space: nowrap; }
@media (max-width: 699px) {
  .sc5__s:nth-of-type(1) { --x: 4% !important; --y: 7% !important; } .sc5__s:nth-of-type(2) { --x: 38% !important; --y: 25% !important; } .sc5__s:nth-of-type(3) { --x: 6% !important; --y: 42% !important; }
  .sc5__s:nth-of-type(4) { --x: 8% !important; --y: 62% !important; } .sc5__s:nth-of-type(5) { --x: 80% !important; --y: 6% !important; } .sc5__s:nth-of-type(6) { --x: 44% !important; --y: 56% !important; } .sc5__s:nth-of-type(7) { --x: 74% !important; --y: 46% !important; }
}

/* iteration 11: bigger, higher hero title (variants 1 and 2), Ukraine card with logo badge */
@media (min-width: 1000px) {
  html:not([data-hero="dawn"]) .hero__title { font-size: clamp(3.2rem, .6rem + 4.1vw, 4.75rem); line-height: 1.04; }
  html:not([data-hero="dawn"]) .hero__copy { transform: translateY(-9vh); }
  html:not([data-hero="dawn"]) .hero__copy.is-in, html:not([data-hero="dawn"]) .hero__copy.in { transform: translateY(-9vh); }
}
@media (max-width: 999px) { html:not([data-hero="dawn"]) .hero__title { font-size: clamp(2.35rem, 1rem + 5.2vw, 3.4rem); } }
.globe__ph { position: relative; flex: none; display: block; }
.globe__ph > img:first-child { width: 148px; height: 100%; min-height: 116px; border-radius: 16px; object-fit: cover; display: block; }
.globe__card .globe__ph .globe__logo { position: absolute; left: 8px; top: 8px; width: 42px; height: 42px; min-height: 0; padding: 3px; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 4px 12px rgba(16,32,64,.3); }
html[data-hero="dawn"] .globe__ph > img:first-child { width: 96px; min-height: 84px; }
@media (max-width: 999px) { .globe__ph > img:first-child { width: 104px; min-height: 88px; } .globe__card .globe__ph .globe__logo { width: 32px; height: 32px; left: 6px; top: 6px; } }
@media (min-width: 1000px) {
  html:not([data-hero="dawn"]) .hero__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  html:not([data-hero="dawn"]) .hero__title { font-size: clamp(3rem, .4rem + 3.8vw, 4.4rem); }
  html:not([data-hero="dawn"]) .hero__copy, html:not([data-hero="dawn"]) .hero__copy.is-in, html:not([data-hero="dawn"]) .hero__copy.in { transform: translateY(-14vh); }
}
/* logo with the city: header (optional via dots menu) and footer (always, school name in bold) */
.logo__city { display: none; font: 600 .75em/1 var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--burgundy-700); }
html[data-brand="city"] .site-header .logo__city { display: inline-block; margin-left: 2px; padding-left: 10px; border-left: 2px solid var(--gold); font-size: .8rem; }
.site-footer .logo__txt { display: grid; gap: 6px; }
.site-footer .wordmark--foot { font-weight: 800; }
.site-footer .logo__city--foot { display: block; color: var(--gold-soft); font-size: .8125rem; letter-spacing: .32em; }
@media (min-width: 1000px) { html:not([data-hero="dawn"]) .hero__title { font-size: clamp(3rem, .4rem + 3.55vw, 4.2rem); } }
.footer__bottom .footer__credits { display: block; margin-top: 6px; padding: 0; font-size: .75rem; opacity: .6; text-align: center; }

/* =========================================================
   iteration 12 — last title word on its own line (+10%), coloured format buttons,
   logo mark in steps, owner block (3 variants), city toggle, emoji-free «Чому ми» B
   ========================================================= */
.hero__title em { display: block; font-size: 1.1em; line-height: 1.02; }

/* format cards: three different back buttons instead of three white ones */
.fmt--kids .fmt__go { background: var(--blue-900); color: #fff; }
.fmt--adults .fmt__go { background: linear-gradient(100deg, #E9CF8C, var(--gold)); color: var(--blue-900); }
.fmt--corporate .fmt__go { background: var(--blue-900); color: #fff; box-shadow: inset 0 0 0 2px var(--gold); }
.fmt__go:hover { filter: brightness(1.08); }

/* logo mark (crown over a book) as the goal of the steps */
.snake__mark { display: block; width: clamp(3.4rem, 2.4rem + 3.4vw, 5rem); height: clamp(3.4rem, 2.4rem + 3.4vw, 5rem); background: linear-gradient(160deg, #E9CF8C, var(--gold) 55%, #A8842E); -webkit-mask: url(../img/logo-mark.png) left bottom / contain no-repeat; mask: url(../img/logo-mark.png) left bottom / contain no-repeat; }
.snake__card--goal .snake__n { overflow: visible; }
.snake__card--goal.is-burst .snake__mark { animation: coin-pop .7s var(--ease); }

/* city toggle */
html[data-city="off"] .hero__sky { visibility: hidden; }
/* «Знайомтесь» picture: data-about="off" removes the New York scene entirely (city toggle above now affects only the drawn skyline on the home hero) */
html[data-about="off"] .about__city, html[data-about="off"] .about__photo { display: none !important; }

/* owner */
.sec--owner { padding-block: clamp(56px, 7vw, 104px); background: linear-gradient(180deg, #fff, var(--sky-50)); }
html[data-owner="off"] .sec--owner, html[data-owner="merged"] .sec--owner { display: none; }
html:not([data-owner="merged"]) .teachers__owner { display: none; }
.owner { display: grid; gap: clamp(22px, 3.4vw, 56px); align-items: center; }
@media (min-width: 860px) { .owner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.owner__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; max-height: 560px; border-radius: var(--r-dir); overflow: hidden; background: linear-gradient(160deg, var(--blue-900), var(--blue-700)); box-shadow: var(--shadow); isolation: isolate; }
.owner__photo::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(233,207,140,.55); border-radius: calc(var(--r-dir) - 10px); pointer-events: none; }
.owner__photo img { width: 100%; height: 100%; object-fit: cover; }
.owner__ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(60% 45% at 50% 38%, rgba(233,207,140,.28), transparent 70%); }
.owner__mark { display: block; width: 46%; aspect-ratio: 1; background: var(--gold-grad); -webkit-mask: url(../img/logo-mark.png) center / contain no-repeat; mask: url(../img/logo-mark.png) center / contain no-repeat; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.owner__body { display: grid; gap: 16px; justify-items: start; }
.owner__eyebrow { font: 700 .8125rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy-700); }
.owner__quote { position: relative; margin: 0; padding-left: clamp(0px, 3vw, 8px); }
.owner__qic { width: 44px; height: 44px; color: var(--gold); margin-bottom: 6px; }
.owner__quote p { font: 600 clamp(1.375rem, 1rem + 1.5vw, 2.25rem)/1.25 var(--font-display); color: var(--blue-900); letter-spacing: -.01em; text-wrap: balance; }
.owner__name { display: grid; gap: 2px; }
.owner__name b { font: 700 1.25rem/1.2 var(--font-display); color: var(--blue-900); }
.owner__name span { color: var(--muted); font-size: .9375rem; }
.owner__note { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--gold-soft); color: var(--blue-900); font-weight: 600; font-size: .9375rem; box-shadow: 0 6px 18px rgba(16,32,64,.06); }
.owner__note .ic { width: 20px; height: 20px; color: var(--gold-deep); flex: none; }
.teachers__owner { margin: 8px 0 clamp(28px, 3.5vw, 48px); padding: clamp(18px, 2.6vw, 34px); border-radius: calc(var(--r-dir) + 6px); background: linear-gradient(160deg, var(--sky-50), #fff); border: 1px solid var(--line); box-shadow: var(--shadow); }
.owner--merged .owner__photo { max-height: 440px; }
.owner--merged .owner__quote p { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
@media (min-width: 860px) { .owner--merged { grid-template-columns: minmax(0, 3.4fr) minmax(0, 8fr); } }
html[data-owner="merged"] #teachers .teachers__head .h2 .w, html[data-owner="merged"] #teachers .teachers__head .h2 { white-space: normal; }

/* «Чому ми» B — SVG icons and motion instead of emoji (only the speaking one stays) */
.wb__hi { font: 800 1.25rem/1 var(--font-display); letter-spacing: -.01em; }
.wb__face .ic { width: 52px; height: 52px; color: var(--blue-700); }
.wb__face--b .ic { color: var(--blue-900); }
.wb__orbit i .ic { width: 18px; height: 18px; color: var(--burgundy-700); }
.wb__flag { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-900); }
.wb__flag .ic { width: 26px; height: 26px; color: var(--gold); }
.wb__st .ic { width: 52%; height: 52%; color: var(--blue-700); }
.wb__home i .ic { width: 52%; height: 52%; color: var(--blue-700); }
.wb__home i:nth-child(4) .ic { color: var(--burgundy-700); }
@keyframes wb-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes wb-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.12; } }
@keyframes wb-glow { 0%, 100% { box-shadow: 0 2px 6px rgba(16,32,64,.1); } 50% { box-shadow: 0 0 0 3px rgba(201,162,77,.55), 0 6px 14px rgba(16,32,64,.18); } }
@keyframes wb-spin { to { rotate: 360deg; } }
@keyframes wb-ring { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .wb__c .wb__flag { animation: wb-pulse 2.4s ease-in-out infinite; }
  .wb__c .wb__big { animation: wb-bob 3.6s ease-in-out infinite; }
  .wb__c .wb__hi { display: inline-block; animation: wb-pulse 2.6s ease-in-out infinite; }
  .wb__c .wb__bub .dots i { animation: wb-pulse 1.1s ease-in-out infinite; } .wb__c .wb__bub .dots i:nth-child(2) { animation-delay: .18s; } .wb__c .wb__bub .dots i:nth-child(3) { animation-delay: .36s; }
  .wb__c .wb__bub .wave i { animation: wa-wave 1s ease-in-out infinite; } .wb__c .wb__bub .wave i:nth-child(2) { animation-delay: .15s; } .wb__c .wb__bub .wave i:nth-child(3) { animation-delay: .3s; } .wb__c .wb__bub .wave i:nth-child(4) { animation-delay: .45s; }
}

/* ---------- iteration 12b ---------- */
/* one button colour on all three format cards: navy fill + white ring + white text reads on gold, blue and burgundy alike */
.fmt .fmt__go, .fmt--kids .fmt__go, .fmt--adults .fmt__go, .fmt--corporate .fmt__go { background: #0B1730; color: #fff; box-shadow: 0 0 0 2px #fff, 0 8px 18px rgba(0,0,0,.25); }
.fmt .fmt__go:hover { background: #fff; color: #0B1730; filter: none; }

/* «Знайомтесь»: two rows of tiles of different widths, the three priority ones are bigger */
.about__grid { max-width: 1120px; margin-inline: auto; align-items: end; }
.about__grid .tile { min-height: 112px; padding: 14px 16px; border-radius: 20px; }
.about__grid .tile--pri { min-height: 150px; }
.tile--pri h3 { font-size: clamp(1.125rem, .95rem + .6vw, 1.5rem); }
.tile--pri .tile__num { font-size: clamp(2.1rem, 1.5rem + 2vw, 3.4rem); }
@media (min-width: 900px) {
  .about__grid { gap: 16px; }
  .about__grid .tile { min-height: 124px; padding: 16px 20px; }
  .about__grid .tile--pri { min-height: 190px; padding: 20px 24px; }
}
/* smoother fade into the photo at the end of the block + second wide photo */
html[data-about="photo"] .about__photo--2, html[data-about="photo2"] .about__photo:not(.about__photo--2) { display: none; }
html[data-about="photo2"] .about__city { display: none; }
html[data-about="photo"] .about__photo, html[data-about="photo2"] .about__photo--2 { display: block; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.12) 14%, rgba(0,0,0,.4) 34%, rgba(0,0,0,.75) 58%, #000 82%); mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.12) 14%, rgba(0,0,0,.4) 34%, rgba(0,0,0,.75) 58%, #000 82%); }
html[data-about="photo"] .about__photo { height: clamp(220px, 36vw, 560px); }
html[data-about="photo2"] .about__photo--2 { height: clamp(200px, 30vw, 480px); }
html[data-about="photo2"] .about__photo--2 img { object-position: 78% 50%; }
@media (min-width: 700px) { html[data-about="photo2"] .about__photo--2 img { object-position: 50% 50%; } }

/* white / tinted section rhythm */
.sec--langs { background: #fff; }
.sec--levels { background: var(--bg-soft); }
.about__grid .tile:not(.tile--pri) h3 { font-size: .9375rem; overflow-wrap: anywhere; hyphens: auto; }

/* space → «Знайомтесь» smooth hand-over (menu: «Космос → Знайомтесь»; only with the space hero) */
html[data-hero="space"][data-blend="on"] .hero::after { content: ""; position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 30%; pointer-events: none; background: linear-gradient(180deg, rgba(16,32,64,0) 0%, rgba(16,32,64,.55) 55%, #102040 100%); }
html[data-hero="space"][data-blend="on"] .sec--about::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: clamp(220px, 30vw, 420px); pointer-events: none;
  background: radial-gradient(1.2px 1.2px at 12% 22%, rgba(255,255,255,.65), transparent 60%), radial-gradient(1px 1px at 27% 48%, rgba(255,255,255,.5), transparent 60%), radial-gradient(1.4px 1.4px at 41% 14%, rgba(255,255,255,.7), transparent 60%), radial-gradient(1px 1px at 58% 38%, rgba(255,255,255,.5), transparent 60%), radial-gradient(1.2px 1.2px at 73% 18%, rgba(255,255,255,.65), transparent 60%), radial-gradient(1px 1px at 88% 44%, rgba(255,255,255,.5), transparent 60%), radial-gradient(1.2px 1.2px at 94% 12%, rgba(255,255,255,.6), transparent 60%),
    linear-gradient(180deg, rgba(14,34,80,.0), rgba(16,32,64,0));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, transparent 100%); }
html[data-hero="space"][data-blend="on"] .hero__sky { -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }

/* =========================================================
   iteration 13 — dawn hero rebuilt (nothing overlaps), «Знайомтесь» tiles equal height and full site width
   ========================================================= */
@media (min-width: 1000px) {
  html[data-hero="dawn"] .hero__inner { padding-top: clamp(20px, 5svh, 64px); }
  html[data-hero="dawn"] .hero__title { font-size: clamp(2.3rem, min(1.1rem + 2.6vw, 6.4svh), 3.9rem); line-height: 1.04; max-width: 22ch; }
  html[data-hero="dawn"] .hero__copy { gap: clamp(14px, 2.6svh, 24px); }
  /* language switcher: centred directly under the CTA */
  html[data-hero="dawn"] .globe__nav { left: 50%; top: calc(var(--dy, 380px) + 18px); }
  /* language card: parks bottom-left in the free sky, above the mobile bottom bar when it is shown */
  html[data-hero="dawn"] .globe__card { --bb: 76px; top: calc(100svh - 188px - var(--bb)); bottom: auto; left: clamp(20px, 2.6vw, 44px); width: clamp(310px, 27vw, 380px); }
  html[data-hero="dawn"] .hero.is-zoomed .globe__nav { top: 104px; }
}
@media (min-width: 1360px) { html[data-hero="dawn"] .globe__card { --bb: 0px; } }

/* «Знайомтесь»: full site width, every tile the same height (different widths stay) */
.about__grid { max-width: none; align-items: stretch; grid-auto-rows: 1fr; }
.about__grid .tile, .about__grid .tile--pri { min-height: 128px; }
.about__grid .tile--pri { border-color: rgba(232,212,168,.42); }
@media (min-width: 900px) {
  .about__grid .tile, .about__grid .tile--pri { min-height: 172px; }
  .about__grid .tile--pri { padding: 20px 24px; }
}
@media (max-width: 459px) { .about__grid .tile, .about__grid .tile--pri { min-height: 118px; } }

/* video reviews: phone proportion (9:16) everywhere — cards in both results variants and the player */
.vcard__btn { aspect-ratio: 9 / 16; }
.vcard { width: clamp(200px, 56vw, 250px); }
.vplayer { aspect-ratio: 9 / 16; width: min(100%, calc((100svh - 170px) * 9 / 16)); margin-inline: auto; }
.modal__panel--video { width: min(400px, 100%); }
html[data-results="b"] .res-b { --rb-vh: clamp(250px, 36svh, 380px); --rb-w: clamp(132px, min(44vw, 28svh), 200px); }
.rb-vids { grid-auto-columns: var(--rb-w, 172px); }
.rb-vid { height: auto; aspect-ratio: 9 / 16; }
@media (min-width: 700px) {
  html[data-results="b"] .res-b { --rb-w: calc(var(--rb-vh) * 9 / 16); }
  .rb-vids, .rb-vids.is-few { grid-auto-columns: var(--rb-w); }
  .rb-vids.is-few { justify-content: center; }
}
@media (min-width: 1100px) { .rb-vids, .rb-vids.is-few { grid-auto-columns: var(--rb-w); } }
@media (max-height: 520px) and (min-width: 700px) { html[data-results="b"] .res-b { --rb-vh: 240px; } }
.rb-vid__win { -webkit-line-clamp: 4; }

/* ---- iteration 13b: audit fixes ---- */
/* poster stays visible when the 3D globe cannot run (context lost, reduced motion) – also in dawn / space where it is normally hidden */
.globe.is-lost .globe__poster { display: block !important; opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) { html[data-hero="dawn"] .globe__poster, html[data-hero="space"] .globe__poster { display: block; } }
/* «Знайомтесь»: only link tiles react to hover (stat tiles are static), Statue photo C keeps the statue in frame, room under the grid for the 3D statue */
.tile:not(.tile--go):hover { transform: none; border-color: rgba(232,212,168,.22); box-shadow: none; }
.tile:not(.tile--go):hover .tile__ic { background: transparent; border-color: inherit; color: inherit; }
@media (min-width: 700px) { html[data-about="photo2"] .about__photo--2 img { object-position: 92% 50%; } }
.sec--about { padding-bottom: calc(var(--sec-y) + clamp(230px, 29vw, 420px)); }
/* logo with the city must not widen the phone header */
@media (max-width: 429px) { html[data-brand="city"] .site-header .logo__city { display: none; } }
/* language popup: close button stays reachable while the panel scrolls */
.modal__panel--lang .modal__x { position: sticky; top: 8px; margin: 8px 8px -44px auto; float: right; z-index: 3; }
/* phone: no half-empty rows – pairs of small tiles, big ones full width */
@media (max-width: 899px) {
  .about__grid .tile[data-ic="i-pin"] { order: 1 !important; } .about__grid .tile[data-ic="i-laurel"] { order: 2 !important; }
  .about__grid .tile[data-ic="i-briefcase"] { order: 3 !important; }
  .about__grid .tile[data-ic="i-cert"] { order: 4 !important; } .about__grid .tile[data-ic="i-person"] { order: 5 !important; }
  .about__grid .tile[data-ic="i-group"] { order: 6 !important; }
  .about__grid .tile[data-ic="i-voice"] { order: 7 !important; grid-column: span 2; } .about__grid .tile[data-ic="i-screen"] { order: 8 !important; }
}

/* =========================================================
   iteration 14 — steps: one smooth S-curve that leaves a card's bottom and enters the next card's top,
   solid glowing line drawn on scroll, nodes and cards light up when the line reaches them
   ========================================================= */
.snake { gap: clamp(78px, 11vw, 124px); }
@media (min-width: 900px) { .snake { gap: 120px; } }
.snake__base, .snake__fill { stroke-linecap: round; stroke-linejoin: round; }
.snake__base { stroke: var(--sky-200); stroke-width: 4; stroke-dasharray: 2 12; opacity: .9; }
.snake__fill { stroke: url(#snake-grad); stroke-width: 6; stroke-dasharray: none; filter: drop-shadow(0 0 7px rgba(168,36,52,.4)); }
.snake__mask { stroke-width: 20; }
.snake__node { fill: #fff; stroke: var(--sky-200); stroke-width: 3; transition: fill .4s, stroke .4s, r .4s; }
.snake__node.is-on { fill: var(--burgundy-700); stroke: #fff; r: 9; filter: drop-shadow(0 0 6px rgba(168,36,52,.55)); }
.snake__head { fill: var(--gold-soft); stroke: #fff; stroke-width: 2.5; opacity: 0; filter: drop-shadow(0 0 10px rgba(201,162,77,.95)) drop-shadow(0 0 18px rgba(201,162,77,.6)); transition: opacity .25s; }
.snake__path { z-index: 0; }
/* cards wake up when the line arrives */
.snake.is-live .snake__card { transition: transform .6s var(--ease), border-color .5s, box-shadow .6s; }
.snake.is-live .snake__card > * { transition: opacity .6s var(--ease), color .4s, transform .6s var(--ease); }
.snake.is-live .snake__card:not(.is-reached) { box-shadow: none; }
.snake.is-live .snake__card:not(.is-reached) > * { opacity: .34; }
.snake.is-live .snake__card.is-reached { border-color: rgba(168,36,52,.55); box-shadow: 0 0 0 4px rgba(168,36,52,.08), 0 20px 46px rgba(168,36,52,.2); }
.snake.is-live .snake__card--goal.is-reached { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,77,.18), 0 22px 56px rgba(201,162,77,.42); }
@media (prefers-reduced-motion: reduce) { .snake.is-live .snake__card:not(.is-reached) > * { opacity: 1; } .snake__head { display: none; } }
html[data-about="off"] .sec--about { padding-bottom: var(--sec-y); }

/* =========================================================
   iteration 15 — city moves to the footer (crisp, no fade), tighter gaps, steps as number + big title, video cards without badges
   ========================================================= */
.footer__city { height: clamp(110px, 15vw, 230px); overflow: hidden; color: var(--gold-soft); }
.footer__city::after { display: none; }
.footer__city svg.sky { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); opacity: 1; }
.footer__city .sky__back { opacity: .4; } .footer__city .sky__mid { opacity: .75; }
html[data-city="off"] .footer__city { display: none; }
html[data-city="off"] .hero__sky { visibility: visible; }
/* about: distance from the New York picture to the tiles halved */
.sec--about { padding-bottom: calc(var(--sec-y) + clamp(115px, 14.5vw, 210px)); }
/* languages → levels: smaller gap */
.sec--langs { padding-bottom: calc(var(--sec-y) * .35); }
.sec--levels { padding-top: calc(var(--sec-y) * .3); }
/* video cards: only the play button + a short caption */
.rb-vid__win::before { content: none; }
.rb-vid__cap b { font-size: 1.0625rem; } .rb-vid__win { font-size: .9375rem; font-weight: 700; }
@media (min-width: 700px) { .rb-vid__cap b { font-size: 1.125rem; } .rb-vid__win { font-size: 1rem; } }
/* steps: number on the left, big title + line on the right → low cards */
.snake .snake__card:nth-of-type(n) { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(14px, 2vw, 26px); align-items: center; padding: clamp(14px, 1.8vw, 22px) clamp(18px, 2.2vw, 30px); }
.snake .snake__n { grid-row: 1 / span 2; margin: 0; align-self: center; font-size: clamp(2.75rem, 2rem + 2.6vw, 4.25rem); }
.snake .snake__card h3 { grid-column: 2; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem); line-height: 1.1; align-self: end; }
.snake .snake__card p { grid-column: 2; font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); align-self: start; }
.snake .snake__mark { width: clamp(3rem, 2.2rem + 2.6vw, 4.25rem); height: clamp(3rem, 2.2rem + 2.6vw, 4.25rem); }
.snake { gap: clamp(60px, 9vw, 96px); }
@media (min-width: 900px) { .snake { gap: 92px; } }
@media (max-width: 899px) { .snake .snake__card:nth-of-type(n) { width: 90%; } }
@media (min-width: 900px) { .snake { max-width: 1060px; } .snake .snake__card:nth-of-type(n) { width: 63%; } }
/* about: scenes shrink with the halved gap so the statue no longer climbs into the tiles */
.about__city.is-3d { height: clamp(200px, 25.5vw, 390px); }
html[data-about="photo"] .about__photo { height: clamp(150px, 24vw, 380px); }
html[data-about="photo2"] .about__photo--2 { height: clamp(140px, 20vw, 320px); }
.about__city { height: clamp(110px, 17vw, 250px); }

/* iteration 16: bigger header links (two items fewer), smaller bolder «Більше про нас» nudged left, flip back by tapping the card */
.main-nav__link { font-size: 1.0625rem; font-weight: 700; padding: 0 12px; }
.main-nav__link::after { left: 12px; right: 12px; }
@media (min-width: 1360px) and (max-width: 1559px) { .main-nav__link { font-size: 1rem; padding: 0 9px; } .main-nav__link::after { left: 9px; right: 9px; } }
@media (min-width: 1560px) { .main-nav__link { font-size: 1.125rem; padding: 0 14px; } .main-nav__link::after { left: 14px; right: 14px; } }
.about__more { width: clamp(95px, 9.4vw, 136px); margin-right: clamp(10px, 1.6vw, 28px); font-weight: 800; -webkit-text-stroke: .35px currentColor; line-height: 1.15; text-wrap: balance; }
.fmt__back { cursor: pointer; }
