/* OSNOVA Schools · лендинг курса. Поверх tokens/base/home: шапка, подвал, заголовки секций и стрелки — с главной.
   Здесь — первый экран (мозаика и школа, как на заглушке), карточки, треки, сравнение, профтест, пилот с видео, вопросы, финал. */

.schools-page { --section: 128px; }
@media (max-width: 767px) { .schools-page { --section: 88px; } }

/* ── кнопки страницы: крупные капсулы ── */
.sch-btn { height: 56px; padding: 0 26px 0 28px; gap: 10px; font-size: 17px; }
.sch-btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--t-hover) var(--ease); }
.sch-btn:hover svg { transform: translateX(3px); }
.sch-btn:active { transform: translateY(1px); }
.sch-btn--white { background: var(--white); color: var(--ink); }
.sch-btn--white:hover { background: var(--lime); }
.sch-btn--ink { background: var(--ink); color: var(--white); }
.sch-btn--ink:hover { background: var(--blue); }
.sch-btn--lime { background: var(--lime); color: var(--ink); }
.sch-btn--lime:hover { background: var(--white); }
.sch-btn[href^="https://t.me"]:hover svg { transform: translate(2px, -2px); }

/* кнопка в шапке: белая на первом экране, чернильная после прокрутки; на узком экране — в меню */
.sch-hbtn { height: 40px; padding: 0 18px; background: var(--ink); color: var(--white); }
.sch-hbtn:hover { background: var(--blue); }
.hdr.is-on-hero:not(.is-scrolled) .sch-hbtn { background: var(--white); color: var(--ink); }
.hdr.is-on-hero:not(.is-scrolled) .sch-hbtn:hover { background: var(--lime); }
@media (max-width: 1023px) { .sch-hbtn { display: none; } }
@media (min-width: 1024px) and (max-width: 1199px) { .hdr__nav { gap: 20px; } .hdr__in { gap: 20px; } }
.mnav__foot .mnav__cta { flex: 1 1 100%; padding-block: 0; margin-block: 0 8px; }

/* ── 1. Первый экран ── */
.sh { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--blue); color: var(--white); }
.sh__art { position: absolute; inset: 0; z-index: 0; }
.sh__mosaic { position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; max-width: none; }
.sh__scene { position: absolute; right: 0; bottom: 0; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.sh__scene canvas { position: absolute; left: 0; top: 0; max-width: none; image-rendering: pixelated; }
.sh__ground { position: absolute; right: 0; bottom: 0; background: var(--sky); opacity: 0; }
.sh__scene.is-on .sh__ground { opacity: 1; }
.sh__guard { position: absolute; left: 0; top: 0; bottom: 0; z-index: 1; width: 0; }
.no-js .sh__art, .no-js .sh__guard { display: none; }

.sh__in { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 56px); padding-bottom: clamp(48px, 9vh, 104px); pointer-events: none; }
.sh__copy { max-width: min(800px, 60vw); pointer-events: auto; }
.sh__title { font-size: clamp(40px, calc(40px + 30 * (100vw - 390px) / 1050), 70px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
.sh__ln { display: block; width: fit-content; }
.sh__sub { max-width: 36em; margin-top: 28px; font-size: var(--fs-body); line-height: var(--lh-body); color: rgba(255, 255, 255, .86); text-wrap: pretty; }
.sh__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; max-width: 640px; }
.sh__chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(17, 18, 24, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); font-size: 15px; font-weight: 500; white-space: nowrap; }
.sh__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 36px; }
.sh__link { font-size: 17px; }
.sh__link:hover svg { transform: translateY(2px); }

