/* ==========================================================================
   GALAXY SWAPPER — смена скинов в Fortnite
   Оформление снято с fortnite-api.com: Electric Violet on Deep Space —
   стеклянные панели, зерно, параллакс-орбы, pill-навигация.
   Цвет предметов (--c1/--c2/--c3) приходит из данных и красит карточки,
   слоты экипировки и подсветку сцены — как в игре.
   ========================================================================== */

:root {
	/* основа */
	--bg-deep: #0c0c14;
	--bg-surface: #12121c;
	--bg-elevated: #1a1a28;

	/* акцент */
	--accent: #8b5cf6;
	--accent-light: #a78bfa;
	--accent-glow: rgba(139, 92, 246, 0.5);
	--accent-subtle: rgba(139, 92, 246, 0.1);

	/* текст */
	--text: #f0f0f0;
	--text-2: rgba(240, 240, 240, 0.6);
	--text-3: rgba(240, 240, 240, 0.35);

	/* стекло */
	--glass: rgba(255, 255, 255, 0.05);
	--glass-border: rgba(255, 255, 255, 0.1);
	--glass-blur: 20px;

	/* радиусы */
	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 20px;
	--r-xl: 28px;
	--r-pill: 100px;

	/* шрифты */
	--ff-display: 'Inter Tight', 'Space Grotesk', system-ui, sans-serif;
	--ff-brand: 'Space Grotesk', 'Inter Tight', system-ui, sans-serif;
	--ff-body: 'Inter Tight', system-ui, sans-serif;

	/* плавность */
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--t-fast: 0.2s var(--ease);
	--t-base: 0.4s var(--ease);

	/* цвет текущего предмета */
	--c1: #ffb44f;
	--c2: #d2691b;
	--c3: #5c2a06;

	--shell: 1180px;
	--pad: clamp(1.1rem, 4vw, 2rem);
}

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

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
}

body {
	font-family: var(--ff-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg-deep);
	overflow-x: hidden;
	position: relative;
	padding-bottom: 7rem; /* место под плавающую навигацию */
}
body.is-locked {
	overflow: hidden;
}

img {
	display: block;
	max-width: 100%;
}
li {
	list-style: none;
}
a {
	color: var(--accent-light);
	text-decoration: none;
	transition: color var(--t-fast);
}
a:hover {
	color: #c4b5fd;
}

h1,
h2,
h3 {
	font-family: var(--ff-display);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.12;
}

:focus-visible {
	outline: 2px solid var(--accent-light);
	outline-offset: 3px;
	border-radius: 6px;
}
.vh {
	position: absolute;
	width: 1px;
	height: 1px;
	clip-path: inset(50%);
	overflow: hidden;
}

.skip {
	position: absolute;
	left: 50%;
	top: 0;
	z-index: 10000;
	transform: translate(-50%, -150%);
	padding: 0.7rem 1.4rem;
	border-radius: var(--r-pill);
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
	transition: transform var(--t-fast);
}
.skip:focus {
	transform: translate(-50%, 12px);
	color: #fff;
}

.wrap {
	width: min(100% - var(--pad) * 2, var(--shell));
	margin-inline: auto;
}
.wrap--narrow {
	width: min(100% - var(--pad) * 2, 760px);
}

/* ─────────── фон: зерно, орбы, сетка ─────────── */
.grain {
	position: fixed;
	inset: 0;
	z-index: 9998;
	pointer-events: none;
	opacity: 0.04;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 256px 256px;
}
.bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	overflow: hidden;
}
.orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
}
.orb--1 {
	width: 500px;
	height: 500px;
	top: 2%;
	left: -6%;
	opacity: 0.6;
	background: radial-gradient(
		circle,
		rgba(139, 92, 246, 0.5) 0%,
		transparent 65%
	);
}
.orb--2 {
	width: 400px;
	height: 400px;
	top: 46%;
	right: -8%;
	opacity: 0.5;
	background: radial-gradient(
		circle,
		rgba(109, 40, 217, 0.5) 0%,
		transparent 65%
	);
}
.orb--3 {
	width: 350px;
	height: 350px;
	bottom: 6%;
	left: 22%;
	opacity: 0.5;
	background: radial-gradient(
		circle,
		rgba(79, 70, 229, 0.4) 0%,
		transparent 65%
	);
}
.orb--4 {
	width: 300px;
	height: 300px;
	top: 28%;
	left: 48%;
	opacity: 0.4;
	background: radial-gradient(
		circle,
		rgba(167, 139, 250, 0.35) 0%,
		transparent 65%
	);
}
.bg__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(139, 92, 246, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(139, 92, 246, 0.08) 1px, transparent 1px);
	background-size: 50px 50px;
	mask-image: radial-gradient(
		ellipse 70% 70% at 50% 40%,
		#000 30%,
		transparent 75%
	);
}

/* ─────────── стеклянная поверхность ─────────── */
.glass {
	position: relative;
	overflow: hidden;
	background: var(--glass);
	border: 1px solid var(--glass-border);
	border-radius: var(--r-lg);
	backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
	transition: all 0.5s var(--ease);
}

