/* El Prado IT — styles (mobile-first, no build step) */

@font-face {
  font-family: 'Unbounded';
  src: url('fonts/unbounded-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  src: url('fonts/unbounded-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  src: url('fonts/onest-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  src: url('fonts/onest-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ink: #0e1430;
  --ink-2: #454e6e;
  --ink-3: #5a6282;
  --line: #e2e7f5;
  --paper: #ffffff;
  --ice: #f1f5ff;
  --ice-2: #e4ebff;
  --cobalt: #2b4bff;
  --cobalt-deep: #1a2fc7;
  --cobalt-ink: #0b1660;
  --lime: #c8f560;
  --lime-deep: #a8dc32;
  --sun: #ff9f1c;
  --sun-wash: #fff1dc;
  --mint: #16b88a;
  --mint-wash: #dcf7ee;
  --violet: #7c4dff;
  --violet-wash: #ece5ff;
  --night: #0b1029;
  --night-2: #151c3f;
  --night-line: #283063;
  --on-dark: #e9ecff;
  --on-dark-2: #b4bbe0;
  --on-cobalt-2: #e3e8ff;
  --danger: #c4264f;

  --f-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --f-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --r-xl: 36px;
  --sh-1: 0 2px 6px rgba(14, 20, 48, 0.06), 0 8px 24px rgba(14, 20, 48, 0.06);
  --sh-2: 0 6px 16px rgba(14, 20, 48, 0.08), 0 24px 56px rgba(14, 20, 48, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 16px;
  --max: 1240px;
  --section: 64px;
  color-scheme: light;
}
@media (min-width: 640px) {
  :root { --gutter: 28px; --section: 88px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; --section: 112px; }
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 1024px) { body { font-size: 17px; } }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 8px; }
.on-dark :focus-visible, .on-cobalt :focus-visible { outline-color: var(--lime); }
html { scrollbar-color: #b9c3e6 var(--ice); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 48px 16px; text-align: center; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.soon { color: var(--ink-3); font-style: italic; }

/* single-column grids never grow past the viewport */
.hero__grid, .why, .extra, .dirs, .progs, .tgrid, .vgrid, .how, .cgrid, .routes, .about, .steps, .duo, .team, .contact, .footer__top, .final, .filters { grid-template-columns: minmax(0, 1fr); }
.logo { min-height: 44px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.h-hero { font-size: clamp(30px, 6vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.h-1 { font-size: clamp(26px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.h-2 { font-size: clamp(22px, 3vw, 32px); }
.h-3 { font-size: clamp(19px, 2vw, 24px); }
.h-4 { font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 62ch; margin: 20px 0 0; }
p { text-wrap: pretty; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--ice { background: var(--ice); }
.section--night { background: var(--night); color: var(--on-dark); }
.section--night h2, .section--night h3 { color: #fff; }
.section-title { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head p { color: var(--ink-2); margin: 14px 0 0; font-size: 17px; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.center-link { margin: 32px 0 0; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 650; font-size: 16px; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), background-color 200ms;
}
.btn .i { width: 20px; height: 20px; transition: transform 300ms var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--lime { --bg: var(--lime); --fg: var(--ink); box-shadow: 0 10px 28px rgba(122, 170, 20, 0.32); }
.btn--lime::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 5s ease-in-out infinite 2s;
}
@keyframes shine { 0%, 72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn--lime:hover { --bg: #d4fb74; }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.on-dark .btn--ghost, .on-cobalt .btn--ghost { --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 650; color: var(--cobalt); text-decoration: none; }
.link-arrow .i { width: 18px; height: 18px; transition: transform 300ms var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--lime); }

.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); transition: box-shadow 300ms; }
@supports (backdrop-filter: blur(1px)) { .header { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(1.6) blur(14px); } }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo__mark { width: 40px; height: 40px; border-radius: 12px; background: var(--cobalt); color: #fff; display: grid; place-items: center; flex: none; transition: transform 500ms var(--ease); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.05); }
.logo__text { display: grid; line-height: 1.1; min-width: 0; }
.logo__text b { font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.logo__text small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header__cta { display: none; }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--ice); }
.lang summary .i { width: 18px; height: 18px; }
.lang summary > span:not(.visually-hidden) { display: none; }
.lang__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: #fff; border-radius: 16px; box-shadow: var(--sh-2); padding: 6px; display: grid; z-index: 5; animation: pop 220ms var(--ease); }
.lang__menu a { padding: 11px 12px; min-height: 44px; border-radius: 10px; text-decoration: none; font-weight: 550; }
.lang__menu a:hover { background: var(--ice); }
.lang__menu a[aria-current='true'] { color: var(--cobalt); }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
.burger { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--ice); cursor: pointer; position: relative; flex: none; }
.burger span:not(.visually-hidden) { position: absolute; left: 12px; right: 12px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 350ms var(--ease), opacity 200ms; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mnav { border-top: 1px solid var(--line); padding: 12px var(--gutter) 24px; display: grid; gap: 16px; background: #fff; max-height: calc(100dvh - 68px); overflow-y: auto; animation: drop 300ms var(--ease); }
.mnav[hidden] { display: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.mnav nav { display: grid; }
.mnav__link { padding: 12px 4px; font-family: var(--f-display); font-weight: 700; font-size: 20px; text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav__link[aria-current='page'] { color: var(--cobalt); }
.mnav__langs { display: flex; flex-wrap: wrap; gap: 8px; }
.mnav__langs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 12px; background: var(--ice); text-decoration: none; font-weight: 600; }
.mnav__langs a[aria-current='true'] { background: var(--cobalt); color: #fff; }
@media (min-width: 640px) {
  .lang summary > span:not(.visually-hidden) { display: inline; }
}
@media (min-width: 1180px) {
  .nav { display: flex; gap: 2px; margin-left: auto; }
  .nav a { padding: 10px 12px; border-radius: 10px; font-weight: 550; font-size: 15.5px; text-decoration: none; color: var(--ink-2); position: relative; }
  .nav a:hover { color: var(--ink); background: var(--ice); }
  .nav a[aria-current='page'] { color: var(--ink); }
  .nav a[aria-current='page']::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--cobalt); }
  .header__actions { margin-left: 8px; }
  .header__cta { display: inline-flex; }
  .burger, .mnav { display: none !important; }
}

/* ---------- hero ---------- */
.hero, .phero, .chead { position: relative; overflow: clip; }
.hero { padding: 32px 0 var(--section); }
.phero { padding: 36px 0 48px; }
.phero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.phero__bg::before { content: ''; position: absolute; right: -15%; top: -30%; width: 80%; height: 130%; background: radial-gradient(closest-side, rgba(43, 75, 255, 0.13), transparent 70%); animation: drift 16s ease-in-out infinite alternate; }
.phero__bg::after { content: ''; position: absolute; left: -15%; bottom: -40%; width: 60%; height: 100%; background: radial-gradient(closest-side, rgba(200, 245, 96, 0.33), transparent 70%); animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-6%, 8%) scale(1.08); } }
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero__h2 { margin: 18px 0 0; font-size: clamp(18px, 2vw, 22px); font-weight: 600; line-height: 1.45; max-width: 40ch; }
.hero .lead { margin-top: 12px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.agepick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.agepick > span { font-size: 15px; color: var(--ink-3); margin-right: 4px; width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--line); font-weight: 650; font-size: 15px; text-decoration: none; transition: border-color 200ms, transform 300ms var(--ease); }
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip i, .tab i { width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--c); }
.hvideo { margin: 0; }
.hvideo__frame { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-l); overflow: hidden; background: radial-gradient(circle at 30% 25%, #3a5bff, var(--cobalt-ink) 70%); color: #fff; box-shadow: 0 28px 70px rgba(11, 22, 96, 0.3); }
.hvideo__frame iframe, .hvideo__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.hvideo__frame--soon { cursor: pointer; padding: 16px; text-align: center; }
.hvideo__frame--soon::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.2px, transparent 1.2px); background-size: 24px 24px; }
.hvideo__play { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(200, 245, 96, 0.5); animation: ring 2.4s var(--ease) infinite; }
.hvideo__play .i { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 4px; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(200, 245, 96, 0.55); } 100% { box-shadow: 0 0 0 26px rgba(200, 245, 96, 0); } }
.hvideo__soon { position: absolute; left: 0; right: 0; bottom: 16px; padding-inline: 16px; font-size: 14px; color: var(--on-cobalt-2); }
.hvideo figcaption { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14.5px; color: var(--ink-3); }
.hvideo figcaption .i { width: 18px; height: 18px; color: var(--cobalt); }
@media (min-width: 1024px) {
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
  .agepick > span { width: auto; }
}

/* ---------- home blocks ---------- */
.why, .extra, .dirs { display: grid; gap: 14px; }
.why__item, .dir { padding: 24px; border-radius: var(--r-l); background: #fff; box-shadow: var(--sh-1); }
.why__item .i, .dir .i { width: 32px; height: 32px; color: var(--cobalt); margin-bottom: 14px; }
.why__item h3, .dir h3, .extra__item h3 { margin-bottom: 8px; }
.why__item p, .dir p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.extra__item { padding: 24px; border-radius: var(--r-l); background: var(--night-2); border: 1px solid var(--night-line); }
.extra__item .i { width: 32px; height: 32px; color: var(--lime); margin-bottom: 14px; }
.extra__item p { margin: 0; color: var(--on-dark-2); font-size: 15.5px; }
@media (min-width: 640px) { .why, .extra, .dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .why, .extra, .dirs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 20px; background: var(--ice); margin-bottom: 24px; }
.tab { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 18px; border: 0; border-radius: 14px; background: transparent; font-weight: 700; font-size: 16px; color: var(--ink-2); cursor: pointer; transition: background-color 250ms, color 250ms, box-shadow 250ms; }
.tab[aria-selected='true'] { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
@media (min-width: 640px) { .tabs { display: inline-flex; } .tab { flex: none; } }
.progs { display: grid; gap: 14px; animation: fadeup 500ms var(--ease); }
@keyframes fadeup { from { opacity: 0; transform: translateY(12px); } }
.prog { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-l); background: #fff; border: 2px solid var(--line); transition: border-color 250ms, transform 400ms var(--ease); }
.prog:hover { border-color: var(--cobalt); transform: translateY(-3px); }
.prog p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.prog__actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
@media (min-width: 640px) { .progs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .progs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* teachers + video slots */
.tgrid, .vgrid { display: grid; gap: 18px; }
@media (min-width: 640px) { .tgrid, .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tgrid, .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tcard { display: flex; flex-direction: column; border-radius: var(--r-l); background: #fff; box-shadow: var(--sh-1); overflow: hidden; }
.tcard__photo { position: relative; aspect-ratio: 4 / 3; background: var(--ice-2); }
.tcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.tcard__ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--ink-3); }
.tcard__ph .i { width: 56px; height: 56px; color: #b7c3ef; }
.tcard__ph small { font-size: 13.5px; }
.play { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px 6px 6px; border: 0; border-radius: 14px; background: #fff; font-weight: 650; font-size: 14px; cursor: pointer; box-shadow: var(--sh-1); transition: transform 300ms var(--ease); }
.play:hover { transform: scale(1.04); }
.play i { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.play .i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.tcard__body { padding: 20px 22px 24px; display: grid; gap: 10px; }
.tcard__body p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.tcard__dl { margin: 6px 0 0; display: grid; gap: 10px; }
.tcard__dl div { padding: 12px 14px; border-radius: 14px; background: var(--ice); }
.tcard__dl dt { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.tcard__dl dd { margin: 2px 0 0; font-size: 15px; }
.trustline { display: flex; gap: 14px; align-items: center; margin: 0 0 40px; padding: 20px 24px; border-radius: var(--r-l); background: #fff; box-shadow: var(--sh-1); font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; }
.trustline .i { width: 32px; height: 32px; color: var(--cobalt); }
.vslot { margin: 0; }
.vslot__btn { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 9 / 12; max-height: 420px; border: 0; border-radius: var(--r-l); cursor: pointer; background: var(--night-2) center / cover no-repeat; background-image: radial-gradient(circle at 70% 20%, #2f3a7a, var(--night) 70%); overflow: hidden; transition: transform 400ms var(--ease); }
.vslot__btn:hover { transform: translateY(-4px); }
.vslot__play { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.vslot__play .i { fill: currentColor; stroke: none; margin-left: 3px; }
.vslot figcaption { margin-top: 10px; font-size: 15px; font-weight: 600; }

/* faq */
.faq { max-width: 880px; display: grid; gap: 10px; }
.qa { border-radius: var(--r-m); background: var(--ice); transition: background-color 250ms; }
.qa[open] { background: #fff; box-shadow: var(--sh-1); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 18px 20px; font-weight: 700; font-size: 17px; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa__tog { margin-left: auto; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; position: relative; transition: transform 400ms var(--ease), background-color 250ms; }
.qa__tog::before, .qa__tog::after { content: ''; position: absolute; left: 11px; right: 11px; top: 17px; height: 2.5px; border-radius: 2px; background: var(--ink); }
.qa__tog::after { transform: rotate(90deg); transition: transform 300ms var(--ease); }
.qa[open] .qa__tog { background: var(--lime); transform: rotate(180deg); }
.qa[open] .qa__tog::after { transform: rotate(0); }
.qa__a { padding: 0 20px 20px; color: var(--ink-2); }
.qa__a p { margin: 0; max-width: 68ch; }
.qa[open] .qa__a { animation: fadeup 350ms var(--ease); }

/* final cta + how */
.final { display: grid; gap: 22px; padding: clamp(24px, 5vw, 56px); border-radius: var(--r-xl); background: var(--cobalt); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.final::before { content: ''; position: absolute; width: 480px; height: 480px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 245, 96, 0.4), transparent); z-index: -1; animation: drift 12s ease-in-out infinite alternate; }
.final h2 { color: #fff; }
.final p { margin: 12px 0 0; color: var(--on-cobalt-2); max-width: 60ch; }
.final .btn { justify-self: start; }
@media (min-width: 1024px) { .final { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--r-m); background: #fff; }
.how .i { color: var(--cobalt); margin-top: 2px; }
.how p { margin: 0; color: var(--ink-2); }
.how strong { color: var(--ink); }
@media (min-width: 640px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- catalog ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { min-height: 32px; display: inline-flex; align-items: center; text-decoration: none; color: var(--cobalt); font-weight: 600; }
.crumbs .i { width: 14px; height: 14px; }
.filters { display: grid; gap: 18px; padding: 20px; border-radius: var(--r-l); background: #fff; box-shadow: var(--sh-1); margin-bottom: 24px; }
.filter { display: grid; gap: 8px; min-width: 0; }
.filter__label { font-weight: 700; font-size: 14.5px; }
.filter__chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.fchip { flex: none; min-width: 44px; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 650; font-size: 15px; cursor: pointer; transition: all 200ms var(--ease); }
.fchip:hover { border-color: var(--ink-3); }
.fchip[aria-pressed='true'] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.fchip--n { font-variant-numeric: tabular-nums; }
.filters__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.filters__count { margin: 0; font-weight: 700; }
@media (min-width: 1024px) { .filter__chips { flex-wrap: wrap; overflow: visible; } }
.cgrid { display: grid; gap: 18px; }
@media (min-width: 640px) { .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cempty { padding: 32px; border-radius: var(--r-l); background: #fff; text-align: center; display: grid; gap: 14px; justify-items: center; }
.cempty p { margin: 0; font-weight: 600; }
.ccard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-l); background: #fff; box-shadow: var(--sh-1); transition: box-shadow 300ms, transform 400ms var(--ease); }
.ccard:hover { box-shadow: var(--sh-2); transform: translateY(-4px); }
.ccard__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-height: 0; }
.ccard__top:empty { display: none; }
.lvl { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--violet-wash); color: #4a22c9; font-weight: 700; font-size: 13px; }
.lvl-note { font-size: 13px; color: var(--ink-3); }
.ccard__link { text-decoration: none; }
.ccard__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.ccard__link:focus-visible { outline: none; }
.ccard:has(.ccard__link:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.ccard__tag { margin: 0; color: var(--ink-2); font-size: 15px; }
.ccard__params { margin: 0; font-size: 14px; color: var(--ink-3); font-weight: 600; }
.ccard__result { margin: 4px 0 0; padding: 14px 16px; border-radius: 16px; background: #f4fbdf; border: 1.5px solid #dcf1a3; font-weight: 700; font-size: 15px; line-height: 1.45; }
.ccard__streams { display: grid; gap: 8px; margin-top: 4px; }
.schip { position: relative; z-index: 2; display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 12px; background: var(--ice); font-weight: 650; font-size: 14.5px; text-decoration: none; border: 2px solid transparent; transition: border-color 200ms; }
.schip:hover { border-color: var(--cobalt); }
.schip.is-match { background: #f4fbdf; border-color: var(--lime-deep); }
.ccard__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ccard__tags li { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--ice); color: var(--ink-2); }
.ccard__actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 2; }
.ccard__actions .btn { flex: 1 1 auto; }

.routes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.route { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 16px; border-radius: var(--r-l); background: var(--ice); }
.rnode { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; min-height: 44px; padding: 10px 14px; border-radius: 12px; background: #fff; font-weight: 650; font-size: 14.5px; text-decoration: none; box-shadow: var(--sh-1); transition: transform 250ms var(--ease), box-shadow 250ms; }
.rnode:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.rnode small { font-weight: 500; color: var(--ink-3); }
.rnode--robo { background: var(--mint-wash); }
.rarrow { display: grid; place-items: center; color: var(--ink-3); }
.rarrow .i { width: 18px; height: 18px; transform: rotate(90deg); }
.ralt { display: grid; gap: 6px; }
.ralt__or { text-align: center; font-size: 13px; color: var(--ink-3); }
.routes__note { margin: 20px 0 0; font-weight: 600; }
@media (min-width: 1024px) {
  .route { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .rarrow .i { transform: none; }
  .ralt { display: flex; align-items: center; gap: 8px; }
}

/* ---------- course page ---------- */
.chead { padding: 28px 0 40px; }
.chead__lvl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 12px; }
.chead__tag { margin: 14px 0 0; font-size: clamp(17px, 1.8vw, 21px); color: var(--ink-2); max-width: 60ch; }
.pchips { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pchips li { padding: 8px 14px; border-radius: 12px; background: #fff; box-shadow: var(--sh-1); font-weight: 600; font-size: 14.5px; }
.chead__cta { margin-top: 24px; }
.plaque { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 0; padding: 14px 16px; border-radius: 16px; max-width: 760px; font-size: 15px; }
.plaque .i { width: 22px; height: 22px; margin-top: 1px; }
.plaque--flex { background: var(--sun-wash); }
.plaque--flex .i { color: #b8630a; }
.plaque--game { background: var(--violet-wash); margin-top: 28px; }
.plaque--game .i { color: var(--violet); }
.cbody { padding-bottom: var(--section); display: grid; gap: 0; max-width: calc(880px + var(--gutter) * 2); margin-left: auto; margin-right: auto; }
.cblock { padding-top: 40px; }
.cblock > .h-2, .cblock > .h-3 { margin-bottom: 16px; }
.cblock__lead { margin: 0 0 12px; font-weight: 700; }
.cblock__text { margin: 0; font-size: 17px; color: var(--ink-2); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .i { width: 20px; height: 20px; margin-top: 3px; color: var(--mint); }
.start { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--ice); }
.other { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-3); }
.other a, .next a { color: var(--cobalt); font-weight: 650; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--ice-2); }
.timeline li:last-child::before { display: none; }
.tl-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cobalt); color: #fff; font-weight: 800; font-family: var(--f-display); font-size: 15px; }
.timeline p { margin: 7px 0 0; }
.timeline.is-collapsible:not(.is-open) .tl-more { display: none; }
.timeline.is-collapsible:not(.is-open) li:nth-child(3)::before { display: none; }
.tl-toggle { margin-top: 4px; }
@media (min-width: 640px) {
  .timeline.is-collapsible:not(.is-open) .tl-more { display: grid; }
  .timeline.is-collapsible:not(.is-open) li:nth-child(3)::before { display: block; }
  .tl-toggle { display: none; }
}
.result { margin-top: 44px; padding: clamp(22px, 4vw, 40px); border-radius: var(--r-xl); background: #f4fbdf; border: 2px solid var(--lime-deep); box-shadow: 0 20px 50px rgba(122, 170, 20, 0.16); }
.result__label { margin: 0 0 10px; font-weight: 800; font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #4c6a06; }
.result__main { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.result__tail { margin: 12px 0 0; font-size: 17px; }
.result .ticks { margin-top: 18px; }
.result .ticks .i { color: #5c8a00; }
.result__cta { margin-top: 24px; }
.next { margin: 0; font-size: 17px; }
.need { margin: 32px 0 0; font-size: 14.5px; color: var(--ink-3); }
.pair { margin: 0 0 var(--section); text-align: center; }
.ctable { overflow-x: auto; border-radius: var(--r-l); }
.ctable table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--sh-1); border-radius: var(--r-l); overflow: hidden; font-variant-numeric: tabular-nums; }
.ctable th, .ctable td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.ctable thead th { background: var(--ice); font-size: 14px; }
.ctable tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 639px) {
  .ctable table, .ctable tbody, .ctable tr, .ctable th, .ctable td { display: block; }
  .ctable table { box-shadow: none; background: transparent; }
  .ctable thead { display: none; }
  .ctable tr { background: #fff; border-radius: var(--r-m); box-shadow: var(--sh-1); padding: 6px 0; margin-bottom: 12px; }
  .ctable tbody th { font-family: var(--f-display); font-size: 17px; border-bottom: 1px solid var(--line); }
  .ctable td { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 0; }
  .ctable td::before { content: attr(data-label); color: var(--ink-3); }
}
.streams { padding-top: 40px; }
.spanel { animation: fadeup 400ms var(--ease); }
.spanel__h { margin-bottom: 12px; }
.mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.96); box-shadow: 0 -8px 24px rgba(14, 20, 48, 0.1); transform: translateY(110%); transition: transform 400ms var(--ease); }
.mcta.is-on { transform: none; }
.mcta .btn { width: 100%; }
.has-mcta .footer { padding-bottom: 104px; }
@media (min-width: 1024px) { .mcta { display: none; } .has-mcta .footer { padding-bottom: 32px; } }

/* ---------- about ---------- */
.about { display: grid; gap: 32px; }
.about__text p { margin: 0 0 18px; font-size: 18px; color: var(--ink-2); max-width: 64ch; }
.stats { padding: 26px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--sh-1); align-self: start; }
.stats__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.stat { padding: 16px; border-radius: var(--r-m); background: var(--ice); }
.stat b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.04em; line-height: 1; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.stat span { font-weight: 600; color: var(--ink-2); }
.stats > p { margin: 0; font-size: 14.5px; color: var(--ink-3); }
@media (min-width: 1024px) { .about { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 56px; } }
.mission { max-width: 920px; }
.mission__label { color: var(--lime) !important; margin-bottom: 18px; }
.quote-big { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 3.6vw, 40px); letter-spacing: -0.02em; line-height: 1.15; color: #fff; margin: 0; text-wrap: balance; }
.mission__text { margin: 20px 0 0; color: var(--on-dark-2); font-size: 18px; max-width: 64ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps__item { padding: 24px; border-radius: var(--r-l); background: #fff; box-shadow: var(--sh-1); }
.steps__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--lime); font-family: var(--f-display); font-weight: 800; margin-bottom: 14px; }
.steps__item h3 { text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 8px; }
.steps__item p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.duo { display: grid; gap: 40px; }
.duo p { color: var(--ink-2); max-width: 60ch; }
.quote-mid { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink) !important; margin: 14px 0; }
.path { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.path li { position: relative; padding: 12px 16px 12px 44px; border-radius: 14px; background: var(--ice); font-weight: 650; }
.path li::before { content: ''; position: absolute; left: 16px; top: 50%; width: 12px; height: 12px; border-radius: 4px; background: var(--cobalt); transform: translateY(-50%) rotate(45deg); }
.path li:last-child { background: #f4fbdf; }
.path li:last-child::before { background: var(--lime-deep); }
@media (min-width: 1024px) { .duo { grid-template-columns: 1fr 1fr; gap: 64px; } }
.team { display: grid; gap: 20px; max-width: 860px; }
.team p { margin: 0; color: var(--on-dark-2); font-size: 18px; }
.team .btn { justify-self: start; }

/* ---------- contacts + form ---------- */
.contact { display: grid; gap: 24px; }
.contact__form { padding: clamp(20px, 4vw, 36px); border-radius: var(--r-xl); background: #fff; box-shadow: var(--sh-1); }
.contact__dur { display: flex; align-items: center; gap: 8px; margin: 8px 0 18px; color: var(--ink-3); font-size: 15px; }
.contact__dur .i { width: 18px; height: 18px; }
.contact__list { padding: clamp(20px, 4vw, 32px); border-radius: var(--r-xl); background: var(--night); color: var(--on-dark); align-self: start; }
.contact__list h2 { color: #fff; margin-bottom: 14px; }
.contact__list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact__list a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 12px; border-radius: 14px; text-decoration: none; transition: background-color 200ms; }
.contact__list a:hover { background: var(--night-2); }
.contact__list .i { color: var(--lime); }
.contact__list small { display: block; color: var(--on-dark-2); font-size: 13px; }
.contact__list b { font-weight: 650; overflow-wrap: anywhere; }
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); } }

.form__fields { display: grid; gap: 16px; }
.form__fields[hidden] { display: none; }
.form__course { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--ice); font-size: 15px; }
.form__course span { color: var(--ink-3); }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 650; font-size: 15px; padding: 0; margin-bottom: 2px; }
.field input:not([type='checkbox']), .form__other { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-size: 16px; transition: border-color 200ms, box-shadow 200ms; }
.field input::placeholder, .form__other::placeholder { color: #6c7490; }
.field input:focus, .form__other:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(43, 75, 255, 0.15); }
.field input[aria-invalid='true'] { border-color: var(--danger); }
.err { display: none; font-size: 14px; color: var(--danger); }
input[aria-invalid='true'] + .err { display: block; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; cursor: pointer; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--line); font-weight: 600; font-size: 15px; transition: all 200ms var(--ease); }
.check span::before { content: ''; width: 16px; height: 16px; border-radius: 5px; border: 2px solid #b5bdd9; flex: none; transition: all 200ms; }
.check input:checked + span { border-color: var(--cobalt); background: var(--ice); }
.check input:checked + span::before { background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--cobalt); }
.check input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.form__other { margin-top: 10px; }
.form__submit { width: 100%; }
.form__note { margin: 0; font-size: 14px; color: var(--ink-3); }
.form__neterr { margin: 0; font-size: 14.5px; color: var(--danger); font-weight: 600; }
.form__ok { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 20px 4px; animation: pop 400ms var(--ease); }
.form__ok[hidden] { display: none; }
.form__ok h3 { font-size: 20px; }
.form__ok p { margin: 0; color: var(--ink-2); }
.okic { width: 72px; height: 72px; border-radius: 22px; background: var(--lime); display: grid; place-items: center; }
.okic .i { width: 36px; height: 36px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 600ms var(--ease) 200ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.fdialog { border: 0; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: var(--r-l); background: #fff; color: var(--ink); box-shadow: 0 40px 100px rgba(11, 16, 41, 0.4); }
.fdialog::backdrop { background: rgba(11, 16, 41, 0.55); }
.fdialog[open] { animation: pop 320ms var(--ease); }
.fdialog__head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.fdialog__head h2 { font-size: 21px; }
.fdialog__head p { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 14.5px; color: var(--ink-3); }
.fdialog__head p .i { width: 16px; height: 16px; }
.fdialog__x { width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: var(--ice); cursor: pointer; display: grid; place-items: center; }
.fdialog form { padding: 18px 20px 22px; }

.vdialog { border: 0; padding: 0; width: min(900px, calc(100vw - 24px)); border-radius: var(--r-l); background: var(--night); color: #fff; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); overflow: hidden; }
.vdialog::backdrop { background: rgba(11, 16, 41, 0.7); }
.vdialog__screen { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: #000; }
.vdialog__screen iframe, .vdialog__screen video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vdialog__soon { display: grid; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: var(--on-dark-2); }
.vdialog__soon .i { width: 44px; height: 44px; color: var(--lime); }
.vdialog__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.vdialog__bar button { min-height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.12); color: #fff; padding: 0 16px; font-weight: 650; cursor: pointer; }

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--on-dark-2); padding: var(--section) 0 32px; }
.footer .logo__text b { color: #fff; }
.footer .logo__text small { color: var(--on-dark-2); white-space: normal; }
.footer__top { display: grid; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--night-line); }
.footer__about p { margin: 16px 0; max-width: 42ch; font-size: 15px; }
.footer__spanish { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--lime); font-weight: 650; text-decoration: none; }
.footer__spanish .i { width: 16px; height: 16px; }
.footer__h { color: #fff; font-family: var(--f-body); font-size: 15px; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 15px; }
.footer ul a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; text-decoration: none; overflow-wrap: anywhere; }
.footer ul a:hover { color: var(--lime); }
.footer__contacts .i { width: 18px; height: 18px; color: var(--lime); }
.footer__bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 13.5px; }
.footer__langs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer__langs a { min-height: 32px; display: inline-flex; align-items: center; text-decoration: none; }
.footer__langs a[aria-current='true'] { color: var(--lime); }
@media (min-width: 640px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); } }

/* ---------- motion ---------- */
.js [data-reveal] { opacity: 0; transition: opacity 700ms var(--ease), transform 800ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal='up'] { transform: translateY(28px); }
.js [data-reveal='scale'] { transform: scale(0.95); }
.js [data-reveal='pop'] { transform: scale(0.8); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* long course titles: smaller on phones, no mid-word hyphenation */
h1 { hyphens: manual; }
.chead .h-hero { font-size: clamp(24px, 5.6vw, 52px); }

/* "why parents" cards: question + parent's words */
.why__item { display: flex; flex-direction: column; }
.why__item h3 { font-size: 18px; }
.why__item blockquote { margin: 6px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--ice); position: relative; }
.why__item blockquote p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); font-style: italic; }
@media (min-width: 1024px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .why__item { padding: 28px; } }

/* catalog age groups (same three groups as on the homepage) */
.fchip--age { display: inline-flex; align-items: center; gap: 8px; }
.fchip--age i { width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--c); }
.fchip--age[aria-pressed='true'] i { background: #fff; }

/* homepage hero: the "lessons cover…" line is hidden on phones */
@media (max-width: 639px) { .hero__text { display: none; } }

/* video covers (YouTube thumbnails) */
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vslot__btn { position: relative; }
.vslot__btn .cover { z-index: 0; transition: transform 600ms var(--ease); }
.vslot__btn:hover .cover { transform: scale(1.04); }
.vslot__btn .vslot__play { position: relative; z-index: 1; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.vslot__btn--vertical { aspect-ratio: 9 / 16; max-height: 560px; }

/* vertical (Shorts) player */
.vdialog--vertical { width: min(400px, calc((100dvh - 110px) * 9 / 16), calc(100vw - 24px)); }
.vdialog--vertical .vdialog__screen { aspect-ratio: 9 / 16; }

/* single teacher: one wide card instead of a 3-column grid */
.tcard__photo--vertical { aspect-ratio: 9 / 16; }
.tgrid--one { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
@media (min-width: 640px) {
  .tgrid--one .tcard { flex-direction: row; }
  .tgrid--one .tcard__photo { flex: 0 0 300px; aspect-ratio: 9 / 16; }
  .tgrid--one .tcard__body { align-content: center; padding: 28px 32px; }
}
@media (max-width: 639px) {
  .tcard__photo--vertical { aspect-ratio: 4 / 5; }
  .final h2 { font-size: clamp(21px, 6vw, 30px); overflow-wrap: normal; hyphens: manual; }
}
