:root {
	--bg: #f6f7fb;
	--surface: #ffffff;
	--ink: #0f172a;
	--ink-soft: #4b5563;
	--line: #e2e8f0;
	--grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #14b8a6 100%);
	--radius: 22px;
	--shadow: 0 20px 40px -22px rgba(15, 23, 42, .28);
	--header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
h1, h2, h3 {
	font-family: Manrope, Inter, system-ui, sans-serif;
	line-height: 1.15;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	text-wrap: balance;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
section { position: relative; padding: 112px 0; }
.section-alt { background: #fff; }

/* ---------- Заголовки секций ---------- */
.head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.head h2 { font-size: clamp(30px, 4.2vw, 46px); }
.head p { margin: 0; font-size: 18px; color: var(--ink-soft); }
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
	font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #4f46e5;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--grad); }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px;
	border: 1px solid transparent; border-radius: 14px;
	font-size: 16px; font-weight: 600; white-space: nowrap; cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 14px 28px -12px rgba(99, 102, 241, .85); }
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(99, 102, 241, .95); }
.btn-light { color: var(--ink); background: #fff; }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }
.btn-outline { color: #4338ca; background: #fff; border-color: #c7d2fe; }
.btn-outline:hover { background: #eef2ff; border-color: #a5b4fc; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 60;
	height: var(--header-h); color: #fff;
	transition: background-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled {
	background: rgba(11, 16, 32, .88);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .5);
}
.header-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: Manrope, Inter, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.02em;
}
.logo-mark {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
	background: linear-gradient(135deg, #6366f1, #14b8a6); font-size: 17px;
	box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .9);
}
.logo-dev { color: #5eead4; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 15px; font-weight: 500; color: #cbd5e1; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: #fff; }
.header-cta { margin-left: 0; }
.burger {
	position: relative; display: none; width: 46px; height: 46px; margin-left: 12px; padding: 0;
	border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: rgba(255, 255, 255, .06);
	cursor: pointer;
}
.burger span {
	position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff;
	transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }
.burger.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
.mobile-menu {
	display: none; position: absolute; top: 100%; left: 0; right: 0;
	padding: 8px 20px 24px; background: #0b1020; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6);
}
.mobile-menu a {
	display: block; padding: 15px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08);
	color: #e2e8f0; font-weight: 500;
}
.mobile-menu .btn {
	display: flex; justify-content: center; margin-top: 18px; padding: 0 24px;
	border: 0; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; padding: 150px 0 110px; color: #fff;
	background:
		radial-gradient(900px 520px at 85% -5%, rgba(99, 102, 241, .38), transparent 62%),
		radial-gradient(700px 480px at -5% 45%, rgba(20, 184, 166, .2), transparent 60%),
		linear-gradient(180deg, #0b1020 0%, #11172e 100%);
}
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
	mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 24px; font-size: clamp(38px, 5.4vw, 66px); }
.grad-text {
	background: linear-gradient(90deg, #a5b4fc, #818cf8 40%, #5eead4);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { max-width: 570px; margin-bottom: 18px; font-size: 19px; line-height: 1.55; color: #cbd5e1; }
.hero-note { margin-bottom: 28px; font-size: 16px; font-weight: 600; color: #e2e8f0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* ---------- Демо-карточка в hero ---------- */
.demo {
	position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px;
	background: rgba(15, 23, 42, .6);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7);
}
.demo-bar {
	display: flex; align-items: center; gap: 8px; padding: 14px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03);
}
.demo-bar i { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.demo-bar i:nth-child(1) { background: #f87171; }
.demo-bar i:nth-child(2) { background: #fbbf24; }
.demo-bar i:nth-child(3) { background: #34d399; }
.demo-url {
	flex: 1; max-width: 260px; margin: 0 12px; padding: 5px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .06); font-size: 12px; color: #94a3b8;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live { font-size: 12px; font-weight: 700; color: #34d399; opacity: 0; transition: opacity .4s ease; }
.demo.is-live .live { opacity: 1; }
.demo-body { padding: 24px; }
.mock {
	display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 28px 1fr 1fr;
	gap: 10px; height: 200px; margin-bottom: 22px;
}
.mk {
	border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; background: rgba(148, 163, 184, .16);
	opacity: 0; translate: 0 8px;
	transition: opacity .5s ease, translate .5s ease, background-color .7s ease;
}
.mk-nav { grid-column: 1 / -1; grid-row: 1; border-radius: 9px; }
.mk-hero { grid-column: 1; grid-row: 2 / 4; }
.mk-c1 { grid-column: 2; grid-row: 2; }
.mk-c2 { grid-column: 2; grid-row: 3; }
.mock.is-built .mk { opacity: 1; translate: 0 0; }
.mock.is-built .mk-hero { transition-delay: .12s; }
.mock.is-built .mk-c1 { transition-delay: .24s; }
.mock.is-built .mk-c2 { transition-delay: .36s; }
.mock.is-polished .mk-nav { background: rgba(129, 140, 248, .55); }
.mock.is-polished .mk-hero { background: linear-gradient(135deg, rgba(99, 102, 241, .6), rgba(20, 184, 166, .5)); }
.mock.is-polished .mk-c1,
.mock.is-polished .mk-c2 { background: rgba(94, 234, 212, .28); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li {
	display: flex; align-items: center; gap: 12px; padding: 11px 14px;
	border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; background: rgba(255, 255, 255, .03);
	font-size: 14px; line-height: 1.4; color: #64748b;
	transition: color .3s ease, border-color .3s ease, background-color .3s ease;
}
.steps li.is-active { color: #e2e8f0; border-color: rgba(129, 140, 248, .55); background: rgba(129, 140, 248, .08); }
.steps li.is-done { color: #cbd5e1; }
.who {
	flex: none; min-width: 44px; padding: 4px 8px; border-radius: 7px; text-align: center;
	font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
[data-who="ai"] .who { background: rgba(139, 92, 246, .22); color: #c4b5fd; }
[data-who="dev"] .who { background: rgba(20, 184, 166, .2); color: #5eead4; }
[data-who="launch"] .who { background: rgba(251, 191, 36, .18); color: #fde68a; }
.txt { flex: 1; min-width: 0; }
.state { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); }
.is-active .state { border-color: #818cf8 #818cf8 #818cf8 transparent; animation: spin .8s linear infinite; }
.is-done .state { background: #34d399; border-color: #34d399; }
.is-done .state::after {
	content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
	border: solid #0b1020; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 6px; margin: 20px 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress span {
	display: block; width: 0; height: 100%; border-radius: 99px;
	background: linear-gradient(90deg, #6366f1, #8b5cf6, #14b8a6);
}
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: #cbd5e1; }
#demoPct { font-family: Manrope, Inter, sans-serif; font-weight: 800; color: #a5b4fc; }

/* ---------- Примеры сайтов ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.portfolio-card {
	display: flex; flex-direction: column; height: 100%; overflow: hidden;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.portfolio-card:hover { transform: translateY(-3px); border-color: #a5b4fc; box-shadow: var(--shadow); }
.portfolio-card:focus-visible { outline: 3px solid #6366f1; outline-offset: 4px; }
.portfolio-image {
	width: 100%; height: auto; aspect-ratio: 16 / 10;
	object-fit: cover; object-position: top center; background: #e2e8f0;
}
.portfolio-copy { display: flex; flex: 1; flex-direction: column; padding: 22px 24px; }
.portfolio-category { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.portfolio-copy h3 { margin-bottom: 8px; font-size: 23px; text-wrap: wrap; }
.portfolio-details { margin: 0 0 20px; color: var(--ink-soft); }
.portfolio-link { display: inline-flex; gap: 8px; margin-top: auto; font-weight: 700; color: #4338ca; }

.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink-soft); }
.checks li::before {
	content: "✓"; position: absolute; left: 0; top: 1px;
	display: flex; align-items: center; justify-content: center;
	width: 20px; height: 20px; border-radius: 7px; background: #eef2ff; color: #4f46e5;
	font-size: 12px; font-weight: 800;
}

/* ---------- Этапы ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.step-num {
	display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px;
	font-family: Manrope, Inter, sans-serif; font-size: 15px; font-weight: 800; color: #4f46e5; background: #eef2ff;
}
.step h3 { margin-bottom: 10px; font-size: 20px; }
.step p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Тарифы ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan {
	position: relative; display: flex; flex-direction: column; padding: 38px 32px;
	border: 1px solid var(--line); border-radius: 24px; background: #fff;
}
.plan.is-hot {
	border: 2px solid transparent;
	background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
	box-shadow: 0 30px 60px -28px rgba(99, 102, 241, .5);
}
.plan h3 { margin-bottom: 6px; font-size: 22px; }
.plan-note { margin: 0 0 20px; font-size: 15px; color: var(--ink-soft); }
.plan-price { font-family: Manrope, Inter, sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.plan-term { margin-top: 8px; font-size: 15px; font-weight: 600; color: #0f766e; }
.plan .checks { flex: 1 1 auto; margin: 24px 0 28px; }
.addons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.addon { padding: 20px 22px; border: 1px dashed #c7d2fe; border-radius: 16px; background: #f8faff; }
.addon b { display: block; margin-bottom: 4px; font-family: Manrope, Inter, sans-serif; font-size: 17px; }
.addon span { font-size: 14px; color: var(--ink-soft); }
.pricing-note { margin: 28px 0 0; text-align: center; font-size: 15px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 840px; margin: 0 auto; }
.faq-item {
	overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff;
	transition: border-color .3s ease, box-shadow .3s ease;
}
.faq-item.open { border-color: #c7d2fe; box-shadow: var(--shadow); }
.faq-q {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
	padding: 22px 24px; border: 0; background: none; color: var(--ink);
	font-size: 17px; font-weight: 600; text-align: left; cursor: pointer;
}
.faq-a { display: none; padding: 0 24px 24px; }
.faq-a p { margin: 0; color: var(--ink-soft); }
.plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #eef2ff; }
.plus::before, .plus::after {
	content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
	border-radius: 2px; background: #4f46e5; transition: transform .3s ease;
}
.plus::after { transform: rotate(90deg); }
.faq-item.open .plus::after { transform: rotate(0deg); }

/* ---------- CTA ---------- */
.cta {
	overflow: hidden; padding: 104px 0; text-align: center; color: #fff;
	background:
		radial-gradient(760px 380px at 50% 0%, rgba(99, 102, 241, .45), transparent 70%),
		linear-gradient(180deg, #11172e, #0b1020);
}
.cta h2 { max-width: 820px; margin: 0 auto 18px; font-size: clamp(30px, 4.4vw, 48px); }
.cta p { max-width: 620px; margin: 0 auto 36px; font-size: 18px; color: #cbd5e1; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Всплывающий бриф ---------- */
body:has(.brief-dialog[open]) { overflow: hidden; }
.brief-dialog {
	width: min(560px, 100% - 32px); max-height: calc(100dvh - 32px); padding: 0;
	border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface);
	overscroll-behavior: contain;
}
.brief-dialog::backdrop { background: rgba(11, 16, 32, .76); }
.brief-dialog-content { position: relative; padding: 30px; }
.brief-dialog h2 { margin: 0 44px 10px 0; font-size: clamp(26px, 5vw, 34px); }
.brief-status { margin: 12px 0 0; color: var(--ink-soft); font-size: 14px; }
.brief-status:empty { margin: 0; }
.brief-status.is-error { color: #b91c1c; }
.brief-close {
	position: absolute; top: 16px; right: 16px; display: grid; place-items: center;
	width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 12px;
	background: var(--bg); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer;
}
.brief-close:hover { background: #eef2ff; }
.brief-form, .brief-fields { display: grid; gap: 14px; }
.brief-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brief-field { display: grid; gap: 6px; }
.brief-field label { font-size: 14px; font-weight: 600; }
.brief-field input, .brief-field select, .brief-field textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px;
	background: #fff; color: var(--ink); font-size: 16px;
}
.brief-field textarea { resize: vertical; min-height: 88px; }
.brief-dialog :focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }
.brief-form .btn:disabled { cursor: default; }

/* ---------- Футер ---------- */
.footer { padding: 72px 0 30px; background: #070b17; color: #94a3b8; font-size: 15px; }
.footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-about { max-width: 380px; margin: 18px 0 0; line-height: 1.7; }
.footer h4 { margin: 0 0 16px; font-family: Manrope, Inter, sans-serif; font-size: 15px; color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { transition: color .2s ease; }
.footer-links a:hover { color: #c7d2fe; }
.footer-bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px;
}

/* ---------- Кнопка «наверх» ---------- */
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 55; display: grid; place-items: center;
	width: 50px; height: 50px; border: 0; border-radius: 15px; background: var(--grad); color: #fff; cursor: pointer;
	box-shadow: 0 16px 30px -12px rgba(99, 102, 241, .8);
	opacity: 0; visibility: hidden; translate: 0 12px;
	transition: opacity .3s ease, visibility .3s ease, translate .3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; translate: 0 0; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Появление блоков (работает только при включенном JS) ---------- */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: rise .7s ease both; }
.js .reveal.d1 { animation-delay: .08s; }
.js .reveal.d2 { animation-delay: .16s; }
.js .reveal.d3 { animation-delay: .24s; }
.js .reveal.d4 { animation-delay: .32s; }
@keyframes rise {
	from { opacity: 0; translate: 0 28px; }
	to { opacity: 1; translate: 0 0; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
	.hero-grid { grid-template-columns: 1fr; gap: 56px; }
	.demo { width: 100%; max-width: 620px; }
	.addons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.nav { display: none; }
	.header-cta { margin-left: auto; }
	.burger { display: block; }
	.price-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
	.portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	section { padding: 80px 0; }
	.hero { padding: 108px 0 64px; }
	.hero h1 { margin-bottom: 18px; font-size: clamp(32px, 8vw, 42px); }
	.hero-lead { font-size: 16px; }
	.hero-note { margin-bottom: 20px; font-size: 15px; }
	.hero-grid { gap: 32px; }
	.hero-actions .btn, .cta-actions .btn { width: 100%; }
	.brief-dialog-content { padding: 22px; }
	.brief-fields { grid-template-columns: 1fr; }
	.demo-body { padding: 18px; }
	.mock { height: 170px; }
	.process { grid-template-columns: 1fr; }
	.portfolio-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
	.addons { grid-template-columns: 1fr; }
	.header-cta { display: none; }
	.burger { margin-left: auto; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-grid > div:first-child { grid-column: auto; }
	.plan { padding: 32px 26px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
	.js .reveal { opacity: 1; }
	.js .reveal.is-visible { animation: none; }
}