/* ─────────── кнопки ─────────── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	font-family: var(--ff-body);
	font-weight: 600;
	font-size: 0.92rem;
	padding: 0.85rem 2rem;
	border: none;
	border-radius: var(--r-pill);
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: all var(--t-fast);
}
.btn--sm {
	padding: 0.6rem 1.25rem;
	font-size: 0.82rem;
}

.btn--primary {
	color: #fff;
	background: var(--accent);
	box-shadow:
		0 0 30px rgba(139, 92, 246, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn--primary::before {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0;
	background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.12));
	transition: opacity var(--t-fast);
}
.btn--primary:hover {
	color: #fff;
	transform: translateY(-2px);
}
.btn--primary:hover::before {
	opacity: 1;
}

.btn--ghost {
	color: var(--text);
	background: transparent;
	border: 1px solid var(--glass-border);
}
.btn--ghost:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(139, 92, 246, 0.35);
	transform: translateY(-2px);
}

/* ─────────── плавающая навигация ─────────── */
.pill {
	position: fixed;
	bottom: 1.6rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9990;
}
.pill__in {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.55rem 0.5rem 0.75rem;
	background: rgba(12, 12, 20, 0.8);
	backdrop-filter: blur(24px) saturate(1.8);
	border: 1px solid var(--glass-border);
	border-radius: var(--r-pill);
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(139, 92, 246, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.wordmark {
	font-family: var(--ff-brand);
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--text);
}
.wordmark em {
	font-style: normal;
	color: var(--accent-light);
}
.pill__logo {
	font-size: 0.88rem;
	padding: 0.5rem 0.6rem;
	white-space: nowrap;
}
.pill__logo:hover {
	color: var(--accent-light);
}
.pill__links {
	display: flex;
	align-items: center;
	gap: 0.1rem;
}
.pill__links a {
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--text-2);
	padding: 0.45rem 0.85rem;
	border-radius: var(--r-pill);
	white-space: nowrap;
	transition: all var(--t-fast);
}
.pill__links a:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.06);
}

/* ─── переключатель языка ─── */
.lang {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: none;
	padding: 3px;
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--glass-border);
}
.lang__btn {
	font-family: var(--ff-body);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--text-3);
	padding: 0.35rem 0.6rem;
	border: none;
	border-radius: var(--r-pill);
	background: transparent;
	cursor: pointer;
	transition: all var(--t-fast);
}
.lang__btn:hover {
	color: var(--text);
}
.lang__btn.is-on {
	color: #fff;
	background: var(--accent);
	box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
}
.lang__btn:active {
	transform: scale(0.94);
}

.burger {
	display: none;
	width: 40px;
	height: 40px;
	padding: 11px 10px;
	background: rgba(255, 255, 255, 0.06);
	border: none;
	border-radius: 50%;
	cursor: pointer;
}
.burger span {
	display: block;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
}
.burger span + span {
	margin-top: 5px;
}
.burger span {
	transition:
		transform 0.35s var(--ease),
		opacity 0.2s var(--ease);
}
.burger.is-x span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.burger.is-x span:nth-child(2) {
	opacity: 0;
	transform: scaleX(0.4);
}
.burger.is-x span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ─── полноэкранное меню ─── */
.sheet {
	position: fixed;
	inset: 0;
	z-index: 9989;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5rem var(--pad) calc(7rem + env(safe-area-inset-bottom));
	background: rgba(12, 12, 20, 0.96);
	backdrop-filter: blur(30px) saturate(1.4);
	overscroll-behavior: contain;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.4s var(--ease),
		visibility 0.4s var(--ease);
}
.sheet[hidden] {
	display: none;
}
.sheet.is-open {
	opacity: 1;
	visibility: visible;
}
.sheet__in {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.1rem;
	width: 100%;
	max-width: 320px;
}
.sheet a {
	font-family: var(--ff-display);
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--text);
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.4s var(--ease),
		transform 0.4s var(--ease),
		color var(--t-fast);
}
.sheet.is-open a {
	opacity: 1;
	transform: none;
}
.sheet.is-open a:nth-of-type(1) {
	transition-delay: 0.06s;
}
.sheet.is-open a:nth-of-type(2) {
	transition-delay: 0.11s;
}
.sheet.is-open a:nth-of-type(3) {
	transition-delay: 0.16s;
}
.sheet.is-open a:nth-of-type(4) {
	transition-delay: 0.21s;
}
.sheet.is-open a:nth-of-type(5) {
	transition-delay: 0.26s;
}
.sheet.is-open a:nth-of-type(6) {
	transition-delay: 0.34s;
}
.sheet a:hover {
	color: var(--accent-light);
}
.sheet__div {
	width: 60px;
	height: 1px;
	margin: 0.4rem 0;
	background: var(--glass-border);
}
.sheet a.sheet__cta {
	width: 100%;
	font-family: var(--ff-body);
	font-size: 0.95rem;
	letter-spacing: 0;
	color: #fff;
}
.sheet a.sheet__cta:hover {
	color: #fff;
}

