/* OSNOVA Schools · страница-заглушка: один экран. Синяя живая мозаика, пиксельная школа, белый текст.
   Старший брат раскрытой панели Schools из блока направлений на главной. Без JS — сплошной синий фон и тот же текст. */

.stub-page { background: var(--blue); color: var(--white); }

.stub { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.stub__stage { position: relative; isolation: isolate; flex: 1 0 auto; display: flex; flex-direction: column; overflow: hidden; background: var(--blue); }

/* ── графика: мозаика на весь экран и школа справа на нижнем крае ── */
.stub__art { position: absolute; inset: 0; z-index: 0; }
.stub__mosaic { position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; max-width: none; } /* точный размер (кратный клетке) ставит js/stub.js */
.stub__scene { position: absolute; right: 0; bottom: 0; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.stub__scene canvas { position: absolute; left: 0; top: 0; max-width: none; image-rendering: pixelated; }
.stub__ground { position: absolute; right: 0; bottom: 0; background: var(--sky); opacity: 0; } /* тротуар дотягивается до края экрана */
.stub__scene.is-on .stub__ground { opacity: 1; }
/* слева от этой границы курсор мозаику не зажигает: под текстом клетки всегда спокойные */
.stub__guard { position: absolute; left: 0; top: 0; bottom: 0; z-index: 1; width: 0; }
.no-js .stub__art, .no-js .stub__guard { display: none; }

/* ── верх: знак и ссылка на главную ── */
.stub__top { position: relative; z-index: 3; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); padding-inline: var(--gutter); pointer-events: none; }
.stub__top > * { pointer-events: auto; }
.stub__logo { display: inline-flex; flex: none; padding-block: 11px; margin-block: -11px; border-radius: 6px; }
.stub__logo img { width: auto; height: 22px; }
.stub__home { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px 0 15px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
.stub__home svg { width: 18px; height: 18px; flex: none; transition: transform var(--t-hover) var(--ease); }
.stub__home:hover { background: var(--white); color: var(--ink); }
.stub__home:hover svg { transform: translateX(-3px); }
.stub__home:focus-visible, .stub__btn:focus-visible, .stub__lang summary:focus-visible { border-radius: 999px; }
/* язык: код текущего языка раскрывает список из трёх ссылок на эту же страницу (<details> работает и без JS; js/stub.js закрывает список по клику мимо и по Escape) */
.stub__nav { display: flex; align-items: center; gap: 8px; }
.stub__lang { position: relative; }
.stub__lang summary { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; list-style: none; cursor: pointer; -webkit-user-select: none; user-select: none; transition: background-color var(--t-hover) var(--ease); }
.stub__lang summary::-webkit-details-marker { display: none; }
.stub__lang summary svg { width: 16px; height: 16px; flex: none; transition: transform var(--t-hover) var(--ease); }
.stub__lang summary:hover, .stub__lang[open] summary { background: rgba(17, 18, 24, .24); }
.stub__lang[open] summary svg { transform: rotate(180deg); }
.stub__lang-list { position: absolute; top: calc(100% + 8px); right: 0; z-index: 3; display: grid; gap: 2px; min-width: 172px; padding: 8px; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 0 24px 48px -24px rgba(17, 18, 24, .35), 0 0 0 1px var(--ink-08); }
.stub__lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 15px; line-height: 20px; font-weight: 500; }
.stub__lang-list a:hover { background: var(--mist); }
.stub__lang-list a[aria-current="true"]::after { content: ""; flex: none; width: 6px; height: 6px; background: var(--blue); }
/* на узком экране (до 1023px) вместо списка — коды RU UZ EN прямо в верхней строке, как в шапке главной: текущий — полная яркость и лаймовый квадрат под кодом */
.stub__langs { display: none; align-items: center; }
.stub__langs a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 44px; padding: 0 4px; font-size: 14px; font-weight: 500; letter-spacing: .02em; opacity: .7; transition: opacity var(--t-hover) var(--ease); }
.stub__langs a:hover, .stub__langs a[aria-current="true"] { opacity: 1; }
.stub__langs a[aria-current="true"]::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 4px; height: 4px; margin-left: -2px; background: var(--lime); }
@media (max-width: 1023px) { .stub__lang { display: none; } .stub__langs { display: flex; } }

