/* ssi-fonts: unbounded, inter, jetbrains-mono */
/*
 * Вариант оформления «Пульт агента» (внутренний ключ a, публичная буква B) (контракт, п. 4.5–4.6).
 * Образ — интерфейс технологичного агента: стеклянные HUD-панели с тонкой
 * рамкой и уголками-скобками, моноширинные статус-строки, лампы-индикаторы,
 * сетка точек, сканирующая линия, сеть агентов на canvas в первом экране.
 * Палитра: почти чёрный с синевой, неоновый зелёный, неоновый синий.
 *
 * Правила движения:
 *  - анимируются только transform/translate/scale и opacity;
 *  - всё движение — только при html.js и без html.reduced-motion;
 *  - появление — по .is-inview (app.js) с задержкой по --i;
 *  - бесконечные анимации идут только в видимой секции (.a-live — design-a.js);
 *  - без JS всё видно и читается.
 */

/* ======================================================================
   1. Токены
   ====================================================================== */
:root {
	--ssi-bg: #02060b;
	--ssi-bg-2: #040b13;
	--ssi-surface: #06111b;
	--ssi-line: #123049;
	--ssi-text: #e4eef7;
	--ssi-text-muted: #98adc0;
	--ssi-green: #00ff9c;
	--ssi-blue: #00c8ff;
	--ssi-accent: var(--ssi-green);
	--ssi-on-accent: #00140c;
	--ssi-danger: #ff6b81;
	--ssi-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ssi-font-display: "Unbounded", "Inter", system-ui, sans-serif;
	--ssi-radius: 6px;
	--ssi-container: 1200px;

	/* Свои токены варианта */
	--a-deep: #2f6bff;
	--a-green-rgb: 0, 255, 156;
	--a-blue-rgb: 0, 200, 255;
	--a-line-hot: rgba(0, 200, 255, 0.34);
	--a-line-soft: rgba(0, 200, 255, 0.16);
	--a-glass: linear-gradient(180deg, rgba(9, 24, 38, 0.82), rgba(4, 12, 21, 0.9));
	--a-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--a-label: 600 12px/1.4 var(--ssi-font-mono);
}

/* ======================================================================
   2. Типографика
   ====================================================================== */
body {
	background: var(--ssi-bg);
	color: var(--ssi-text);
}

::selection {
	background: rgba(var(--a-green-rgb), 0.3);
	color: #fff;
}

h1,
h2,
h3 {
	font-weight: 600;
	letter-spacing: -0.005em;
}

h1 {
	font-size: clamp(28px, 3.5vw + 12px, 58px);
	line-height: 1.12;
}

h2 {
	font-size: clamp(22px, 1.7vw + 13px, 38px);
	line-height: 1.22;
}

h3 {
	font-size: clamp(17px, 0.5vw + 15px, 21px);
	line-height: 1.3;
}

h4 {
	font-family: var(--ssi-font);
	font-weight: 600;
}

h2 {
	text-wrap: balance;
}

a {
	color: var(--ssi-blue);
}

a:hover {
	color: var(--ssi-green);
}

:focus-visible {
	outline: 2px solid var(--ssi-green);
	outline-offset: 3px;
}

.skip-link {
	border-radius: 4px;
	font-family: var(--ssi-font-display);
}

/* Статус-строка: eyebrow секций — моноширинная метка с лампой. */
.ssi-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	padding: 6px 12px 6px 10px;
	border: 1px solid rgba(var(--a-green-rgb), 0.3);
	border-radius: 3px;
	background: rgba(var(--a-green-rgb), 0.05);
	color: var(--ssi-green);
	font: var(--a-label);
	letter-spacing: 0.16em;
}

.ssi-eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ssi-green);
	box-shadow: 0 0 6px var(--ssi-green), 0 0 14px rgba(var(--a-green-rgb), 0.6);
}

/* ======================================================================
   3. Фон страницы (template-parts/a/backdrop.php)
   ====================================================================== */
.a-bg__glow,
.a-bg__grid,
.a-bg__scan {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.a-bg__glow {
	background:
		radial-gradient(60% 50% at 8% -5%, rgba(47, 107, 255, 0.16), transparent 70%),
		radial-gradient(50% 45% at 100% 100%, rgba(var(--a-green-rgb), 0.07), transparent 70%),
		radial-gradient(40% 35% at 95% 10%, rgba(var(--a-blue-rgb), 0.06), transparent 70%);
}

.a-bg__grid {
	background-image: radial-gradient(rgba(var(--a-blue-rgb), 0.2) 1px, transparent 1.4px);
	background-size: 28px 28px;
	background-position: 14px 14px;
	-webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, rgba(0, 0, 0, 0.35) 75%, transparent 100%);
	mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, rgba(0, 0, 0, 0.35) 75%, transparent 100%);
	opacity: 0.55;
}

/* Сканирующая линия: тонкая полоса, движется только transform. */
.a-bg__scan {
	inset: 0 0 auto;
	height: 140px;
	background: linear-gradient(180deg, transparent, rgba(var(--a-green-rgb), 0.025) 70%, rgba(var(--a-green-rgb), 0.16) 99%, transparent);
	opacity: 0;
	transform: translate3d(0, -160px, 0);
}

@media (min-width: 900px) and (pointer: fine) {
	html.js:not(.reduced-motion) .a-bg__scan {
		opacity: 1;
		animation: a-scan 11s linear infinite;
	}
}

/* ======================================================================
   4. Кнопки
   ====================================================================== */
.ssi-btn,
.wp-block-button__link.ssi-btn {
	position: relative;
	border-radius: 4px;
	font: 600 16px/1.2 var(--ssi-font);
	letter-spacing: 0.01em;
	transition: translate 0.22s var(--a-ease), opacity 0.2s;
}

/* Свечение при наведении: готовый слой, меняется только opacity. */
.ssi-btn::after {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s;
}

.ssi-btn:hover::after,
.ssi-btn:focus-visible::after {
	opacity: 1;
}

.ssi-btn:hover {
	translate: 0 -2px;
}

.ssi-btn:active {
	translate: 0 0;
}

.ssi-btn.ssi-btn--primary {
	background: var(--ssi-green);
	border-color: var(--ssi-green);
	color: var(--ssi-on-accent);
	box-shadow: 0 0 18px rgba(var(--a-green-rgb), 0.22);
}

.ssi-btn.ssi-btn--primary::after {
	box-shadow: 0 0 28px rgba(var(--a-green-rgb), 0.55), 0 0 2px rgba(var(--a-green-rgb), 0.9);
}

.ssi-btn.ssi-btn--primary:hover {
	background: #66ffc4;
	border-color: #66ffc4;
	color: var(--ssi-on-accent);
}

.ssi-btn.ssi-btn--ghost {
	background: rgba(var(--a-blue-rgb), 0.05);
	border-color: rgba(var(--a-blue-rgb), 0.45);
	color: var(--ssi-text);
}

.ssi-btn.ssi-btn--ghost::after {
	box-shadow: 0 0 22px rgba(var(--a-blue-rgb), 0.4), inset 0 0 12px rgba(var(--a-blue-rgb), 0.18);
}

.ssi-btn.ssi-btn--ghost:hover {
	border-color: var(--ssi-blue);
	color: #c4f2ff;
}

.ssi-btn[aria-disabled="true"]:hover,
.ssi-btn[disabled]:hover {
	translate: none;
}

.ssi-btn[aria-disabled="true"]::after,
.ssi-btn[disabled]::after {
	display: none;
}

/* ======================================================================
   5. Шапка и меню
   ====================================================================== */
.site-header {
	background: rgba(2, 6, 11, 0.8);
	border-bottom-color: rgba(var(--a-blue-rgb), 0.14);
	-webkit-backdrop-filter: blur(12px) saturate(1.2);
	backdrop-filter: blur(12px) saturate(1.2);
}

/* Неоновая нить по нижней кромке шапки (статично). */
.site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(var(--a-blue-rgb), 0.75) 22%, rgba(var(--a-green-rgb), 0.85) 50%, rgba(var(--a-blue-rgb), 0.75) 78%, transparent);
	opacity: 0.5;
	pointer-events: none;
}

/* Логотип — как в файле, свечение из base.css; здесь только размер. */
.site-logo img,
.site-header .site-logo img {
	height: 48px;
}

.site-nav .menu a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 11px;
	color: #d3dfea;
	font-size: 15px;
}

.site-nav .menu a::after {
	content: "";
	position: absolute;
	left: 11px;
	right: 11px;
	bottom: 6px;
	height: 2px;
	border-radius: 2px;
	background: var(--ssi-green);
	box-shadow: 0 0 8px rgba(var(--a-green-rgb), 0.8);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--a-ease);
}

.site-nav .menu a:hover,
.site-nav .menu .current-menu-item > a,
.site-nav .menu a[aria-current="page"] {
	color: var(--ssi-green);
}

.site-nav .menu a:hover::after,
.site-nav .menu .current-menu-item > a::after,
.site-nav .menu a[aria-current="page"]::after {
	transform: scaleX(1);
}

.header-cta {
	min-height: 44px;
	font-size: 14.5px;
}

.header-cta-mini {
	font-size: 13.5px;
}

.nav-toggle {
	border-color: rgba(var(--a-blue-rgb), 0.45);
	border-radius: 4px;
	background: rgba(var(--a-blue-rgb), 0.06);
	color: var(--ssi-green);
}

.nav-toggle[aria-expanded="true"] {
	border-color: var(--ssi-green);
}

@media (max-width: 1179px) {
	.site-nav {
		counter-reset: a-nav;
	}

	.js .site-nav.is-open {
		border-top: 1px solid rgba(var(--a-blue-rgb), 0.18);
		margin-top: 8px;
	}

	.site-nav .menu li {
		counter-increment: a-nav;
	}

	.site-nav .menu a {
		gap: 14px;
		padding: 14px 4px;
		border-bottom-color: rgba(var(--a-blue-rgb), 0.14);
		font: 500 18px/1.3 var(--ssi-font);
	}

	/* Номер пункта — декоративная метка, скринридеру не озвучивается. */
	.site-nav .menu a::before {
		content: counter(a-nav, decimal-leading-zero);
		content: counter(a-nav, decimal-leading-zero) / "";
		min-width: 2ch;
		color: rgba(var(--a-blue-rgb), 0.85);
		font: 500 12px/1 var(--ssi-font-mono);
		letter-spacing: 0.1em;
	}

	/* Текущий пункт — маркер справа (слева мешает прокрутка списка). */
	.site-nav .menu a::after {
		left: auto;
		right: 6px;
		top: 50%;
		bottom: auto;
		width: 8px;
		height: 8px;
		margin-top: -4px;
		border-radius: 50%;
		transform: scale(0);
		transform-origin: center;
	}

	.site-nav .menu a:hover::after,
	.site-nav .menu .current-menu-item > a::after,
	.site-nav .menu a[aria-current="page"]::after {
		transform: scale(1);
	}

	html.js:not(.reduced-motion) .site-nav.is-open .menu li,
	html.js:not(.reduced-motion) .site-nav.is-open .site-nav__cta {
		animation: a-slide 0.42s var(--a-ease) both;
	}

	html.js:not(.reduced-motion) .site-nav.is-open .menu li:nth-child(2) { animation-delay: 0.04s; }
	html.js:not(.reduced-motion) .site-nav.is-open .menu li:nth-child(3) { animation-delay: 0.08s; }
	html.js:not(.reduced-motion) .site-nav.is-open .menu li:nth-child(4) { animation-delay: 0.12s; }
	html.js:not(.reduced-motion) .site-nav.is-open .menu li:nth-child(5) { animation-delay: 0.16s; }
	html.js:not(.reduced-motion) .site-nav.is-open .menu li:nth-child(6) { animation-delay: 0.2s; }
	html.js:not(.reduced-motion) .site-nav.is-open .menu li:nth-child(n+7) { animation-delay: 0.24s; }
	html.js:not(.reduced-motion) .site-nav.is-open .site-nav__cta { animation-delay: 0.3s; }
}

/* Узкий компьютер: меню в одну строку. */
@media (min-width: 1180px) and (max-width: 1339px) {
	.site-header__inner {
		gap: 14px;
	}

	.site-nav .menu a {
		padding-inline: 8px;
		font-size: 14.5px;
	}

	.site-nav .menu a::after {
		left: 8px;
		right: 8px;
	}

	.header-cta {
		padding-inline: 14px;
	}
}

/* На телефоне — без размытия под шапкой (дорого на больших площадях). */
@media (max-width: 759px) {
	.site-header {
		background: rgba(2, 6, 11, 0.97);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

@media (max-width: 559px) {
	.site-logo img,
	.site-header .site-logo img {
		height: 40px;
	}
}

/* ======================================================================
   6. Секции и появление
   ====================================================================== */
.ssi-section + .ssi-section {
	border-top-color: rgba(var(--a-blue-rgb), 0.1);
}

/* «Заряд» линии-разделителя секции при появлении. */
.ssi-section + .ssi-section::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent 4%, rgba(var(--a-blue-rgb), 0.55) 30%, rgba(var(--a-green-rgb), 0.7) 50%, rgba(var(--a-blue-rgb), 0.55) 70%, transparent 96%);
	transform-origin: left;
	pointer-events: none;
}