/* ─────────── герой ─────────── */
.hero {
	padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
	gap: clamp(1.8rem, 4vw, 3.5rem);
	align-items: center;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1rem 0.4rem 0.6rem;
	margin-bottom: 1.5rem;
	background: var(--accent-subtle);
	border: 1px solid rgba(139, 92, 246, 0.2);
	border-radius: var(--r-pill);
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--accent-light);
}
.badge__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 10px var(--accent-glow);
	animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
	0%,
	100% {
		box-shadow: 0 0 8px var(--accent-glow);
	}
	50% {
		box-shadow:
			0 0 24px var(--accent-glow),
			0 0 50px rgba(139, 92, 246, 0.25);
	}
}

.hero__title {
	margin-bottom: 1.2rem;
}
.hero__line {
	display: block;
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	font-weight: 500;
	color: var(--text-2);
	letter-spacing: -0.01em;
	margin-bottom: 0.3rem;
}
.hero__brand {
	display: block;
	font-size: clamp(2.6rem, 5.6vw, 4.6rem);
	letter-spacing: -0.035em;
	background: linear-gradient(
		135deg,
		#fff 0%,
		var(--accent-light) 42%,
		var(--accent) 72%,
		#c084fc 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 4px 30px rgba(139, 92, 246, 0.3));
}
.hero__sub {
	font-size: 1.05rem;
	color: var(--text-2);
	line-height: 1.7;
	max-width: 48ch;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.8rem;
}

/* слоты экипировки */
.loadout {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
	margin-top: 1.8rem;
	max-width: 520px;
}
.slot {
	--c1: #888;
	--c2: #555;
	--c3: #333;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	text-align: left;
	cursor: pointer;
	padding: 0.45rem 0.7rem 0.45rem 0.45rem;
	background: var(--glass);
	border: 1px solid var(--glass-border);
	border-radius: var(--r-md);
	color: var(--text);
	transition: all var(--t-fast);
}
.slot:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(139, 92, 246, 0.35);
	transform: translateY(-2px);
}
.slot__img {
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: var(--r-sm);
	background: linear-gradient(160deg, var(--c1), var(--c3));
}
.slot__txt {
	display: grid;
	min-width: 0;
}
.slot__kind {
	font-size: 0.68rem;
	color: var(--text-3);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.slot__name {
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.2;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ─────────── сцена ─────────── */
.stage {
	position: relative;
	isolation: isolate;
	aspect-ratio: 1 / 0.94;
	min-height: 420px;
	border-radius: var(--r-xl);
	overflow: hidden;
	background:
		radial-gradient(
			90% 70% at 50% 6%,
			rgba(255, 255, 255, 0.06),
			transparent 60%
		),
		linear-gradient(180deg, var(--bg-elevated), #0a0a12);
	border: 1px solid var(--glass-border);
	box-shadow:
		0 30px 70px -30px rgba(0, 0, 0, 0.8),
		0 0 70px rgba(139, 92, 246, 0.12);
}
.stage::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 16%;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, transparent, #0a0a12 86%);
}
.stage__rays {
	position: absolute;
	left: 57%;
	top: 46%;
	width: 150%;
	aspect-ratio: 1;
	translate: -50% -50%;
	background: repeating-conic-gradient(
		from 0deg,
		color-mix(in srgb, var(--c1) 15%, transparent) 0 4deg,
		transparent 4deg 16deg
	);
	mask-image: radial-gradient(closest-side, #000 8%, transparent 66%);
	animation: spin 120s linear infinite;
}
.stage__glow {
	position: absolute;
	left: 57%;
	top: 52%;
	width: 74%;
	aspect-ratio: 1;
	translate: -50% -50%;
	background: radial-gradient(
		circle,
		color-mix(in srgb, var(--c1) 42%, transparent),
		transparent 65%
	);
	filter: blur(18px);
}
.stage__floor {
	position: absolute;
	left: 57%;
	bottom: 6%;
	width: 58%;
	height: 10%;
	translate: -50% 0;
	border-radius: 50%;
	filter: blur(6px);
	background: radial-gradient(
		closest-side,
		color-mix(in srgb, var(--c1) 50%, transparent),
		transparent
	);
}
.stage__burst {
	position: absolute;
	left: 57%;
	top: 46%;
	width: 46%;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 3px solid var(--c1);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -50%) scale(0.25);
}
.stage.is-burst .stage__burst {
	animation: burst 0.8s var(--ease);
}

@keyframes spin {
	to {
		rotate: 360deg;
	}
}
@keyframes burst {
	from {
		transform: translate(-50%, -50%) scale(0.25);
		opacity: 0.9;
	}
	to {
		transform: translate(-50%, -50%) scale(2.6);
		opacity: 0;
	}
}
@keyframes swapIn {
	0% {
		opacity: 0;
		transform: translate(-50%, 14px) scale(0.94);
		filter: brightness(2.4);
	}
	55% {
		opacity: 1;
		filter: brightness(1.2);
	}
	100% {
		opacity: 1;
		transform: translate(-50%, 0) scale(1);
		filter: none;
	}
}

.stage__hero {
	position: absolute;
	left: 57%;
	bottom: 2%;
	transform: translateX(-50%);
	width: auto;
	height: 94%;
	max-width: none;
	object-fit: contain;
	filter: drop-shadow(0 24px 26px rgba(0, 0, 0, 0.55));
}
.stage__hero.is-swap {
	animation: swapIn 0.6s var(--ease);
}

.stage__plate {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	z-index: 2;
	width: min(58%, 296px);
	padding: 1rem 1.1rem 1.1rem;
	background: rgba(12, 12, 20, 0.72);
	backdrop-filter: blur(16px) saturate(1.5);
	border: 1px solid var(--glass-border);
	border-radius: var(--r-md);
}
.chip {
	display: inline-block;
	margin-bottom: 0.5rem;
	padding: 0.25rem 0.7rem;
	border-radius: var(--r-pill);
	background: color-mix(in srgb, var(--c1) 18%, transparent);
	border: 1px solid color-mix(in srgb, var(--c1) 45%, transparent);
	color: var(--c1);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.stage__name {
	font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}
.stage__desc {
	margin-top: 0.4rem;
	color: var(--text-2);
	font-size: 0.87rem;
	line-height: 1.5;
}
.stage__meta {
	display: grid;
	gap: 0.25rem;
	margin-top: 0.7rem;
}
.stage__meta div {
	display: flex;
	gap: 0.5rem;
	font-size: 0.78rem;
}
.stage__meta dt {
	color: var(--text-3);
	flex: none;
}
.stage__meta dd {
	color: var(--text-2);
}
.stage__status {
	margin-top: 0.6rem;
	color: var(--c1);
	font-size: 0.78rem;
	min-height: 1.2em;
}

/* полоса статистики */
.statbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.6rem;
	margin-top: clamp(2rem, 4vw, 3rem);
	padding: 1.4rem 2.4rem;
	background: var(--glass);
	border: 1px solid var(--glass-border);
	border-radius: var(--r-xl);
	backdrop-filter: blur(16px);
}
.statbar__item {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 0.15rem;
}
.statbar__item dd {
	font-family: var(--ff-display);
	font-weight: 700;
	font-size: 1.3rem;
	letter-spacing: -0.02em;
}
.statbar__item dt {
	font-size: 0.68rem;
	font-weight: 500;
	color: var(--text-3);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.statbar__div {
	width: 1px;
	height: 32px;
	background: var(--glass-border);
}

/* ─────────── разделитель и шапки секций ─────────── */
.divider {
	display: flex;
	justify-content: center;
	padding: 1.5rem 0;
}
.divider span {
	width: 120px;
	height: 1px;
	opacity: 0.4;
	background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.sec {
	padding: clamp(2.5rem, 5vw, 4.5rem) 0;
	scroll-margin-top: 2rem;
}
.sec__head {
	margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}
.sec__head--center {
	text-align: center;
}
.sec__head--center .sec__desc {
	margin-inline: auto;
}
.sec__label {
	display: inline-block;
	margin-bottom: 0.6rem;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--accent-light);
}
.sec__title {
	font-size: clamp(1.9rem, 3.8vw, 2.9rem);
	letter-spacing: -0.03em;
	margin-bottom: 0.65rem;
}
.sec__desc {
	font-size: 1.02rem;
	color: var(--text-2);
	max-width: 58ch;
}

/* ─────────── шкафчик ─────────── */
.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 1.2rem;
}
.tab {
	padding: 0.55rem 1.3rem;
	border-radius: var(--r-pill);
	cursor: pointer;
	background: var(--glass);
	border: 1px solid var(--glass-border);
	color: var(--text-2);
	font-family: var(--ff-body);
	font-size: 0.88rem;
	font-weight: 500;
	transition: all var(--t-fast);
}
.tab:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.08);
}
.tab.is-on {
	color: #fff;
	background: var(--accent);
	border-color: transparent;
	box-shadow: 0 0 24px rgba(139, 92, 246, 0.35);
}

