/*
 * Лендинг «Махджонга». Родная тема игры тёмная: нефрит, кость и золото фонарей.
 * Светлый вариант включается по системной настройке, картинки остаются теми же.
 * Скругления: кнопки и вкладки — пилюля, карточки и снимки — 20px, мелкие плашки — 12px.
 */

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

:root {
	color-scheme: dark light;
	--bg: #0b1613;
	--bg-2: #0f1e1a;
	--surface: #13261f;
	--surface-2: #183029;
	--line: rgb(233 240 233 / 0.10);
	--text: #eaf0ea;
	--text-2: #b3c5bc;
	--muted: #8ea39a;
	--accent: #e8c170;
	--accent-ink: #1c1406;
	--accent-soft: rgb(232 193 112 / 0.14);
	--shadow: 0 24px 60px -24px rgb(2 10 8 / 0.8);
	--radius: 20px;
	--radius-s: 12px;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: light) {
	:root {
		--bg: #eef3ef;
		--bg-2: #e3ebe5;
		--surface: #f8faf8;
		--surface-2: #ffffff;
		--line: rgb(16 36 29 / 0.12);
		--text: #10241d;
		--text-2: #33503f;
		--muted: #52695e;
		--accent: #8a5e0f;
		--accent-ink: #fffaf0;
		--accent-soft: rgb(138 94 15 / 0.12);
		--shadow: 0 24px 50px -28px rgb(16 36 29 / 0.35);
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.6 "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { color: var(--text-2); max-width: 62ch; margin-top: 14px; font-size: 18px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.ic { width: 1.15em; height: 1.15em; flex: none; }
.ic--lg { width: 30px; height: 30px; color: var(--accent); }

/* Кнопки: пилюли. Основная — золото фонаря на тёмном, в светлой теме — тёмное золото. */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 52px; padding: 0 26px; border-radius: 999px;
	font: 600 17px/1 "Onest", system-ui, sans-serif; text-decoration: none; white-space: nowrap;
	transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px rgb(232 193 112 / 0.6); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { color: #f3f6f2; border: 1.5px solid rgb(243 246 242 / 0.55); background: rgb(8 18 15 / 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgb(8 18 15 / 0.55); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* Шапка */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.bar__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { border-radius: 10px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
@media (max-width: 899px) { .nav { display: none; } .bar .btn { margin-left: auto; } }

/* Главный экран: картинка во весь экран, текст слева на затемнении. */
.hero { position: relative; min-height: min(88dvh, 860px); display: flex; align-items: center; overflow: hidden; isolation: isolate; color: #f3f6f2; }
.hero__art { position: absolute; inset: 0; z-index: -2; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(5 14 11 / 0.92) 0%, rgb(5 14 11 / 0.72) 34%, rgb(5 14 11 / 0.1) 68%), linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
.hero__in { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 120px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 62px); max-width: 17ch; margin-top: 14px; }
.hero__lead { margin-top: 20px; font-size: clamp(18px, 1.6vw, 21px); color: #d5e1db; max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: rgb(8 18 15 / 0.55); padding: 7px 14px; border-radius: 999px; border: 1px solid rgb(232 193 112 / 0.35); }
@media (prefers-color-scheme: light) { .hero .eyebrow { color: #f0cd84; } }
@media (max-width: 767px) {
	.hero { min-height: 92dvh; align-items: flex-start; }
	.hero__art img { object-position: 50% 100%; }
	.hero::before { background: linear-gradient(180deg, rgb(5 14 11 / 0.9) 0%, rgb(5 14 11 / 0.55) 42%, rgb(5 14 11 / 0.05) 70%), linear-gradient(0deg, var(--bg) 0%, transparent 18%); }
	.hero__in { padding-top: 40px; }
	.hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* Игра в числах: полоса, наезжающая на низ главного экрана. */
.pulse { position: relative; z-index: 2; max-width: var(--wrap); margin: -64px auto 0; padding: 0 var(--gutter); }
.pulse__in { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; line-height: 1.35; }
.stat--live b { color: var(--accent); }
.pulse[data-state="loading"] .stat b { color: transparent; background: var(--surface-2); border-radius: 8px; width: 70%; animation: shimmer 1.4s infinite; }
.pulse__note { margin-top: 12px; color: var(--muted); font-size: 14px; text-align: center; }
@media (max-width: 899px) {
	.pulse__in { grid-template-columns: repeat(2, 1fr); }
	.stat + .stat { border-left: 0; }
	.stat { border-top: 1px solid var(--line); }
	.stat:nth-child(-n+2) { border-top: 0; }
	.stat:nth-child(even) { border-left: 1px solid var(--line); }
	.stat--live { grid-column: 1 / -1; border-left: 0 !important; }
}

/* Правила: телефон слева, текст справа. */
.rules { max-width: var(--wrap); margin: 0 auto; padding: clamp(80px, 10vw, 128px) var(--gutter) 40px; display: grid; grid-template-columns: minmax(240px, 5fr) 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.phone { margin: 0; justify-self: center; width: min(100%, 340px); border-radius: 36px; padding: 10px; background: linear-gradient(160deg, #22382f, #0c1814); box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / 0.08); }
.phone img { border-radius: 28px; }
.rules__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; margin-top: 40px; }
.rule:first-child { grid-column: 1 / -1; }
.rule h3 { margin-top: 12px; }
.rule p { color: var(--text-2); margin-top: 6px; }
@media (max-width: 767px) {
	.rules { grid-template-columns: 1fr; }
	.phone { order: 2; width: min(78%, 300px); }
	.rules__grid { grid-template-columns: 1fr; }
}

/* Кампания: лента глав с фонами из самой игры. */
.campaign { padding: clamp(72px, 9vw, 120px) 0 24px; }
.chapters { list-style: none; margin: 40px 0 0; padding: 0 var(--gutter) 20px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(210px, 22vw, 270px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
@media (min-width: 1300px) { .chapters { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; grid-auto-columns: 1fr; overflow: visible; } }
.chapter { position: relative; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; aspect-ratio: 480 / 760; background: var(--surface); }
.chapter img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.chapter:hover img { transform: scale(1.04); }
.chapter div { position: absolute; inset: auto 0 0; padding: 60px 18px 18px; background: linear-gradient(0deg, rgb(4 12 10 / 0.92), transparent); color: #f3f6f2; display: flex; flex-direction: column; gap: 2px; }
.chapter span { font-size: 13px; color: #f0cd84; font-weight: 600; }
.chapter b { font-size: 19px; line-height: 1.2; }
.chapter em { font-style: normal; font-size: 14px; color: #c9d6cf; }

/* Режимы: сетка с разными клетками. */
.modes { padding-top: clamp(72px, 9vw, 120px); }
.bento { margin-top: 40px; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(150px, auto); gap: 16px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 220px; }
.tile h3 { display: flex; align-items: center; gap: 10px; }
.tile h3 .ic { color: var(--accent); width: 24px; height: 24px; }
.tile p { color: var(--text-2); }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.8s var(--ease); }
.tile:hover > img { transform: scale(1.03); }
.tile__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.tile:has(> img) { color: #f3f6f2; border-color: transparent; }
.tile:has(> img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(4 12 10 / 0.9) 0%, rgb(4 12 10 / 0.4) 45%, transparent 75%); }
.tile:has(> img) p { color: #d2ddd7; }
.tile:has(> img) .tile__body { z-index: 2; }
.tile--duel { grid-column: span 4; grid-row: span 2; min-height: 440px; }
.tile--tour { grid-column: span 2; grid-row: span 2; }
.tile--challenges { grid-column: span 3; background: linear-gradient(145deg, var(--surface-2), var(--surface)); justify-content: flex-start; }
.tile--ladder { grid-column: span 3; justify-content: flex-start; background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.tile--zen { grid-column: span 4; min-height: 300px; }
.tile--clubs { grid-column: span 2; justify-content: flex-start; }
.challenges { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.challenges li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 14px; color: var(--text-2); line-height: 1.3; }
.challenges img { width: 64px; height: 64px; border-radius: 50%; }
.ladder { display: flex; align-items: flex-end; gap: 6px; margin-top: 8px; }
.ladder span { flex: 1; font-size: 12.5px; color: var(--text-2); padding: 8px 8px; border-radius: var(--radius-s); background: var(--accent-soft); text-align: center; }
.ladder span:nth-child(2) { padding-top: 18px; }
.ladder span:nth-child(3) { padding-top: 28px; }
.ladder span:nth-child(4) { padding-top: 40px; color: var(--accent); font-weight: 600; }
@media (max-width: 899px) {
	.bento { grid-template-columns: 1fr 1fr; }
	.tile--duel, .tile--zen, .tile--challenges, .tile--ladder { grid-column: 1 / -1; }
	.tile--tour, .tile--clubs { grid-column: span 1; }
	.tile--duel { min-height: 380px; grid-row: auto; }
	.tile--tour { grid-row: auto; min-height: 300px; }
}
@media (max-width: 599px) {
	.bento { grid-template-columns: 1fr; }
	.tile--tour, .tile--clubs { grid-column: 1 / -1; }
	.challenges { grid-template-columns: repeat(2, 1fr); }
}

/* Рейтинги */
.ratings { padding-top: clamp(80px, 10vw, 128px); }
.ratings__body { margin-top: 36px; display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tabs button { text-align: left; font: 500 16px/1.2 "Onest", system-ui, sans-serif; color: var(--text-2); background: transparent; border: 1px solid transparent; padding: 13px 18px; border-radius: 999px; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.tabs button:hover { color: var(--text); background: var(--surface); }
.tabs button[aria-selected="true"] { color: var(--text); background: var(--surface-2); border-color: var(--line); font-weight: 600; }
.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 18px; min-height: 380px; }
.board__caption { color: var(--muted); font-size: 15px; margin-bottom: 8px; min-height: 1.6em; }
.board__rows { list-style: none; margin: 0; padding: 0; }
.board__rows li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); }
.board__rows li:first-child { border-top: 0; }
.board__rows .place { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.board__rows li:first-child .place { color: var(--accent); }
.board__rows .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__rows .who small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.board__rows .score { font-variant-numeric: tabular-nums; color: var(--text-2); text-align: right; white-space: nowrap; }
.board__rows li.skel { height: 56px; border-radius: var(--radius-s); background: var(--surface-2); border: 0; margin-top: 8px; animation: shimmer 1.4s infinite; }
.board__empty { padding: 48px 12px; text-align: center; color: var(--text-2); max-width: 44ch; margin: 0 auto; }
.board__empty .ic { width: 40px; height: 40px; color: var(--accent); margin: 0 auto 14px; display: block; }
@media (max-width: 767px) {
	.ratings__body { grid-template-columns: 1fr; }
	.tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
	.tabs button { flex: none; scroll-snap-align: start; background: var(--surface); }
	.board { padding: 16px 16px 10px; }
}

/* Удобство: два снимка внахлёст и список. */
.comfort { max-width: var(--wrap); margin: 0 auto; padding: clamp(80px, 10vw, 128px) var(--gutter) 40px; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.comfort__text { order: -1; }
.facts { margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.facts dt { font-weight: 700; font-size: 18px; }
.facts dd { margin: 6px 0 0; color: var(--text-2); }
.comfort__phones { position: relative; height: 560px; }
.comfort__phones img { position: absolute; width: 250px; border-radius: 28px; border: 8px solid #13231e; box-shadow: var(--shadow); }
.comfort__phones .p1 { left: 8%; top: 40px; transform: rotate(-6deg); }
.comfort__phones .p2 { right: 8%; top: 0; transform: rotate(5deg); }
@media (max-width: 899px) {
	.comfort { grid-template-columns: 1fr; }
	.comfort__phones { height: 440px; max-width: 460px; width: 100%; justify-self: center; }
	.comfort__phones img { width: 200px; }
	.facts { grid-template-columns: 1fr; }
}

/* Вопросы */
.faq { padding-top: clamp(80px, 10vw, 120px); max-width: 900px; }
.faq__list { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform 0.3s var(--ease); color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { color: var(--text-2); padding: 0 0 22px; max-width: 70ch; }

/* Финал */
.final { padding: clamp(80px, 10vw, 128px) var(--gutter) clamp(64px, 8vw, 96px); }
.final__in { max-width: var(--wrap); margin: 0 auto; border-radius: calc(var(--radius) + 8px); padding: clamp(40px, 6vw, 72px) var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; background: radial-gradient(80% 120% at 50% 0%, var(--accent-soft), transparent 70%), var(--surface); border: 1px solid var(--line); }
.final__in img { border-radius: 22px; box-shadow: var(--shadow); }

/* Подвал */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__brand img { border-radius: 10px; }
.foot__brand b { display: block; }
.foot__brand span { color: var(--muted); font-size: 14px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot__links a { color: var(--text-2); font-size: 15px; }

/* Появление при прокрутке: только прозрачность и сдвиг, и только если движение не отключено. */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
	.js .reveal.in { opacity: 1; transform: none; }
	.hero__in > * { animation: rise 0.9s var(--ease) both; }
	.hero__in > :nth-child(2) { animation-delay: 0.08s; }
	.hero__in > :nth-child(3) { animation-delay: 0.16s; }
	.hero__in > :nth-child(4) { animation-delay: 0.24s; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.pulse[data-state="loading"] .stat b, .board__rows li.skel { animation: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* --- Живость ------------------------------------------------------------
 * Каждое движение что-то говорит: сад дышит (лепестки, светлячки, наплыв
 * картинки), подсказка показывает правило, числа набегают, когда их видно,
 * таблица въезжает при смене вкладки, карточки отзываются на курсор.
 * Всё гаснет при «уменьшить движение».
 */
.hero__air { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.phone { position: relative; }
/* Где на снимке пара, подсвеченная подсказкой (найдено по пикселям снимка). */
.hint--a { left: 58.15%; top: 24.38%; }
.hint--b { left: 65.56%; top: 35.21%; }
.hint { position: absolute; width: 5.6%; height: 4.6%; border-radius: 6px; box-shadow: 0 0 0 2px rgb(199 255 233 / 0.95), 0 0 18px 4px rgb(199 255 233 / 0.55); opacity: 0; pointer-events: none; }
.tile { transform-style: preserve-3d; will-change: transform; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(232 193 112 / 0.16), transparent 45%); }
.tile:hover::before { opacity: 1; }
.board__rows li { transform-origin: left center; }

@media (prefers-reduced-motion: no-preference) {
	.hero__art img { animation: drift 26s ease-in-out infinite alternate; transform-origin: 62% 60%; }
	@supports (animation-timeline: view()) {
		.hero__art { animation: sink linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
		.chapter img { animation: chapter-pan linear both; animation-timeline: view(inline); }
	}
	.phone.in .hint { animation: hint 3.2s ease-in-out 0.6s infinite; }
	.phone.in .hint--late { animation-delay: 0.75s; }
	.comfort__phones.in .p1 { animation: bob-a 7s ease-in-out infinite; }
	.comfort__phones.in .p2 { animation: bob-b 8s ease-in-out infinite; }
	.board.swap .board__rows li { animation: row-in 0.55s var(--ease) both; animation-delay: calc(var(--r, 0) * 55ms); }
	.btn--primary::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.45) 50%, transparent 70%); background-size: 250% 100%; background-position: 120% 0; pointer-events: none; }
	.btn--primary { position: relative; overflow: hidden; }
	.btn--primary:hover::after, .final .btn--primary::after { animation: sheen 1.6s var(--ease); }
	.final__in.in .btn--primary::after { animation: sheen 2.4s var(--ease) 0.8s infinite; }
	.stat--live b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 0.35em; border-radius: 50%; background: var(--accent); animation: live 2.4s ease-in-out infinite; }
	.chapter { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
	.chapter:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
	.faq details[open] p { animation: rise 0.45s var(--ease) both; }
}
@keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@keyframes sink { to { transform: translate3d(0, 18%, 0) scale(1.06); opacity: 0.55; } }
@keyframes chapter-pan { from { transform: scale(1.12) translateX(-4%); } to { transform: scale(1.12) translateX(4%); } }
@keyframes hint { 0%, 100% { opacity: 0; transform: scale(0.94); } 18%, 62% { opacity: 1; transform: scale(1); } 80% { opacity: 0; transform: scale(1.08); } }
@keyframes bob-a { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-4.5deg) translateY(-12px); } }
@keyframes bob-b { 0%, 100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(3.5deg) translateY(-16px); } }
@keyframes row-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -40% 0; } }
@keyframes live { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgb(232 193 112 / 0.5); } 50% { opacity: 0.6; box-shadow: 0 0 0 6px rgb(232 193 112 / 0); } }

/* Полоса чисел подстраивается под то, сколько в ней значимых чисел. */
.pulse[hidden], .stat[hidden] { display: none; }
.pulse[data-count="3"] .pulse__in { grid-template-columns: repeat(3, 1fr); }
.pulse[data-count="4"] .pulse__in { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 899px) { .pulse[data-count] .pulse__in { grid-template-columns: repeat(2, 1fr); } }
.pulse + .rules { padding-top: clamp(80px, 10vw, 128px); }
.hero + .rules, .pulse[hidden] + .rules { padding-top: clamp(64px, 8vw, 104px); }