html.js:not(.reduced-motion) .ssi-section + .ssi-section:not(.is-inview)::before {
	transform: scaleX(0);
}

html.js:not(.reduced-motion) .ssi-section + .ssi-section.is-inview::before {
	transition: transform 1.4s var(--a-ease);
}

.ssi-section h2 {
	max-width: 900px;
}

.ssi-section__lead,
.ssi-hero__lead {
	color: var(--ssi-text-muted);
}

/* Появление содержимого секций (кроме первого экрана — он анимируется сразу). */
html.js:not(.reduced-motion) .ssi-section:not(.ssi-section--hero):not(.is-inview) > :not(.ssi-hero-decor) {
	opacity: 0;
}

html.js:not(.reduced-motion) .ssi-section:not(.ssi-section--hero).is-inview > :not(.ssi-hero-decor) {
	animation: a-rise 0.75s var(--a-ease) both;
}

html.js:not(.reduced-motion) .ssi-section:not(.ssi-section--hero).is-inview > :nth-child(2) { animation-delay: 0.08s; }
html.js:not(.reduced-motion) .ssi-section:not(.ssi-section--hero).is-inview > :nth-child(3) { animation-delay: 0.16s; }
html.js:not(.reduced-motion) .ssi-section:not(.ssi-section--hero).is-inview > :nth-child(n+4) { animation-delay: 0.24s; }

/* Элементы групп: по --i (app.js), не дольше 0,7 с задержки. */
html.js:not(.reduced-motion) :is(.ssi-card, .ssi-steps > li, .ssi-scheme__steps > li, .ssi-dep, .ssi-ind):not(.is-inview) {
	opacity: 0;
}

html.js:not(.reduced-motion) :is(.ssi-card, .ssi-steps > li, .ssi-scheme__steps > li, .ssi-dep, .ssi-ind).is-inview {
	animation: a-rise 0.7s var(--a-ease) both;
	animation-delay: calc(min(var(--i, 0), 8) * 85ms);
}

/* ======================================================================
   7. Первый экран
   ====================================================================== */
.ssi-section--hero {
	padding-block: clamp(64px, 10vw, 140px);
}

.home .ssi-section--hero {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	min-height: min(860px, calc(100vh - var(--ssi-header-h)));
	min-height: min(860px, calc(100svh - var(--ssi-header-h)));
	padding-bottom: calc(clamp(64px, 9vw, 120px) + 46px);
}

.ssi-hero__title {
	max-width: 980px;
	background: linear-gradient(180deg, #ffffff 15%, #d8f3ff 55%, #84e8ff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-weight: 700;
	letter-spacing: -0.01em;
}

@media (forced-colors: active) {
	.ssi-hero__title {
		background: none;
		color: CanvasText;
	}
}

.ssi-hero__lead {
	max-width: 680px;
}

html.js:not(.reduced-motion) .ssi-section--hero > :not(.ssi-hero-decor) {
	animation: a-rise 0.9s var(--a-ease) both;
}

html.js:not(.reduced-motion) .ssi-section--hero > :nth-child(2) { animation-delay: 0.1s; }
html.js:not(.reduced-motion) .ssi-section--hero > :nth-child(3) { animation-delay: 0.2s; }
html.js:not(.reduced-motion) .ssi-section--hero > :nth-child(n+4) { animation-delay: 0.3s; }

@media (max-width: 559px) {
	.ssi-section--hero .wp-block-buttons {
		flex-direction: column;
		align-self: stretch;
	}

	.ssi-section--hero .wp-block-button,
	.ssi-section--hero .ssi-btn {
		width: 100%;
	}
}

/* Декор первого экрана (template-parts/a/hero-decor.php) */
.ssi-hero-decor {
	overflow: hidden;
}

.a-net {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	opacity: 0;
	transition: opacity 1.4s ease;
}

.a-net.is-on {
	opacity: 1;
}

/* Широкий экран: сеть справа от текста — холст только там (меньше пикселей
   на кадр). Левый край растворяется, слева текст закрыт вуалью. */
@media (min-width: 900px) {
	.a-net {
		/* Ширина явная: у canvas (замещаемый элемент) width: auto — это его
		   собственный размер, а не «от left до right». */
		--a-net-x: max(0px, calc((100% - 1200px) / 2 + 480px));
		left: var(--a-net-x);
		width: calc(100% - var(--a-net-x));
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 160px);
		mask-image: linear-gradient(90deg, transparent, #000 160px);
	}
}

.a-veil {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, transparent 72%, var(--ssi-bg) 100%),
		linear-gradient(90deg, var(--ssi-bg) 0%, rgba(2, 6, 11, 0.86) calc((100% - 1200px) / 2 + 420px), rgba(2, 6, 11, 0.3) calc((100% - 1200px) / 2 + 760px), transparent calc((100% - 1200px) / 2 + 1000px));
}

.a-frame {
	position: absolute;
	top: clamp(14px, 2vw, 26px);
	bottom: clamp(14px, 2vw, 26px);
	left: max(8px, calc((100% - var(--ssi-container)) / 2 - 32px));
	right: max(8px, calc((100% - var(--ssi-container)) / 2 - 32px));
	--c: rgba(var(--a-blue-rgb), 0.55);
	background:
		linear-gradient(var(--c), var(--c)) left top / 22px 1px no-repeat,
		linear-gradient(var(--c), var(--c)) left top / 1px 22px no-repeat,
		linear-gradient(var(--c), var(--c)) right top / 22px 1px no-repeat,
		linear-gradient(var(--c), var(--c)) right top / 1px 22px no-repeat,
		linear-gradient(var(--c), var(--c)) left bottom / 22px 1px no-repeat,
		linear-gradient(var(--c), var(--c)) left bottom / 1px 22px no-repeat,
		linear-gradient(var(--c), var(--c)) right bottom / 22px 1px no-repeat,
		linear-gradient(var(--c), var(--c)) right bottom / 1px 22px no-repeat;
}

.home .a-frame {
	bottom: calc(46px + clamp(10px, 1.4vw, 18px));
}

.a-readout {
	position: absolute;
	top: 14px;
	right: 18px;
	display: flex;
	align-items: center;
	gap: 9px;
	color: rgba(152, 173, 192, 0.9);
	font: 500 11px/1 var(--ssi-font-mono);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.a-readout__sep {
	color: rgba(var(--a-blue-rgb), 0.7);
}

.a-lamp {
	position: relative;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ssi-green);
	box-shadow: 0 0 6px var(--ssi-green), 0 0 14px rgba(var(--a-green-rgb), 0.6);
}

/* Кольцо-пульс лампы: scale + opacity. */
.a-lamp::after {
	content: "";
	position: absolute;
	inset: -1px;
	border: 1px solid var(--ssi-green);
	border-radius: 50%;
	opacity: 0;
}

.a-ticker {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 46px;
	overflow: hidden;
	border-top: 1px solid rgba(var(--a-blue-rgb), 0.16);
	background: rgba(2, 7, 13, 0.72);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.a-ticker__track {
	display: flex;
	width: max-content;
	height: 100%;
	align-items: center;
}

.a-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 34px 0 0;
	color: rgba(152, 173, 192, 0.95);
	font: 400 12.5px/1 var(--ssi-font-mono);
	white-space: nowrap;
}

.a-ticker__item::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ssi-green);
	box-shadow: 0 0 8px var(--ssi-green);
}

.a-ticker__item b {
	color: var(--ssi-green);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.a-ticker__item.is-blue::before {
	background: var(--ssi-blue);
	box-shadow: 0 0 8px var(--ssi-blue);
}

.a-ticker__item.is-blue b {
	color: var(--ssi-blue);
}

@media (max-width: 899px) {
	.a-net.is-on {
		opacity: 0.6;
	}

	.a-veil {
		background:
			linear-gradient(180deg, rgba(2, 6, 11, 0.2) 0%, rgba(2, 6, 11, 0.62) 45%, rgba(2, 6, 11, 0.75) 80%, var(--ssi-bg) 100%);
	}

	.a-readout {
		display: none;
	}
}

/* Внутренние страницы: сеть спокойнее, первый экран короче. */
body:not(.home) .a-net.is-on {
	opacity: 0.75;
}

@media (max-width: 899px) {
	body:not(.home) .a-net.is-on {
		opacity: 0.4;
	}
}

/* 404: «потерянный сигнал» вместо сети. */
.ssi-section--404 {
	min-height: 62vh;
}

.ssi-section--404::after {
	content: "404";
	content: "404" / "";
	position: absolute;
	right: max(var(--ssi-gutter), calc((100% - var(--ssi-container)) / 2));
	top: 50%;
	z-index: -1;
	color: transparent;
	font: 700 clamp(120px, 26vw, 380px)/1 var(--ssi-font-display);
	-webkit-text-stroke: 1px rgba(var(--a-blue-rgb), 0.38);
	transform: translateY(-50%);
	opacity: 0.55;
	pointer-events: none;
}

@media (max-width: 759px) {
	.ssi-section--404::after {
		top: auto;
		bottom: 8px;
		transform: none;
		opacity: 0.45;
	}
}

/* ======================================================================
   8. HUD-панели: стекло, тонкая рамка, уголки-скобки.
   Скобки рисуются слоями фона (без псевдоэлементов): --a-bc — цвет скобок.
   ====================================================================== */
.ssi-scheme__col,
.ssi-scheme-total,
.ssi-section--split .ssi-checklist,
.ssi-form,
.ssi-calc,
.ssi-calc__total,
.ssi-contacts__item,
.ssi-cookie,
.ssi-ind {
	--a-bc: rgba(var(--a-blue-rgb), 0.7);
	--a-bl: 14px;
	--a-panel: var(--a-glass);
	border: 1px solid var(--a-line-soft);
	border-radius: var(--ssi-radius);
	background:
		linear-gradient(var(--a-bc), var(--a-bc)) left top / var(--a-bl) 2px no-repeat border-box,
		linear-gradient(var(--a-bc), var(--a-bc)) left top / 2px var(--a-bl) no-repeat border-box,
		linear-gradient(var(--a-bc), var(--a-bc)) right top / var(--a-bl) 2px no-repeat border-box,
		linear-gradient(var(--a-bc), var(--a-bc)) right top / 2px var(--a-bl) no-repeat border-box,
		linear-gradient(var(--a-bc), var(--a-bc)) left bottom / var(--a-bl) 2px no-repeat border-box,
		linear-gradient(var(--a-bc), var(--a-bc)) left bottom / 2px var(--a-bl) no-repeat border-box,
		linear-gradient(var(--a-bc), var(--a-bc)) right bottom / var(--a-bl) 2px no-repeat border-box,
		linear-gradient(var(--a-bc), var(--a-bc)) right bottom / 2px var(--a-bl) no-repeat border-box,
		var(--a-panel) padding-box;
}

/* ======================================================================
   9. Карточки (скобки — ::before, подсветка за курсором — ::after)
   ====================================================================== */
.ssi-card,
.ssi-dep {
	isolation: isolate;
	overflow: hidden;
	background: var(--a-glass);
	border: 1px solid var(--a-line-soft);
	border-radius: var(--ssi-radius);
	transition: translate 0.3s var(--a-ease);
}

.ssi-card::before,
.ssi-dep::before {
	--c: var(--ssi-green);
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(var(--c), var(--c)) left top / 16px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) left top / 2px 16px no-repeat,
		linear-gradient(var(--c), var(--c)) right top / 16px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) right top / 2px 16px no-repeat,
		linear-gradient(var(--c), var(--c)) left bottom / 16px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) left bottom / 2px 16px no-repeat,
		linear-gradient(var(--c), var(--c)) right bottom / 16px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) right bottom / 2px 16px no-repeat;
	opacity: 0.35;
	pointer-events: none;
	transition: opacity 0.3s;
}

/* Пятно света: позиция — transform по --mx/--my (design-a.js), видимость — opacity. */
.ssi-card::after,
.ssi-dep::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	z-index: -1;
	width: 360px;
	height: 360px;
	margin: -180px 0 0 -180px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(var(--a-blue-rgb), 0.16), rgba(var(--a-green-rgb), 0.05) 55%, transparent);
	transform: translate3d(var(--mx, 50%), var(--my, 0px), 0);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s;
}

.ssi-card:hover,
.ssi-dep:hover {
	border-color: rgba(var(--a-green-rgb), 0.45);
	translate: 0 -4px;
}

.ssi-card:hover::before,
.ssi-dep:hover::before,
.ssi-dep:focus-within::before {
	opacity: 1;
}