.grid__hint {
	margin-bottom: 0.75rem;
	color: var(--text-3);
	font-size: 0.82rem;
}
.grid {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
}

/* карточка предмета: арт из игры + рамка в цвете редкости */
.item {
	position: relative;
	display: grid;
	grid-template-rows: 1fr auto;
	width: 100%;
	padding: 0;
	border: none;
	cursor: pointer;
	overflow: hidden;
	border-radius: var(--r-md);
	color: #fff;
	background: linear-gradient(
		178deg,
		var(--c1) 0%,
		var(--c2) 54%,
		var(--c3) 100%
	);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.14),
		0 10px 30px rgba(0, 0, 0, 0.35);
	transition: all 0.4s var(--ease);
}
.item::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	mix-blend-mode: soft-light;
	background: radial-gradient(
		70% 55% at 50% 20%,
		rgba(255, 255, 255, 0.28),
		transparent 70%
	);
}
.item__art {
	position: relative;
	display: block;
}
.item__art img {
	width: 100%;
	height: auto;
}
.item__foot {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 0.1rem;
	padding: 0.5rem 0.6rem 0.6rem;
	text-align: left;
	background: linear-gradient(180deg, transparent, rgba(6, 6, 14, 0.85) 42%);
}
.item__name {
	font-family: var(--ff-display);
	font-weight: 700;
	font-size: 0.88rem;
	line-height: 1.15;
	letter-spacing: -0.015em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.item__rar {
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.58);
}
.item__flag {
	position: absolute;
	top: 0.45rem;
	left: 0.45rem;
	z-index: 2;
	display: none;
	padding: 0.2rem 0.6rem;
	border-radius: var(--r-pill);
	background: var(--accent);
	color: #fff;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: 0 0 18px rgba(139, 92, 246, 0.6);
}
.item:hover {
	transform: translateY(-6px) scale(1.02);
}

