/* Кратко — тема. Системные шрифты, одна акцентная краска, светлая и тёмная схемы. */

:root {
	--bg: #ffffff;
	--bg-soft: #f6f7f9;
	--surface: #ffffff;
	--text: #15171a;
	--muted: #6b7280;
	--line: #e5e7eb;
	--accent: #2453d6;
	--accent-text: #ffffff;
	--accent-soft: #eaf0fe;
	--ok: #0f8a4f;
	--ok-soft: #e7f6ee;
	--err: #c2352b;
	--err-soft: #fdecea;
	--wait-soft: #fff6e0;
	--radius: 12px;
	--radius-s: 8px;
	--wrap: 1120px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0f1113;
		--bg-soft: #16191c;
		--surface: #16191c;
		--text: #eceef1;
		--muted: #9aa1ab;
		--line: #262a2f;
		--accent: #6d93ff;
		--accent-text: #0b1020;
		--accent-soft: #1a2440;
		--ok: #4cc38a;
		--ok-soft: #12271d;
		--err: #ff7b72;
		--err-soft: #2d1513;
		--wait-soft: #2a2310;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section--tint { background: var(--bg-soft); }
.section__head { margin-bottom: 32px; }
.section__title { font-size: clamp(24px, 3vw, 32px); }
.page-title { font-size: clamp(28px, 4vw, 40px); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-s); }

/* Кнопки */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px;
	border: 1px solid transparent; border-radius: 999px;
	font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-text); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); }
.btn--block { width: 100%; }

/* Шапка */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand__mark { color: var(--accent); }
.brand__logo { max-height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav__list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--text); text-decoration: none; font-size: 15px; }
.nav__list a:hover, .nav__list .current-menu-item > a { color: var(--accent); }
.nav__account { min-height: 36px; padding: 6px 16px; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; border: 0; background: none; color: var(--text); cursor: pointer;
	}
	.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
		display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: "";
	}
	.nav-toggle__bar::before { position: absolute; top: -6px; }
	.nav-toggle__bar::after { position: absolute; top: 6px; }
	.nav {
		display: none; position: absolute; top: 64px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
	}
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.nav__account { margin-top: 16px; }
}

