/* hw-connector.ru — графит, тёплая бумага и медь (как контакты разъёма) */
@font-face {
	font-family: "Manrope";
	src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Manrope";
	src: url("/fonts/manrope-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--bg: #f7f5f0;
	--surface: #ffffff;
	--bg-alt: #efebe3;
	--text: #12161d;
	--muted: #5d6470;
	--border: #e3ddd2;
	--accent: #c8702a;
	--accent-strong: #a95a1b;
	--accent-soft: rgba(200, 112, 42, .12);
	--accent-text: #ffffff;
	--ink: #0d1117;
	--ink-2: #151b24;
	--ink-text: #ece8e1;
	--ink-muted: #9aa2ae;
	--ink-border: #263040;
	--ok: #1a7f37;
	--warn: #9a6700;
	--bad: #c62a2f;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(13, 17, 23, .04), 0 8px 24px rgba(13, 17, 23, .06);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0b0e13;
		--surface: #12161d;
		--bg-alt: #10141b;
		--text: #ece8e1;
		--muted: #9aa2ae;
		--border: #232b37;
		--accent: #e08a3c;
		--accent-strong: #f0a05a;
		--accent-soft: rgba(224, 138, 60, .14);
		--accent-text: #12161d;
		--ok: #4ac26b;
		--warn: #d4a72c;
		--bad: #f05a5f;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
		color-scheme: dark;
	}
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.65 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--accent-strong); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 750; }
h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
code, .mono { font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace; font-size: .9em; }
code { background: var(--accent-soft); color: var(--text); padding: 2px 7px; border-radius: 6px; }
.muted { color: var(--muted); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
	margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* --- шапка --- */
.site-header {
	position: sticky; top: 0; z-index: 10;
	background: color-mix(in srgb, var(--ink) 88%, transparent);
	backdrop-filter: saturate(160%) blur(12px);
	color: var(--ink-text);
	border-bottom: 1px solid var(--ink-border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo-mark { width: 48px; height: 30px; flex: none; }
.site-header .logo-mark, .site-footer .logo-mark { --accent: #e08a3c; }
.logo-word { font-weight: 750; font-size: 20px; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.nav a { color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink-text); }
.nav a.btn { color: var(--ink) !important; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--ink-border); border-radius: 10px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { display: block; width: 18px; height: 2px; background: var(--ink-text); border-radius: 2px; }
.mobile-menu-panel {
	position: absolute; right: 0; top: 52px; min-width: 220px; padding: 8px;
	background: var(--ink-2); border: 1px solid var(--ink-border); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.mobile-menu-panel a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink-text); text-decoration: none; font-weight: 600; }
.mobile-menu-panel a:hover { background: rgba(255,255,255,.06); color: #e08a3c; }
@media (max-width: 760px) {
	.nav { display: none; }
	.mobile-menu { display: block; }
	.header-row { flex-wrap: nowrap; }
}

/* --- кнопки --- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 24px; border-radius: 999px; border: 1px solid var(--accent);
	background: var(--accent); color: var(--accent-text) !important;
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent-strong) !important; }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-small { padding: 7px 16px; font-size: 14px; }
.site-header .btn { background: #e08a3c; border-color: #e08a3c; }
.site-header .btn:hover { background: #f0a05a; border-color: #f0a05a; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* --- первый экран --- */
.hero {
	position: relative; overflow: hidden;
	background: var(--ink); color: var(--ink-text);
	padding: 96px 0 104px;
}
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero::after {
	content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -220px; pointer-events: none;
	background: radial-gradient(circle, rgba(224,138,60,.22), transparent 62%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-grid > * { min-width: 0; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
@media (max-width: 720px) { .hero { padding: 56px 0 64px; } .section { padding: 64px 0; } .cta { padding: 40px 20px; } }
.hero .eyebrow { color: #e08a3c; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 22px; font-weight: 800; }
.hero h1 em { font-style: normal; color: #e08a3c; }
.hero .lead { color: var(--ink-muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 620px; }
.hero .btn { background: #e08a3c; border-color: #e08a3c; color: var(--ink) !important; }
.hero .btn:hover { background: #f0a05a; border-color: #f0a05a; }
.hero .btn-ghost { background: transparent; color: var(--ink-text) !important; border-color: var(--ink-border); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.06); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.chip {
	font-size: 13px; font-weight: 600; color: var(--ink-muted);
	border: 1px solid var(--ink-border); border-radius: 999px; padding: 5px 12px; background: rgba(255,255,255,.02);
}

.console {
	background: linear-gradient(180deg, #161c26, #10151d);
	border: 1px solid var(--ink-border); border-radius: 18px;
	box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
	overflow: hidden;
}
.console-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--ink-border); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3442; }
.console-bar span { margin-left: 8px; font-size: 12px; color: var(--ink-muted); font-family: ui-monospace, Consolas, monospace; }
.console pre {
	margin: 0; padding: 20px 22px 24px; overflow-x: auto;
	font: 13.5px/1.75 ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace; color: #c9d1d9;
}
.console .c { color: #6e7a8a; }
.console .k { color: #e08a3c; font-weight: 600; }
.console .s { color: #7ee2b8; }
.console .h { color: #9ab8ff; }

/* --- карточки возможностей --- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 980px) {
	.grid { grid-template-columns: repeat(3, 1fr); }
	.grid.two { grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
}
.card {
	position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 26px 26px 24px; box-shadow: var(--shadow);
	transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card p { color: var(--muted); margin: 0; }
.card .icon {
	width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px;
	background: var(--accent-soft); color: var(--accent);
}
.card .icon svg { width: 22px; height: 22px; }

/* --- оборудование --- */
.device-group h3 { display: flex; align-items: center; gap: 10px; }
.device-group h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill {
	font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 9px;
	background: var(--surface); border: 1px solid var(--border);
}

/* --- шаги --- */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 2px solid var(--text); padding-top: 18px; }
.steps li::before {
	content: "0" counter(step); display: block; font-weight: 800; font-size: 14px; letter-spacing: .1em; color: var(--accent);
	margin-bottom: 10px;
}
.steps p { color: var(--muted); }

/* --- вопросы --- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* --- призыв --- */
.cta {
	background: var(--ink); color: var(--ink-text); border-radius: 24px; padding: 56px 40px; text-align: center;
	position: relative; overflow: hidden;
}
.cta::after {
	content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; pointer-events: none;
	background: radial-gradient(ellipse at center, rgba(224,138,60,.22), transparent 60%);
}
.cta > * { position: relative; z-index: 1; }
.cta p { color: var(--ink-muted); max-width: 560px; margin: 0 auto; }
.cta .actions { justify-content: center; }
.cta .btn { background: #e08a3c; border-color: #e08a3c; color: var(--ink) !important; }
.cta .btn-ghost { background: transparent; color: var(--ink-text) !important; border-color: var(--ink-border); }

/* --- подвал --- */
.site-footer { background: var(--ink); color: var(--ink-text); margin-top: 0; }
.footer-grid { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; } }
.footer-grid h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 14px; }
.footer-grid a:not(.logo) { display: block; color: var(--ink-text); text-decoration: none; margin-bottom: 8px; opacity: .85; }
.footer-grid a:not(.logo):hover { opacity: 1; color: #e08a3c; }
.footer-note { color: var(--ink-muted); max-width: 320px; margin-top: 14px; }
.footer-bottom { border-top: 1px solid var(--ink-border); padding-top: 20px; padding-bottom: 28px; color: var(--ink-muted); font-size: 14px; }

/* --- текст документов --- */
.prose { max-width: 780px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose li { margin-bottom: 6px; }
.prose ul { padding-left: 22px; }

/* --- страницы кабинета --- */
.page { padding: 64px 0 96px; }
.narrow { max-width: 520px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.page h1 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 10px; letter-spacing: -.025em; }
.lead { font-size: 18px; color: var(--muted); max-width: 720px; }
.form { display: grid; gap: 16px; margin: 24px 0; }
.form label { display: grid; gap: 6px; font-weight: 650; font-size: 15px; }
.form input {
	font: inherit; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
	background: var(--bg); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form button { justify-self: start; }
.form-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; color: var(--muted); }
.form .check input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--accent); flex: none; }
.field-error { color: var(--bad); font-weight: 500; font-size: 14px; }
.alert { border: 1px solid var(--border); background: var(--bg-alt); border-radius: 12px; padding: 14px 18px; }
.alert.error { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, var(--surface)); }
.cabinet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.cabinet-head form { margin: 0; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin: 12px 0 36px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { color: var(--muted); font-weight: 650; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; background: var(--bg-alt); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions form, .table form { margin: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg-alt); border: 1px solid var(--border); margin: 0 4px 4px 0; }
.badge.ok { border-color: var(--ok); color: var(--ok); }
.badge.warn { border-color: var(--warn); color: var(--warn); }
.badge.bad { border-color: var(--bad); color: var(--bad); }
.upload { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0; padding: 18px; border: 1px dashed var(--border); border-radius: 14px; background: var(--surface); }
.upload progress { width: 200px; accent-color: var(--accent); }
.download-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.platform { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