.item.is-on {
	transform: translateY(-6px);
	box-shadow:
		0 0 0 2px var(--accent),
		0 0 40px rgba(139, 92, 246, 0.45),
		0 18px 40px rgba(0, 0, 0, 0.5);
}
.item.is-on .item__flag {
	display: block;
}

/* ─────────── шаги ─────────── */
.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
.step {
	padding: 1.7rem 1.5rem 1.6rem;
}
.step:hover {
	background: rgba(255, 255, 255, 0.07);
	transform: translateY(-6px);
	border-color: rgba(139, 92, 246, 0.3);
}
.step__n {
	display: block;
	margin-bottom: 0.8rem;
	font-family: var(--ff-display);
	font-weight: 700;
	font-size: 1.6rem;
	letter-spacing: -0.03em;
	color: var(--accent-light);
	opacity: 0.55;
}
.step h3 {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
}
.step p {
	color: var(--text-2);
	font-size: 0.95rem;
}

/* ─────────── бенто ─────────── */
.bento {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}
.tile {
	padding: 1.7rem 1.5rem 1.6rem;
}
.tile__sheen {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	background: radial-gradient(
		circle at 15% 12%,
		rgba(139, 92, 246, 0.18),
		transparent 60%
	);
	transition: opacity 0.5s var(--ease);
}
.tile:hover {
	background: rgba(255, 255, 255, 0.07);
	transform: translateY(-8px);
	border-color: rgba(139, 92, 246, 0.35);
}
.tile:hover .tile__sheen {
	opacity: 1;
}
.tile__ico {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 1.1rem;
	border-radius: var(--r-md);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--accent-light);
}
.tile__ico svg {
	width: 22px;
	height: 22px;
}
.tile h3 {
	position: relative;
	font-size: 1.18rem;
	margin-bottom: 0.5rem;
}
.tile p {
	position: relative;
	color: var(--text-2);
	font-size: 0.94rem;
	max-width: 46ch;
}
.tile--wide,
.tile--tall {
	grid-column: span 2;
}
.tile--accent {
	background: linear-gradient(
		155deg,
		rgba(139, 92, 246, 0.22),
		rgba(88, 28, 235, 0.1) 70%
	);
	border-color: rgba(139, 92, 246, 0.3);
}

.tags {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 1rem;
}
.tags li {
	padding: 0.26rem 0.75rem;
	border-radius: var(--r-pill);
	background: rgba(139, 92, 246, 0.12);
	border: 1px solid rgba(139, 92, 246, 0.2);
	color: var(--accent-light);
	font-size: 0.8rem;
}
.strip {
	position: relative;
	display: flex;
	gap: 0.35rem;
	margin-top: 1.1rem;
}
.strip img {
	width: 46px;
	height: 46px;
	border-radius: var(--r-sm);
	flex: none;
}

.presets {
	position: relative;
	display: grid;
	gap: 0.35rem;
	margin-top: 1.1rem;
}
.presets li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.9rem;
	color: var(--text-2);
}
.presets kbd {
	min-width: 32px;
	padding: 0.16rem 0.4rem;
	text-align: center;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font: 500 0.76rem/1.35 var(--ff-body);
	color: var(--text);
}

.tile--tall {
	padding-right: 40%;
	min-height: 220px;
}
.tile__art {
	position: absolute;
	right: 1%;
	bottom: 0;
	height: 100%;
	width: auto;
	max-width: none;
	filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.5));
	mask-image: linear-gradient(180deg, #000 82%, transparent 99%);
}

/* ─────────── серии ─────────── */
.series {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 0.6rem;
}
.ser {
	padding: 0.9rem 1rem 1rem;
	border-radius: var(--r-md);
	background: linear-gradient(
		160deg,
		color-mix(in srgb, var(--c1) 16%, transparent),
		transparent 78%
	);
	border: 1px solid color-mix(in srgb, var(--c1) 26%, transparent);
	transition: all var(--t-fast);
}
.ser:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--c1) 55%, transparent);
}
.ser__bar {
	display: block;
	width: 40px;
	height: 4px;
	margin-bottom: 0.7rem;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--c1), var(--c2));
}
.ser__name {
	font-size: 0.95rem;
	letter-spacing: -0.01em;
	color: color-mix(in srgb, var(--c1) 65%, #fff);
}

/* ─────────── тарифы ─────────── */
.plans {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	align-items: start;
}
.plan {
	padding: 1.9rem 1.6rem 1.7rem;
}
.plan:hover {
	background: rgba(255, 255, 255, 0.07);
	transform: translateY(-6px);
}
.plan--best {
	background: linear-gradient(
		180deg,
		rgba(139, 92, 246, 0.18),
		rgba(255, 255, 255, 0.04)
	);
	border-color: rgba(139, 92, 246, 0.45);
	box-shadow: 0 0 60px rgba(139, 92, 246, 0.2);
}
.plan__flag {
	display: inline-block;
	margin-bottom: 0.8rem;
	padding: 0.28rem 0.8rem;
	border-radius: var(--r-pill);
	background: var(--accent);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.plan__name {
	font-size: 1.3rem;
}
.plan__price {
	font-family: var(--ff-display);
	font-weight: 700;
	font-size: 2.6rem;
	letter-spacing: -0.04em;
	line-height: 1;
	margin: 0.6rem 0 0.3rem;
}
.plan__price span {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-3);
	letter-spacing: 0;
}
.plan__for {
	color: var(--text-2);
	font-size: 0.92rem;
}
.plan__list {
	display: grid;
	gap: 0.55rem;
	margin: 1.3rem 0 1.6rem;
}
.plan__list li {
	position: relative;
	padding-left: 1.5rem;
	font-size: 0.94rem;
	color: var(--text-2);
}
.plan__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 10px var(--accent-glow);
}
.plan__btn {
	width: 100%;
}