/* ── текст ── */
.stub__main { position: relative; z-index: 2; flex: 1 0 auto; display: flex; align-items: center; padding: 16px var(--gutter) clamp(32px, 7vh, 72px); pointer-events: none; }
.stub__copy { max-width: min(640px, 56vw); pointer-events: auto; }
.stub__title { font-size: clamp(64px, min(11vw, 17vh), 168px); line-height: .94; font-weight: 600; letter-spacing: -0.045em; }
.stub__line { display: block; width: fit-content; overflow: hidden; padding: .04em .06em .1em; margin: -.04em -.06em -.1em; } /* окно, из которого строка выезжает снизу */
.stub__brand, .stub__name { display: block; }
.stub__brand { font-weight: 400; }
.stub__lead { max-width: 23em; margin-top: clamp(20px, 3.4vh, 36px); font-size: clamp(20px, calc(13px + 1.05vw), 28px); line-height: 1.3; font-weight: 500; letter-spacing: -0.018em; text-wrap: pretty; }
.stub__status { max-width: 31em; margin-top: clamp(14px, 2.2vh, 22px); font-size: var(--fs-body); line-height: 1.5; text-wrap: pretty; }
.stub__status strong { font-weight: 600; }
.stub__nb { white-space: nowrap; }

.stub__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(24px, 4.2vh, 40px); }
.stub__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 17px; font-weight: 500; white-space: nowrap; transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
.stub__btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--t-hover) var(--ease); }
.stub__btn:hover { background: var(--lime); }
.stub__btn:hover svg { transform: translateX(3px); }
.stub__btn:active { transform: translateY(1px); }
.stub__btn--line { padding: 0 24px 0 26px; background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
.stub__btn--line:hover { background: var(--white); color: var(--ink); }
.stub__btn--line:hover svg { transform: translate(2px, -2px); }

/* ── низ: земля под школой и строка подвала ── */
.stub__foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; min-height: 60px; padding: 8px var(--gutter) max(8px, env(safe-area-inset-bottom)); background: var(--ink); color: var(--white-70); font-size: var(--fs-small); line-height: 1.45; }
.stub__foot a { padding-block: 9px; transition: color var(--t-hover) var(--ease); }
.stub__foot a:hover { color: var(--white); }

/* ── появление: строки названия выезжают из-под края, текст и кнопки поднимаются следом ── */
@keyframes stub-rise { from { transform: translateY(108%); } }
@keyframes stub-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.is-static) .stub__brand, .js:not(.is-static) .stub__name { animation: stub-rise var(--t-build) var(--ease) both; }
  .js:not(.is-static) .stub__name { animation-delay: 90ms; }
  .js:not(.is-static) .stub__lead, .js:not(.is-static) .stub__status, .js:not(.is-static) .stub__actions { animation: stub-in var(--t-in) var(--ease) both; }
  .js:not(.is-static) .stub__lead { animation-delay: 300ms; }
  .js:not(.is-static) .stub__status { animation-delay: 380ms; }
  .js:not(.is-static) .stub__actions { animation-delay: 460ms; }
  .stub__ground { transition: opacity var(--t-in) var(--ease); }
}

/* ── телефон: текст под названием, школа внизу ── */
@media (max-width: 767px) {
  .stub__mosaic { transform: scaleY(-1); } /* спокойная зона мозаики считается снизу — на телефоне текст сверху, поэтому поле перевёрнуто */
  .stub__guard { display: none; }
  .stub__logo img { height: 20px; }
  .stub__home { height: 40px; padding: 0 16px 0 12px; font-size: 14px; }
  .stub__nav { gap: 4px; }
  .stub__lang summary { height: 40px; padding: 0 8px 0 10px; font-size: 14px; }
  .stub__main { align-items: flex-start; padding: 8px var(--gutter) var(--scene-pad, 28px); }
  .no-js .stub__main { padding-bottom: 40px; }
  .stub__copy { max-width: none; width: 100%; }
  .stub__title { font-size: clamp(54px, 17vw, 84px); }
  .stub__lead { margin-top: 20px; font-size: 20px; line-height: 1.35; }
  .stub__status { margin-top: 14px; font-size: 16px; line-height: 1.5; }
  .stub__actions { margin-top: 26px; gap: 10px; }
  .stub__btn { height: 54px; padding: 0 22px; font-size: 16px; }
  .stub__actions .stub__btn:first-child { flex: 1 1 100%; }
  .stub__foot { gap: 0 20px; min-height: 0; padding-top: 10px; padding-bottom: max(4px, env(safe-area-inset-bottom)); font-size: 13px; }
  .stub__foot span { flex: 1 1 100%; }
  .stub__foot a { padding-block: 7px; }
}
@media (min-width: 768px) and (max-height: 800px) { html:lang(uz) .stub__main { padding-bottom: 32px; } } /* uz: лид в три строки (ru — в две); на низком экране (1280×720) без этого страница прокручивается на 2px */
@media (max-width: 479px) { .stub__home { gap: 0; padding: 0 11px; font-size: 0; } } /* телефон: рядом с кодами языков от «На главную» остаётся круглая кнопка со стрелкой, текст читают скринридеры (на главную ведёт и знак) */
@media (max-width: 379px) {
  .stub__top { gap: 8px; }
  .stub__logo img { height: 18px; }
  .stub__lang summary { padding: 0 4px 0 8px; }
  .stub__btn { padding: 0 18px; }
  .stub__actions .stub__btn:first-child svg { display: none; }
}