.ssi-card:hover::after,
.ssi-dep:hover::after {
	opacity: 1;
}

.ssi-card h3 {
	font-size: clamp(17px, 0.3vw + 15px, 19px);
	line-height: 1.32;
}

.ssi-card .ssi-card__icon {
	position: relative;
	gap: 8px;
	min-width: 0;
	height: 30px;
	padding: 0 10px 0 9px;
	border: 1px solid rgba(var(--a-green-rgb), 0.35);
	border-radius: 3px;
	background: rgba(var(--a-green-rgb), 0.06);
	color: var(--ssi-green);
	font: 600 13px/1 var(--ssi-font-mono);
	letter-spacing: 0.12em;
}

.ssi-card__icon::before {
	content: "";
	width: 5px;
	height: 5px;
	background: currentColor;
	box-shadow: 0 0 8px currentColor;
}

.ssi-card:nth-child(even) .ssi-card__icon.ssi-card__icon {
	border-color: rgba(var(--a-blue-rgb), 0.4);
	background: rgba(var(--a-blue-rgb), 0.06);
	color: var(--ssi-blue);
}

/* ======================================================================
   10. Колонки и списки
   ====================================================================== */
.ssi-checklist li::before {
	border-color: var(--ssi-green);
}

.ssi-section--split .wp-block-columns {
	align-items: flex-start;
}

.ssi-section--split .ssi-checklist {
	position: relative;
	margin: 0;
	padding: clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 28px) clamp(10px, 1.4vw, 16px);
	--a-bc: rgba(var(--a-green-rgb), 0.75);
}

.ssi-section--split .ssi-checklist li {
	padding: 0 0 0.75em 34px;
	margin: 0 0 0.75em;
	border-bottom: 1px solid rgba(var(--a-blue-rgb), 0.1);
}

.ssi-section--split .ssi-checklist li:last-child {
	border-bottom: 0;
}

.ssi-section--text > :is(p, ul, ol, h2, h3) {
	max-width: 820px;
}

/* ======================================================================
   11. Этапы — таймлайн с индикаторами
   ====================================================================== */
.ssi-steps {
	gap: 18px;
	max-width: 980px;
}

.ssi-steps > li {
	margin-left: 66px;
	padding: 20px 24px;
	background: var(--a-glass);
	border-color: var(--a-line-soft);
	border-radius: var(--ssi-radius);
	color: var(--ssi-text-muted);
}

.ssi-steps > li strong {
	color: var(--ssi-text);
	font: 600 clamp(18px, 0.5vw + 16px, 21px)/1.3 var(--ssi-font-display);
}

/* Узел таймлайна с номером этапа. */
.ssi-steps > li::before {
	left: -66px;
	top: 14px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--ssi-green);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--a-green-rgb), 0.18), var(--ssi-bg) 70%);
	box-shadow: 0 0 14px rgba(var(--a-green-rgb), 0.35), inset 0 0 10px rgba(var(--a-green-rgb), 0.2);
	color: var(--ssi-green);
	font: 600 14px/1 var(--ssi-font-mono);
}

/* Линия связи к следующему этапу. */
.ssi-steps > li::after {
	content: "";
	position: absolute;
	left: -44px;
	top: 60px;
	bottom: -32px;
	width: 2px;
	background: linear-gradient(180deg, rgba(var(--a-green-rgb), 0.85), rgba(var(--a-blue-rgb), 0.45));
	transform-origin: top;
}

.ssi-steps > li:last-child::after {
	display: none;
}

html.js:not(.reduced-motion) .ssi-steps > li:not(.is-inview)::before {
	transform: scale(0.4);
}

html.js:not(.reduced-motion) .ssi-steps > li:not(.is-inview)::after {
	transform: scaleY(0);
}

html.js:not(.reduced-motion) .ssi-steps > li.is-inview::before {
	transition: transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1);
	transition-delay: calc(min(var(--i, 0), 8) * 85ms + 0.15s);
}

html.js:not(.reduced-motion) .ssi-steps > li.is-inview::after {
	transition: transform 0.9s var(--a-ease);
	transition-delay: calc(min(var(--i, 0), 8) * 85ms + 0.4s);
}

@media (max-width: 559px) {
	.ssi-steps > li {
		margin-left: 48px;
		padding: 16px 16px 16px 18px;
	}

	.ssi-steps > li::before {
		left: -48px;
		top: 14px;
		width: 36px;
		height: 36px;
		font-size: 12px;
	}

	.ssi-steps > li::after {
		left: -31px;
		top: 50px;
	}
}

/* ======================================================================
   12. Схема HR-агента «без агента / с агентом»
   ====================================================================== */
.ssi-scheme {
	align-items: start;
}

.ssi-scheme__col {
	position: relative;
	--a-bc: rgba(152, 173, 192, 0.55);
}

.ssi-scheme__col--after {
	--a-bc: var(--ssi-green);
	--a-panel: linear-gradient(180deg, rgba(4, 34, 30, 0.6), rgba(3, 14, 20, 0.92));
	border-color: rgba(var(--a-green-rgb), 0.38);
	box-shadow: 0 0 40px rgba(var(--a-green-rgb), 0.07);
}

/* Заголовок колонки — статус-строка с лампой. */
.ssi-scheme__col > h3 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 1.1em;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(var(--a-blue-rgb), 0.14);
}

.ssi-scheme__col > h3::before {
	content: "";
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #5d7184;
}

.ssi-scheme__col--after > h3::before {
	background: var(--ssi-green);
	box-shadow: 0 0 8px var(--ssi-green), 0 0 18px rgba(var(--a-green-rgb), 0.6);
}

.ssi-scheme__steps {
	position: relative;
	list-style: none;
	counter-reset: a-scheme;
	gap: 10px;
	padding: 0;
}

/* Магистраль, по которой «идут» задачи. */
.ssi-scheme__steps::before {
	content: "";
	position: absolute;
	left: 25px;
	top: 14px;
	bottom: 14px;
	border-left: 1px dashed rgba(152, 173, 192, 0.35);
}

.ssi-scheme__col--after .ssi-scheme__steps::before {
	border-left: 1px solid rgba(var(--a-green-rgb), 0.45);
}

/* Пакет-задача бежит по магистрали (только в видимой секции). */
.ssi-scheme__col--after .ssi-scheme__steps::after {
	content: "";
	position: absolute;
	left: 22px;
	top: 0;
	width: 7px;
	height: 100%;
	background: radial-gradient(circle at 50% 3.5px, #d6ffef 0 2px, rgba(var(--a-green-rgb), 0.9) 2.5px, transparent 4px) top / 7px 7px no-repeat;
	opacity: 0;
	pointer-events: none;
}

.ssi-scheme__steps > li {
	counter-increment: a-scheme;
	position: relative;
	padding: 12px 14px 12px 54px;
	border: 1px solid rgba(var(--a-blue-rgb), 0.12);
	border-radius: 4px;
	background: rgba(2, 8, 14, 0.7);
	color: #c3d1de;
	font-size: 0.96em;
	line-height: 1.5;
}

.ssi-scheme__steps > li::before {
	content: counter(a-scheme, decimal-leading-zero);
	content: counter(a-scheme, decimal-leading-zero) / "";
	position: absolute;
	left: 12px;
	top: 12px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 24px;
	border: 1px solid rgba(152, 173, 192, 0.4);
	border-radius: 3px;
	background: var(--ssi-bg);
	color: var(--ssi-text-muted);
	font: 600 11px/1 var(--ssi-font-mono);
}

.ssi-scheme__steps > li.is-agent {
	border-color: rgba(var(--a-green-rgb), 0.42);
	background: linear-gradient(90deg, rgba(var(--a-green-rgb), 0.1), rgba(var(--a-green-rgb), 0.02) 60%), rgba(2, 10, 14, 0.85);
	color: var(--ssi-text);
	padding-right: 34px;
}

.ssi-scheme__steps > li.is-agent::before {
	border-color: var(--ssi-green);
	background: var(--ssi-green);
	color: var(--ssi-on-accent);
	box-shadow: 0 0 12px rgba(var(--a-green-rgb), 0.55);
}

/* Лампа агента в правом верхнем углу шага. */
.ssi-scheme__steps > li.is-agent::after {
	content: "";
	position: absolute;
	right: 13px;
	top: 19px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ssi-green);
	box-shadow: 0 0 8px var(--ssi-green);
}

.ssi-scheme__actor {
	color: var(--ssi-blue);
	font-weight: 600;
}

.ssi-scheme__steps > li.is-agent .ssi-scheme__actor {
	color: var(--ssi-green);
}

/* Передача задачи — метка-стрелка. */
.ssi-scheme__handoff {
	display: inline-block;
	max-width: 100%;
	padding: 0 6px;
	border: 1px dashed rgba(var(--a-blue-rgb), 0.4);
	border-radius: 3px;
	color: #9fdcf0;
	font: 500 0.86em/1.6 var(--ssi-font-mono);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* ======================================================================
   12a. Пример HR-агента: схема подбора в стиле workflow (design-a.js, раздел 6).
   Колонки .ssi-scheme__col — две схемы друг под другом: заголовок, холст
   с нодами и связями (aria-hidden), под ним свёрнутый список этапов.
   Кадр меняет только transform (камера, маска заполнения, голова потока,
   полосы итога); полёт ноды в список — transform/opacity (WAAPI).
   ====================================================================== */
.ssi-scheme.a-flow-on {
	--box: 52px;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}

.a-flow__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
}

.a-flow__tag {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ssi-text-muted);
	font: var(--a-label);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.a-flow__tag::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ssi-green);
	box-shadow: 0 0 8px var(--ssi-green);
}

.a-flow-on[data-state="idle"] .a-flow__tag::before {
	background: #5d7184;
	box-shadow: none;
}