@keyframes sh-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.is-static) .sh__ln { animation: sh-in var(--t-build) var(--ease) both; }
  .js:not(.is-static) .sh__ln:nth-child(2) { animation-delay: 80ms; }
  .js:not(.is-static) .sh__ln:nth-child(3) { animation-delay: 160ms; }
  .js:not(.is-static) .sh__sub, .js:not(.is-static) .sh__chips, .js:not(.is-static) .sh__cta { animation: sh-in var(--t-in) var(--ease) both; }
  .js:not(.is-static) .sh__sub { animation-delay: 300ms; }
  .js:not(.is-static) .sh__chips { animation-delay: 380ms; }
  .js:not(.is-static) .sh__cta { animation-delay: 460ms; }
  .sh__ground { transition: opacity var(--t-in) var(--ease); }
}
@media (max-width: 767px) {
  .sh { justify-content: flex-start; }
  .sh__mosaic { transform: scaleY(-1); } /* спокойная зона мозаики считается снизу — на телефоне текст сверху, поэтому поле перевёрнуто */
  .sh__guard { display: none; }
  /* порядок на телефоне: заголовок, текст, плашки, школа, кнопки. Школа стоит на верхнем крае синей полосы с кнопками:
     .sh__art кончается над полосой (--cta-band), место под школой между плашками и кнопками — --scene-room (считает schools.js) */
  .sh__art { bottom: var(--cta-band, 0px); }
  .sh__in { flex: 1 0 auto; display: flex; flex-direction: column; padding-top: calc(var(--header-h) + 24px); padding-bottom: 28px; }
  .no-js .sh__in { padding-bottom: 48px; }
  .sh__copy { flex: 1 0 auto; display: flex; flex-direction: column; max-width: none; }
  .sh__title { font-size: clamp(36px, 10.4vw, 48px); line-height: 1.04; }
  .sh__ln { display: inline; }
  .sh__sub { margin-top: 18px; font-size: 17px; line-height: 1.5; }
  .sh__chips { margin-top: 20px; gap: 6px; }
  .sh__chip { height: 30px; padding: 0 11px; font-size: 13px; }
  .sh__cta { margin-top: auto; padding-top: var(--scene-room, 26px); gap: 18px; }
  .sh__cta .sch-btn { flex: 1 1 100%; }
  .sh__link { font-size: 16px; }
}

