/* Лендинг MixPuzzle: неоновая палитра иконки (индиго, циан, маджента) на тёмно-синем фоне. */
:root {
	color-scheme: dark;
	--bg: #090b24;
	--bg-2: #11164a;
	--surface: rgba(255, 255, 255, 0.05);
	--surface-2: rgba(255, 255, 255, 0.08);
	--border: rgba(160, 175, 255, 0.16);
	--indigo: #485ccc;
	--blue: #3d6bff;
	--cyan: #44e3f2;
	--magenta: #d24cf0;
	--text: #eef0ff;
	--muted: #a7aedb;
	--radius: 20px;
	--maxw: 1120px;
	--font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.55;
	color: var(--text);
	background:
		radial-gradient(900px 600px at 85% -10%, rgba(210, 76, 240, 0.22), transparent 60%),
		radial-gradient(900px 700px at -10% 20%, rgba(68, 227, 242, 0.14), transparent 60%),
		linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 55%);
	background-color: var(--bg);
	background-attachment: fixed;
}

/* Двуязычность: оба языка в разметке, видимый выбирается атрибутом lang у <html>. */
html[lang="ru"] .en, html:not([lang="ru"]) .ru { display: none !important; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Шапка ---------- */
.nav {
	position: sticky; top: 0; z-index: 10;
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	background: rgba(9, 11, 36, 0.6);
	border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: 0.2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.lang-switch button {
	font: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
	background: none; border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }

/* ---------- Первый экран ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-icon {
	width: 112px; height: 112px; border-radius: 26px;
	box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 20px 60px rgba(61, 107, 255, 0.45), 0 0 80px rgba(210, 76, 240, 0.25);
}
.eyebrow { margin: 28px 0 8px; color: var(--cyan); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; }
h1 { margin: 0; font-size: clamp(44px, 7vw, 76px); line-height: 1.02; letter-spacing: -1.5px; }
h1 .grad {
	background: linear-gradient(90deg, var(--cyan), #8b8cff 45%, var(--magenta));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 18px 0 30px; font-size: 20px; color: var(--muted); max-width: 34ch; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 13px 22px; border-radius: 14px; font-weight: 600; font-size: 16px;
	border: 1px solid var(--border); color: var(--text); background: var(--surface);
}
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn--store { background: #fff; color: #0b0d22; border-color: #fff; }
.btn--store:hover { background: #e9ecff; }
.btn--store svg { width: 22px; height: 22px; }
.btn--store small { display: block; font-size: 11px; font-weight: 500; line-height: 1.1; opacity: 0.7; }
.btn--store span { line-height: 1.15; }
.btn[aria-disabled="true"] { cursor: default; }
.meta { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Доска 4×4 с «кубиками» в изометрии. */
.stage { display: flex; justify-content: center; perspective: 1400px; padding: 20px 0; }
.board {
	--size: min(380px, 64vw);
	--cell: calc(var(--size) / 4);
	position: relative; width: var(--size); height: var(--size);
	transform: rotateX(52deg) rotateZ(-38deg);
	transform-style: preserve-3d;
	border-radius: 22px;
	background: linear-gradient(135deg, rgba(72, 92, 204, 0.55), rgba(40, 30, 120, 0.55));
	box-shadow:
		0 0 0 2px rgba(68, 227, 242, 0.55),
		0 0 30px rgba(68, 227, 242, 0.35),
		0 0 60px rgba(210, 76, 240, 0.35),
		0 30px 0 -6px rgba(30, 24, 100, 0.9);
}
.tile {
	position: absolute; left: 0; top: 0;
	width: calc(var(--cell) - 10px); height: calc(var(--cell) - 10px);
	margin: 5px;
	transform: translate(calc(var(--x) * var(--cell)), calc(var(--y) * var(--cell))) translateZ(14px);
	transition: transform 0.45s cubic-bezier(.3,.7,.2,1);
	display: grid; place-items: center;
	border-radius: 14px;
	font-weight: 800; font-size: calc(var(--cell) * 0.36); color: #fff;
	background: linear-gradient(145deg, #4f86ff, #2f3fc4);
	box-shadow:
		inset 0 2px 0 rgba(255,255,255,0.35),
		inset 0 0 18px rgba(68, 227, 242, 0.55),
		-6px 8px 0 #1c247a,
		-8px 12px 18px rgba(0,0,0,0.35);
	text-shadow: 0 0 10px rgba(68, 227, 242, 0.9);
}
.tile--alt {
	background: linear-gradient(145deg, #3a3f8f, #1d1f5a);
	box-shadow:
		inset 0 2px 0 rgba(255,255,255,0.2),
		inset 0 0 18px rgba(210, 76, 240, 0.6),
		-6px 8px 0 #12133d,
		-8px 12px 18px rgba(0,0,0,0.35);
	text-shadow: 0 0 10px rgba(210, 76, 240, 0.95);
}

/* ---------- Секции ---------- */
section { padding: 56px 0; }
h2 { font-size: clamp(30px, 4.2vw, 42px); line-height: 1.1; letter-spacing: -0.6px; margin: 0 0 12px; }
.section-lead { color: var(--muted); margin: 0 0 36px; max-width: 60ch; font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
	padding: 24px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--border);
}
.card h3 { margin: 14px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.ico {
	width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
	background: linear-gradient(145deg, rgba(68,227,242,0.22), rgba(210,76,240,0.22));
	border: 1px solid var(--border);
}
.ico svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Мини-доски целевых раскладок. */
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.goal { text-align: center; }
.mini {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
	width: 156px; margin: 0 auto 16px; padding: 8px; border-radius: 16px;
	background: rgba(72, 92, 204, 0.3); box-shadow: 0 0 0 1px rgba(68, 227, 242, 0.4), 0 0 24px rgba(68,227,242,0.15);
}
.mini span {
	aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px;
	font-weight: 700; font-size: 18px;
	background: linear-gradient(145deg, #4f86ff, #2f3fc4);
	box-shadow: inset 0 0 10px rgba(68,227,242,0.45);
}
.mini span:empty { background: rgba(0,0,0,0.25); box-shadow: none; }
.goal h3 { margin: 0 0 4px; font-size: 18px; }
.goal p { margin: 0; color: var(--muted); font-size: 15px; }

.band {
	display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.band .card { padding: 28px; }

/* ---------- Текстовые страницы (поддержка, конфиденциальность) ---------- */
.doc { padding: 56px 0 24px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -1px; margin-bottom: 10px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; letter-spacing: -0.2px; }
.doc p, .doc li { color: #d5d9f5; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.callout {
	padding: 20px 22px; border-radius: 16px; margin: 0 0 28px;
	background: linear-gradient(135deg, rgba(68,227,242,0.12), rgba(210,76,240,0.12));
	border: 1px solid var(--border);
}
.callout p { margin: 0; color: var(--text); }
details {
	border: 1px solid var(--border); background: var(--surface);
	border-radius: 14px; padding: 4px 18px; margin: 10px 0;
}
summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--cyan); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 14px; }

/* ---------- Подвал ---------- */
footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.credits { flex-basis: 100%; font-size: 13px; opacity: 0.75; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
	.hero { padding-top: 40px; }
	.hero .wrap { grid-template-columns: 1fr; }
	.grid { grid-template-columns: 1fr 1fr; }
	.goals { grid-template-columns: 1fr; gap: 28px; }
	.band { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.nav-links a { display: none; }
	.grid { grid-template-columns: 1fr; }
	.lead { font-size: 18px; }
	section { padding: 40px 0; }
	footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.tile { transition: none; }
}
