/*
Theme Name: Vidu Ru
Description: Тема сайта vidu.help. Язык дизайна — «стол референсов»: отцентрованный первый экран поверх фона-знакогенератора с дрейфующими узлами.
Version: 1.1.0
Text Domain: vidu-ru
*/

/* ============================================================
   ТОКЕНЫ. Палитра, контейнер, высота шапки, форма кнопок и радиус
   блока сняты кодом с живого DOM vidu.com/ru 26.08.2026.
   ============================================================ */
:root {
	--ink:        #020B13;   /* body background офсайта */
	--ink-2:      #071320;
	--ink-3:      #0D1B2A;
	--paper:      #FFFFFF;
	--paper-2:    rgba(255, 255, 255, .72);
	--paper-3:    rgba(255, 255, 255, .52);

	/* Поверхность карточки — доминирующая заливка офсайта, 32 вхождения */
	--surf:       rgba(255, 255, 255, .08);
	--surf-2:     rgba(255, 255, 255, .06);
	--edge:       rgba(255, 255, 255, .12);
	--edge-2:     rgba(255, 255, 255, .24);

	/* Акцент — самый частый цветной тон офсайта */
	--acc:        #9B93FF;
	--acc-2:      #A699FF;
	--acc-deep:   #5765F2;
	--acc-dim:    rgba(155, 147, 255, .16);

	--desk:       1600px;   /* max-width офсайта */
	--text-col:   840px;
	--pad:        24px;     /* padding-inline шапки офсайта */
	--head-h:     76px;     /* высота header офсайта */

	--r:          20px;     /* доминирующий радиус блока, 26 вхождений */
	--r-lg:       32px;
	--r-xl:       48px;
	--r-pill:     9999px;

	--f:          'Sofia Sans Semi Condensed', 'Segoe UI', Arial, sans-serif;

	--ease:       cubic-bezier(.22, 1, .36, 1);
	--t:          .22s;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--f);
	font-size: 17px;
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: var(--acc); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--acc-2); }

.desk {
	width: 100%;
	max-width: var(--desk);
	margin-inline: auto;
	padding-inline: var(--pad);
}
.desk--text { max-width: var(--text-col); }

.skip {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--paper); color: var(--ink); padding: 10px 18px; border-radius: var(--r-pill);
}
.skip:focus { left: 12px; top: 12px; }