/* ── 2. Боль родителей: белые карточки с пиксельной обложкой ── */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.pain { min-width: 0; }
.pain__cover { min-width: 0; overflow: hidden; }
.pain { display: flex; flex-direction: column; gap: 14px; padding: 12px 12px 28px; border-radius: var(--radius); background: var(--white); }
.pain__cover { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); margin-bottom: 10px; background-size: 32px 32px; background-position: 0 0, 16px 16px; }
.pain__cover .spr { height: 58%; width: auto; image-rendering: pixelated; }
.pain__cover--sky { background-color: var(--sky); background-image: linear-gradient(45deg, #B9CFFF 25%, transparent 25%, transparent 75%, #B9CFFF 75%), linear-gradient(45deg, #B9CFFF 25%, transparent 25%, transparent 75%, #B9CFFF 75%); }
.pain__cover--blue { background-color: var(--blue); background-image: linear-gradient(45deg, #3446FF 25%, transparent 25%, transparent 75%, #3446FF 75%), linear-gradient(45deg, #3446FF 25%, transparent 25%, transparent 75%, #3446FF 75%); }
.pain__cover--ink { background-color: var(--ink); background-image: linear-gradient(45deg, #1A1C2A 25%, transparent 25%, transparent 75%, #1A1C2A 75%), linear-gradient(45deg, #1A1C2A 25%, transparent 25%, transparent 75%, #1A1C2A 75%); }
.pain__q { padding: 0 12px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.018em; text-wrap: balance; }
.pain__a { padding: 0 12px; color: var(--ink-55); font-size: 17px; line-height: 1.55; }
@media (max-width: 1023px) { .pains { grid-template-columns: 1fr; gap: 16px; } .pain { display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 10px 24px; padding: 12px 24px 12px 12px; } .pain__cover { grid-row: 1 / 3; aspect-ratio: auto; height: 100%; min-height: 150px; margin: 0; } .pain__q, .pain__a { padding: 0; } .pain__q { align-self: end; padding-top: 12px; } .pain__a { padding-bottom: 12px; } }
@media (max-width: 767px) { .pain { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 22px; gap: 12px; } .pain__cover { grid-row: auto; aspect-ratio: 16 / 9; min-height: 0; margin-bottom: 6px; } .pain__q, .pain__a { padding: 0 8px; } .pain__q { padding-top: 0; font-size: 20px; } .pain__a { padding-bottom: 0; font-size: 16px; } }

/* ── 3. Четыре навыка ── */
.gets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
.get { display: grid; align-content: start; gap: 12px; padding: 36px 36px 40px; border-radius: var(--radius); background: var(--white); }
.get__ico { width: 60px; height: 60px; margin-bottom: 20px; image-rendering: pixelated; }
.get p { color: var(--ink-55); max-width: 34em; }
@media (max-width: 767px) { .gets { grid-template-columns: 1fr; gap: 12px; } .get { padding: 24px 24px 28px; } .get__ico { width: 48px; height: 48px; margin-bottom: 12px; } .get p { font-size: 16px; line-height: 1.55; } }

/* ── 4. База и треки по классам ── */
.base { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: center; padding: 36px 40px; border-radius: var(--radius); background: var(--ink); color: var(--white); }
.base__h { display: flex; align-items: center; gap: 20px; font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; }
.base__n { flex: none; font-size: 96px; line-height: .8; font-weight: 600; letter-spacing: -0.05em; color: var(--lime); }
.base__t { max-width: 11em; }
.base__list { display: flex; flex-wrap: wrap; gap: 8px; }
.base__list li { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--white-16); font-size: 15px; font-weight: 500; line-height: 1.3; }
.tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); margin-top: var(--col-gap); }
.track { display: flex; flex-direction: column; padding: 28px 32px 32px; border-radius: var(--radius); background: var(--white); }
.track--10 { background: var(--sky); }
.track--11 { background: var(--blue); color: var(--white); }
.track__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.track__grade { font-size: 120px; line-height: .82; font-weight: 600; letter-spacing: -0.06em; }
.track__grade small { display: block; margin-top: 14px; font-size: 17px; line-height: 1; font-weight: 500; letter-spacing: 0; }
.track__spr { height: 72px; width: auto; image-rendering: pixelated; }
.track__text { flex: 1 0 auto; margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--ink-70); }
.track--11 .track__text { color: rgba(255, 255, 255, .82); }
.track__res { margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: var(--mist); font-size: 16px; line-height: 1.5; }
.track__res b { display: block; margin-bottom: 4px; font-weight: 600; }
.track--10 .track__res { background: rgba(255, 255, 255, .55); }
.track--11 .track__res { background: rgba(17, 18, 24, .24); }
.tracks__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; margin-top: 32px; }
.tracks__note { max-width: 38em; color: var(--ink-55); font-size: 16px; line-height: 1.5; }
@media (max-width: 1023px) {
  .base { grid-template-columns: 1fr; padding: 28px; }
  .tracks { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .track__grade { font-size: 96px; }
}
@media (max-width: 767px) {
  .base { padding: 24px 20px 24px; gap: 20px; }
  .base__h { font-size: 19px; gap: 16px; }
  .base__n { font-size: 72px; }
  .base__list li { min-height: 34px; padding: 5px 13px; font-size: 14px; }
  .track { padding: 22px 20px 20px; }
  .track__top { margin-bottom: 20px; }
  .track__grade { font-size: 80px; }
  .track__grade small { margin-top: 10px; font-size: 15px; }
  .track__spr { height: 56px; }
  .track__text { font-size: 16px; }
  .track__res { padding: 16px; font-size: 15px; }
  .tracks__foot { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .tracks__foot .sch-btn { width: 100%; }
}

/* ── 5. Для ученика: лаймовая карточка ── */
.teen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; align-items: center; padding: 56px 64px; border-radius: var(--radius); background: var(--lime); color: var(--ink); }
.teen__art { display: flex; align-items: flex-end; justify-content: center; min-width: 0; }
.teen__scene { display: block; max-width: 100%; } /* размер в целых клетках ставит schools.js */
.teen__copy { display: grid; justify-items: start; gap: 22px; }
.teen__text { max-width: 32em; }
.teen .sch-btn { margin-top: 10px; }
/* в столбике: заголовок, текст, сцена, кнопка — блок текста раскрыт в сетку карточки */
@media (max-width: 1023px) {
  .teen { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 40px; }
  .teen__copy { display: contents; }
  .teen__copy .h2 { order: 1; } .teen__text { order: 2; } .teen__art { order: 3; justify-content: flex-start; margin-top: 6px; } .teen .sch-btn { order: 4; justify-self: start; margin-top: 0; }
}
@media (max-width: 767px) { .teen { padding: 28px 20px 28px; gap: 16px; } .teen__text { font-size: 17px; } .teen__art { margin-top: 12px; } .teen .sch-btn { width: 100%; margin-top: 8px; } }

/* ── 6. Сравнение: тёмная полоса, колонка OSNOVA Schools — синяя ── */
.cmp-sec.section { margin-top: var(--section); padding-block: 120px 128px; background: var(--ink); color: var(--white); }
.cmp-sec .sec-head__sub { color: var(--white-70); }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 26px 28px; font-size: 18px; line-height: 1.45; }
.cmp thead th { padding-block: 22px 18px; font-size: 15px; font-weight: 500; color: var(--white-70); }
.cmp thead th:last-child { border-radius: var(--radius) var(--radius) 0 0; background: var(--blue); color: var(--white); }
.cmp tbody th { font-weight: 600; }
.cmp tbody th, .cmp tbody td { border-top: 1px solid var(--white-16); }
.cmp tbody td { color: rgba(255, 255, 255, .78); }
.cmp td.cmp__us { background: var(--blue); color: var(--white); font-weight: 500; border-top-color: rgba(255, 255, 255, .22); }
.cmp tbody tr:last-child td.cmp__us { border-radius: 0 0 var(--radius) var(--radius); }
.cmp td.cmp__us { position: relative; padding-left: 52px; }
.cmp td.cmp__us::before { content: ""; position: absolute; left: 28px; top: 34px; width: 10px; height: 10px; background: var(--lime); }
.cmp__k { display: none; }
@media (max-width: 767px) {
  .cmp-sec.section { padding-block: 72px 80px; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cmp tbody { display: grid; gap: 12px; }
  .cmp tr { padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); }
  .cmp tbody th, .cmp tbody td { padding: 0; border: 0; font-size: 16px; line-height: 1.5; }
  .cmp tbody th { font-size: 19px; line-height: 1.3; margin-bottom: 14px; }
  .cmp tbody td + td { margin-top: 12px; }
  .cmp td.cmp__us { padding: 14px 16px; border-radius: 12px; }
  .cmp tbody tr:last-child td.cmp__us { border-radius: 12px; }
  .cmp td.cmp__us::before { display: none; }
  .cmp__k { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 500; color: var(--white-70); }
  .cmp__us .cmp__k { color: rgba(255, 255, 255, .8); }
}

/* ── 7. Профтест: тёмно-синяя мозаика ── */
.pt { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); background: var(--edra-navy); color: var(--white); }
.pt__mosaic, .fin__mosaic { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.no-js .pt__mosaic, .no-js .fin__mosaic { display: none; }
.pt__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: start; padding: 64px 64px 40px; }
.pt__copy { display: grid; justify-items: start; gap: 20px; }
.pt__copy p { max-width: 34em; color: rgba(255, 255, 255, .8); }
.pt__copy .sch-btn { margin-top: 16px; }
.pt__list { display: grid; gap: 10px; }
.pt__list li { display: grid; gap: 2px; padding: 18px 22px; border-radius: 16px; background: rgba(17, 18, 24, .72); box-shadow: inset 0 0 0 1px var(--white-16); }
.pt__list b { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.pt__list span { color: var(--white-70); font-size: 16px; line-height: 1.45; }
.pt__fine { padding: 0 64px 48px; max-width: 46em; color: var(--white-70); font-size: 15px; line-height: 1.5; }
@media (max-width: 1023px) { .pt__in { grid-template-columns: minmax(0, 1fr); padding: 48px 40px 32px; } .pt__fine { padding: 0 40px 40px; } }
@media (max-width: 767px) {
  .pt__mosaic, .fin__mosaic { transform: scaleY(-1); }
  .pt__in { padding: 32px 20px 24px; gap: 28px; }
  .pt__copy { gap: 16px; }
  .pt__copy p { font-size: 16px; line-height: 1.55; }
  .pt__copy .sch-btn { width: 100%; margin-top: 8px; padding-inline: 18px; font-size: 16px; }
  .pt__copy, .pt__list, .pt__list li { min-width: 0; }
  .pt__copy { grid-template-columns: minmax(0, 1fr); }
  .pt__copy .sch-btn { height: auto; min-height: 56px; padding-block: 14px; white-space: normal; text-align: center; line-height: 1.25; } /* 320 px: «Пройти профтест бесплатно» в одну строку не помещается */
  .pt__list li { padding: 14px 16px; }
  .pt__list b { font-size: 19px; }
  .pt__list span { font-size: 15px; }
  .pt__fine { padding: 0 20px 28px; font-size: 14px; }
}

/* ── 8. Пилот: цифры и лента видео ── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 220px; padding: 28px 28px 26px; border-radius: var(--radius); background: var(--white); }
.stat__n { font-size: clamp(56px, calc(56px + 32 * (100vw - 768px) / 672), 88px); line-height: .9; font-weight: 600; letter-spacing: -0.05em; color: var(--blue); }
.stat__n small { font-size: .42em; letter-spacing: -0.02em; color: var(--ink-55); }
.stat__l { font-size: 17px; line-height: 1.4; color: var(--ink-70); max-width: 14em; }
.stat--lime { background: var(--lime); }
.stat--lime .stat__n { color: var(--ink); }
@media (max-width: 1023px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .stats { gap: 10px; } .stat { min-height: 152px; padding: 18px 16px 16px; gap: 18px; } .stat__n { font-size: 48px; } .stat__l { font-size: 14px; } }

.vids-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 80px; }
.vids-head__sub { margin-top: 10px; max-width: 36em; color: var(--ink-55); font-size: 17px; line-height: 1.5; }
.vids-nav { display: flex; gap: 8px; flex: none; }
.vids-nav__b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--ink); transition: background-color var(--t-hover) var(--ease), opacity var(--t-hover) var(--ease); }
.vids-nav__b svg { width: 20px; height: 20px; }
.vids-nav__b:hover { background: var(--lime); }
.vids-nav__b:disabled { opacity: .35; cursor: default; background: var(--white); }
.vids { --edge: calc(max(0px, (100vw - var(--container)) / 2) + var(--gutter)); display: flex; gap: 16px; margin-top: 28px; padding-inline: var(--edge); scroll-padding-inline: var(--edge); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vids::-webkit-scrollbar { display: none; }
.vid { position: relative; flex: none; height: clamp(240px, 30vw, 420px); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); scroll-snap-align: start; }
.vid--v { aspect-ratio: 3 / 4; } /* вертикальный ролик — по высоте ленты, кадр 3:4 по центру */
.vid video { width: 100%; height: 100%; object-fit: cover; }
.vid__btn { position: absolute; inset: 0; z-index: 1; cursor: pointer; border-radius: inherit; }
.vid__btn:focus-visible { outline-offset: -4px; }
.vid__snd { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(17, 18, 24, .58) center / 22px 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5zM23 9l-6 6M17 9l6 6'/%3E%3C/svg%3E"); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease); }
.vid__btn:hover .vid__snd { transform: scale(1.06); }
.vid.is-loud .vid__snd { background-color: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111218' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5zM15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E"); }
.vid figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 48px 20px 18px; background: linear-gradient(180deg, rgba(17, 18, 24, 0), rgba(17, 18, 24, .72)); color: var(--white); font-size: 17px; line-height: 1.3; font-weight: 500; pointer-events: none; }
@media (hover: none), (max-width: 767px) { .vids-nav { display: none; } }
@media (max-width: 767px) {
  .vids-head { margin-top: 56px; }
  .vids-head__sub { font-size: 15px; }
  .vids { gap: 10px; margin-top: 20px; }
  .vid { height: calc((100vw - 2 * var(--gutter) - 28px) * 9 / 16); border-radius: 16px; }
  .vid__snd { top: 10px; right: 10px; width: 38px; height: 38px; background-size: 19px 19px; }
  .vid figcaption { padding: 36px 14px 12px; font-size: 14px; }
}

/* ── 9. Вопросы: заголовок слева, раскрывающиеся строки справа ── */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: start; }
.faq-wrap .sec-head { position: sticky; top: calc(var(--header-h-scrolled) + 32px); margin-bottom: 0; }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: 16px; background: var(--white); }
.faq summary { position: relative; display: block; padding: 22px 72px 22px 26px; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; list-style: none; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: absolute; right: 18px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: var(--mist); transition: background-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 11px; top: 17px; width: 14px; height: 2px; background: var(--ink); }
.faq summary i::after { transform: rotate(90deg); }
.faq summary:hover i { background: var(--sky); }
.faq details[open] summary i { background: var(--lime); transform: rotate(45deg); }
.faq__a { padding: 0 26px 24px; max-width: 40em; color: var(--ink-70); font-size: 17px; line-height: 1.6; }
@media (max-width: 1023px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .sec-head { position: static; margin-bottom: 12px; } }
@media (max-width: 767px) { .faq summary { padding: 18px 60px 18px 18px; font-size: 17px; } .faq summary i { right: 14px; width: 32px; height: 32px; margin-top: -16px; } .faq summary i::before, .faq summary i::after { left: 9px; top: 15px; } .faq__a { padding: 0 18px 20px; font-size: 16px; } }