.a-flow__ctrl {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.a-flow__btn {
	min-width: 44px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid rgba(var(--a-blue-rgb), 0.4);
	border-radius: 4px;
	background: rgba(2, 8, 14, 0.7);
	color: var(--ssi-text);
	font: 600 12px/1 var(--ssi-font-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.a-flow__btn:hover {
	border-color: var(--ssi-green);
	color: var(--ssi-green);
}

.a-flow__btn:focus-visible,
.a-flow__sum:focus-visible {
	outline: 2px solid var(--ssi-green);
	outline-offset: 2px;
}

.a-flow__btn[hidden],
html.reduced-motion .a-flow__ctrl {
	display: none;
}

/* Колонка-схема: заголовок без отступа под список. */
.a-flow-lane > h3 {
	margin-bottom: 0.6em;
}

/* Окно схемы («камера») и холст в точках, как полотно редактора. */
.a-flow__view {
	position: relative;
	height: 128px;
	overflow: hidden;
}

.a-flow__canvas {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: radial-gradient(circle, rgba(152, 173, 192, 0.16) 1px, transparent 1.4px) 0 0 / 18px 18px;
	will-change: transform;
}

.a-flow__links {
	position: absolute;
	top: 0;
	left: 0;
	overflow: visible;
}

.a-flow__links path {
	fill: none;
	stroke-linecap: round;
}

.a-flow__base path {
	stroke: rgba(152, 173, 192, 0.32);
	stroke-width: 1.6;
}

.a-flow__base path.is-end {
	stroke-dasharray: 3 5;
}

.a-flow__line {
	stroke: var(--ssi-blue);
	stroke-width: 2.2;
}

.a-flow__glow {
	stroke: rgba(var(--a-blue-rgb), 0.22);
	stroke-width: 8;
}

.a-flow-lane--agent .a-flow__line {
	stroke: var(--ssi-green);
}

.a-flow-lane--agent .a-flow__glow {
	stroke: rgba(var(--a-green-rgb), 0.24);
}

/* Голова потока — светящаяся точка на связи. */
.a-flow__head {
	fill: #cfeeff;
	stroke: rgba(var(--a-blue-rgb), 0.45);
	stroke-width: 6;
	transition: opacity 0.3s var(--a-ease);
}

.a-flow-lane--agent .a-flow__head {
	fill: #d6ffef;
	stroke: rgba(var(--a-green-rgb), 0.5);
}

.a-flow-on:not([data-state="run"]) .a-flow__head,
.a-flow-lane.is-finished .a-flow__head {
	opacity: 0;
}

/* Нода: блок с иконкой, порты входа и выхода, подпись снизу. */
.a-node {
	position: absolute;
	width: var(--box);
	height: var(--box);
	transition: opacity 0.3s var(--a-ease);
}

.a-flow-on[data-state="run"] .a-node:not(.is-done):not(.is-run) {
	opacity: 0.5;
}

.a-node__box {
	position: relative;
	display: grid;
	place-items: center;
	width: var(--box);
	height: var(--box);
	border: 1.5px solid rgba(152, 173, 192, 0.45);
	border-radius: 12px;
	background: linear-gradient(180deg, #0c1c2b, #050e17);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
	color: #9fb6c9;
}

.a-node__icon {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.a-node__in,
.a-node__out {
	position: absolute;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -4.5px;
	border: 1.5px solid rgba(152, 173, 192, 0.6);
	border-radius: 50%;
	background: #06111b;
}

.a-node__in {
	left: -5.5px;
}

.a-node__out {
	right: -5.5px;
}

/* Индикатор «выполняется» — кольцо в углу ноды. */
.a-node__spin {
	position: absolute;
	top: -7px;
	right: -7px;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(var(--a-blue-rgb), 0.22);
	border-top-color: var(--ssi-blue);
	border-radius: 50%;
	background: #06111b;
	opacity: 0;
}

/* Отметка «готово». */
.a-node__ok {
	position: absolute;
	right: -7px;
	bottom: -7px;
	display: grid;
	place-items: center;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: var(--ssi-blue);
	color: #02060b;
	transform: scale(0);
	transition: transform 0.25s var(--a-ease);
}

.a-node__ok-i {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.a-node__label {
	position: absolute;
	top: calc(100% + 9px);
	left: 50%;
	width: var(--lab, 116px);
	margin-left: calc(var(--lab, 116px) / -2);
	color: var(--ssi-text-muted);
	font: 500 12px/1.3 var(--ssi-font);
	text-align: center;
	overflow-wrap: break-word;
}

/* Человек: синий; агент: иконка агента и зелёный неон. */
.a-node.is-run .a-node__box,
.a-node.is-done .a-node__box {
	border-color: rgba(var(--a-blue-rgb), 0.85);
	color: #cfeeff;
}

.a-node.is-run .a-node__box {
	box-shadow: 0 0 0 3px rgba(var(--a-blue-rgb), 0.16), 0 0 22px rgba(var(--a-blue-rgb), 0.45);
}

.a-node.is-run .a-node__spin {
	opacity: 1;
}

.a-node.is-done .a-node__ok {
	transform: scale(1);
}

.a-node.is-done .a-node__out,
.a-node.is-run .a-node__out {
	border-color: var(--ssi-blue);
	background: var(--ssi-blue);
}

.a-node.is-run .a-node__label,
.a-node.is-done .a-node__label {
	color: var(--ssi-text);
}

.a-node.is-agent .a-node__box {
	border-color: rgba(var(--a-green-rgb), 0.5);
	background: linear-gradient(180deg, #06281f, #03120f);
	color: var(--ssi-green);
}

/* Нода агента — круг того же размера; индикатор и галочка — на окружности (45°). */
.a-node.is-agent .a-node__box,
.a-fly.is-agent .a-node__box {
	border-radius: 50%;
}

.a-node.is-agent .a-node__spin {
	top: -1px;
	right: -1px;
}

.a-node.is-agent .a-node__ok,
.a-fly.is-agent .a-node__ok {
	right: -3px;
	bottom: -3px;
}

.a-node.is-agent .a-node__label {
	color: rgba(var(--a-green-rgb), 0.8);
}

.a-node.is-agent.is-run .a-node__box,
.a-node.is-agent.is-done .a-node__box {
	border-color: var(--ssi-green);
	color: #d6ffef;
}

.a-node.is-agent.is-run .a-node__box {
	box-shadow: 0 0 0 3px rgba(var(--a-green-rgb), 0.16), 0 0 24px rgba(var(--a-green-rgb), 0.5);
}

.a-node.is-agent .a-node__spin {
	border-color: rgba(var(--a-green-rgb), 0.22);
	border-top-color: var(--ssi-green);
}

.a-node.is-agent .a-node__ok,
.a-node.is-agent.is-done .a-node__out,
.a-node.is-agent.is-run .a-node__out {
	border-color: var(--ssi-green);
	background: var(--ssi-green);
}

.a-node.is-agent.is-run .a-node__label,
.a-node.is-agent.is-done .a-node__label {
	color: var(--ssi-green);
}

/* Финиш схемы: в подписи — итог (появляется на финише). */
.a-node--end,
.a-node--end .a-node__box {
	width: 36px;
	height: 36px;
}

.a-node--end .a-node__box {
	border-style: dashed;
	border-radius: 50%;
}

.a-node--end .a-node__icon {
	width: 18px;
	height: 18px;
}

.a-node--end .a-node__label {
	color: var(--ssi-text);
	font: 600 13px/1.25 var(--ssi-font-display);
	opacity: 0;
	transition: opacity 0.4s var(--a-ease);
}

.a-node--end.is-done .a-node__box {
	border-style: solid;
	border-color: var(--ssi-blue);
	color: var(--ssi-blue);
	box-shadow: 0 0 18px rgba(var(--a-blue-rgb), 0.4);
}

.a-flow-lane--agent .a-node--end.is-done .a-node__box {
	border-color: var(--ssi-green);
	color: var(--ssi-green);
	box-shadow: 0 0 20px rgba(var(--a-green-rgb), 0.5);
}

.a-node--end.is-done .a-node__label {
	opacity: 1;
}

.a-flow-lane--agent .a-node--end .a-node__label {
	color: var(--ssi-green);
}

/* Вращение и пульс — только пока поток идёт в видимой секции. */
html.js:not(.reduced-motion) .a-live .a-flow-on[data-state="run"] .a-node.is-run .a-node__spin {
	animation: a-spin 0.8s linear infinite;
}

/* Список этапов под схемой: сводка-кнопка и короткие строки. */
.a-flow__log {
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px solid rgba(var(--a-blue-rgb), 0.14);
}

.a-flow__sum {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid rgba(var(--a-blue-rgb), 0.2);
	border-radius: 4px;
	background: rgba(2, 8, 14, 0.6);
	color: var(--ssi-text);
	font: 500 14px/1.4 var(--ssi-font);
	text-align: left;
	cursor: pointer;
}

.a-flow__sum:hover {
	border-color: rgba(var(--a-blue-rgb), 0.5);
}

.a-flow__sum-text {
	flex: 1 1 auto;
	min-width: 0;
	font-variant-numeric: tabular-nums;
}

.a-flow__count {
	font-weight: 600;
}

.a-flow__chev {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	margin: 0 4px 4px;
	border-right: 2px solid var(--ssi-text-muted);
	border-bottom: 2px solid var(--ssi-text-muted);
	transform: rotate(45deg);
	transition: transform 0.25s var(--a-ease);
}

.a-flow__sum[aria-expanded="true"] .a-flow__chev {
	transform: translateY(4px) rotate(-135deg);
}

.a-who {
	flex: 0 0 auto;
	padding: 1px 6px;
	border: 1px solid rgba(var(--a-blue-rgb), 0.5);
	border-radius: 3px;
	color: #9fdcf0;
	font: 600 10px/1.5 var(--ssi-font-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.a-who.is-agent {
	border-color: rgba(var(--a-green-rgb), 0.6);
	color: var(--ssi-green);
}

.a-who.is-empty {
	display: none;
}

.a-flow-on .ssi-scheme__steps {
	display: grid;
	gap: 0;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.a-flow-on .ssi-scheme__steps::before,
.a-flow-on .ssi-scheme__steps::after,
.a-flow-on .ssi-scheme__steps > li::before,
.a-flow-on .ssi-scheme__steps > li::after {
	display: none;
}

/* Пункт: короткая строка (видна) + полный текст (visually-hidden, для читалок). */
html.js .ssi-scheme.a-flow-on .ssi-scheme__steps > li {
	position: relative;
	padding: 0;
	border: 0;
	background: none;
	opacity: 1;
	animation: none;
}

.a-step__short {
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 8px 12px;
	border-bottom: 1px dashed rgba(var(--a-blue-rgb), 0.12);
	color: #c3d1de;
	font-size: 14px;
	line-height: 1.4;
}

.a-step__num {
	flex: 0 0 auto;
	color: var(--ssi-text-muted);
	font: 600 11px/1.4 var(--ssi-font-mono);
}

.a-step__name {
	flex: 1 1 auto;
	min-width: 0;
}

.a-step.is-agent .a-step__name {
	color: #b9f5dc;
}

.ssi-scheme__steps.is-collapsed .a-step__short,
.a-step.is-pending .a-step__short {
	display: none;
}

/* Вспышка в месте посадки ноды (opacity). */
.a-flow__sum::after,
.a-step__short::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 4px;
	background: rgba(var(--a-blue-rgb), 0.18);
	opacity: 0;
	pointer-events: none;
}

.a-flow-lane--agent .a-flow__sum::after,
.a-step.is-agent .a-step__short::after {
	background: rgba(var(--a-green-rgb), 0.18);
}

html.js:not(.reduced-motion) .a-flow__sum.is-land::after,
html.js:not(.reduced-motion) .a-step.is-land .a-step__short::after {
	animation: a-land 0.6s var(--a-ease);
}

/* Летящая копия ноды — только значок (кадры перелёта — design-a.js). */
.a-fly {
	position: absolute;
	z-index: 6;
	display: block;
	pointer-events: none;
	will-change: transform, opacity;
}

.a-fly .a-node__box {
	border-color: rgba(var(--a-blue-rgb), 0.85);
	color: #cfeeff;
	box-shadow: 0 0 22px rgba(var(--a-blue-rgb), 0.45);
}

.a-fly.is-agent .a-node__box {
	border-color: var(--ssi-green);
	background: linear-gradient(180deg, #06281f, #03120f);
	color: #d6ffef;
	box-shadow: 0 0 24px rgba(var(--a-green-rgb), 0.5);
}

.a-fly :is(.a-node__in, .a-node__out, .a-node__spin) {
	display: none;
}

.a-fly .a-node__ok {
	transform: scale(1);
}

.a-fly.is-agent .a-node__ok {
	background: var(--ssi-green);
}

/* Итог внизу: полосы растут по общей шкале времени, значение — на финише. */
.a-flow-total .ssi-scheme-total__list > li::after {
	display: none;
}

.a-flow-total .ssi-scheme-total__value,
.a-flow-total .ssi-scheme-total__sep {
	transition: opacity 0.5s var(--a-ease);
}

.a-flow-total li.is-pending :is(.ssi-scheme-total__value, .ssi-scheme-total__sep) {
	opacity: 0;
}

.a-total__bar {
	flex: 0 0 100%;
	height: 8px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(152, 173, 192, 0.3), rgba(152, 173, 192, 0.75));
	transform: scaleX(0);
	transform-origin: left;
}

/* Прогон схемы: полоса — отдельный слой (transform каждый кадр без перерисовки страницы). */
.a-flow-total.is-run .a-total__bar {
	will-change: transform;
}

.is-agent > .a-total__bar {
	background: linear-gradient(90deg, rgba(var(--a-green-rgb), 0.35), var(--ssi-green));
	box-shadow: 0 0 12px rgba(var(--a-green-rgb), 0.35);
}

/* Телефон: 2–3 ноды в окне, края окна — мягкое затухание. */
@media (max-width: 559px) {
	.ssi-scheme.a-flow-on {
		--box: 46px;
	}

	.a-flow__view {
		height: 136px;
		margin-inline: -6px;
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
		mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
	}

	.a-node__icon {
		width: 22px;
		height: 22px;
	}

	.a-flow__btn {
		padding: 0 12px;
	}

	.a-flow__sum,
	.a-step__short {
		font-size: 13.5px;
	}

	.a-flow__last {
		display: block;
		color: #c3d1de;
	}

	.a-flow__dot {
		display: none;
	}
}

@keyframes a-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes a-land {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

/* Печать: полные тексты этапов вместо схемы. */
@media print {
	.a-flow__bar,
	.a-flow__view,
	.a-flow__sum {
		display: none;
	}

	.a-flow-on .a-step__full {
		position: static !important;
		width: auto;
		height: auto;
		margin: 0;
		overflow: visible;
		clip: auto;
		white-space: normal;
	}

	.a-flow-total li.is-pending :is(.ssi-scheme-total__value, .ssi-scheme-total__sep) {
		opacity: 1;
	}
}

/* ======================================================================
   13. Призыв (cta) и форма — большие панели
   ====================================================================== */
.ssi-section--cta {
	isolation: isolate;
	padding-block: calc(var(--ssi-section-y) + 28px);
	padding-inline: max(calc(var(--ssi-gutter) + 22px), calc((100% - var(--ssi-container)) / 2 + 56px));
}

.ssi-section--cta::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: calc(var(--ssi-section-y) - 14px) max(calc(var(--ssi-gutter) - 2px), calc((100% - var(--ssi-container)) / 2));
	--c: var(--ssi-green);
	border: 1px solid rgba(var(--a-green-rgb), 0.3);
	border-radius: var(--ssi-radius);
	background:
		linear-gradient(var(--c), var(--c)) left top / 22px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) left top / 2px 22px no-repeat,
		linear-gradient(var(--c), var(--c)) right bottom / 22px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) right bottom / 2px 22px no-repeat,
		radial-gradient(70% 120% at 100% 0%, rgba(var(--a-green-rgb), 0.12), transparent 60%),
		radial-gradient(60% 120% at 0% 100%, rgba(47, 107, 255, 0.16), transparent 60%),
		linear-gradient(180deg, rgba(6, 18, 28, 0.9), rgba(3, 10, 17, 0.95));
	box-shadow: 0 0 60px rgba(var(--a-green-rgb), 0.06);
	pointer-events: none;
}

.ssi-section--cta h2 {
	max-width: 760px;
}

.ssi-section--cta > p {
	max-width: 680px;
	color: var(--ssi-text-muted);
}

.ssi-form {
	position: relative;
	padding: clamp(20px, 3vw, 36px);
	--a-bc: rgba(var(--a-green-rgb), 0.85);
}

.ssi-field {
	position: relative;
}

.ssi-field label,
.ssi-calc__text label {
	color: var(--ssi-text-muted);
	font: 600 12px/1.4 var(--ssi-font-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ssi-field input,
.ssi-field textarea,
.ssi-calc__text input {
	border-color: rgba(var(--a-blue-rgb), 0.24);
	border-radius: 3px;
	background: rgba(1, 5, 10, 0.85);
	color: var(--ssi-text);
}

.ssi-field input::placeholder,
.ssi-field textarea::placeholder,
.ssi-calc__text input::placeholder {
	color: #7d92a6;
}

.ssi-field input:hover,
.ssi-field textarea:hover,
.ssi-calc__text input:hover {
	border-color: rgba(var(--a-blue-rgb), 0.5);
}

.ssi-field input:focus,
.ssi-field textarea:focus,
.ssi-calc__text input:focus {
	border-color: var(--ssi-green);
	outline: 2px solid rgba(var(--a-green-rgb), 0.3);
	outline-offset: 0;
}

/* Нить под полем: «заряжается» при фокусе (scaleX). */
.ssi-field::after {
	content: "";
	position: absolute;
	left: 1px;
	right: 1px;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--ssi-blue), var(--ssi-green));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--a-ease);
	pointer-events: none;
}

.ssi-field:focus-within::after {
	transform: scaleX(1);
}

.ssi-field:has([aria-invalid="true"])::after {
	background: var(--ssi-danger);
	transform: scaleX(1);
}

.ssi-field input[aria-invalid="true"],
.ssi-field textarea[aria-invalid="true"] {
	border-color: var(--ssi-danger);
	background: rgba(40, 6, 14, 0.55);
}

.ssi-field__req {
	color: var(--ssi-green);
}

.ssi-consent {
	margin: 20px 0;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: 4px;
	color: #a9bccd;
}

.ssi-consent input {
	width: 22px;
	height: 22px;
	margin-top: 0;
}

.ssi-consent:has(input[aria-invalid="true"]) {
	border-color: rgba(255, 107, 129, 0.6);
	background: rgba(255, 107, 129, 0.07);
}

.ssi-form__status {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-family: var(--ssi-font-mono);
	font-size: 14px;
}

.ssi-form__status:is(.is-error, .is-success)::before {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 8px currentColor;
	translate: 0 -1px;
}

/* Отправка: бегущий отсвет по кромке формы. */
.ssi-form::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -1px;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--ssi-green), transparent);
	opacity: 0;
	transform: translateX(-100%);
	pointer-events: none;
}

html.js:not(.reduced-motion) .ssi-form.is-sending::after {
	opacity: 1;
	animation: a-sweep 1s linear infinite;
}

/* Заявка ушла (класс .a-sent ставит design-a.js по ssi:lead-sent). */
.ssi-form::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(80% 80% at 50% 100%, rgba(var(--a-green-rgb), 0.16), transparent 70%);
	opacity: 0;
	pointer-events: none;
}

html.js:not(.reduced-motion) .ssi-form.a-sent::before {
	animation: a-flash 1.6s ease-out both;
}

/* ======================================================================
   14. Отрасли: чипы и раскрывающиеся категории
   ====================================================================== */
.ssi-chips {
	gap: 10px 12px;
}

.ssi-chips a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 10px 16px 10px 14px;
	border-color: rgba(var(--a-blue-rgb), 0.3);
	border-radius: 3px;
	background: rgba(var(--a-blue-rgb), 0.04);
	color: var(--ssi-text);
	transition: translate 0.22s var(--a-ease);
}

.ssi-chips a::before {
	content: "";
	width: 6px;
	height: 6px;
	background: var(--ssi-blue);
	box-shadow: 0 0 8px var(--ssi-blue);
	rotate: 45deg;
}

.ssi-chips a:hover {
	border-color: var(--ssi-green);
	color: var(--ssi-green);
	translate: 0 -2px;
}

.ssi-chips a:hover::before {
	background: var(--ssi-green);
	box-shadow: 0 0 8px var(--ssi-green);
}

html.js:not(.reduced-motion) .ssi-section.is-inview .ssi-chips li {
	animation: a-rise 0.6s var(--a-ease) both;
}

html.js:not(.reduced-motion) .ssi-section.is-inview .ssi-chips li:nth-child(2) { animation-delay: 0.27s; }
html.js:not(.reduced-motion) .ssi-section.is-inview .ssi-chips li:nth-child(3) { animation-delay: 0.3s; }
html.js:not(.reduced-motion) .ssi-section.is-inview .ssi-chips li:nth-child(4) { animation-delay: 0.33s; }
html.js:not(.reduced-motion) .ssi-section.is-inview .ssi-chips li:nth-child(5) { animation-delay: 0.36s; }
html.js:not(.reduced-motion) .ssi-section.is-inview .ssi-chips li:nth-child(6) { animation-delay: 0.39s; }
html.js:not(.reduced-motion) .ssi-section.is-inview .ssi-chips li:nth-child(7) { animation-delay: 0.42s; }
html.js:not(.reduced-motion) .ssi-section.is-inview .ssi-chips li:nth-child(8) { animation-delay: 0.45s; }
html.js:not(.reduced-motion) .ssi-section.is-inview .ssi-chips li:nth-child(9) { animation-delay: 0.48s; }
html.js:not(.reduced-motion) .ssi-section.is-inview .ssi-chips li:nth-child(n+10) { animation-delay: 0.51s; }

.ssi-ind {
	position: relative;
	--a-bc: rgba(var(--a-blue-rgb), 0.45);
	--a-bl: 10px;
}

.ssi-ind[open] {
	--a-bc: var(--ssi-green);
	border-color: rgba(var(--a-green-rgb), 0.35);
}

.ssi-ind > summary {
	min-height: 44px;
	padding: 20px 64px 20px 22px;
	border-radius: var(--ssi-radius);
}

.ssi-ind > summary:hover h3 {
	color: var(--ssi-green);
}

.ssi-ind > summary h3 {
	font-size: clamp(19px, 0.6vw + 16px, 23px);
}

/* Переключатель: «+» поворачивается в «×» (transform). */
.ssi-ind > summary::after,
.ssi-ind[open] > summary::after {
	content: "";
	top: 20px;
	right: 20px;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(var(--a-green-rgb), 0.5);
	border-radius: 3px;
	background:
		linear-gradient(var(--ssi-green), var(--ssi-green)) center / 12px 2px no-repeat,
		linear-gradient(var(--ssi-green), var(--ssi-green)) center / 2px 12px no-repeat,
		rgba(var(--a-green-rgb), 0.05);
	transition: transform 0.3s var(--a-ease);
}

.ssi-ind[open] > summary::after {
	transform: rotate(135deg);
}

.ssi-act {
	border-color: rgba(var(--a-blue-rgb), 0.16);
	border-radius: 4px;
	background: rgba(1, 6, 11, 0.75);
}

.ssi-act h4 {
	color: var(--ssi-blue);
	font: 600 17px/1.35 var(--ssi-font);
}

.ssi-act ul {
	padding-left: 0;
	list-style: none;
}

.ssi-act li {
	position: relative;
	padding-left: 16px;
	margin-bottom: 0.3em;
}

.ssi-act li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 6px;
	height: 6px;
	border: 1px solid var(--ssi-green);
	rotate: 45deg;
}

