:root {
	--bg-0: #0b0d12;
	--bg-1: #0f131a;
	--ink-0: #e8eefb;
	--ink-1: #9db1d4;
	--accent: #7aa2ff;
	--accent-2: #5ef0c7;
	--chip: #1b2230;
	--muted: #6c7d99;
	--line: rgba(255, 255, 255, 0.1);
	--shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
	--radius: 18px;
	--max: 1120px;
	--font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--ink-0);
	font: 400 16px/1.55 var(--font);
	background: var(--bg-0);
	overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

.bg-atmosphere {
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(900px 600px at 8% 0%, rgba(122, 162, 255, 0.16), transparent 55%),
		radial-gradient(800px 700px at 92% 12%, rgba(94, 240, 199, 0.1), transparent 50%),
		linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, #0a0c10);
	pointer-events: none;
}

.bg-atmosphere::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
	opacity: 0.5;
}

/* Top bar */
.topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px clamp(16px, 4vw, 40px);
	backdrop-filter: blur(14px);
	background: rgba(11, 13, 18, 0.72);
	border-bottom: 1px solid var(--line);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.brand-logo {
	height: 32px;
	width: auto;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.brand-mark {
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: #0b0d12;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.topnav {
	display: flex;
	gap: 18px;
	color: var(--ink-1);
	font-size: 14px;
	font-weight: 600;
}

.topnav a:hover { color: var(--ink-0); }

.nav-mobile-only { display: none; }

.topbar-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.topbar-login {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px 0 6px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
	color: var(--ink-0);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.01em;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.topbar-login-ico {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(94, 240, 199, 0.14);
	color: var(--accent-2);
}

.topbar-login:hover {
	transform: translateY(-1px);
	border-color: rgba(94, 240, 199, 0.35);
	background: linear-gradient(180deg, rgba(94, 240, 199, 0.12), rgba(255, 255, 255, 0.03));
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar-actions .btn {
	padding: 10px 16px;
}

.nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	cursor: pointer;
	padding: 0;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}

.nav-toggle span {
	display: block;
	width: 16px;
	height: 2px;
	background: var(--ink-0);
	border-radius: 2px;
	transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
	transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
	transform: translateY(-3.5px) rotate(-45deg);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-solid {
	color: #0b0d12;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 10px 28px rgba(122, 162, 255, 0.28);
}

.btn-ghost {
	color: var(--ink-0);
	background: rgba(255, 255, 255, 0.05);
	border-color: var(--line);
}

.btn-lg {
	padding: 14px 26px;
	font-size: 15px;
}

/* Hero */
.hero {
	width: min(var(--max), calc(100% - 32px));
	margin: 0 auto;
	padding: clamp(40px, 8vh, 88px) 0 clamp(48px, 8vh, 96px);
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(28px, 5vw, 56px);
	align-items: center;
}

.eyebrow {
	margin: 0 0 14px;
	color: var(--accent-2);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hero h1 {
	margin: 0;
	font-size: clamp(32px, 5.4vw, 56px);
	line-height: 1.05;
	letter-spacing: -0.03em;
	font-weight: 800;
}

.hero-lead {
	margin: 18px 0 0;
	max-width: 34em;
	color: var(--ink-1);
	font-size: clamp(16px, 1.7vw, 19px);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.hero-trust li {
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--line);
	color: var(--ink-1);
	font-size: 13px;
	font-weight: 600;
}

.hero-visual {
	position: relative;
	min-height: 320px;
	display: grid;
	place-items: center;
}

.code-panel {
	width: min(100%, 380px);
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	overflow: hidden;
	animation: float-y 5.5s ease-in-out infinite;
}

.code-dots {
	display: flex;
	gap: 6px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
}

.code-dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
}
.code-dots span:nth-child(1) { background: #ff7b72; }
.code-dots span:nth-child(2) { background: #f2cc60; }
.code-dots span:nth-child(3) { background: #5ef0c7; }

.code-lines {
	margin: 0;
	padding: 18px 16px 22px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	line-height: 1.65;
	color: var(--ink-1);
	white-space: pre-wrap;
}

.c-kw { color: #7aa2ff; }
.c-fn { color: #5ef0c7; }
.c-str { color: #ffd18a; }

.orbit {
	position: absolute;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(27, 34, 48, 0.9);
	border: 1px solid var(--line);
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-0);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	animation: orbit-pulse 4s ease-in-out infinite;
}

.o1 { top: 8%; right: 4%; animation-delay: 0s; }
.o2 { bottom: 18%; left: 0; animation-delay: 0.8s; }
.o3 { bottom: 4%; right: 10%; animation-delay: 1.4s; }

@keyframes float-y {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@keyframes orbit-pulse {
	0%, 100% { transform: translateY(0); opacity: 0.85; }
	50% { transform: translateY(-6px); opacity: 1; }
}

/* Sections */
.section {
	width: min(var(--max), calc(100% - 32px));
	margin: 0 auto;
	padding: clamp(40px, 7vh, 72px) 0;
}

.section-head {
	max-width: 40em;
	margin-bottom: 28px;
}

.section-head h2 {
	margin: 0;
	font-size: clamp(26px, 3.4vw, 38px);
	letter-spacing: -0.02em;
	font-weight: 800;
}

.section-head p {
	margin: 10px 0 0;
	color: var(--ink-1);
}

/* About */
.about-grid {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 28px;
	align-items: start;
}

.about-photo {
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	aspect-ratio: 1;
}

.about-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-text h3 {
	margin: 0 0 12px;
	font-size: 24px;
	letter-spacing: -0.02em;
}

.about-text p {
	margin: 0 0 12px;
	color: var(--ink-1);
}

.about-points {
	margin: 18px 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.about-points li {
	position: relative;
	padding-left: 18px;
	color: var(--ink-0);
	font-weight: 500;
}

.about-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.text-link {
	color: var(--accent);
	font-weight: 700;
}

.text-link:hover { text-decoration: underline; }

/* Path */
.path-base {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	padding: 22px 24px;
	border-radius: var(--radius);
	background: linear-gradient(135deg, rgba(122, 162, 255, 0.12), rgba(94, 240, 199, 0.06));
	border: 1px solid var(--line);
	margin-bottom: 18px;
}

.path-step {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.04em;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.path-base h3 {
	margin: 0 0 6px;
	font-size: 20px;
}

.path-base p {
	margin: 0;
	color: var(--ink-1);
}

.branches {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.branch {
	padding: 18px 18px 20px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--line);
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.branch:hover,
.branch[data-active="true"] {
	transform: translateY(-3px);
	border-color: rgba(122, 162, 255, 0.4);
	background: rgba(122, 162, 255, 0.06);
}

.branch-ico {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-bottom: 12px;
	border-radius: 10px;
	background: var(--chip);
	color: var(--accent-2);
	font-size: 13px;
	font-weight: 700;
}

.branch h3 {
	margin: 0 0 8px;
	font-size: 17px;
}

.branch p {
	margin: 0;
	color: var(--ink-1);
	font-size: 14px;
}

.branch[data-branch="ai"],
.branch[data-branch="sec"] {
	grid-column: span 1;
}

.path-note {
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 14px;
}

.examples-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.example-card {
	padding: 20px 18px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.03);
}

.example-tag {
	margin: 0 0 8px;
	color: var(--accent-2);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.example-card h3 {
	margin: 0 0 8px;
	font-size: 18px;
}

.example-card p {
	margin: 0 0 12px;
	color: var(--ink-1);
	font-size: 14px;
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.92em;
	color: var(--accent);
}

/* Format */
.format-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
}

.format-list li {
	display: grid;
	gap: 4px;
	padding: 18px 20px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.03);
}

.format-list strong {
	font-size: 17px;
}

.format-list span {
	color: var(--ink-1);
	font-size: 14px;
}

/* Pricing */
.price-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.price-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 18px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.03);
}

.price-card.featured {
	background: linear-gradient(180deg, rgba(122, 162, 255, 0.14), rgba(255, 255, 255, 0.03));
	border-color: rgba(122, 162, 255, 0.45);
	box-shadow: 0 12px 32px rgba(122, 162, 255, 0.12);
}

.price-badge {
	margin: 0;
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #0b0d12;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.price-card h3 {
	margin: 0;
	font-size: 16px;
}

.price-value {
	margin: 0;
	font-size: 36px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}

.price-value span {
	font-size: 14px;
	font-weight: 700;
	color: var(--ink-1);
}

.price-desc {
	margin: 0;
	flex: 1;
	color: var(--ink-1);
	font-size: 13px;
}

.price-card .btn { width: 100%; margin-top: 6px; }

/* Рассрочка — отдельная полоса под сеткой цен */
.price-installment {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	margin-top: 12px;
	padding: 22px 26px;
	border-radius: var(--radius);
	border: 1px solid rgba(94, 240, 199, 0.35);
	background:
		linear-gradient(105deg, rgba(94, 240, 199, 0.12) 0%, rgba(122, 162, 255, 0.08) 45%, rgba(11, 13, 18, 0.9) 100%),
		#0d121a;
	box-shadow: inset 0 0 0 1px rgba(94, 240, 199, 0.08);
}

.price-installment-copy {
	flex: 1;
	min-width: 0;
}

.price-installment-label {
	margin: 0 0 6px;
	color: var(--accent-2);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.price-installment h3 {
	margin: 0 0 8px;
	font-size: 20px;
	letter-spacing: -0.02em;
}

.price-installment-copy p:last-child {
	margin: 0;
	color: var(--ink-1);
	font-size: 14px;
	max-width: 46em;
}

.price-installment-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	flex-shrink: 0;
}

.price-installment-code {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.price-installment-side .btn {
	white-space: nowrap;
}

.price-note {
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 13px;
}

/* FAQ */
.faq {
	display: grid;
	gap: 10px;
}

.faq details {
	border-radius: 14px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.03);
	padding: 4px 16px 4px;
}

.faq summary {
	cursor: pointer;
	list-style: none;
	padding: 14px 0;
	font-weight: 700;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
	content: "+";
	float: right;
	color: var(--accent);
	font-weight: 800;
}

.faq details[open] summary::after { content: "–"; }

.faq p {
	margin: 0 0 14px;
	color: var(--ink-1);
}

/* CTA */
.cta-block {
	text-align: center;
	padding: 48px 28px;
	border-radius: calc(var(--radius) * 1.2);
	border: 1px solid var(--line);
	background:
		radial-gradient(600px 200px at 50% 0%, rgba(122, 162, 255, 0.18), transparent 70%),
		rgba(255, 255, 255, 0.03);
}

.cta-block h2 {
	margin: 0;
	font-size: clamp(24px, 3vw, 34px);
	letter-spacing: -0.02em;
}

.cta-block p {
	margin: 12px auto 22px;
	max-width: 34em;
	color: var(--ink-1);
}

/* Footer */
.site-footer {
	width: min(var(--max), calc(100% - 32px));
	margin: 0 auto;
	padding: 28px 0 48px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	color: var(--muted);
	font-size: 13px;
	border-top: 1px solid var(--line);
}

.site-footer a:hover { color: var(--ink-0); }

/* Reveal */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Responsive */
@media (max-width: 980px) {
	.hero {
		grid-template-columns: 1fr;
	}

	.hero-visual {
		order: -1;
		min-height: 260px;
	}

	.branches {
		grid-template-columns: repeat(2, 1fr);
	}

	.examples-grid {
		grid-template-columns: 1fr;
	}

	.price-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 760px) {
	.topnav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		padding: 8px 16px 16px;
		background: rgba(11, 13, 18, 0.96);
		border-bottom: 1px solid var(--line);
	}

	.topnav.is-open { display: flex; }

	.topnav a {
		padding: 12px 4px;
		border-bottom: 1px solid var(--line);
	}

	.nav-mobile-only { display: block; }
	.topbar-actions { display: none; }
	.nav-toggle { display: inline-flex; }

	.about-grid {
		grid-template-columns: 1fr;
	}

	.about-photo {
		width: min(180px, 50%);
	}

	.branches,
	.examples-grid,
	.price-grid {
		grid-template-columns: 1fr;
	}

	.price-installment {
		flex-direction: column;
		align-items: stretch;
		padding: 20px 18px;
	}

	.price-installment-side {
		align-items: stretch;
	}

	.price-installment-side .btn {
		width: 100%;
	}

	.price-installment-code {
		align-self: flex-start;
	}

	.path-base {
		grid-template-columns: 1fr;
		gap: 8px;
	}
}