/* ── 10. Финал: синяя мозаика с учениками у кампуса, строка для директоров ── */
.fin { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 520px; border-radius: var(--radius); background: var(--blue); color: var(--white); }
.fin__in { position: relative; display: grid; justify-items: start; gap: 22px; max-width: 780px; padding: 72px 64px 80px; }
.fin__title { font-size: clamp(30px, calc(30px + 16 * (100vw - 390px) / 1050), 46px); line-height: 1.1; }
.fin__sub { max-width: 36em; color: rgba(255, 255, 255, .86); }
.fin__in .sch-btn { margin-top: 12px; }
.fin__scene { position: absolute; right: 56px; bottom: 0; display: flex; align-items: flex-end; gap: 10px; }
.fin__scene .spr { width: auto; height: 128px; image-rendering: pixelated; }
.fin__scene .fin__campus { height: 200px; margin-inline: 8px; }
.dir { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 16px; padding: 30px 36px; border-radius: var(--radius); background: var(--white); }
.dir__copy p { margin-top: 6px; color: var(--ink-55); }
.dir__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; flex: none; }
.dir__mail { font-size: 17px; }
.schools-note { margin-top: 28px; max-width: 46em; color: var(--ink-55); font-size: 15px; line-height: 1.5; }
@media (max-width: 1199px) { .fin__scene { right: 32px; } .fin__scene .spr { height: 96px; } .fin__scene .fin__campus { height: 150px; } }
@media (max-width: 1023px) {
  /* порядок: заголовок, текст, ученики у кампуса, кнопка. Ученики стоят на верхнем крае синей полосы с кнопкой (мозаика кончается над ней) */
  .fin { --fin-band: 116px; }
  .fin__mosaic { height: calc(100% - var(--fin-band)); }
  .fin__in { display: contents; }
  .fin__title, .fin__sub { margin-inline: 40px; }
  .fin__title { order: 1; margin-top: 48px; }
  .fin__sub { order: 2; margin-top: 22px; }
  .fin__scene { order: 3; position: relative; right: auto; align-self: flex-end; margin: auto 24px 0 0; padding-top: 24px; }
  .fin__in .sch-btn { order: 4; align-self: flex-start; margin: 28px 40px 32px; }
  .dir { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .fin { min-height: 0; }
  .fin { --fin-band: 104px; }
  .fin__title, .fin__sub { margin-inline: 20px; }
  .fin__title { margin-top: 32px; }
  .fin__sub { margin-top: 16px; font-size: 16px; line-height: 1.55; }
  .fin__in .sch-btn { align-self: stretch; margin: 24px 20px 24px; }
  .fin__scene { margin-right: 16px; gap: 6px; }
  .fin__scene .spr { height: 64px; }
  .fin__scene .fin__campus { height: 100px; margin-inline: 4px; }
  .dir { padding: 24px 20px; }
  .dir__cta { width: 100%; }
  .dir__cta .sch-btn { flex: 1 1 100%; }
  .schools-note { font-size: 14px; }
}

/* подвал: Schools в списке направлений — текущая страница */
.ftr__col a[aria-current="page"] { opacity: 1; color: var(--lime); }
.cmp thead th:last-child { padding-left: 52px; }

/* ── Заявка «Подключить школу»: модальное окно — белая карточка, подписи над полями, капсулы ── */
body.is-modal { overflow: hidden; }
.cx { width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.cx::backdrop { background: rgba(17, 18, 24, .62); }
.cx [hidden] { display: none !important; }
.cx :focus-visible { outline-color: var(--blue); }
.cx__card { position: relative; padding: 44px 44px 36px; }
.cx__x { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mist); color: var(--ink); cursor: pointer; transition: background-color var(--t-hover) var(--ease); }
.cx__x:hover { background: var(--sky); }
.cx__x svg { width: 20px; height: 20px; }
.cx__form, .cx__done { display: grid; gap: 18px; }
.cx__title { padding-right: 48px; font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.cx__sub { margin-top: -6px; color: var(--ink-55); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.cx__fld { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cx__fld > label, .cx__fld > legend { padding: 0; font-size: 15px; font-weight: 600; }
.cx__opt { font-weight: 400; color: var(--ink-55); }
.cx__fld input[type="text"], .cx__fld input[type="tel"] { width: 100%; min-width: 0; height: 54px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--mist); box-shadow: inset 0 0 0 1px transparent; color: var(--ink); font: inherit; font-size: 17px; transition: box-shadow var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease); }
.cx__fld input::placeholder { color: rgba(17, 18, 24, .42); }
.cx__fld input[type="text"]:hover, .cx__fld input[type="tel"]:hover { box-shadow: inset 0 0 0 1px var(--ink-08, rgba(17, 18, 24, .08)); }
.cx__fld input[type="text"]:focus, .cx__fld input[type="tel"]:focus { outline: none; background: var(--white); box-shadow: inset 0 0 0 2px var(--blue); }
.cx__err { display: none; color: #D4183D; font-size: 14px; line-height: 1.4; }
.cx__fld.is-err input { background: #FFF1F3; box-shadow: inset 0 0 0 2px #D4183D; }
.cx__fld.is-err .cx__err { display: block; }
.cx__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cx__pills label { position: relative; cursor: pointer; }
.cx__pills input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cx__pills span { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--mist); font-size: 15px; font-weight: 500; transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
.cx__pills label:hover span { background: var(--sky); }
.cx__pills input:checked + span { background: var(--ink); color: var(--white); }
.cx__pills input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.cx__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; display: none; }
.cx__fail { padding: 14px 16px; border-radius: 14px; background: #FFF1F3; color: #A3112E; font-size: 15px; line-height: 1.45; }
.cx__fail a, .cx__meta a { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.cx__send { width: 100%; margin-top: 6px; }
.cx__send:disabled { cursor: progress; background: var(--blue); }
.cx__meta { color: var(--ink-55); font-size: 14px; line-height: 1.45; text-align: center; }
.cx__done { justify-items: start; padding-top: 4px; }
.cx__done:focus { outline: none; }
.cx__ok { width: 48px; height: 48px; margin-bottom: 6px; image-rendering: pixelated; }
.cx__done .sch-btn { margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .cx[open] { animation: cx-in 220ms var(--ease) both; }
  .cx[open]::backdrop { animation: cx-fade 220ms linear both; }
}
@keyframes cx-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes cx-fade { from { opacity: 0; } }
@media (max-width: 767px) {
  .cx { width: calc(100% - 24px); max-height: calc(100% - 24px); }
  .cx__card { padding: 28px 20px 24px; }
  .cx__x { top: 12px; right: 12px; width: 40px; height: 40px; }
  .cx__form, .cx__done { gap: 16px; }
  .cx__title { font-size: 26px; }
  .cx__sub { font-size: 16px; }
  .cx__fld input[type="text"], .cx__fld input[type="tel"] { height: 52px; font-size: 16px; } /* 16px: iOS не приближает поле при фокусе */
  .cx__done .sch-btn { width: 100%; }
}