html.js:not(.reduced-motion) .ssi-ind[open] .ssi-act {
	animation: a-rise 0.45s var(--a-ease) both;
}

html.js:not(.reduced-motion) .ssi-ind[open] .ssi-act:nth-child(2) { animation-delay: 0.05s; }
html.js:not(.reduced-motion) .ssi-ind[open] .ssi-act:nth-child(3) { animation-delay: 0.1s; }
html.js:not(.reduced-motion) .ssi-ind[open] .ssi-act:nth-child(4) { animation-delay: 0.15s; }
html.js:not(.reduced-motion) .ssi-ind[open] .ssi-act:nth-child(n+5) { animation-delay: 0.2s; }

/* ======================================================================
   15. Отделы
   ====================================================================== */
.ssi-dep h3 {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ssi-dep h3::before {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	background: var(--ssi-green);
	box-shadow: 0 0 10px var(--ssi-green);
}

.ssi-dep__agents {
	border-top-color: rgba(var(--a-blue-rgb), 0.16);
}

.ssi-dep__agents li {
	position: relative;
	padding: 10px 12px 10px 14px;
	border: 1px solid rgba(var(--a-blue-rgb), 0.12);
	border-left: 2px solid rgba(var(--a-blue-rgb), 0.6);
	border-radius: 3px;
	background: rgba(1, 6, 11, 0.6);
}

.ssi-dep__agents strong {
	color: var(--ssi-text);
	font-weight: 600;
}

.ssi-dep__link {
	z-index: 2;
}

/* ======================================================================
   16. Расчёт стоимости — пульт с прогрессом
   ====================================================================== */
.ssi-calc {
	position: relative;
	margin-top: 1.5em;
	padding: clamp(26px, 3.4vw, 44px) clamp(16px, 3vw, 40px) clamp(20px, 3vw, 40px);
	--a-bc: rgba(var(--a-green-rgb), 0.85);
	--a-bl: 18px;
}

/* Метка пульта на верхней кромке. */
.ssi-calc::before {
	content: "Пульт расчёта";
	content: "Пульт расчёта" / "";
	position: absolute;
	top: -9px;
	left: 26px;
	padding: 0 10px;
	background: var(--ssi-bg);
	color: var(--ssi-green);
	font: 600 11px/18px var(--ssi-font-mono);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ssi-calc__progress {
	gap: 12px;
	margin-bottom: 32px;
}

.ssi-calc__progress li {
	padding-top: 14px;
	border-top: 0;
	background: linear-gradient(rgba(var(--a-blue-rgb), 0.18), rgba(var(--a-blue-rgb), 0.18)) left top / 100% 3px no-repeat;
	color: var(--ssi-text-muted);
	font: 500 12.5px/1.35 var(--ssi-font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ssi-calc__progress li::before {
	content: counter(ssi-progress, decimal-leading-zero) " ";
	color: rgba(var(--a-blue-rgb), 0.85);
}

/* Заполнение шкалы шага. */
.ssi-calc__progress li::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--ssi-blue), var(--ssi-green));
	box-shadow: 0 0 10px rgba(var(--a-green-rgb), 0.55);
	transform: scaleX(0);
	transform-origin: left;
}

.ssi-calc__progress li.is-done::after,
.ssi-calc__progress li.is-active::after {
	transform: scaleX(1);
}

html.js:not(.reduced-motion) .ssi-calc__progress li.is-active::after {
	animation: a-fill 0.56s var(--a-ease) both;
}

/* Назад по шагам шкала не «наливается» заново — по ней пробегает синий импульс. */
html.js:not(.reduced-motion) .ssi-calc[data-a-dir="back"] .ssi-calc__progress li.is-active::after {
	animation: none;
}

.ssi-calc__progress li.is-active {
	color: var(--ssi-green);
	font-weight: 600;
}

.ssi-calc__progress li.is-active::before {
	color: var(--ssi-green);
}

.ssi-calc__progress li.is-done {
	color: var(--ssi-text);
}

.ssi-calc__progress button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: -12px;
	color: var(--ssi-text);
	letter-spacing: inherit;
	text-transform: inherit;
}

.ssi-calc__progress button:hover {
	color: var(--ssi-green);
}

@media (max-width: 559px) {
	.ssi-calc__progress {
		gap: 8px;
	}

	.ssi-calc__progress li {
		font-size: 11px;
		letter-spacing: 0.02em;
	}

	.ssi-calc__progress li::before {
		display: block;
	}
}

/* Шаг: проявление по сканирующей линии и «расшифровка» h3 — design-a.js (Web Animations). */
.ssi-calc__step {
	position: relative;
}

.ssi-calc__step > h3 {
	position: relative;
	font-size: clamp(20px, 1vw + 15px, 26px);
}