.vh {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   ТИПОГРАФИКА. Кегль и трекинг заголовка сняты с офсайта:
   64px / 600 / −0.02em / интерлиньяж 1.1.
   Семейство одно на весь сайт — как и на офсайте (там Poppins,
   но у него нет кириллицы, поэтому взято полуузкое Sofia Sans
   Semi Condensed: русские заголовки длиннее английских, и офсайтный
   кегль с минусовым трекингом иначе не помещается в строку.)
   ============================================================ */
h1, h2, h3, h4 {
	font-weight: 600;
	letter-spacing: -.02em;
	line-height: 1.08;
	margin: 0 0 .45em;
}
h1 { font-size: clamp(2.6rem, 1.7rem + 3.6vw, 4rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.lead {
	font-size: clamp(1.06rem, .98rem + .4vw, 1.28rem);
	line-height: 1.55;
	color: var(--paper-2);
	max-width: 64ch;
}
.dim { color: var(--paper-2); }
.dim-2 { color: var(--paper-3); }

/* ============================================================
   КНОПКИ. Пилюли — форма офсайта, все четыре типа с его высотами.
   ============================================================ */
.pill {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 8px; min-width: 0;
	font-family: var(--f);
	font-weight: 600; line-height: 1;
	text-decoration: none;
	border-radius: var(--r-pill);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
/* Основная — чёрная заливка с волосяной светлой рамкой, высота 44, кегль 14 */
.pill--solid {
	background: #000; color: var(--paper);
	border-color: rgba(255, 255, 255, .3);
	height: 44px; padding: 0 32px; font-size: .88rem;
}
.pill--solid:hover { background: #14161c; border-color: rgba(255, 255, 255, .55); color: var(--paper); }
/* Светлая — белая заливка, чёрный текст, высота 48, кегль 16, вес 500 */
.pill--light {
	background: var(--paper); color: #000;
	height: 48px; padding: 0 32px; font-size: 1rem; font-weight: 500;
}
.pill--light:hover { background: #ddd9ff; color: #000; }
/* Контурная — рамка 2px, высота 48 */
.pill--ghost {
	background: transparent; color: var(--paper);
	border-width: 2px; border-color: var(--edge-2);
	height: 48px; padding: 0 32px; font-size: .88rem;
}
.pill--ghost:hover { border-color: var(--acc); color: var(--acc-2); }
.pill--sm { height: 38px; padding: 0 20px; font-size: .84rem; }

/* ============================================================
   ШАПКА — fixed 76px, полностью прозрачная, как на офсайте.
   Наливается фоном только по скроллу, чтобы текст не слипался с полотном.
   ============================================================ */
.top {
	position: fixed; inset: 0 0 auto 0; z-index: 20;
	height: var(--head-h);
	background: transparent;
	transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
	border-bottom: 1px solid transparent;
}
.top.stuck {
	background: rgba(2, 11, 19, .82);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-bottom-color: var(--edge);
}
.top__row {
	height: var(--head-h);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
}
.sign { grid-column: 1; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.sign__m { width: 28px; height: 28px; flex: 0 0 auto; }
.sign__w { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.sign__w i { font-style: normal; color: var(--acc); }

/* Пункты не сжимаются: nowrap. Порог бургера посчитан в адаптиве. */
.menu { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 20px; min-width: 0; }
.menu a {
	font-size: .92rem; text-decoration: none; color: var(--paper-2);
	white-space: nowrap; transition: color var(--t) var(--ease);
}
.menu a:hover, .menu a.on { color: var(--paper); }
.top__end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; }

.burger {
	display: none; width: 42px; height: 42px; padding: 0;
	background: transparent; border: 1px solid var(--edge-2); border-radius: var(--r-pill);
	cursor: pointer; align-items: center; justify-content: center;
}
.burger i { display: block; width: 16px; height: 1.6px; background: var(--paper); position: relative; }
.burger i::before, .burger i::after {
	content: ''; position: absolute; left: 0; width: 16px; height: 1.6px; background: var(--paper);
}
.burger i::before { top: -5px; }
.burger i::after { top: 5px; }
.burger.is-open i { background: transparent; }
.burger.is-open i::before { top: 0; transform: rotate(45deg); }
.burger.is-open i::after { top: 0; transform: rotate(-45deg); }

/* Класс состояния — .is-open. Голое .open в теме не использовать:
   на соседнем проекте оно совпало с классом секции и молча сломало
   и панель меню, и аккордеон. */
.drawer {
	position: fixed; inset: var(--head-h) 0 auto 0; z-index: 19;
	background: rgba(2, 11, 19, .97);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-bottom: 1px solid var(--edge);
	display: none; padding: 8px 0 20px;
	max-height: calc(100vh - var(--head-h));
	overflow-y: auto;
}
.drawer.is-open { display: block; }
.drawer a {
	display: block; padding: 13px 2px; text-decoration: none;
	color: var(--paper); border-bottom: 1px solid var(--edge); font-size: 1.02rem;
}
.drawer a:last-child { border-bottom: 0; }

main { padding-top: var(--head-h); }

/* ============================================================
   ФОН ВСЕГО САЙТА — ЗНАКОГЕНЕРАТОР.
   Холст с дрейфующими узлами: сетка моноширинных знаков, плотность
   которых задаётся близостью к узлу и к нити между узлами. Лежит
   под всем содержимым и не ловит события. Правка владельца 28.08.2026.
   ============================================================ */
.drift {
	position: fixed; inset: 0; z-index: 0;
	pointer-events: none;
	/* Ровно тот же тон, что и у body: холст полупрозрачный, и без
	   собственной подложки сквозь него просвечивал бы белый лист
	   в момент перерисовки. */
	background: var(--ink);
}
.drift__c { display: block; width: 100%; height: 100%; }

/* Всё содержимое стоит НАД холстом. Без этого фон перекрыл бы текст:
   у .top и .drawer свои z-index, а у main и .foot их не было вовсе. */
main, .foot { position: relative; z-index: 1; }

/* ============================================================
   ПЕРВЫЙ ЭКРАН. Отцентрован по горизонтали: заголовок, лид,
   кнопки и чипы стоят одной колонкой посередине.
   ============================================================ */
.stage {
	position: relative;
	padding-block: clamp(56px, 8vw, 128px) clamp(40px, 5vw, 76px);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	text-align: center;
}
/* Ширина колонки задана в px, а не в ch: единица ch считается от кегля
   САМОГО элемента (здесь 17px), а не вложенного h1 в 64px — 40ch дали бы
   ~300px, и заголовок ломался бы на пять строк. */
.stage__side { max-width: 940px; }
.stage__title { margin-bottom: .4em; }
.stage__lead { margin-bottom: 30px; max-width: 68ch; margin-inline: auto; }
.stage__row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.stage__chips { display: flex; flex-wrap: wrap; gap: 10px; }
/* По центру — только на первом экране главной: те же .stage__row
   и .stage__chips стоят на внутренних страницах, там выключка левая. */
.stage .stage__row, .stage .stage__chips { justify-content: center; }

/* Кредит-чип: число и единица в одной пилюле с лавандовым кольцом. */
.chip {
	display: inline-flex; align-items: baseline; gap: 7px;
	padding: 8px 16px;
	border: 1px solid var(--acc-dim);
	border-radius: var(--r-pill);
	background: rgba(155, 147, 255, .07);
	white-space: nowrap;
}
.chip b { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: var(--acc-2); }
.chip i { font-style: normal; font-size: .82rem; color: var(--paper-2); }


/* ============================================================
   СЕКЦИИ. Сплошная лента без тонированных полос.
   Разделитель — тонкая нить с узлом посередине.
   ============================================================ */
.band { padding-block: clamp(48px, 6vw, 96px) 0; }
.band > h2 { max-width: 22ch; }
.band__intro { max-width: 64ch; color: var(--paper-2); margin-bottom: 30px; }

.thread {
	position: relative; height: 1px; margin-top: clamp(48px, 6vw, 96px);
	background: linear-gradient(to right, transparent, var(--edge) 12%, var(--edge) 88%, transparent);
}
.thread::after {
	content: ''; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px;
	margin-left: -3.5px; border-radius: 50%; background: var(--acc); opacity: .75;
}

/* ============================================================
   КАРТОЧКА — без рамки, только заливка на 8% и радиус 20px.
   Форма взята с офсайта.
   ============================================================ */
.card {
	position: relative;
	background: var(--surf);
	border-radius: var(--r);
	padding: clamp(20px, 2.2vw, 30px);
	min-width: 0;
	transition: background-color var(--t) var(--ease);
}
.card:hover { background: rgba(255, 255, 255, .12); }
.card > h3 { margin-top: 0; }
.card--flat { background: var(--surf-2); }
.card--acc { background: linear-gradient(150deg, rgba(155, 147, 255, .2), rgba(87, 101, 242, .1)); }
.card--bare { background: none; padding-inline: 0; }

.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }

.ticks { list-style: none; margin: 14px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--paper-2); font-size: .96rem; }
.ticks li::before {
	content: ''; position: absolute; left: 6px; top: .55em; width: 7px; height: 7px;
	border-radius: 50%; background: var(--acc); opacity: .8;
}
.ticks li:last-child { margin-bottom: 0; }

/* ============================================================
   ТАБЛИЦЫ
   ============================================================ */
.tbl-wrap { overflow-x: auto; border-radius: var(--r); background: var(--surf-2); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .96rem; }
table.data th, table.data td { padding: 14px 18px; text-align: left; vertical-align: top; }
table.data thead th {
	font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
	color: var(--paper-3); font-weight: 600; white-space: nowrap;
}
table.data tbody tr { border-top: 1px solid var(--edge); }
table.data td b { font-weight: 600; }

/* ============================================================
   ТАРИФЫ
   ============================================================ */
.switch { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--surf); margin-bottom: 26px; }
.switch button {
	border: 0; background: transparent; color: var(--paper-2); cursor: pointer;
	font-family: var(--f); font-size: .92rem; font-weight: 600;
	padding: 10px 22px; border-radius: var(--r-pill);
	transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.switch button.on { background: var(--paper); color: #000; }

.plan { display: flex; flex-direction: column; }
.plan__name { font-size: 1.25rem; font-weight: 600; margin: 0 0 4px; }
.plan__note { font-size: .9rem; color: var(--paper-3); margin: 0 0 18px; min-height: 2.6em; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan__price b { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan__price span { font-size: .9rem; color: var(--paper-2); }
.plan__bill { font-size: .84rem; color: var(--paper-3); min-height: 1.4em; margin-bottom: 18px; }
.plan .pill { width: 100%; margin-bottom: 18px; }
.plan--best { background: linear-gradient(160deg, rgba(155, 147, 255, .18), rgba(255, 255, 255, .06)); }
.plan__tag {
	position: absolute; top: 16px; right: 16px;
	font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
	color: var(--acc-2); background: rgba(155, 147, 255, .14);
	padding: 5px 11px; border-radius: var(--r-pill);
}

/* ============================================================
   ОТЗЫВЫ И ОЦЕНКА
   ============================================================ */
.stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.stars i {
	width: 14px; height: 14px; display: block;
	background: var(--edge-2);
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.stars i.on { background: var(--acc); }

.score { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.score__n { font-size: clamp(3rem, 2rem + 3vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }

.crit { display: grid; gap: 16px 30px; grid-template-columns: minmax(0, 1fr); }
.crit__row { display: grid; gap: 6px; }
.crit__top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.crit__n { font-weight: 600; }
.crit__v { font-variant-numeric: tabular-nums; color: var(--acc-2); font-weight: 600; }
.crit__bar { height: 4px; border-radius: var(--r-pill); background: var(--surf); overflow: hidden; }
.crit__bar i { display: block; height: 100%; background: var(--acc); border-radius: inherit; }
.crit__d { font-size: .9rem; color: var(--paper-2); }

.voice__who { font-weight: 600; }
.voice__role { font-size: .86rem; color: var(--paper-3); }
.voice__text { margin-top: 12px; color: var(--paper-2); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surf-2); border-radius: var(--r); overflow: hidden; }
.faq__q {
	width: 100%; text-align: left; cursor: pointer;
	background: transparent; border: 0; color: var(--paper);
	font-family: var(--f); font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em;
	padding: 20px 56px 20px 24px; position: relative;
}
.faq__q::after {
	content: ''; position: absolute; right: 26px; top: 50%;
	width: 9px; height: 9px; margin-top: -6px;
	border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc);
	transform: rotate(45deg); transition: transform var(--t) var(--ease);
}
.faq__item.is-open .faq__q::after { transform: translateY(3px) rotate(-135deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 24px 20px; color: var(--paper-2); margin: 0; }

/* ============================================================
   ГАЛЕРЕЯ. Кадры показываются целиком, не обрезаются;
   не поместившиеся уходят за переключатели.
   ============================================================ */
.reel { --gap: 16px; display: flex; gap: var(--gap); overflow: hidden; scroll-behavior: smooth; }
.reel__cell { flex: 0 0 calc((100% - (var(--cols, 1) - 1) * var(--gap)) / var(--cols, 1)); min-width: 0; }
.reel__cell figure { margin: 0; background: var(--surf-2); border-radius: var(--r); overflow: hidden; }
/* ============================================================
   ВРЕЗКА-КАДР НА ВНУТРЕННИХ СТРАНИЦАХ.
   По центру колонки, с полями сверху и снизу. Пропорция 4:3 —
   та же, что у карточек ленты, чтобы кадр на внутренней странице
   и кадр на главной читались как один набор. Ширину ограничиваем:
   в текстовой колонке 840px врезка во всю ширину забирает экран
   целиком и разрывает чтение.
   ============================================================ */
.cut {
	margin: clamp(26px, 3vw, 40px) auto;
	max-width: 560px;
	border-radius: var(--r);
	overflow: hidden;
	background: var(--surf-2);
	background-size: cover;
	background-position: center;
	aspect-ratio: 4 / 3;
}
.cut img, .cut video { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 620px) {
	.cut { max-width: none; }
}

/* Ролик и картинка ведут себя в ленте одинаково. Карточка жёстко
   приведена к 4:3 — это форма залитых картинок (1184×880, 1024×768).
   Ролики сняты в ~16:9 (1376×768), поэтому им приходится object-fit:
   cover: без него у карточек с видео была бы своя высота, и ряд
   разъезжался бы по нижней кромке. Правило намеренно ограничено
   .reel__cell — за пределами галереи медиа сохраняет свои пропорции. */
.reel__cell img, .reel__cell video {
	display: block; width: 100%; height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.reel__cap { padding: 12px 16px; font-size: .88rem; color: var(--paper-2); }
.reel-nav { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.reel-nav button {
	width: 40px; height: 40px; border-radius: var(--r-pill);
	background: transparent; border: 1px solid var(--edge-2); color: var(--paper);
	cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
	transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.reel-nav button:hover:not(:disabled) { border-color: var(--acc); color: var(--acc); }
.reel-nav button:disabled { opacity: .35; cursor: default; }
.reel-nav button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.reel-dots { display: inline-flex; gap: 6px; margin-left: 4px; }
.reel-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--edge-2); display: block; }
.reel-dots i.on { background: var(--acc); }

/* ============================================================
   ПОДВАЛ — знак с абзацем и одна лента ссылок, без трёх колонок.
   ============================================================ */
.foot { margin-top: clamp(56px, 7vw, 110px); padding-block: 44px 34px; border-top: 1px solid var(--edge); }
.foot__top { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.foot__about { max-width: 58ch; color: var(--paper-2); font-size: .95rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 22px; }
.foot__links a { color: var(--paper-2); text-decoration: none; font-size: .94rem; }
.foot__links a:hover { color: var(--paper); }
.foot__legal { font-size: .84rem; color: var(--paper-3); border-top: 1px solid var(--edge); padding-top: 20px; }

/* ============================================================
   ПОЯВЛЕНИЕ БЛОКОВ — встречный съезд: левая колонка едет справа
   налево, правая — слева направо, блоки сходятся к центру.
   Рифмуется со сборкой кадра из референсов.
   Скрытое состояние висит только на .js — без скрипта всё видно сразу.
   ============================================================ */
/* Секции подрезаются по горизонтали: до раскрытия блок сдвинут наружу,
   и без подрезки этот сдвиг вылезает за поля контейнера настоящим
   переполнением (замер CDP 26.08.2026 — 10px на 1600 и 18px на 360).
   Именно clip, а не hidden: hidden создал бы контейнер прокрутки. */
.stage, .band, .foot { overflow-x: clip; }

.js .in { opacity: 0; transform: translateX(var(--from, 0)) translateY(14px); }
.js .in.is-in {
	opacity: 1; transform: none;
	transition: opacity .55s var(--ease), transform .55s var(--ease);
	transition-delay: var(--d, 0ms);
}
.in--l { --from: 26px; }
.in--r { --from: -26px; }

/* ============================================================
   АДАПТИВ. Лестница своя: 1500 / 1240 / 1040 / 860 / 680 / 520 / 400
   ============================================================ */
@media (min-width: 1041px) {
	.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.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); }
	.crit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot__top { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (min-width: 681px) and (max-width: 1040px) {
	.grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1240px) {
	.menu { gap: 14px; }
	.menu a { font-size: .88rem; }
}

/* Порог бургера посчитан, а не подобран. Бюджет строки шапки:
   знак ~132 + кнопка ~168 + два гэпа сетки 40 + поля 48 = 388px;
   одиннадцать пунктов при гэпе 14px занимают ~700px, плюс зазор
   8px с каждой стороны — меню перестаёт помещаться около 1105px.
   Изменится число пунктов — арифметику пересчитать заново. */
@media (max-width: 1120px) {
	.menu { display: none; }
	.burger { display: inline-flex; }
}

@media (max-width: 1040px) {
	.stage__side { max-width: none; }
}

@media (max-width: 860px) {
	:root { --pad: 20px; }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	.grid { gap: 14px; }
	.plan__note { min-height: 0; }
	.plan__bill { min-height: 0; }
}

@media (max-width: 620px) {
	.tbl-wrap { overflow-x: visible; background: none; }
	table.data { min-width: 0; }
	table.data thead {
		position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
		overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
	}
	table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
	table.data tr { background: var(--surf-2); border-radius: var(--r); margin-bottom: 12px; border-top: 0; padding: 6px 0; }
	table.data tr:last-child { margin-bottom: 0; }
	table.data td { padding: 9px 18px 9px 46%; position: relative; }
	table.data td::before {
		content: attr(data-label); position: absolute; left: 18px; top: 9px; width: 40%;
		font-size: .8rem; color: var(--paper-3); font-weight: 600;
	}
}

@media (max-width: 520px) {
	.stage__row { gap: 10px; }
	.stage__row .pill { width: 100%; }
	.score__n { font-size: 3rem; }
}

@media (max-width: 400px) {
	:root { --pad: 16px; }
	.sign__w { font-size: 1.25rem; }
	.pill--solid { padding: 0 18px; }
	.top__row { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.js .in { opacity: 1; transform: none; }
	/* Ролики гасим, на их месте остаётся постер-фон рамки. */
	.reel__cell video, .cut video { display: none; }
}
