/*
Theme Name: Seedream Ru
Description: Тема сайта seedream.help. Язык дизайна — «световой стол»: тёмная студийная поверхность, на которой разложены кадры. Токены сняты кодом из CSS-бандла seed.bytedance.com.
Version: 1.1.0
Text Domain: sdr-theme
*/

/* ═══════════════════════════════════════════════════════════
   0. ШРИФТ
   Geometria хостится в теме. Причина: кириллических гротесков,
   не занятых сеткой, на Google Fonts не осталось — проверены и
   отпали Bricolage Grotesque, Gabarito, Figtree, Outfit,
   Schibsted Grotesk, Instrument Sans, Epilogue, Archivo,
   Public Sans, Rethink Sans, Kanit (у всех cyrillic=0).
   Inter, который стоит на офсайте, — в списке заезженных.
   Файлы порезаны под латиницу+кириллицу, ~22 КБ на начертание.
   ═══════════════════════════════════════════════════════════ */
@font-face {
	font-family: 'Geometria';
	src: url('fonts/geometria-400.woff2') format('woff2');
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Geometria';
	src: url('fonts/geometria-500.woff2') format('woff2');
	font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Geometria';
	src: url('fonts/geometria-700.woff2') format('woff2');
	font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Geometria';
	src: url('fonts/geometria-800.woff2') format('woff2');
	font-weight: 800; font-style: normal; font-display: swap;
}

/* ═══════════════════════════════════════════════════════════
   1. ТОКЕНЫ
   Сняты кодом из бандла офсайта main.9dc4f7fd.css, а не
   пипеткой: #3c56f4 встречается 64 раза (самый частый цвет),
   #1e1f24 — 33, радиус 20px — 30 объявлений, 16px — 25,
   сглаживание cubic-bezier(.66,0,.34,1) — 60 объявлений.
   Полотно #18191B взято из инлайнового правила страницы:
   #root { background-color: #18191B }.
   ═══════════════════════════════════════════════════════════ */
:root {
	--ink:        #18191B;   /* полотно */
	--surface:    #1E1F24;   /* карточка */
	--surface-2:  #23242A;   /* вложенная плашка */
	--line:       rgba(255, 255, 255, .09);
	--line-2:     rgba(255, 255, 255, .16);

	--text:       #F4F5F7;
	--text-2:     #B9BBC6;
	--text-3:     #8B8D98;

	--accent:     #3C56F4;
	--accent-lo:  #2E44CE;
	--accent-hi:  #6E82FF;
	--neon:       #53FFE2;   /* только на нитях-разделителях */

	--wrap:       1840px;
	--col:        780px;     /* текстовая колонка */
	--pad:        clamp(18px, 3.4vw, 56px);

	--r:          20px;
	--r-in:       16px;
	--r-pill:     100px;
	--r-sm:       10px;

	--e:          cubic-bezier(.66, 0, .34, 1);
	--t:          .32s var(--e);
	--t-slow:     .6s var(--e);

	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ═══════════════════════════════════════════════════════════
   2. БАЗА
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* под липкую шапку, иначе якорь встаёт под её кромку */
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: 'Geometria', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 17px;
	line-height: 1.62;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	/* clip, а не hidden: hidden по X принудил бы overflow-y в auto
	   и сломал липкие элементы внутри страницы */
	overflow-x: clip;
}

img, svg, video, canvas { max-width: 100%; }
img, video { height: auto; display: block; }

a { color: var(--accent-hi); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: #9AA8FF; }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -.028em;
	color: var(--text);
	text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.1rem + 3.6vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.9rem); letter-spacing: -.032em; }
h3 { font-size: clamp(1.12rem, 1rem + .6vw, 1.45rem); }

p { margin: 0 0 1.1em; color: var(--text-2); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; color: var(--text-2); }
li { margin-bottom: .5em; }
strong { color: var(--text); font-weight: 700; }
code, kbd { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }

.shell { width: min(100% - var(--pad) * 2, var(--wrap)); margin-inline: auto; }
.text-col { max-width: var(--col); }
.lead { font-size: clamp(1.02rem, .98rem + .42vw, 1.3rem); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 12px 18px; z-index: 300; border-radius: 0 0 var(--r-sm) 0; }
.skip:focus { left: 0; top: 0; color: #fff; }

.section { padding-block: clamp(56px, 7vw, 128px); }
.section--tight { padding-block: clamp(40px, 5vw, 84px); }

.ic { width: 20px; height: 20px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   3. ШАПКА
   Реф-кнопка стоит СНАРУЖИ бургера и видна на всех ширинах —
   жёсткое требование сетки.
   ═══════════════════════════════════════════════════════════ */
.hdr {
	position: sticky; top: 0; z-index: 90;
	background: rgba(24, 25, 27, .82);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 20px; min-height: 68px; justify-content: space-between;}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.06rem; letter-spacing: -.02em; flex-shrink: 0; }
.brand:hover { color: var(--text); }
.mark { width: 30px; height: 30px; display: block; flex-shrink: 0; border-radius: 9px; }
.brand__name { white-space: nowrap; }

.nav { margin-left: auto; min-width: 0; }
.nav__list { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
	display: block; padding: 8px 13px; border-radius: var(--r-pill);
	color: var(--text-2); font-size: 15px; transition: background var(--t), color var(--t);
}
.nav__list a:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.nav__list [aria-current="page"] { background: rgba(60, 86, 244, .18); color: #C3CCFF; }
/* Второстепенные пункты живут в том же списке и раскрываются в
   шторке — ни одна страница не пропадает из навигации. */
.nav__item--extra { display: none; }

.hdr__side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.nav + .hdr__side { margin-left: 0; }

.burger {
	display: none; width: 44px; height: 44px; flex-shrink: 0;
	border: 1px solid var(--line-2); border-radius: var(--r-sm);
	background: transparent; color: var(--text); cursor: pointer;
	align-items: center; justify-content: center; padding: 0;
}
.burger .ic { width: 22px; height: 22px; }

/* ═══════════════════════════════════════════════════════════
   4. КНОПКИ — пилюли офсайта
   ═══════════════════════════════════════════════════════════ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 46px; padding: 0 22px;
	border: 0; border-radius: var(--r-pill);
	font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.2;
	cursor: pointer; white-space: nowrap;
	transition: background var(--t), color var(--t), box-shadow var(--t);
}
.btn .ic { width: 18px; height: 18px; transition: transform var(--t); }
.btn:hover .ic { transform: translateX(3px); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -14px rgba(60, 86, 244, .9); }
.btn--primary:hover { background: var(--accent-lo); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.btn--on-accent { background: #fff; color: #14161C; }
.btn--on-accent:hover { background: #E9ECFF; color: #14161C; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ═══════════════════════════════════════════════════════════
   5. ПЕРВЫЙ ЭКРАН
   ═══════════════════════════════════════════════════════════ */
.hero { padding: clamp(56px, 8vw, 128px) clamp(36px, 4vw, 64px); position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: clamp(28px, 3vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: end; }

/* Фотофон лежит отдельным слоем на всю секцию; overflow: hidden выше
   срезает всё, что вылезает за края при object-fit: cover, поэтому
   горизонтальной полосы прокрутки картинка не даёт ни на одной ширине. */
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
	display: block; width: 100%; height: 100%;
	object-fit: cover;
	/* Сдвиг вправо нужен только на узких экранах, где кадр режется по
	   ширине: иначе тигр уезжает за границу и остаётся пустой лес. */
	object-position: 72% center;
}
.hero .shell { position: relative; z-index: 1; }

/* Подложка ставится под сам текст, а не поверх всей фотографии:
   середина кадра со зверем и верх с кроной остаются открытыми. */
.hero__plate {
	padding: clamp(18px, 2vw, 34px);
    border-radius: var(--r);
    -webkit-backdrop-filter: blur(10px);
}
.hero__plate > :last-child { margin-bottom: 0; }

@media (min-width: 1100px) {
	/* асимметрия 7/5 — ось «ритм секций» */
	.hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	/* Контейнер здесь 1840px: без ограничения ширины две плашки сомкнулись бы
	   в сплошную полосу. Левая держит текстовую колонку, правая жмётся к краю,
	   между ними остаётся открытый кадр. */
	.hero__grid > .hero__plate { max-width: 880px; }
	.hero__grid > .hero__aside { max-width: 420px; margin-left: auto; }
}
.hero h1 { margin-bottom: 22px; }
.hero__aside { color: var(--text-3); font-size: 15px; }
.hero__aside b { display: block; color: var(--text); font-size: clamp(2.4rem, 1.4rem + 3vw, 4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 6px; }
.hero__facts { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* Нить-разделитель: единственное место, где появляется неон */
.thread { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--accent) 22%, var(--neon) 55%, transparent); opacity: .5; }

/* ═══════════════════════════════════════════════════════════
   6. КАРТОЧКИ
   Ось «форма поверхностей»: рамки нет вовсе, плита отделяется
   только собственной заливкой и мягким свечением акцента.
   ═══════════════════════════════════════════════════════════ */
.card {
	background: var(--surface);
	border-radius: var(--r);
	padding: clamp(20px, 2vw, 32px);
	min-width: 0;
	position: relative;
	transition: background var(--t), box-shadow var(--t);
	box-shadow: 0 0 0 1px rgba(60, 86, 244, .5), 0 24px 60px -34px rgba(60, 86, 244, .8);
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 15.5px; }
.card__icon { color: var(--accent-hi); margin-bottom: 14px; }
.card__icon .ic { width: 26px; height: 26px; }
.card--accent { background: linear-gradient(150deg, var(--accent) 0%, var(--accent-lo) 100%); }
.card--accent h3, .card--accent p, .card--accent li { color: #fff; }
.card--accent p, .card--accent li { color: rgba(255, 255, 255, .9); }
.card--flat { background: transparent; padding-inline: 0; }
.card--lift:hover { box-shadow: 0 0 0 1px rgba(60, 86, 244, .5), 0 24px 60px -34px rgba(60, 86, 244, .8); }

.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
	.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
	.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	/* асимметрия — ось ритма */
	.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.grid--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (min-width: 760px) and (max-width: 1099px) {
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Кадр: ось «ховер» — плита стоит, растёт только картинка внутри */
.frame { border-radius: var(--r-in); overflow: hidden; background: var(--surface-2); }
.frame img { width: 100%; transition: transform .5s var(--e); }
.frame:hover img, .card--lift:hover .frame img { transform: scale(1.05); }

/* ═══════════════════════════════════════════════════════════
   7. АНИМАЦИЯ 1 — ВСПЛЫВАЮЩИЙ ТЕКСТ
   Строка поднимается и одновременно стягивает трекинг: в сетке
   уже заняты пословный выезд и маскирующий ревил, поэтому здесь
   подъём совмещён с изменением межбуквенного расстояния.
   ═══════════════════════════════════════════════════════════ */
.rise-lines > span {
	display: inline-block;
	opacity: 0;
	transform: translateY(26px);
	letter-spacing: .06em;
	transition: opacity .7s var(--e), transform .7s var(--e), letter-spacing .7s var(--e);
}
.rise-lines.is-in > span { opacity: 1; transform: none; letter-spacing: -.04em; }
h2.rise-lines.is-in > span { letter-spacing: -.032em; }

.rise { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--e), transform .6s var(--e); }
.rise.is-in { opacity: 1; transform: none; }
.rise[data-d="1"] { transition-delay: .09s; }
.rise[data-d="2"] { transition-delay: .18s; }
.rise[data-d="3"] { transition-delay: .27s; }
.rise[data-d="4"] { transition-delay: .36s; }

/* ═══════════════════════════════════════════════════════════
   8. АНИМАЦИЯ 2 — НАСЛАИВАЮЩИЕСЯ БЛОКИ
   Липкая стопка. Отличие от занятых вариантов сетки: у Topaz AI
   карточки равной высоты со сдвигом 12px, у Flux AI стопка
   усыхает на 68px; здесь нижняя карточка уходит В МАСШТАБ И
   РАЗМЫТИЕ по мере перекрытия — степень считает скрипт и кладёт
   в переменную --k.
   ═══════════════════════════════════════════════════════════ */
.stack { display: grid; gap: 20px; }
.stack__item {
	position: sticky;
	top: 96px;
	--k: 0;
	transform: scale(calc(1 - .05 * var(--k)));
	filter: blur(calc(3px * var(--k)));
	opacity: calc(1 - .35 * var(--k));
	transition: transform .18s linear, filter .18s linear, opacity .18s linear;
	will-change: transform;
}
.stack__item > .card { box-shadow: 0 -1px 0 0 var(--line), 0 -30px 60px -40px rgba(0, 0, 0, .9); }
.stack__n {
	font-family: var(--mono); font-size: 13px; color: var(--accent-hi);
	letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════
   9. АНИМАЦИЯ 3 — СКЛАДЫВАЮЩИЕСЯ ТАБЛИЦЫ
   Строки разворачиваются при прокрутке, как жалюзи: поворот
   вокруг верхнего ребра. Приём в сетке не встречался.
   ═══════════════════════════════════════════════════════════ */
.tablewrap { overflow-x: auto; border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
thead th {
	text-align: left; padding: 16px 20px; color: var(--text-3);
	font-weight: 500; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}
tbody td { padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: var(--text); font-weight: 500; }

.fold tbody { perspective: 900px; }
.fold tbody tr {
	transform-origin: top center;
	transform: rotateX(-82deg);
	opacity: 0;
	transition: transform .55s var(--e), opacity .45s var(--e);
}
.fold tbody tr.is-in { transform: none; opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   10. ГАЛЕРЕЯ — лента с прокруткой и прилипанием
   Первый экран сетки ещё не строился на горизонтальной ленте
   кадров: заняты чат, паспорт, маршрут, кинокадр, кольца,
   спидометр, бенто, карта, звёздное поле, дуга, осциллограмма.
   ═══════════════════════════════════════════════════════════ */
.gal__strip {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	/* Системную полосу прокрутки прячем. Прокрутка при этом живая:
	   overflow-x остаётся auto, лента тянется пальцем, колесом и
	   клавишами. Убираем именно планку — под лентой стоят свои
	   стрелки и точки, и серая полоса рядом с ними была бы второй
	   ручкой от той же двери. Отступ снизу тоже снят: он держал
	   место ровно под эту планку.
	   Три записи, а не одна: scrollbar-width — Firefox и свежий
	   Chrome, -ms-overflow-style — старая Edge, ::-webkit-scrollbar —
	   Safari и Chrome до 121-го. */
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.gal__strip::-webkit-scrollbar { display: none; }
.gal__cell {
	flex: 0 0 clamp(230px, 24vw, 340px);
	margin: 0;
	scroll-snap-align: center;
	min-width: 0;
}
/* Пропорция кадра — 2/3, ровно как у самих файлов (832×1248).
   Раньше стояло 3/4: окно было шире картинки, и object-fit: cover
   срезал у каждой работы верх и низ — у инфографики уезжал
   заголовок, у портрета макушка. При совпадающей пропорции cover
   ничего не режет, а кадр становится выше. */
.gal__frame { border-radius: var(--r-in); overflow: hidden; background: var(--surface-2); aspect-ratio: 2 / 3; }
.gal__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--e); }
.gal__cell:hover .gal__frame img { transform: scale(1.06); }
.gal__cap { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.gal__cap b { font-size: 15.5px; color: var(--text); font-weight: 500; }
.gal__cap span { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }

/* ── Переключатели под лентой ────────────────────────────────
   Появляются только там, где лента реально не влезает: атрибут
   hidden снимает скрипт после замера scrollWidth, а не медиа-
   запрос. Ширина кадра задана через clamp с vw, и точка, на
   которой прокрутка исчезает, зависит не от одного порога, а от
   того, сколько работ сегодня в наборе.
   Правило на [hidden] обязательно: display: flex ниже перебил бы
   атрибут, и стрелки висели бы на широком экране. */
.gal__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 26px;
}
.gal__nav[hidden] { display: none; }

.gal__arrow {
	width: 46px;
	height: 46px;
	flex: none;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: var(--r-pill);
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
	transition: background var(--t), color var(--t), border-color var(--t);
}
.gal__arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
/* Край ленты: кнопка остаётся на месте, но гаснет — исчезающая
   стрелка дёргала бы весь ряд переключателей на каждом шаге. */
.gal__arrow[disabled] { opacity: .32; cursor: default; }
.gal__arrow[disabled]:hover { background: var(--surface); border-color: var(--line-2); color: var(--text); }
/* Одна иконка стрелки на обе кнопки: левая — та же, развёрнутая. */
.gal__arrow--back .ic { transform: rotate(180deg); }

.gal__dots { display: flex; align-items: center; gap: 4px; }
/* Кнопка крупнее самой точки: 26px — минимальная мишень для
   пальца, рисованная точка внутри остаётся мелкой. */
.gal__dot {
	position: relative;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.gal__dot::before {
	content: "";
	position: absolute;
	inset: 10px;
	border-radius: 50%;
	background: var(--line-2);
	transition: background var(--t), transform var(--t);
}
.gal__dot.is-on::before { background: var(--accent-hi); transform: scale(1.6); }

.gal__arrow:focus-visible,
.gal__dot:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

.gal__note { margin-top: 18px; color: var(--text-3); font-size: 14.5px; }

/* ═══════════════════════════════════════════════════════════
   11. ПРОЧИЕ БЛОКИ
   ═══════════════════════════════════════════════════════════ */
.pagehead { padding-block: clamp(44px, 6vw, 100px) clamp(20px, 2.5vw, 40px); }
.crumbs { font-size: 14px; color: var(--text-3); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--text-2); }
.crumbs__sep { opacity: .5; }

.band {
	display: grid; gap: 24px; align-items: center;
	grid-template-columns: minmax(0, 1fr);
	border-radius: var(--r);
	padding: clamp(28px, 3.4vw, 56px);
	background: linear-gradient(140deg, var(--accent) 0%, var(--accent-lo) 62%, #24308F 100%);
}
@media (min-width: 900px) { .band { grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr); } }
.band h2 { color: #fff; margin-bottom: 8px; }
.band p { color: rgba(255, 255, 255, .88); margin: 0; }
.band__btns { display: flex; flex-wrap: wrap; gap: 10px; }

.nextup { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .nextup { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .nextup { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nextup__item {
	display: flex; flex-direction: column; gap: 5px;
	background: var(--surface); border-radius: var(--r-in);
	padding: 20px 22px 46px; position: relative; min-width: 0;
	transition: background var(--t);
}
.nextup__item:hover { background: var(--surface-2); }
.nextup__item b { color: var(--text); font-size: 16.5px; font-weight: 500; }
.nextup__item span { color: var(--text-3); font-size: 14px; }
.nextup__item .ic { position: absolute; left: 22px; bottom: 18px; color: var(--accent-hi); transition: transform var(--t); }
.nextup__item:hover .ic { transform: translateX(4px); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.ticks li::before {
	content: ""; position: absolute; left: 0; top: .55em;
	width: 8px; height: 8px; border-radius: 2px; background: var(--accent-hi);
}

.chip {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 5px 13px; border-radius: var(--r-pill);
	background: rgba(60, 86, 244, .16); color: #C3CCFF;
	font-size: 13.5px; font-family: var(--mono); letter-spacing: .02em;
}

.stat { display: grid; gap: 6px; }
.stat__v { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--text); }
.stat__k { color: var(--text-3); font-size: 14.5px; }

.stars { position: relative; display: inline-block; font-size: 21px; line-height: 1; letter-spacing: 2px; }
.stars__bg { color: rgba(255, 255, 255, .18); }
.stars__fg { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; color: #FFC53D; }

.qa { border-radius: var(--r-in); background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.qa__q {
	width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
	color: var(--text); font-family: inherit; font-size: 17px; font-weight: 500;
	padding: 20px 56px 20px 22px; position: relative; line-height: 1.4;
}
.qa__q::after {
	content: ""; position: absolute; right: 24px; top: 50%; width: 11px; height: 11px;
	border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
	transform: translateY(-70%) rotate(45deg); transition: transform var(--t);
}
.qa.is-open .qa__q::after { transform: translateY(-25%) rotate(-135deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 22px 20px; margin: 0; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════════
   12. ПОДВАЛ
   Не три колонки «about + два списка», как у половины сетки,
   а знак с абзацем и одна лента ссылок.
   ═══════════════════════════════════════════════════════════ */
.foot { border-top: 1px solid var(--line); padding-block: clamp(40px, 4.5vw, 72px); }
.foot__top { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .foot__top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.foot__about { color: var(--text-3); font-size: 14.5px; max-width: 52ch; margin: 14px 0 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a { color: var(--text-2); font-size: 15px; }
.foot__links a:hover { color: var(--text); }
.foot__bottom { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13.5px; display: grid; gap: 10px; }

/* ═══════════════════════════════════════════════════════════
   13. 404
   ═══════════════════════════════════════════════════════════ */
.err { max-width: 640px; padding-block: clamp(60px, 9vw, 140px); }
.err__code { display: block; font-size: clamp(3.4rem, 2rem + 6vw, 7rem); font-weight: 800; letter-spacing: -.05em; color: var(--accent-hi); line-height: 1; margin-bottom: 14px; }

/* ═══════════════════════════════════════════════════════════
   14. АДАПТИВ
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1099px) {
	.nav { display: none; }
	.burger { display: inline-flex; }
	.hdr.is-open .nav {
		display: block; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--ink); border-bottom: 1px solid var(--line);
		padding: 14px var(--pad) 22px; margin: 0;
	}
	.hdr.is-open .nav__list { flex-direction: column; gap: 2px; }
	.hdr.is-open .nav__list a { padding: 11px 14px; font-size: 16px; }
	.hdr.is-open .nav__item--extra { display: block; }
	.hdr { position: sticky; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	.stack__item { position: static; transform: none !important; filter: none !important; opacity: 1 !important; }
	.fold tbody tr { transform: none; opacity: 1; }
}
@media (max-width: 420px) {
	.brand__name { display: none; }
	.btn { padding: 0 17px; font-size: 15px; }
}

/* Уважение к системной настройке: снимаем всё, что двигается. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.rise, .rise-lines > span { opacity: 1 !important; transform: none !important; letter-spacing: normal !important; }
	.stack__item { transform: none !important; filter: none !important; opacity: 1 !important; }
	.fold tbody tr { transform: none !important; opacity: 1 !important; }
	.gal__strip { scroll-snap-type: none; }
}
