:root {
	--primary: #8b5cf6; /* фиолетовый */
	--primary-dark: #6d28d9;
	--secondary: #06b6d4; /* бирюзовый */
	--secondary-dark: #0e7490;
	--accent: #facc15; /* жёлтый акцент */
	--green: #22c55e;
	--red: #ef4444;
	--amber: #f59e0b;
	--white: #ffffff;
	--muted: #a1a1aa;
	--bg-dark: #0f172a; /* общий фон */
	--bg-card: rgba(255, 255, 255, 0.1);
}
* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	padding: 0;
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial;
	background: radial-gradient(
			1200px 600px at 30% -10%,
			#312e81 0%,
			/* новый основной фиолет */ #1e1b4b 60%,
			/* тёмно-синий */ #020617 100% /* почти чёрный */
		)
		fixed;
	color: var(--white);
}
a {
	color: var(--secondary);
	transition: 0.2s;
}
a:hover {
	color: var(--accent);
}
.container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 24px;
}
.section {
	position: relative;
	padding: 56px 0;
}
.section__title {
	font-size: 32px;
	margin: 0 0 14px;
	color: var(--primary);
}
.lead {
	font-weight: 600;
	opacity: 0.95;
}
.muted {
	color: var(--muted);
}
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 12px;
	padding: 12px 18px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: var(--bg-card);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: 0.25s;
}
.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.btn-lg {
	padding: 14px 22px;
	font-size: 16px;
}
.btn-primary {
	background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}
.btn-secondary {
	background: linear-gradient(180deg, var(--secondary), var(--secondary-dark));
}
.topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10, 10, 20, 0.65);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.topbar__grid {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 24px;
}
.logo {
	height: 32px;
}
.hero__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 28px;
	align-items: center;
}
.hero__text h1 {
	font-size: 42px;
	line-height: 1.15;
	margin: 0 0 10px;
	color: var(--accent);
}
.badge {
	display: inline-block;
	background: var(--bg-card);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	margin-bottom: 10px;
	color: var(--secondary);
}
.trust {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 14px;
}
.trust__item {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--bg-card);
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 8px 12px;
	border-radius: 10px;
}
.card-3d {
	perspective: 1000px;
}
.card-3d__inner {
	width: 320px;
	height: 200px;
	border-radius: 20px;
	background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #6366f1 100%);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
	transform: rotateY(-12deg) rotateX(6deg);
	position: relative;
	padding: 18px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.card-3d__emblem {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #facc15, #eab308);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}
.card-3d__title {
	font-weight: 800;
	letter-spacing: 0.5px;
}
.card-3d__chip {
	position: absolute;
	right: 18px;
	top: 18px;
	width: 38px;
	height: 28px;
	border-radius: 6px;
	background: linear-gradient(180deg, #fcd34d, #eab308);
}
.card-3d__rows .row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 6px 8px;
	border-radius: 8px;
	margin-top: 6px;
}
.glass {
	background: var(--bg-card);
	border: 1px solid rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(8px);
	border-radius: 18px;
}
.quiz__card {
	padding: 22px;
}
.quiz__progress {
	position: relative;
	height: 10px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	margin-bottom: 14px;
	overflow: hidden;
}
.quiz__progress-bar {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	background: linear-gradient(90deg, var(--primary), var(--secondary));
	border-radius: 999px;
	width: 0%;
}
.quiz__progress-info {
	margin: 6px 0 10px;
	color: #d3dbe6;
	font-size: 13px;
}
.step {
	display: none;
}
.step.active {
	display: block;
	animation: fade 0.25s ease;
}
@keyframes fade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
h3 {
	margin: 0 0 10px;
}
.grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-span-2 {
	grid-column: 1/-1;
}
.opt {
	background: var(--bg-card);
	padding: 14px;
	border-radius: 12px;
	cursor: pointer;
	border: 1.5px solid rgba(255, 255, 255, 0.14);
	transition: 0.2s;
}
.opt:hover {
	border-color: var(--secondary);
}
.opt input {
	margin-right: 8px;
}
.fld span {
	display: block;
	font-size: 12px;
	color: #b6c4d5;
	margin-bottom: 6px;
}
.fld input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 10px;
	outline: none;
	background: var(--bg-card);
	color: #fff;
}
.chk {
	font-size: 14px;
}
.nav {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}
.footer {
	background: rgba(10, 10, 20, 0.5);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 28px 0;
}
.footer__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
/* Mobile */
@media (max-width: 980px) {
	.hero__grid {
		grid-template-columns: 1fr;
	}
	.grid {
		grid-template-columns: 1fr;
	}
	.grid-2 {
		grid-template-columns: 1fr;
	}
	.steps__grid,
	.proof__grid,
	.footer__grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 540px) {
	.topbar__grid {
		padding-left: 12px;
		padding-right: 12px;
	}
	.logo {
		height: 28px;
	}
	.hero__text h1 {
		font-size: 28px;
	}
	.lead {
		font-size: 14px;
	}
	.btn,
	.btn.btn-lg {
		width: 100%;
		justify-content: center;
	}
	.trust {
		gap: 8px;
	}
	.trust__item {
		font-size: 12px;
	}
	.quiz__card {
		padding: 16px;
	}
}

/* === Center Toast Notification === */
.toast {
	position: fixed;
	left: 50%;
	top: 20%;
	transform: translate(-50%, -20%) scale(0.95);
	background: var(--green);
	color: #fff;
	padding: 14px 18px;
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
	font-weight: 700;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	text-align: center;
	max-width: 90vw;
}
.toast.show {
	opacity: 1;
	transform: translate(-50%, -20%) scale(1);
}
@media (max-width: 540px) {
	.toast {
		top: 16%;
		padding: 12px 14px;
		border-radius: 10px;
	}
}

/* === Center Modal (auto-hide) === */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}
.modal-overlay.show {
	opacity: 1;
	pointer-events: auto;
}
.modal-box {
	background: #1e293b;
	color: #fff;
	border-radius: 16px;
	padding: 18px 20px;
	width: min(92vw, 520px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	text-align: center;
	transform: translateY(10px) scale(0.98);
	transition: transform 0.25s ease;
}
.modal-overlay.show .modal-box {
	transform: translateY(0) scale(1);
}
.modal-title {
	font-weight: 800;
	margin: 0 0 6px;
	font-size: 18px;
	color: var(--accent);
}
.modal-text {
	margin: 0;
	opacity: 0.95;
}
.modal-box.success {
	background: var(--green);
}
.modal-box.warn {
	background: var(--amber);
}
.modal-box.error {
	background: var(--red);
}
@media (max-width: 540px) {
	.modal-box {
		padding: 16px 14px;
		border-radius: 14px;
	}
	.modal-title {
		font-size: 16px;
	}
}