/* ─────────── вопросы ─────────── */
.faq {
	display: grid;
	gap: 0.6rem;
}
.q {
	padding: 0 1.3rem;
}
.q:hover {
	border-color: rgba(139, 92, 246, 0.28);
}
.q summary {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 0;
	cursor: pointer;
	font-family: var(--ff-display);
	font-weight: 600;
	font-size: 1.03rem;
	letter-spacing: -0.015em;
	list-style: none;
}
.q summary::-webkit-details-marker {
	display: none;
}
.q summary::after {
	content: '';
	margin-left: auto;
	flex: none;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--accent-light);
	border-bottom: 2px solid var(--accent-light);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform var(--t-fast);
}
.q[open] summary::after {
	transform: rotate(225deg) translate(-2px, -2px);
}
.q summary:hover {
	color: var(--accent-light);
}
.q p {
	padding: 0 0 1.2rem;
	color: var(--text-2);
	font-size: 0.96rem;
	max-width: 66ch;
}

/* ══════════════ АНИМАЦИИ ══════════════ */

/* полоса прогресса прокрутки */
.progress {
	position: fixed;
	inset: 0 0 auto;
	height: 2px;
	z-index: 9995;
	pointer-events: none;
}
.progress span {
	display: block;
	height: 100%;
	width: 100%;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: linear-gradient(
		90deg,
		var(--accent),
		#c084fc,
		var(--accent-light)
	);
	box-shadow: 0 0 12px var(--accent-glow);
}

/* появление блоков при прокрутке */
.rise {
	opacity: 0;
	transform: translateY(22px);
}
.js-anim .rise {
	transition:
		opacity 0.65s var(--ease),
		transform 0.65s var(--ease);
}
.rise.is-in {
	opacity: 1;
	transform: none;
}