/* Первый экран */
.hero { padding: 72px 0 56px; }
.hero__row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.03em; }
.hero__lead { font-size: 18px; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
@media (max-width: 960px) {
	.hero__row { grid-template-columns: 1fr; gap: 40px; }
}

/* Макет окна программы */
.mock {
	border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
	background: var(--surface);
	box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 48px -24px rgba(16,24,40,.25);
	font-size: 12px; line-height: 1.4; user-select: none;
}
.mock__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock__bar span { margin-left: 8px; color: var(--muted); font-weight: 600; }
.mock__body { display: grid; grid-template-columns: 0.8fr 1.1fr 1.5fr; min-height: 300px; }
.mock__side { display: flex; flex-direction: column; gap: 4px; padding: 12px 8px; border-right: 1px solid var(--line); background: var(--bg-soft); }
.mock__side b, .mock__side span, .mock__side small { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; font-weight: 500; }
.mock__side b.is-active { background: var(--accent-soft); color: var(--accent); }
.mock__side em { margin-left: auto; font-style: normal; font-size: 11px; }
.mock__side span i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.mock__side small { color: var(--muted); font-size: 12px; }
.mock__side small:first-of-type { margin-top: 10px; }
.mock__list { border-right: 1px solid var(--line); }
.mock__mail { position: relative; padding: 10px 34px 10px 12px; border-bottom: 1px solid var(--line); }
.mock__mail b { display: block; font-weight: 600; }
.mock__mail span { color: var(--muted); }
.mock__mail em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 10px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; }
.mock__mail.is-active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.mock__read { padding: 14px 16px; }
.mock__subject { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.mock__ai { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; background: var(--bg-soft); }
.mock__ai p { margin: 0 0 4px; }
.mock__ai-title { font-weight: 700; color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.mock__task { color: var(--muted); }
.mock__lines i { display: block; height: 7px; border-radius: 4px; background: var(--line); margin-bottom: 8px; }
@media (max-width: 560px) {
	.mock__body { grid-template-columns: 1fr 1.3fr; }
	.mock__side { display: none; }
}

/* Возможности */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.feature:target { border-color: var(--accent); }
.feature__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.feature__icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.feature__title { font-size: 19px; margin: 0; }
.feature__lead { color: var(--muted); font-size: 15px; }
.feature__list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.feature__list li { position: relative; padding: 6px 0 6px 18px; border-top: 1px solid var(--line); }
.feature__list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Шаги */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(s); font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 820px; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface); }
.plan--selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan__title { font-size: 18px; margin-bottom: 4px; }
.plan__price { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.plan__period { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan__list { list-style: none; padding: 0; margin: 0 0 24px; font-size: 15px; }
.plan__list li { padding: 6px 0 6px 24px; position: relative; }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan__action { margin-top: auto; }
.plan__action .btn { width: 100%; }
.plan__action p { margin: 10px 0 0; }
.plans__note { margin-top: 20px; max-width: 820px; }
.buy__agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; color: var(--muted); }
.buy__agree input { margin-top: 4px; }

/* FAQ */
.faq { margin-top: 64px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Уведомления */
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-s); margin: 0 0 20px; font-size: 15px; }
.notice--success { background: var(--ok-soft); color: var(--ok); }
.notice--error { background: var(--err-soft); color: var(--err); }
.notice--wait { background: var(--wait-soft); }
.spinner { width: 16px; height: 16px; flex: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Формы */
.auth { max-width: 420px; margin: 0 auto; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 999px; margin: 24px 0; }
.tab { flex: 1; border: 0; background: none; padding: 8px 12px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input {
	font: inherit; font-weight: 400; font-size: 16px; color: var(--text);
	padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface);
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field small { font-weight: 400; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.hp { position: absolute; left: -9999px; }

/* Кабинет */
.account { max-width: 860px; }
.account__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.account__head .page-title { margin-bottom: 4px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; background: var(--surface); }
.card__title { font-size: 19px; margin-bottom: 16px; }
.card__title .muted { font-weight: 400; font-size: 15px; }
.licenses { list-style: none; margin: 0; padding: 0; }
.license { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.license:first-child { border-top: 0; padding-top: 0; }
.license--off .license__key code { color: var(--muted); text-decoration: line-through; }
.license__key { display: flex; align-items: center; gap: 8px; min-width: 0; }
.license__key code { font-size: 16px; letter-spacing: .04em; background: var(--bg-soft); padding: 6px 10px; border-radius: 6px; overflow-wrap: anywhere; }
.license__meta { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.license__renew { grid-column: 1 / -1; }
.license__renew .buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.license__renew .buy__agree { margin: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 600; }
.badge--off { background: var(--err-soft); color: var(--err); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn.is-done { color: var(--ok); border-color: var(--ok); }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 12px; }
.download { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--text); text-decoration: none; }
.download:hover { border-color: var(--accent); }
.download .icon { color: var(--accent); flex: none; }
.download span { display: flex; flex-direction: column; min-width: 0; }
.download b { font-size: 15px; overflow-wrap: anywhere; }
.download--off { opacity: .55; }
.download--off .icon { color: var(--muted); }
.notes summary { cursor: pointer; font-size: 14px; }
.notes p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.status { font-size: 13px; font-weight: 600; white-space: nowrap; }
.status--succeeded { color: var(--ok); }
.status--canceled { color: var(--err); }
.status--pending { color: var(--muted); }
@media (max-width: 560px) {
	.license { grid-template-columns: 1fr; }
	.card { padding: 18px; }
	.section { padding: 48px 0; }
}

/* Текст страниц */
.prose { font-size: 17px; }
.prose h2 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius-s); }
.entry { padding: 24px 0; border-bottom: 1px solid var(--line); }
.entry__title { font-size: 22px; margin-bottom: 4px; }
.entry__title a { color: var(--text); text-decoration: none; }

/* Подвал */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 24px; }
.site-footer__row { display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: start; }
.site-footer__brand { font-weight: 600; margin-bottom: 4px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.site-footer__links a { color: var(--muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--text); }
.site-footer__copy { grid-column: 1 / -1; margin: 8px 0 0; }
@media (max-width: 760px) { .site-footer__row { grid-template-columns: 1fr; } }

/* 1.1.0: продление и демо в кабинете */
.license__renew { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.license__renew .buy { flex-wrap: wrap; }