.ssi-calc__group-title {
	color: var(--ssi-blue);
	font: 600 12px/1.4 var(--ssi-font-mono);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Плитки выбора */
.ssi-choice {
	padding: 14px 34px 14px 46px;
	border-color: rgba(var(--a-blue-rgb), 0.18);
	border-radius: 4px;
	background: rgba(2, 9, 16, 0.78);
	transition: translate 0.2s var(--a-ease);
}

/* Наведение — только для мыши: на касании подсветка не «залипает». */
@media (hover: hover) and (pointer: fine) {
	.ssi-choice:hover {
		border-color: rgba(var(--a-blue-rgb), 0.7);
		translate: 0 -2px;
	}
}

@media (hover: none), (pointer: coarse) {
	.ssi-choice:hover {
		border-color: rgba(var(--a-blue-rgb), 0.18);
	}

	.ssi-choice:has(input:checked):hover {
		border-color: var(--ssi-green);
	}
}

.ssi-choice input {
	top: 17px;
}

/*
 * «Замыкание контура»: при выборе по периметру плитки один раз пробегает
 * неоновый импульс (conic-gradient в рамке-маске, угол — @property --a-ang),
 * затем лампа загорается с коротким мерцанием. Снятие выбора — лампа гаснет.
 */
.ssi-choice::before {
	content: "";
	position: absolute;
	inset: -1px;
	padding: 1.5px;
	border-radius: inherit;
	background: conic-gradient(from var(--a-ang), transparent 0deg 235deg, rgba(var(--a-blue-rgb), 0.85) 305deg, rgba(var(--a-green-rgb), 1) 350deg, #eafff6 357deg, transparent 360deg);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	pointer-events: none;
}

html.js:not(.reduced-motion) .ssi-calc .ssi-choice:has(input:checked)::before {
	animation: a-trace 0.62s cubic-bezier(0.4, 0.1, 0.4, 1) both;
}

/* «Весь бизнес» отмечает все отделы — контуры замыкаются по очереди. */
html.js:not(.reduced-motion) .ssi-calc .ssi-choice:has(input:checked:disabled)::before,
html.js:not(.reduced-motion) .ssi-calc .ssi-choice:has(input:checked:disabled)::after {
	animation-delay: calc(min(var(--i, 0), 12) * 40ms);
}

/* Лампа выбора: гаснет/загорается opacity. */
.ssi-choice::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 22px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ssi-green);
	box-shadow: 0 0 6px var(--ssi-green), 0 0 14px rgba(var(--a-green-rgb), 0.6);
	opacity: 0;
	transition: opacity 0.2s;
}

.ssi-choice:has(input:checked) {
	border-color: var(--ssi-green);
	background: linear-gradient(90deg, rgba(var(--a-green-rgb), 0.12), rgba(var(--a-green-rgb), 0.03)), rgba(2, 12, 14, 0.9);
}

.ssi-choice:has(input:checked)::after {
	opacity: 1;
}

html.js:not(.reduced-motion) .ssi-calc .ssi-choice:has(input:checked)::after {
	animation: a-lamp 0.42s 0.22s linear both;
}

.ssi-choice:has(input:disabled):hover {
	translate: none;
}

.ssi-choice__meta {
	font-family: var(--ssi-font-mono);
	font-size: 12.5px;
}

.ssi-choice--whole {
	border-style: dashed;
	border-color: rgba(var(--a-green-rgb), 0.45);
}

.ssi-choice--whole .ssi-choice__title {
	font-size: 17px;
	color: var(--ssi-green);
}

html.js:not(.reduced-motion) .ssi-calc .ssi-choice {
	animation: a-tile 0.4s var(--a-ease) both;
	animation-delay: calc(min(var(--i, 0), 16) * 22ms);
}

.ssi-calc__error {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: 15px;
}

.ssi-calc__error::before {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ssi-danger);
	box-shadow: 0 0 8px var(--ssi-danger);
	translate: 0 -1px;
}

.ssi-calc__loading {
	color: var(--ssi-text-muted);
	font-family: var(--ssi-font-mono);
	font-size: 14px;
}

.ssi-calc__summary {
	display: inline-block;
	padding: 6px 12px;
	border-left: 2px solid var(--ssi-blue);
	background: rgba(var(--a-blue-rgb), 0.06);
	color: #b9c9d7;
	font: 500 13.5px/1.5 var(--ssi-font-mono);
}

/* Результат */
.ssi-calc__group h4 {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ssi-blue);
	font: 600 17px/1.3 var(--ssi-font-display);
}

.ssi-calc__group h4::before {
	content: "";
	width: 7px;
	height: 7px;
	background: var(--ssi-blue);
	box-shadow: 0 0 8px var(--ssi-blue);
}

/*
 * Отделы результата — раскрывающиеся группы (design-a.js, accordion()).
 * Заголовок целиком — зона нажатия (кнопка растянута через ::after).
 * Свёрнутая панель — hidden="until-found" (поиск по странице её раскрывает).
 */
.a-acc {
	position: relative;
	margin-bottom: 10px;
	border: 1px solid rgba(var(--a-blue-rgb), 0.16);
	border-radius: 4px;
	background: rgba(2, 9, 16, 0.55);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.a-acc.is-open {
	border-color: rgba(var(--a-green-rgb), 0.32);
	box-shadow: 0 0 0 1px rgba(var(--a-green-rgb), 0.06), 0 10px 30px -18px rgba(var(--a-green-rgb), 0.5);
}

html.js:not(.reduced-motion) .ssi-calc__step .a-acc {
	animation: a-print 0.36s var(--a-ease) backwards;
	animation-delay: calc(40ms + min(var(--i, 0), 10) * 45ms);
}

.a-acc__head {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 6px 18px;
	min-height: 56px;
	padding: 12px 16px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.a-acc__head:hover {
	background: rgba(var(--a-blue-rgb), 0.05);
}

.a-acc__head:has(.a-acc__btn:focus-visible) {
	outline: 2px solid var(--ssi-green);
	outline-offset: 2px;
}

.ssi-calc__group .a-acc__head h4 {
	margin: 0;
}

.a-acc__btn {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: left;
	cursor: pointer;
}

.a-acc__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.a-acc__btn:focus-visible {
	outline: none;
}

.a-acc__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-end;
	gap: 2px 10px;
	margin: 0;
	color: var(--ssi-text-muted);
	font: 500 12.5px/1.5 var(--ssi-font-mono);
	letter-spacing: 0.03em;
	text-align: right;
	pointer-events: none;
}

.a-acc__count {
	color: var(--ssi-text);
}

.a-acc__k {
	color: var(--ssi-blue);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ssi-calc .a-acc__sum {
	color: var(--ssi-green);
	font: inherit;
	white-space: nowrap;
}

.ssi-calc .a-acc__sum.is-request {
	padding: 0 6px;
	color: var(--ssi-text-muted);
}

.a-acc__part {
	font-size: 11.5px;
}

/* «Порт»: рамка со стрелкой; при раскрытии стрелка разворачивается, рамка загорается. */
.a-acc__port {
	position: relative;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(var(--a-blue-rgb), 0.45);
	border-radius: 3px;
	transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
	pointer-events: none;
}

.a-acc__port::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	margin: -6px 0 0 -4px;
	border-right: 2px solid var(--ssi-blue);
	border-bottom: 2px solid var(--ssi-blue);
	transform: rotate(45deg);
	transition: transform 0.45s var(--a-ease), border-color 0.3s, margin 0.45s var(--a-ease);
}

.a-acc__port::after {
	content: "";
	position: absolute;
	inset: -1px;
	border: 1px solid var(--ssi-green);
	border-radius: 3px;
	opacity: 0;
}

.a-acc__head:hover .a-acc__port {
	border-color: var(--ssi-blue);
}

.a-acc.is-open .a-acc__port {
	border-color: rgba(var(--a-green-rgb), 0.7);
	background: rgba(var(--a-green-rgb), 0.1);
	box-shadow: 0 0 12px rgba(var(--a-green-rgb), 0.35);
}

.a-acc.is-open .a-acc__port::before {
	margin-top: -2px;
	border-color: var(--ssi-green);
	transform: rotate(-135deg);
}

html.js:not(.reduced-motion) .a-acc.is-open .a-acc__port::after {
	animation: a-port-ping 0.6s ease-out;
}

@keyframes a-port-ping {
	from {
		opacity: 0.9;
		transform: scale(1);
	}

	to {
		opacity: 0;
		transform: scale(1.7);
	}
}

/* Трасса под заголовком: прочерчивается слева при раскрытии, уходит вправо при свёртывании. */
.a-acc__trace {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, var(--ssi-green), var(--ssi-blue) 65%, rgba(var(--a-blue-rgb), 0));
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.5s var(--a-ease);
	pointer-events: none;
}

.a-acc.is-open .a-acc__trace {
	transform: scaleX(1);
	transform-origin: left;
}

.a-acc__body {
	position: relative;
	display: flow-root;
	padding: 0 16px;
}

.a-acc__body.is-anim {
	overflow: hidden;
}

.a-acc__body[hidden="until-found"] {
	display: block !important;
	content-visibility: hidden;
	height: 0;
	overflow: hidden;
}

.a-acc .ssi-calc__table {
	margin: 4px 0 10px;
}

/* Луч сканера, за которым разворачивается (сворачивается) панель. */
.a-acc__beam {
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	z-index: 2;
	height: 2px;
	background: linear-gradient(90deg, rgba(var(--a-green-rgb), 0), var(--ssi-green) 20%, var(--ssi-blue) 80%, rgba(var(--a-blue-rgb), 0));
	box-shadow: 0 0 14px rgba(var(--a-green-rgb), 0.8);
	opacity: 0;
	pointer-events: none;
}

