:root {
	color-scheme: dark;
	--background: #0d0f13;
	--text: #dce0e5;
	--soft: #b8bfca;
	--muted: #8b93a3;
	--line: #252932;
	--border: #353a45;
	--strong: #f1f3f6;
	--accent: #b896ff;
	--accent-hover: #d4bfff;
	--mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
	--width: 960px;
	--text-width: 720px;
	--gutter: 24px;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--background); }
body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	color: var(--text);
	font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
header { border-bottom: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); }
nav, footer > div {
	max-width: var(--width);
	margin: 0 auto;
	padding: 6px var(--gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 24px;
}
nav a, footer a { display: inline-block; padding: 11px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
footer a { padding: 12px 0; font-size: 13px; }
nav a:hover, footer a:hover, nav a[aria-current] { color: var(--text); }
nav .name { margin-right: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--strong); font: 600 15px var(--mono); }
nav .name img { display: block; }
.legal { margin-left: auto; color: var(--muted); font-size: 12px; }
main { flex-grow: 1; }
.page { width: 100%; max-width: var(--width); margin: 0 auto; padding: 72px var(--gutter) 96px; display: flex; flex-direction: column; gap: 32px; color: var(--soft); }
.page > * { max-width: var(--text-width); }
.intro { display: flex; flex-direction: column; gap: 10px; }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
h1 { margin: 0; font-size: 36px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--strong); }
h2 { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: var(--text); }
b, strong { color: var(--text); }
p { margin: 0; }
.note { font: 13px var(--mono); color: var(--muted); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 18px;
	border-radius: 6px;
	border: 1px solid var(--border);
	color: var(--text);
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
}
button.button { background: transparent; cursor: pointer; }
.button:hover { color: var(--text); border-color: var(--muted); }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.button.primary { background: var(--strong); border-color: var(--strong); color: var(--background); font-weight: 600; }
.button.primary:hover { background: var(--text); color: var(--background); }
.button.file { font: 500 14px var(--mono); overflow-wrap: anywhere; }
form { margin: 0; }
.page ul.devices { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.page ul.devices li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
details { font-size: 14px; color: var(--soft); }
summary { display: inline-block; padding: 11px 0; cursor: pointer; color: var(--muted); }
details p { margin-top: 8px; }
section ul, .page ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
section p + p, section p + ul, section ul + p, .page section p + ul { margin-top: 10px; }
code { font: 13px var(--mono); overflow-wrap: anywhere; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
td:first-child { font: 13px var(--mono); overflow-wrap: anywhere; min-width: 120px; }
.facts { margin: 0; display: grid; grid-template-columns: 136px minmax(0, 1fr); border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts dt { padding-top: 24px; font: 600 14px var(--mono); color: var(--text); }
.facts dd { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.chips { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 420px; }
.chips legend { padding: 0 0 8px; font-size: 14px; color: var(--muted); }
.chips label { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; font: 15px var(--mono); color: var(--muted); cursor: pointer; }
.chips input { margin: 0; accent-color: var(--strong); }
.price { font-size: 36px; font-weight: 600; line-height: 1.1; color: var(--strong); }
.price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.price span + span::before { content: " "; }
@supports selector(:has(*)) {
	.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
	.chips label:has(input:checked) { border-color: var(--strong); color: var(--strong); background: var(--line); }
	.chips label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
	.price span { display: none; }
	.price span + span::before { content: none; }
	.pricing:has(input[value="1"]:checked) [data-clients="1"],
	.pricing:has(input[value="2"]:checked) [data-clients="2"],
	.pricing:has(input[value="3"]:checked) [data-clients="3"],
	.pricing:has(input[value="4"]:checked) [data-clients="4"],
	.pricing:has(input[value="5"]:checked) [data-clients="5"],
	.pricing:has(input[value="6"]:checked) [data-clients="6"] { display: inline; }
}
@media (max-width: 640px) {
	nav, footer > div { column-gap: 16px; }
	h1 { font-size: 30px; }
	.page { padding-top: 48px; }
	.facts { grid-template-columns: minmax(0, 1fr); }
	.facts dt { padding-bottom: 0; border-bottom: 0; }
	.facts dd { padding-top: 8px; }
}