/* вход первого экрана */
@keyframes riseIn {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes stageIn {
	from {
		opacity: 0;
		transform: translateY(28px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes floatIdle {
	0%,
	100% {
		transform: translateX(-50%) translateY(0);
	}
	50% {
		transform: translateX(-50%) translateY(-9px);
	}
}
.js-anim .hero__copy > * {
	animation: riseIn 0.75s var(--ease) both;
}
.js-anim .hero__copy > *:nth-child(1) {
	animation-delay: 0.04s;
}
.js-anim .hero__copy > *:nth-child(2) {
	animation-delay: 0.12s;
}
.js-anim .hero__copy > *:nth-child(3) {
	animation-delay: 0.2s;
}
.js-anim .hero__copy > *:nth-child(4) {
	animation-delay: 0.28s;
}
.js-anim .hero__copy > *:nth-child(5) {
	animation-delay: 0.36s;
}
.js-anim .stage {
	animation: stageIn 0.95s var(--ease) both 0.18s;
}

/* персонаж дышит, как в лобби */
.js-anim .stage__hero {
	animation: floatIdle 6.5s ease-in-out infinite;
}
.js-anim .stage__hero.is-swap {
	animation: swapIn 0.6s var(--ease);
}

/* плавающая навигация выезжает после первого экрана */
.pill {
	transition:
		transform 0.5s var(--ease),
		opacity 0.4s var(--ease);
}
.js-anim .pill {
	transform: translate(-50%, 130%);
	opacity: 0;
}
.js-anim .pill.is-vis {
	transform: translateX(-50%);
	opacity: 1;
}
.js-anim .pill.is-away {
	transform: translate(-50%, 130%);
	opacity: 0;
}
.pill__links a.is-active {
	color: var(--text);
	background: rgba(139, 92, 246, 0.18);
}

/* подтверждение выбора (только узкие экраны) */
.toast {
	display: none;
	position: fixed;
	left: 50%;
	bottom: calc(5.4rem + env(safe-area-inset-bottom));
	z-index: 9991;
	width: min(92vw, 380px);
	align-items: center;
	gap: 0.7rem;
	padding: 0.55rem 0.6rem 0.55rem 0.55rem;
	background: rgba(12, 12, 20, 0.92);
	backdrop-filter: blur(20px) saturate(1.6);
	border: 1px solid var(--glass-border);
	border-radius: var(--r-pill);
	box-shadow:
		0 14px 40px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(139, 92, 246, 0.12);
	transform: translate(-50%, 120%);
	opacity: 0;
	transition:
		transform 0.35s var(--ease),
		opacity 0.3s var(--ease);
}
.toast[hidden] {
	display: none;
}
.toast.is-on {
	transform: translateX(-50%);
	opacity: 1;
}
.toast__img {
	width: 38px;
	height: 38px;
	flex: none;
	border-radius: 50%;
}
.toast__txt {
	display: grid;
	min-width: 0;
}
.toast__txt b {
	font-family: var(--ff-display);
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: -0.01em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.toast__txt i {
	font-style: normal;
	font-size: 0.72rem;
	color: var(--text-3);
}
.toast__go {
	flex: none;
	margin-left: auto;
	padding: 0.5rem 0.95rem;
	border: none;
	cursor: pointer;
	border-radius: var(--r-pill);
	background: var(--accent);
	color: #fff;
	font: 600 0.8rem/1 var(--ff-body);
}

/* мягкое нажатие */
.item:active {
	transform: translateY(-2px) scale(0.985);
}
.tab:active,
.slot:active,
.btn:active {
	transform: scale(0.97);
}

/* ─────────── адаптив ─────────── */
@media (max-width: 1080px) {
	/* две колонки: широкие плитки занимают строку целиком, а dense
	   затягивает следующую узкую плитку в дырку перед ними */
	.bento {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-flow: row dense;
	}
	.tile--wide,
	.tile--tall {
		grid-column: 1 / -1;
	}
}

@media (max-width: 900px) {
	.pill__links,
	.pill__cta {
		display: none;
	}
	.burger {
		display: block;
	}
	.pill__in {
		padding: 0.45rem 0.45rem 0.45rem 0.9rem;
	}

	/* одна колонка — персонаж поднимается сразу под подзаголовок, чтобы
     первым экраном был скин, а не стена текста. .hero__copy растворяется,
     её дети становятся элементами общей колонки и получают порядок */
	.hero__grid {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 1.4rem;
	}
	.hero__copy {
		display: contents;
	}
	.hero__copy > .badge {
		order: 1;
		margin-bottom: 0;
		align-self: start;
	}
	.hero__copy > .hero__title {
		order: 2;
	}
	.hero__copy > .hero__sub {
		order: 3;
	}
	.stage {
		order: 4;
	}
	.hero__copy > .hero__actions {
		order: 5;
		margin-top: 0;
	}
	.hero__copy > .loadout {
		order: 6;
		margin-top: 0;
		max-width: none;
	}

	/* сцена: фигура фиксированной высоты, табличка встроена снизу */
	.stage {
		--figh: clamp(258px, 36vw, 380px);
		display: grid;
		grid-template-rows: 1fr auto;
		aspect-ratio: auto;
		min-height: 0;
		padding-top: calc(var(--figh) + 1.1rem);
		border-radius: var(--r-lg);
	}
	.stage::after {
		display: none;
	}
	.stage__hero {
		height: var(--figh);
		top: 0.6rem;
		bottom: auto;
	}
	.stage__hero,
	.stage__rays,
	.stage__glow,
	.stage__floor {
		left: 50%;
	}
	.stage__floor {
		bottom: auto;
		top: calc(var(--figh) - 1.4rem);
	}
	.stage__plate {
		position: static;
		width: auto;
		padding: 0.9rem 1.1rem 1rem;
		border: none;
		border-top: 1px solid var(--glass-border);
		border-radius: 0;
		background: rgba(12, 12, 20, 0.55);
	}
	.stage__name {
		font-size: 1.4rem;
	}

	.steps,
	.plans {
		grid-template-columns: 1fr;
	}
	.plan--best {
		order: -1;
	}
	.statbar {
		gap: 1rem 1.4rem;
		padding: 1.2rem 1.4rem;
	}
	.statbar__div {
		display: none;
	}
	.statbar__item {
		flex: 1 1 40%;
	}
}

/* ── телефон ── */
@media (max-width: 680px) {
	body {
		padding-bottom: calc(6rem + env(safe-area-inset-bottom));
	}

	.hero {
		padding-top: 1.6rem;
	}
	.hero__sub {
		font-size: 0.98rem;
	}
	.hero__line {
		font-size: 1.05rem;
	}
	.hero__brand {
		font-size: clamp(2.4rem, 12vw, 3.2rem);
	}
	.hero__actions {
		flex-direction: column;
		gap: 0.6rem;
	}
	.hero__actions .btn {
		width: 100%;
		padding: 1rem 1.5rem;
	}
	.stage__name {
		font-size: 1.35rem;
	}

	.statbar {
		gap: 0.9rem;
		padding: 1.1rem 1rem;
		border-radius: var(--r-lg);
	}
	.statbar__item {
		flex: 1 1 42%;
	}
	.statbar__item dd {
		font-size: 1.15rem;
	}

	/* вкладки — горизонтальная лента вместо переноса */
	.tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		overscroll-behavior-x: contain;
		margin-inline: calc(var(--pad) * -1);
		padding-inline: var(--pad);
		scroll-padding-inline: var(--pad);
		scrollbar-width: none;
	}
	.tabs::-webkit-scrollbar {
		display: none;
	}
	.tab {
		flex: none;
		scroll-snap-align: start;
		padding: 0.65rem 1.25rem;
	}

	/* шкафчик: две строки, листаются вбок — иначе 22 карточки дают
     экран длиной в 2500 px, по которому невозможно листать */
	.grid__hint {
		margin-bottom: 0.6rem;
	}
	.grid__hint::after {
		content: ' · swipe sideways';
	}
	html[lang='ru'] .grid__hint::after {
		content: ' · листай вбок';
	}
	.grid {
		grid-template-columns: none;
		grid-template-rows: repeat(2, auto);
		grid-auto-flow: column;
		grid-auto-columns: 46%;
		gap: 0.55rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		margin-inline: calc(var(--pad) * -1);
		padding: 2px var(--pad) 0.4rem;
		/* без этого снап прижимает первую карточку к краю экрана, съедая отступ */
		scroll-padding-inline: var(--pad);
	}
	.grid::-webkit-scrollbar {
		display: none;
	}
	.cell {
		scroll-snap-align: start;
	}
	.item__name {
		font-size: 0.82rem;
	}
	.item:hover,
	.item.is-on {
		transform: none;
	}

	.sec {
		padding: 2.4rem 0;
	}
	.sec__title {
		font-size: clamp(1.7rem, 7.5vw, 2.1rem);
	}
	.sec__desc {
		font-size: 0.96rem;
	}
	.divider {
		padding: 0.5rem 0;
	}

	/* span из десктопной сетки ломает одноколоночную раскладку */
	.bento {
		grid-template-columns: 1fr;
		grid-auto-flow: row;
		gap: 0.7rem;
	}
	.tile--wide,
	.tile--tall {
		grid-column: auto;
	}
	.tile {
		padding: 1.4rem 1.25rem;
	}
	/* арт становится обычным блоком в потоке: абсолютный вылезал
	   за плитку и обрезался её overflow: hidden */
	.tile--tall {
		padding-right: 1.25rem;
		min-height: 0;
	}
	.tile__art {
		position: static;
		width: 60%;
		max-width: 230px;
		height: auto;
		right: auto;
		bottom: auto;
		translate: none;
		margin: 0.9rem auto 0;
		mask-image: none;
	}
	.tile:hover {
		transform: none;
	}
	.strip {
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		margin-inline: -1.25rem;
		padding-inline: 1.25rem;
	}
	.strip::-webkit-scrollbar {
		display: none;
	}

	.series {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.5rem;
	}
	.ser {
		padding: 0.8rem 0.85rem 0.9rem;
	}
	.ser__name {
		font-size: 0.88rem;
	}

	.step,
	.plan {
		padding: 1.4rem 1.25rem;
	}
	.step:hover,
	.plan:hover {
		transform: none;
	}

	.q {
		padding: 0 1.1rem;
	}
	.q summary {
		font-size: 0.98rem;
		padding: 1rem 0;
	}

	.pill {
		bottom: calc(1rem + env(safe-area-inset-bottom));
	}
	.burger {
		width: 44px;
		height: 44px;
		padding: 13px 11px;
	}
	.burger.is-x span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	.burger.is-x span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
	.sheet a {
		font-size: 1.9rem;
	}
	.toast:not([hidden]) {
		display: flex;
	}
}

/* телефон в альбомной ориентации: экран низкий, всё ужимаем */
@media (orientation: landscape) and (max-height: 520px) {
	body {
		padding-bottom: 5rem;
	}
	.hero {
		padding-top: 1rem;
	}
	.stage {
		min-height: 0;
		aspect-ratio: 1 / 0.78;
	}
	.grid {
		grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
		gap: 0.5rem;
	}
	.sec {
		padding: 1.6rem 0;
	}
	.sec__head {
		margin-bottom: 1.1rem;
	}
	.sec__title {
		font-size: 1.55rem;
		margin-bottom: 0.4rem;
	}
	.sec__desc {
		font-size: 0.9rem;
	}
	.sec__label {
		margin-bottom: 0.35rem;
	}
	.hero__brand {
		font-size: 2.5rem;
	}
	.divider {
		padding: 0.4rem 0;
	}
	.pill__in {
		padding: 0.35rem 0.4rem 0.35rem 0.7rem;
	}
	.pill__links a {
		padding: 0.35rem 0.7rem;
		font-size: 0.78rem;
	}
	.pill {
		bottom: 0.8rem;
	}
}

@media (max-width: 380px) {
	.grid {
		grid-auto-columns: 52%;
	}
	/* панель: логотип + языки + бургер должны уместиться в 320 px */
	.pill__logo {
		font-size: 0.8rem;
		padding: 0.5rem 0.35rem;
	}
	.lang__btn {
		padding: 0.35rem 0.45rem;
	}
	.loadout {
		grid-template-columns: 1fr;
	}
	.series {
		grid-template-columns: 1fr;
	}
	.tabs {
		gap: 0.3rem;
	}
	.tab {
		padding: 0.6rem 1rem;
		font-size: 0.84rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.stage__rays,
	.badge__dot,
	.stage__hero {
		animation: none !important;
	}
	.rise {
		opacity: 1;
		transform: none;
	}
	.js-anim .pill {
		transform: translateX(-50%);
		opacity: 1;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