/* «Развернуть все отделы» */
.a-acc__all {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 0 0 12px auto;
	padding: 8px 14px;
	border: 1px solid rgba(var(--a-blue-rgb), 0.3);
	border-radius: 3px;
	background: transparent;
	color: var(--ssi-blue);
	font: 600 12px/1.3 var(--ssi-font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.a-acc__all:hover {
	border-color: var(--ssi-green);
	color: var(--ssi-green);
	background: rgba(var(--a-green-rgb), 0.05);
}

.a-acc__all:focus-visible {
	outline: 2px solid var(--ssi-green);
	outline-offset: 2px;
}

.a-acc__all-icon {
	position: relative;
	width: 10px;
	height: 10px;
}

.a-acc__all-icon::before,
.a-acc__all-icon::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 0;
	width: 10px;
	height: 2px;
	background: currentColor;
	transition: transform 0.3s var(--a-ease);
}

.a-acc__all-icon::after {
	transform: rotate(90deg);
}

.a-acc__all[aria-expanded="true"] .a-acc__all-icon::after {
	transform: rotate(0deg);
}

html.reduced-motion .a-acc__beam {
	display: none;
}

html.reduced-motion .a-acc__trace,
html.reduced-motion .a-acc__port::before {
	transition: none;
}

@media (max-width: 639px) {
	.a-acc__head {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 12px 12px 12px 14px;
	}

	.a-acc__meta {
		grid-column: 1;
		grid-row: 2;
		justify-content: flex-start;
		text-align: left;
	}

	.a-acc__port {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	.a-acc__trace {
		left: 12px;
		right: 12px;
	}

	.a-acc__body {
		padding: 0 10px;
	}

	.a-acc__all {
		width: 100%;
		justify-content: center;
	}
}

@media print {
	.a-acc__body[hidden] {
		display: block !important;
		content-visibility: visible;
		height: auto;
	}

	.a-acc__port,
	.a-acc__all {
		display: none;
	}
}

/* Плитки выбора: курсор один на всю плитку, включая кружок отметки. */
.ssi-calc .ssi-choice input {
	cursor: inherit;
}

.ssi-calc__table th,
.ssi-calc__table td {
	border-bottom-color: rgba(var(--a-blue-rgb), 0.12);
}

.ssi-calc__table thead th {
	color: var(--ssi-text-muted);
	font: 600 11.5px/1.4 var(--ssi-font-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-bottom-color: rgba(var(--a-blue-rgb), 0.3);
}

.ssi-calc__table tbody tr:hover {
	background: rgba(var(--a-blue-rgb), 0.04);
}

.ssi-calc__service-name {
	font-weight: 600;
}

.ssi-calc__service-desc {
	color: var(--ssi-text-muted);
	font-weight: 400;
}

.ssi-calc__result {
	margin-top: 10px;
}

.ssi-price {
	color: var(--ssi-text);
}

/* Цены расчёта — блок для наложения с прокруткой разрядов (шаг 3). */
.ssi-calc .ssi-price {
	position: relative;
	display: inline-block;
	max-width: 100%;
}

.ssi-price.is-request {
	display: inline-block;
	padding: 2px 8px;
	border: 1px dashed rgba(152, 173, 192, 0.5);
	border-radius: 3px;
	color: var(--ssi-text-muted);
	font: 500 12.5px/1.5 var(--ssi-font-mono);
	letter-spacing: 0.04em;
}

/* Строки «печатаются» слева направо каскадом (--i — design-a.js). */
html.js:not(.reduced-motion) .ssi-calc__table tbody tr {
	animation: a-print 0.36s var(--a-ease) backwards;
	animation-delay: calc(80ms + min(var(--i, 0), 10) * 50ms);
}

@media (max-width: 639px) {
	.ssi-calc__table tr {
		border-color: rgba(var(--a-blue-rgb), 0.18);
		border-radius: 4px;
		background: rgba(2, 9, 16, 0.8);
	}

	.ssi-calc__table td[data-label]:nth-child(n+2)::before {
		font-family: var(--ssi-font-mono);
		font-size: 12px;
		letter-spacing: 0.04em;
	}

	.ssi-calc__table .ssi-price {
		font-size: 14px;
	}

	.ssi-calc__total .ssi-price {
		font-size: 18px;
		white-space: normal;
	}
}

.ssi-calc__total {
	position: relative;
	overflow: hidden;
	padding: 6px clamp(16px, 2.4vw, 26px);
	--a-bc: var(--ssi-green);
	--a-panel: linear-gradient(120deg, rgba(4, 34, 28, 0.75), rgba(3, 12, 20, 0.95) 60%);
	border-color: rgba(var(--a-green-rgb), 0.45);
}

.ssi-calc__total-row + .ssi-calc__total-row {
	border-top-color: rgba(var(--a-green-rgb), 0.16);
}

.ssi-calc__total-label {
	font-family: var(--ssi-font-display);
	font-size: 18px;
}

.ssi-calc__total-label small {
	font-family: var(--ssi-font-mono);
	font-size: 12px;
	letter-spacing: 0.04em;
}

.ssi-calc__total .ssi-price {
	color: var(--ssi-green);
	text-shadow: 0 0 18px rgba(var(--a-green-rgb), 0.45);
}

.ssi-calc__total .ssi-price.is-request {
	text-shadow: none;
	font-size: 14px;
	color: var(--ssi-text-muted);
}

/* Скан по итогу при появлении — один проход. */
.ssi-calc__total::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 40%;
	background: linear-gradient(90deg, transparent, rgba(var(--a-green-rgb), 0.14), transparent);
	opacity: 0;
	pointer-events: none;
}

html.js:not(.reduced-motion) .ssi-calc__total.a-locked::after {
	animation: a-sweep-once 0.9s var(--a-ease) both;
}

/* «Фиксация» итога и сводки: импульс рамки (только opacity). */
.ssi-calc__brief {
	position: relative;
}

.ssi-calc__total::before,
.ssi-calc__brief::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid var(--ssi-green);
	border-radius: inherit;
	box-shadow: inset 0 0 22px rgba(var(--a-green-rgb), 0.28), 0 0 18px rgba(var(--a-green-rgb), 0.35);
	opacity: 0;
	pointer-events: none;
}

.ssi-calc__brief::before {
	inset: -1px;
}

html.js:not(.reduced-motion) .ssi-calc__total.a-locked::before,
html.js:not(.reduced-motion) .ssi-calc__brief.a-locked::before {
	animation: a-lock 0.42s ease-out both;
}

/* Метка над строками итога: «сборка расчёта» → «расчёт готов» (design-a.js). */
.a-total-head {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 12px 0 0;
	color: rgba(var(--a-blue-rgb), 0.9);
	font: 600 11px/1.4 var(--ssi-font-mono);
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.a-total-head__lamp {
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ssi-blue);
	box-shadow: 0 0 8px var(--ssi-blue);
}

.a-total-head.is-done {
	color: var(--ssi-green);
}

.a-total-head.is-done .a-total-head__lamp {
	background: var(--ssi-green);
	box-shadow: 0 0 8px var(--ssi-green), 0 0 16px rgba(var(--a-green-rgb), 0.6);
}

html.js:not(.reduced-motion) .a-total-head:not(.is-done) .a-total-head__lamp {
	animation: a-blink 0.36s steps(2) infinite;
}

html.js:not(.reduced-motion) .a-total-head.is-done {
	animation: a-lamp 0.42s linear both;
}

.ssi-calc__note {
	padding-left: 12px;
	border-left: 2px solid rgba(var(--a-blue-rgb), 0.5);
	font-size: 14.5px;
}

.ssi-calc__lead {
	position: relative;
	border-top: 1px solid rgba(var(--a-blue-rgb), 0.16);
}

.ssi-calc__lead .ssi-form {
	max-width: none;
}

@media (max-width: 559px) {
	.ssi-calc__lead .ssi-form {
		padding: 18px 14px;
	}
}

/* ----------------------------------------------------------------------
   16.1. Пульт «Сборка контура агентов» (design-a.js, раздел 4)
   ---------------------------------------------------------------------- */

/* Колонка угла импульса по рамке плитки. */
@property --a-ang {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

/* HUD-телеметрия: декоративный дубль расчёта (aria-hidden), в потоке под шкалой. */
.a-hud {
	position: relative;
	margin: -14px 0 26px;
	padding: 8px 14px;
	border: 1px solid rgba(var(--a-blue-rgb), 0.16);
	border-left: 2px solid rgba(var(--a-green-rgb), 0.75);
	border-radius: 3px;
	background: linear-gradient(90deg, rgba(var(--a-green-rgb), 0.07), rgba(var(--a-blue-rgb), 0.03) 38%, rgba(2, 9, 16, 0.55));
	color: var(--ssi-text);
	font: 500 12.5px/1.5 var(--ssi-font-mono);
	font-variant-numeric: tabular-nums;
}

.a-hud__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 4px;
}

.a-hud__cell {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
	padding: 1px 14px;
	white-space: nowrap;
}

.a-hud__cell:first-child {
	padding-left: 0;
}

.a-hud__cell + .a-hud__cell {
	border-left: 1px solid rgba(var(--a-blue-rgb), 0.2);
}

/* Подсветка изменившегося значения — design-a.js (opacity ::after). */
.a-hud__cell::after {
	content: "";
	position: absolute;
	inset: -3px 4px;
	border-radius: 2px;
	background: rgba(var(--a-green-rgb), 0.13);
	box-shadow: inset 0 -1px 0 rgba(var(--a-green-rgb), 0.85);
	opacity: 0;
	pointer-events: none;
}

.a-hud__cell:first-child::after {
	left: -6px;
}

.a-hud__k {
	color: rgba(var(--a-blue-rgb), 0.85);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.a-hud__v {
	min-width: 0;
}

.a-hud__cell--cat .a-hud__v {
	overflow: hidden;
	max-width: 24ch;
	text-overflow: ellipsis;
	font-weight: 600;
}

.a-hud__cell--impl .a-hud__v,
.a-hud__cell--sup .a-hud__v {
	color: var(--ssi-green);
}

.a-hud[data-state="idle"] .a-hud__v {
	color: var(--ssi-text-muted);
	text-shadow: none;
	font-weight: 500;
}

.a-hud__lamp {
	flex: none;
	align-self: center;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ssi-blue);
	box-shadow: 0 0 8px var(--ssi-blue);
}

.a-hud:not([data-state="idle"]) .a-hud__lamp {
	background: var(--ssi-green);
	box-shadow: 0 0 6px var(--ssi-green), 0 0 14px rgba(var(--a-green-rgb), 0.6);
}

html.js:not(.reduced-motion) .a-live .a-hud[data-state="idle"] .a-hud__lamp {
	animation: a-blink 1.6s ease-in-out infinite;
}

html.js:not(.reduced-motion) .a-hud[data-state="build"] .a-hud__lamp {
	animation: a-blink 0.36s steps(2) infinite;
}

/* Журнал сборки — только на шаге 3. */
.a-hud__log {
	display: none;
	grid-template-columns: repeat(4, minmax(0, auto));
	justify-content: start;
	gap: 2px 26px;
	margin: 7px 0 1px;
	padding: 6px 0 0;
	border-top: 1px dashed rgba(var(--a-blue-rgb), 0.18);
	list-style: none;
	color: var(--ssi-text-muted);
	font-size: 12px;
}

.a-hud[data-step="3"] .a-hud__log:not(:empty) {
	display: grid;
}

.a-hud__log li {
	overflow: hidden;
	margin: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.a-hud__log li.is-final {
	color: rgba(var(--a-blue-rgb), 0.95);
}

.a-hud[data-state="done"] .a-hud__log li.is-final {
	color: var(--ssi-green);
	text-shadow: 0 0 10px rgba(var(--a-green-rgb), 0.45);
}

/*
 * Телефон и планшет (< 900 px): HUD — ровно две строки на всех шагах (без скачка вёрстки):
 *   1) контур · отделы · агенты (шаг 3: строка журнала · агенты);
 *   2) внедрение ≈ от … до … ₽.
 * Ячейки и журнал — элементы одной сетки (.a-hud__bar — display: contents).
 */
@media (max-width: 899px) {
	.a-hud {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto auto;
		row-gap: 2px;
		margin: -16px 0 20px;
		padding: 5px 10px;
		line-height: 1.45;
	}

	.a-hud__bar {
		display: contents;
	}

	.a-hud__cell {
		grid-row: 1;
		gap: 6px;
		padding: 1px 8px;
	}

	.a-hud__cell--cat {
		grid-column: 1;
	}

	.a-hud__cell--deps {
		grid-column: 2;
	}

	.a-hud__cell--agents {
		grid-column: 3;
		padding-right: 0;
	}

	.a-hud__cell--impl {
		grid-row: 2;
		grid-column: 1 / -1;
		padding-left: 0;
		white-space: normal;
	}

	.a-hud__cell--impl,
	.a-hud__cell--impl + .a-hud__cell {
		border-left: 0 !important;
	}

	.a-hud__cell--sup {
		display: none;
	}

	.a-hud[data-state="idle"] .a-hud__cell--cat {
		grid-column: 1 / -1;
	}

	.a-hud[data-state="idle"] .a-hud__cell--deps,
	.a-hud[data-state="idle"] .a-hud__cell--agents {
		display: none;
	}

	/* Шаг 3: вместо «контур · отделы» — одна строка журнала (строки сменяют друг друга). */
	.a-hud[data-step="3"] .a-hud__cell--cat,
	.a-hud[data-step="3"] .a-hud__cell--deps {
		display: none;
	}

	.a-hud__log,
	.a-hud[data-step="3"] .a-hud__log:not(:empty) {
		display: none;
		grid-row: 1;
		grid-column: 1 / 3;
		grid-template-columns: minmax(0, 1fr);
		min-width: 0;
		margin: 0;
		padding: 1px 0;
		border: 0;
		font-size: inherit;
	}

	.a-hud[data-step="3"] .a-hud__log:not(:empty) {
		display: grid;
	}

	.a-hud__log li {
		grid-area: 1 / 1;
	}

	/* Промежуточные строки видны только во время анимации (design-a.js). */
	.a-hud__log li:not(.is-final) {
		opacity: 0;
	}
}

@media (max-width: 559px) {
	.a-hud {
		font-size: 11.5px;
	}

	.a-hud__k {
		font-size: 10px;
		letter-spacing: 0.08em;
	}
}

/* Узкий телефон: «внедр. ≈» вместо «внедрение ≈», чтобы вилка из 8-значных сумм осталась в строке. */
@media (max-width: 400px) {
	.a-hud__cell--impl .a-hud__k {
		font-size: 0;
		letter-spacing: 0;
	}

	.a-hud__cell--impl .a-hud__k::before {
		content: "внедр. ≈";
		content: "внедр. ≈" / "";
		font-size: 10px;
		letter-spacing: 0.06em;
	}
}

/*
 * Счётчик с прокруткой разрядов (.a-roll): символы и колонки цифр — CSS-
 * содержимое псевдоэлементов (textContent пуст). Колонка — полоса «0…9 0…9»
 * высотой 20 строк, видна одна строка; позиция — --n (×5 % высоты полосы).
 */
.a-roll {
	white-space: inherit;
}

.a-roll i {
	font-style: normal;
}

.a-roll__w {
	white-space: nowrap;
}

.a-roll [data-c]::before {
	content: attr(data-c);
	content: attr(data-c) / "";
}

/* Символы и колонки — одной высоты (строка), выровнены по верху строки:
   глиф стоит там же, где в исходном тексте. */
.a-roll [data-c],
.a-roll__d {
	display: inline-block;
	height: 1.5em;
	height: 1lh;
	vertical-align: top;
	white-space: pre;
}

.a-roll__sp::before {
	content: " ";
	content: " " / "";
}

.a-roll__d {
	overflow: hidden;
}

.a-roll__d::before {
	content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9";
	content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9" / "";
	display: block;
	white-space: pre;
	transform: translateY(calc(var(--n, 0) * -5%));
	/* В строках (lh) — без накопления долей пикселя по 20 строкам полосы. */
	transform: translateY(calc(var(--n, 0) * -1lh));
}

/* Прокрутка разряда от --from к --n: длительность и задержка — design-a.js. */
.a-roll__d.is-roll-a::before {
	animation: a-roll-a var(--a-rt, 420ms) cubic-bezier(0.2, 0.7, 0.2, 1) var(--a-rd, 0ms) both;
}

.a-roll__d.is-roll-b::before {
	animation: a-roll-b var(--a-rt, 420ms) cubic-bezier(0.2, 0.7, 0.2, 1) var(--a-rd, 0ms) both;
}

html.reduced-motion .a-roll__d::before {
	animation: none;
}

@keyframes a-roll-a {
	from {
		transform: translateY(calc(var(--from, 0) * -1lh));
	}

	to {
		transform: translateY(calc(var(--n, 0) * -1lh));
	}
}

@keyframes a-roll-b {
	from {
		transform: translateY(calc(var(--from, 0) * -1lh));
	}

	to {
		transform: translateY(calc(var(--n, 0) * -1lh));
	}
}

/* Телефон: «счётчик» — одна строка текста (CSS content), переносы — как у исходного. */
.a-roll.is-tick [data-c] {
	display: inline;
	height: auto;
	vertical-align: baseline;
	white-space: inherit;
}

/* Наложение в цене: поверх исходного текста, который на это время прозрачен. */
.a-roll.is-over {
	position: absolute;
	/* +4 px справа: доли пикселя ширины не должны переносить строку наложения. */
	inset: 0 -4px 0 0;
	text-align: left;
	-webkit-text-fill-color: currentColor;
	/* Без размытой тени: полосы цифр — 20 строк каждая (дорого рисовать);
	   свечение итога появляется в момент «фиксации», когда наложение убрано. */
	text-shadow: none;
	pointer-events: none;
}

.ssi-price.a-rolling {
	-webkit-text-fill-color: transparent;
	text-shadow: none;
}

/* «Расшифровка» заголовка шага: видимая копия — ::after. */
.ssi-calc__step > h3.a-scr {
	-webkit-text-fill-color: transparent;
}

.ssi-calc__step > h3.a-scr::after {
	content: attr(data-a-scr);
	content: attr(data-a-scr) / "";
	position: absolute;
	inset: 0;
	overflow: hidden;
	-webkit-text-fill-color: var(--ssi-text);
	text-shadow: 0 0 14px rgba(var(--a-green-rgb), 0.45);
	pointer-events: none;
}

/* Светящаяся кромка проявления шага: вперёд — снизу полосы (сверху вниз), назад — сверху. */
.a-edge {
	position: absolute;
	inset: 0 -12px;
	z-index: 3;
	opacity: 0;
	pointer-events: none;
}

.a-edge--fwd {
	background: linear-gradient(0deg, transparent 0 1px, rgba(var(--a-green-rgb), 0.95) 1px 3px, rgba(var(--a-green-rgb), 0.16) 3px, transparent 64px);
}

.a-edge--back {
	background: linear-gradient(180deg, transparent 0 1px, rgba(var(--a-blue-rgb), 0.95) 1px 3px, rgba(var(--a-blue-rgb), 0.16) 3px, transparent 64px);
}

/* Импульс энергии по шкале шагов. */
.a-surge {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 72px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, rgba(var(--a-green-rgb), 0.7) 70%, #eafff6);
	box-shadow: 0 0 12px rgba(var(--a-green-rgb), 0.8);
	opacity: 0;
	pointer-events: none;
}

.a-surge--back {
	width: 56px;
	background: linear-gradient(90deg, #e6f9ff, rgba(var(--a-blue-rgb), 0.7) 30%, transparent);
	box-shadow: 0 0 12px rgba(var(--a-blue-rgb), 0.8);
}

/* Сканирующая линия по результату шага 3. */
.ssi-calc__result {
	position: relative;
}

.a-scanline {
	position: absolute;
	top: -42px;
	left: -8px;
	right: -8px;
	z-index: 3;
	height: 44px;
	background: linear-gradient(180deg, transparent, rgba(var(--a-green-rgb), 0.12) 85%, rgba(var(--a-green-rgb), 0.95) 95%, transparent);
	opacity: 0;
	pointer-events: none;
}

/* Без движения: наложения и кромки не показываются (design-a.js их и не создаёт). */
html.reduced-motion .a-edge,
html.reduced-motion .a-surge,
html.reduced-motion .a-scanline {
	display: none;
}

/* ======================================================================
   17. Контакты
   ====================================================================== */
.ssi-contacts__item {
	padding: 18px 20px;
	--a-bc: rgba(var(--a-blue-rgb), 0.6);
	--a-bl: 10px;
}

.ssi-contacts__label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--ssi-blue);
	font-weight: 600;
	letter-spacing: 0.16em;
}

.ssi-contacts__phone a {
	color: var(--ssi-text);
	font-family: var(--ssi-font-display);
	font-size: clamp(18px, 0.4vw + 15px, 21px);
	white-space: nowrap;
}

.ssi-contacts__phone a:hover {
	color: var(--ssi-green);
}

.ssi-contacts__note {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--ssi-font-mono);
	font-size: 13px;
	letter-spacing: 0.06em;
}

.ssi-contacts__note::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ssi-green);
	box-shadow: 0 0 8px var(--ssi-green);
}

.ssi-messenger {
	min-height: 44px;
	padding: 8px 16px;
	border-color: rgba(var(--a-blue-rgb), 0.35);
	border-radius: 3px;
	background: rgba(var(--a-blue-rgb), 0.05);
	font-weight: 500;
	font-size: 15px;
	transition: translate 0.2s var(--a-ease);
}

.ssi-messenger:hover {
	translate: 0 -2px;
}

/* ======================================================================
   18. Подвал
   ====================================================================== */
.site-footer {
	position: relative;
	border-top-color: rgba(var(--a-blue-rgb), 0.14);
	background:
		radial-gradient(50% 120% at 0% 0%, rgba(47, 107, 255, 0.08), transparent 60%),
		linear-gradient(180deg, #030910, #01040a);
}

.site-footer::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(var(--a-green-rgb), 0.6) 30%, rgba(var(--a-blue-rgb), 0.6) 70%, transparent);
	opacity: 0.6;
}

.footer-brand .site-logo img {
	height: 40px;
}

.footer-nav .menu {
	gap: 0;
}

.footer-nav a,
.footer-legal__links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.footer-legal__links a {
	display: flex;
	min-height: 40px;
	margin: 0;
	line-height: 1.35;
}

.footer-nav a::before {
	content: "";
	width: 5px;
	height: 5px;
	margin-right: 10px;
	background: rgba(var(--a-blue-rgb), 0.7);
}

.footer-nav a:hover::before {
	background: var(--ssi-green);
	box-shadow: 0 0 6px var(--ssi-green);
}

.footer-contacts__phone a {
	font-family: var(--ssi-font-display);
}

.footer-legal__copy {
	color: #8297aa;
	font-family: var(--ssi-font-mono);
	font-size: 12px;
}

/* ======================================================================
   19. Уведомление о cookie
   ====================================================================== */
.ssi-cookie {
	--a-bc: var(--ssi-green);
	--a-panel: linear-gradient(180deg, rgba(8, 20, 32, 0.98), rgba(3, 9, 16, 0.98));
	border-color: rgba(var(--a-blue-rgb), 0.3);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(var(--a-blue-rgb), 0.08);
}

.ssi-cookie__text {
	color: #b0c2d2;
}

.ssi-cookie .ssi-btn {
	min-height: 44px;
}

html.js:not(.reduced-motion) .ssi-cookie:not([hidden]) {
	animation: a-rise 0.6s 0.4s var(--a-ease) both;
}

/* ======================================================================
   20. Документы (политика, согласие) и обычные страницы
   ====================================================================== */
.ssi-page-header {
	padding-bottom: 20px;
	margin-bottom: 28px;
	border-bottom: 1px solid rgba(var(--a-blue-rgb), 0.16);
}

.ssi-page-header::before {
	content: "Документ";
	content: "Документ" / "";
	display: inline-flex;
	margin-bottom: 18px;
	padding: 5px 10px;
	border: 1px solid rgba(var(--a-green-rgb), 0.3);
	border-radius: 3px;
	color: var(--ssi-green);
	font: 600 11px/1.4 var(--ssi-font-mono);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ssi-page-title {
	font-size: clamp(28px, 2.6vw + 14px, 46px);
	margin: 0;
}

.ssi-page-content > :not(.ssi-section) {
	color: #cfdbe6;
	line-height: 1.7;
}

.ssi-page-content > h2:not(.ssi-section),
.ssi-page-content > h3:not(.ssi-section) {
	position: relative;
	padding-left: 16px;
	color: var(--ssi-text);
}

.ssi-page-content > h2:not(.ssi-section)::before,
.ssi-page-content > h3:not(.ssi-section)::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	bottom: 0.2em;
	width: 3px;
	background: linear-gradient(180deg, var(--ssi-green), var(--ssi-blue));
}

.ssi-page-content > :is(ul, ol):not(.ssi-section) {
	padding-left: 1.3em;
}

.ssi-page-content > ul:not(.ssi-section) li::marker {
	color: var(--ssi-green);
}

.ssi-page-content > :not(.ssi-section) a {
	overflow-wrap: anywhere;
}

/* ======================================================================
   21. Бесконечные анимации — только в видимой секции (.a-live)
   ====================================================================== */
html.js:not(.reduced-motion) .a-live .ssi-eyebrow::before,
html.js:not(.reduced-motion) .a-live .ssi-contacts__note::before {
	animation: a-blink 2.6s ease-in-out infinite;
}

html.js:not(.reduced-motion) .a-live .a-lamp::after {
	animation: a-ping 2.2s ease-out infinite;
}

html.js:not(.reduced-motion) .a-live .a-ticker__track {
	animation: a-ticker 60s linear infinite;
}

html.js:not(.reduced-motion) .a-live .ssi-scheme__col--after .ssi-scheme__steps::after {
	animation: a-drop 4.6s linear infinite;
}

html.js:not(.reduced-motion) .a-live .ssi-scheme__steps > li.is-agent::after {
	animation: a-blink 1.8s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * 0.3s);
}

html.js:not(.reduced-motion) .a-live.ssi-section--404::after {
	animation: a-flicker 5s steps(1) infinite;
}

/* ======================================================================
   22. Ключевые кадры
   ====================================================================== */
@keyframes a-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 22px, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes a-slide {
	from {
		opacity: 0;
		transform: translate3d(-14px, 0, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes a-tile {
	from {
		opacity: 0;
		transform: translate3d(0, 10px, 0) scale(0.98);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes a-fill {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(1);
	}
}

@keyframes a-blink {
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.25;
	}
}

@keyframes a-ping {
	0% {
		opacity: 0.8;
		transform: scale(1);
	}

	80%,
	100% {
		opacity: 0;
		transform: scale(3.2);
	}
}

@keyframes a-ticker {
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

@keyframes a-scan {
	0% {
		transform: translate3d(0, -160px, 0);
	}

	100% {
		transform: translate3d(0, 100vh, 0);
	}
}

@keyframes a-drop {
	0% {
		opacity: 0;
		transform: translate3d(0, 0, 0);
	}

	8%,
	88% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		transform: translate3d(0, calc(100% - 7px), 0);
	}
}

@keyframes a-sweep {
	from {
		transform: translateX(-100%);
	}

	to {
		transform: translateX(100%);
	}
}

@keyframes a-sweep-once {
	0% {
		opacity: 1;
		transform: translateX(-100%);
	}

	100% {
		opacity: 1;
		transform: translateX(260%);
	}
}

@keyframes a-print {
	from {
		clip-path: inset(-2px 100% -2px -2px);
		opacity: 0.4;
	}

	to {
		clip-path: inset(-2px -2px -2px -2px);
		opacity: 1;
	}
}

@keyframes a-trace {
	0% {
		--a-ang: 0deg;
		opacity: 0;
	}

	10%,
	82% {
		opacity: 1;
	}

	100% {
		--a-ang: 360deg;
		opacity: 0;
	}
}

/* Лампа загорается с неоновым мерцанием. */
@keyframes a-lamp {
	0% {
		opacity: 0;
	}

	18% {
		opacity: 1;
	}

	30% {
		opacity: 0.25;
	}

	46% {
		opacity: 1;
	}

	58% {
		opacity: 0.5;
	}

	72%,
	100% {
		opacity: 1;
	}
}

@keyframes a-lock {
	0% {
		opacity: 0;
	}

	25% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

@keyframes a-flash {
	0% {
		opacity: 0;
	}

	20% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

@keyframes a-flicker {
	0%,
	100% {
		opacity: 0.55;
	}

	46% {
		opacity: 0.2;
	}

	48% {
		opacity: 0.55;
	}

	50% {
		opacity: 0.3;
	}

	52% {
		opacity: 0.55;
	}
}

/* Без движения: ничего не прячем и не крутим. */
html.reduced-motion .a-bg__scan {
	display: none;
}

@media print {
	.a-bg__glow,
	.a-bg__grid,
	.a-bg__scan {
		display: none;
	}
}
