/* ==========================================================================
   Раздел «Кейсы ROBIN — истории успеха» (page-cases.php).

   Визуальный язык — как у /ai-communications/, /platform/,
   /corporate-assistants/ (DESIGN.md / Monad): пергамент #f6f3f1, рамки
   Ash #cecac8 без теней, моно-подписи капсом, pill-узлы, заголовки основным
   шрифтом с акцентным словом. Семантика цвета схем: серый — вход,
   бордовый #a30c33 — обработка ROBIN, красный #c52229 — результат.
   Отдельный файл, а не style.css: тот правится параллельно.
   ========================================================================== */

.rcs {
	--rcm-parchment: #f6f3f1;
	--rcm-paper: #fbfaf9;
	--rcm-ash: #cecac8;
	--rcm-ink: #242424;
	--rcm-graphite: #4e4d4d;
	--rcm-smoke: #797776;
	--rcm-accent: #a30c33;
	--rcm-result: #c52229;
	--rcm-result-soft: #eab0b2;
	--rcm-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--rcs-ease: cubic-bezier(.2, .7, .2, 1);
	color: var(--rcm-ink);
}

/* --- Общие элементы ------------------------------------------------------- */
.rcs-eyebrow {
	display: inline-block;
	font-family: var(--rcm-mono);
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: var(--rcm-accent);
}
.rcs-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 48px;
	margin-bottom: 36px;
}
.rcs .rcs-title {
	max-width: 46rem;
	margin: 12px 0 0;
	font-family: var(--robin-font-head);
	font-weight: 400;
	font-size: 40px;
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: var(--rcm-ink);
}
.rcs-title em { font-style: normal; color: var(--rcm-accent); }
.rcs .rcs-title--center { margin-left: auto; margin-right: auto; text-align: center; }
.rcs .rcs-lead {
	max-width: 26rem;
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	letter-spacing: -0.023em;
	color: var(--rcm-graphite);
}
.rcs-btn-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 22px;
	padding: 0 7px;
	border-radius: 9999px;
	background: rgba(255, 255, 255, .22);
	font-family: var(--rcm-mono);
	font-size: 12px;
}
.rcs-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 14px;
	font-weight: 500;
	color: var(--rcm-accent);
	cursor: pointer;
	transition: gap .2s var(--rcs-ease), color .2s ease;
}
.rcs-link:hover { gap: 10px; color: var(--rcm-result); }
.rcs-link--muted { color: var(--rcm-smoke); }
.rcs-link--muted:hover { color: var(--rcm-ink); }

/* Появление при прокрутке (класс .is-in ставит JS) */
.rcs [data-reveal] {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .6s var(--rcs-ease) var(--d, 0ms), transform .6s var(--rcs-ease) var(--d, 0ms);
}
.rcs [data-reveal].is-in { opacity: 1; transform: none; }
.no-js .rcs [data-reveal] { opacity: 1; transform: none; }

/* --- Hero: схема «Отрасли → ROBIN» ----------------------------------------- */
.rcs-map {
	position: relative;
	margin-left: 0;
	margin-right: 0;
	font-family: var(--rcm-mono);
}
.rcs-map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.rcs-map-svg text { font-family: var(--rcm-mono); }
.rcs-map-caption { font-size: 11px; fill: var(--rcm-smoke); }
.rcs-map-ring {
	fill: none;
	stroke: var(--rcm-accent);
	stroke-width: 1.1;
	stroke-dasharray: 2 8;
	stroke-linecap: round;
	opacity: .55;
	transform-box: fill-box;
	transform-origin: center;
	animation: rcs-spin 40s linear infinite;
}
.rcs-map-line { fill: none; stroke: var(--rcm-ash); stroke-width: 1.2; transition: stroke .3s ease; }
.rcs-map-line--live {
	stroke: var(--rcm-smoke);
	stroke-dasharray: 2 9;
	stroke-linecap: round;
	opacity: .55;
	animation: rcs-dash 1.8s linear infinite;
}
.rcs-map-dot { fill: var(--rcm-smoke); opacity: .8; }
.rcs-map-link.is-active .rcs-map-line { stroke: var(--rcm-result-soft); }
.rcs-map-link.is-active .rcs-map-line--live { stroke: var(--rcm-result); opacity: 1; }
.rcs-map-link.is-active .rcs-map-dot { fill: var(--rcm-result); opacity: 1; }

.rcs-map-node { cursor: pointer; }
.rcs-map-pill {
	fill: var(--rcm-parchment);
	stroke: var(--rcm-ash);
	stroke-width: 1;
	transition: fill .25s ease, stroke .25s ease;
}
.rcs-map-icon { color: var(--rcm-smoke); transition: color .25s ease; }
.rcs-map-label { font-size: 12.5px; letter-spacing: -0.02em; fill: var(--rcm-ink); }
.rcs-map-count { font-size: 12px; fill: var(--rcm-smoke); transition: fill .25s ease; }
.rcs-map-node:hover .rcs-map-pill,
.rcs-map-node:focus-visible .rcs-map-pill { fill: var(--rcm-paper); stroke: var(--rcm-accent); }
.rcs-map-node:hover .rcs-map-icon { color: var(--rcm-accent); }
.rcs-map-node.is-active .rcs-map-pill { fill: var(--rcm-paper); stroke: var(--rcm-result); stroke-width: 1.4; }
.rcs-map-node.is-active .rcs-map-icon,
.rcs-map-node.is-active .rcs-map-count { color: var(--rcm-result); fill: var(--rcm-result); }

/* Ядро-тикер: на десктопе — поверх центра SVG (hub 420…780 по x из 1200) */
.rcs-ticker {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	max-width: 380px;
	margin: 0 auto;
	padding: 18px 20px 16px;
	border: 1px solid var(--rcm-accent);
	border-radius: 28px;
	background: radial-gradient(circle at 50% 0%, rgba(197, 34, 41, .1), transparent 70%), var(--rcm-paper);
	overflow: hidden;
	text-align: center;
}
@media (min-width: 1024px) {
	.rcs-ticker {
		position: absolute;
		left: 50%;
		top: 50%;
		width: 30%;
		max-width: none;
		transform: translate(-50%, -50%);
	}
}
.rcs-ticker-kicker {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--rcm-smoke);
}
.rcs-ticker-kicker img { width: 20px; height: auto; }
.rcs-ticker-pos { padding-left: 8px; border-left: 1px solid var(--rcm-ash); letter-spacing: 0; }
.rcs-ticker-body { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 150px; justify-content: center; }
.rcs-ticker-body.is-swap { animation: rcs-swap .5s var(--rcs-ease); }
.rcs-ticker-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
}
.rcs-ticker-logo img { max-width: 150px; max-height: 44px; object-fit: contain; }
.rcs-ticker-metric {
	font-family: var(--robin-font-head);
	font-size: 26px;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--rcm-result);
}
.rcs-ticker-title {
	font-family: var(--robin-font-head, inherit);
	font-size: 13px;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--rcm-graphite);
}
.rcs-ticker-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rcs-ticker-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--rcm-ash);
	border-radius: 9999px;
	background: var(--rcm-parchment);
	color: var(--rcm-graphite);
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease;
}
.rcs-ticker-btn:hover { border-color: var(--rcm-accent); color: var(--rcm-accent); }
.rcs-ticker-more {
	padding: 7px 14px;
	border: 1px solid var(--rcm-ash);
	border-radius: 9999px;
	background: var(--rcm-parchment);
	font-family: var(--rcm-mono);
	font-size: 11px;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--rcm-ink);
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.rcs-ticker-more:hover { border-color: var(--rcm-accent); background: var(--rcm-accent); color: #fff; }
.rcs-ticker-timer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--rcm-accent);
	transform: scaleX(0);
	transform-origin: left center;
}
.rcs-ticker-timer.is-running { animation: rcs-timer var(--tick, 4.5s) linear forwards; }
.rcs-ticker:hover .rcs-ticker-timer { animation-play-state: paused; }

/* Мобильная версия схемы */
.rcs-map-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}
.rcs-map-mpill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--rcm-ash);
	border-radius: 9999px;
	font-size: 12px;
	letter-spacing: -0.02em;
	color: var(--rcm-ink);
	transition: border-color .2s ease, color .2s ease;
}
.rcs-map-mpill svg { color: var(--rcm-smoke); }
.rcs-map-mpill b { font-weight: 400; color: var(--rcm-smoke); }
.rcs-map-mpill.is-active { border-color: var(--rcm-result); }
.rcs-map-mpill.is-active svg,
.rcs-map-mpill.is-active b { color: var(--rcm-result); }

/* --- Лента логотипов ------------------------------------------------------- */
.rcs-logos {
	position: relative;
	overflow: hidden;
	padding: 18px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rcs-logos-track {
	display: flex;
	align-items: center;
	gap: 56px;
	width: max-content;
	animation: rcs-marquee 50s linear infinite;
}
.rcs-logos:hover .rcs-logos-track { animation-play-state: paused; }
.rcs-logos-item {
	flex: none;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.rcs-logos-item img {
	display: block;
	height: 34px;
	width: auto;
	max-width: 150px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .55;
	transition: filter .3s ease, opacity .3s ease, transform .3s var(--rcs-ease);
}
.rcs-logos-item:hover img,
.rcs-logos-item:focus-visible img { filter: none; opacity: 1; transform: scale(1.06); }

/* --- Результаты в цифрах --------------------------------------------------- */
.rcs-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.rcs-metric {
	display: flex;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var(--rcm-ash);
	border-radius: 24px;
	background: var(--rcm-paper);
	transition: border-color .25s ease, transform .35s var(--rcs-ease), opacity .6s var(--rcs-ease) var(--d, 0ms);
}
.rcs-metric:hover { border-color: var(--rcm-result-soft); }
.rcs-metric-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 64px; }
.rcs-metric-idx { font-family: var(--rcm-mono); font-size: 12px; color: var(--rcm-accent); }
.rcs-metric-value {
	margin-top: 20px;
	font-family: var(--robin-font-head);
	font-size: 38px;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--rcm-result);
	font-variant-numeric: tabular-nums;
}
.rcs-metric-label {
	margin-top: 10px;
	font-family: var(--rcm-mono);
	font-size: 12px;
	line-height: 1.35;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: var(--rcm-ink);
}
.rcs .rcs-metric-note {
	margin: 14px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--rcm-ash);
	font-size: 13.5px;
	line-height: 1.5;
	letter-spacing: -0.02em;
	color: var(--rcm-graphite);
}

/* мини-инфографика метрик */
.rcs-metric-viz { color: var(--rcm-accent); }
.rcs-viz-inds { display: grid; grid-template-columns: repeat(5, 22px); gap: 4px; }
.rcs-viz-inds span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 1px solid var(--rcm-ash);
	border-radius: 7px;
	color: var(--rcm-ash);
	transition: color .3s ease, border-color .3s ease, background-color .3s ease;
	transition-delay: calc(var(--i) * 110ms + 300ms);
}
.is-in .rcs-viz-inds span { color: var(--rcm-accent); border-color: var(--rcm-result-soft); background: #fff; }

.rcs-viz-clock,
.rcs-viz-ring { width: 64px; height: 64px; }
.rcs-viz-track { fill: none; stroke: var(--rcm-ash); stroke-width: 3; }
.rcs-viz-arc {
	fill: none;
	stroke: var(--rcm-result);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	transition: stroke-dashoffset 1.6s var(--rcs-ease) .3s;
}
.rcs-viz-clock .rcs-viz-arc { transform: rotate(-90deg); transform-origin: 32px 32px; }
.is-in .rcs-viz-clock .rcs-viz-arc,
.is-in .rcs-viz-ring .rcs-viz-arc { stroke-dashoffset: 0; }
.rcs-viz-hand {
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	transform-origin: 32px 32px;
}
.is-in .rcs-viz-hand { animation: rcs-spin 6s linear infinite; }
.rcs-viz-check {
	fill: none;
	stroke: var(--rcm-result);
	stroke-width: 3.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	transition: stroke-dashoffset .6s var(--rcs-ease) 1.7s;
}
.is-in .rcs-viz-check { stroke-dashoffset: 0; }

.rcs-viz-time { width: 120px; padding-top: 14px; }
.rcs-viz-time-bar {
	position: relative;
	display: block;
	height: 6px;
	border-radius: 9999px;
	background: var(--rcm-ash);
	overflow: hidden;
}
.rcs-viz-time-bar i {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--rcm-result-soft) 0 35%, var(--rcm-result) 35%);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 1.4s var(--rcs-ease) .3s;
}
.is-in .rcs-viz-time-bar i { transform: scaleX(1); }
.rcs-viz-time-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	font-family: var(--rcm-mono);
	font-size: 10px;
	color: var(--rcm-smoke);
}
.rcs-viz-time-labels b { font-weight: 400; }
.rcs-viz-time-labels b:last-child { color: var(--rcm-result); }

/* --- Отрасли --------------------------------------------------------------- */
.rcs-inds {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px 64px;
	padding: 56px;
	border-radius: 24px;
	background: var(--rcm-parchment);
}
.rcs-inds-head {
	align-self: start;
	position: sticky;
	top: 112px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.rcs .rcs-inds-stat { display: flex; align-items: baseline; gap: 14px; margin: 0; }
.rcs-inds-stat-num {
	font-family: var(--robin-font-head);
	font-size: 56px;
	line-height: 1;
	color: var(--rcm-accent);
}
.rcs-inds-stat-label {
	padding-left: 14px;
	border-left: 1px solid var(--rcm-ash);
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: var(--rcm-graphite);
}
.rcs .rcs-inds-title {
	margin: 0;
	font-family: var(--robin-font-head);
	font-weight: 400;
	font-size: 45px;
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: var(--rcm-ink);
}
.rcs-inds-title em { font-family: var(--rcm-mono); font-style: normal; letter-spacing: -0.01em; color: var(--rcm-accent); }
.rcs .rcs-inds-hint {
	margin: 0;
	font-family: var(--rcm-mono);
	font-size: 12px;
	line-height: 1.5;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: var(--rcm-smoke);
}
.rcs-inds-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rcm-ash); }
.rcs-inds-item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 32px;
	gap: 18px;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid var(--rcm-ash);
	color: inherit;
	transition: padding .25s var(--rcs-ease), opacity .6s var(--rcs-ease), transform .6s var(--rcs-ease);
}
.rcs-inds-item:hover { padding-left: 8px; }
.rcs-inds-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--rcm-ash);
	border-radius: 9999px;
	color: var(--rcm-accent);
	transition: background-color .2s ease, border-color .2s ease;
}
.rcs-inds-item:hover .rcs-inds-icon { background: var(--rcm-paper); border-color: var(--rcm-accent); }
.rcs-inds-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rcs-inds-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rcs-inds-name {
	font-family: var(--robin-font-head);
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--rcm-ink);
}
.rcs-inds-num { font-family: var(--rcm-mono); font-size: 14px; color: var(--rcm-accent); }
.rcs-inds-bar {
	display: block;
	height: 4px;
	border-radius: 9999px;
	background: rgba(206, 202, 200, .55);
	overflow: hidden;
}
.rcs-inds-bar i {
	display: block;
	width: var(--w);
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--rcm-accent), var(--rcm-result));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 1.1s var(--rcs-ease) .2s;
}
.is-in .rcs-inds-bar i { transform: scaleX(1); }
.rcs-inds-scope { font-size: 13.5px; line-height: 1.45; letter-spacing: -0.02em; color: var(--rcm-graphite); }
.rcs-inds-go {
	display: flex;
	justify-content: center;
	color: var(--rcm-ash);
	transition: color .2s ease, transform .25s var(--rcs-ease);
}
.rcs-inds-item:hover .rcs-inds-go { color: var(--rcm-accent); transform: translateX(4px); }

/* --- Истории успеха (bento) ------------------------------------------------ */
.rcs-bento {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.rcs-story {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 26px;
	border: 1px solid var(--rcm-ash);
	border-radius: 24px;
	background: #fff;
	transition: border-color .25s ease, box-shadow .3s ease, opacity .6s var(--rcs-ease) var(--d, 0ms), transform .6s var(--rcs-ease) var(--d, 0ms);
}
.rcs-story:hover { border-color: var(--rcm-result-soft); box-shadow: 0 30px 60px -40px rgba(163, 12, 51, .35); }
.rcs-story--lg { grid-column: span 2; padding: 32px; }
.rcs-story-head { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.rcs-story-logo img { display: block; max-height: 32px; max-width: 120px; width: auto; object-fit: contain; }
.rcs-story-company {
	padding-left: 12px;
	border-left: 1px solid var(--rcm-ash);
	font-family: var(--rcm-mono);
	font-size: 11px;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--rcm-smoke);
}
.rcs-story-metric {
	font-family: var(--robin-font-head);
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--rcm-result);
}
.rcs-story--lg .rcs-story-metric { font-size: 52px; }
.rcs .rcs-story-title {
	margin: 0;
	font-family: var(--robin-font-head);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--rcm-ink);
}
.rcs-story--lg .rcs-story-title { font-size: 22px; }

.rcs-viz {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	border: 1px dashed var(--rcm-ash);
	border-radius: 18px;
	background: var(--rcm-parchment);
}
.rcs-viz-cap,
.rcs-viz-unit {
	font-family: var(--rcm-mono);
	font-size: 11px;
	line-height: 1.35;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--rcm-smoke);
}

/* до / после */
.rcs-ba { display: flex; flex-direction: column; gap: 8px; }
.rcs-ba-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 36px; align-items: center; gap: 10px; }
.rcs-ba-k { font-family: var(--rcm-mono); font-size: 11px; text-transform: uppercase; color: var(--rcm-smoke); }
.rcs-ba-row b { font-family: var(--rcm-mono); font-weight: 500; font-size: 14px; text-align: right; color: var(--rcm-graphite); }
.rcs-ba-row--after b { color: var(--rcm-result); }
.rcs-ba-bar { display: block; height: 10px; border-radius: 9999px; background: rgba(206, 202, 200, .45); overflow: hidden; }
.rcs-ba-bar i {
	display: block;
	width: var(--w);
	height: 100%;
	border-radius: inherit;
	background: var(--rcm-ash);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 1.1s var(--rcs-ease) .2s;
}
.rcs-ba-row--after .rcs-ba-bar i { background: var(--rcm-result); transition-delay: .9s; }
.is-in .rcs-ba-bar i { transform: scaleX(1); }

/* часть рабочего дня */
.rcs-day { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.rcs-day span {
	padding: 10px 0 6px;
	border-radius: 8px;
	background: rgba(206, 202, 200, .45);
	font-family: var(--rcm-mono);
	font-size: 9px;
	text-align: center;
	color: var(--rcm-smoke);
	transition: background-color .35s ease, color .35s ease;
	transition-delay: calc(var(--i) * 90ms + 300ms);
}
.is-in .rcs-day span.is-mark { background: var(--rcm-result); color: #fff; }

/* кольцо доли */
.rcs-ringviz { display: flex; justify-content: center; }
.rcs-ringviz svg { width: 110px; height: 110px; }
.rcs-ringviz .rcs-viz-track { stroke-width: 9; }
.rcs-ringviz .rcs-viz-arc { stroke-width: 9; }
.is-in .rcs-ringviz .rcs-viz-arc { stroke-dashoffset: calc(100 - var(--v)); }
.rcs-ringviz text { font-family: var(--robin-font-head); font-size: 22px; fill: var(--rcm-result); }

/* сетка роботов */
.rcs-robots { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.rcs-robots span {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	border-radius: 7px;
	color: var(--rcm-ash);
	background: #fff;
	transform: scale(.6);
	opacity: .4;
	transition: transform .4s var(--rcs-ease), opacity .4s ease, color .4s ease;
	transition-delay: calc(var(--i) * 35ms + 200ms);
}
.is-in .rcs-robots span { transform: none; opacity: 1; color: var(--rcm-accent); }

/* люди: обученные + автономные разработчики */
.rcs-people { display: grid; grid-template-columns: repeat(33, minmax(0, 1fr)); gap: 4px; }
.rcs-people span {
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--rcm-ash);
	transform: scale(.3);
	transition: transform .35s var(--rcs-ease), background-color .35s ease;
	transition-delay: calc(var(--i) * 8ms + 200ms);
}
.is-in .rcs-people span { transform: none; background: var(--rcm-result-soft); }
.is-in .rcs-people span.is-mark { background: var(--rcm-result); box-shadow: 0 0 0 3px rgba(197, 34, 41, .15); }

.rcs-story-flow { display: flex; flex-direction: column; gap: 12px; }
.rcs-story--lg .rcs-story-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; }
.rcs-story-step { position: relative; padding-left: 16px; border-left: 2px solid var(--rcm-ash); }
.rcs-story-step--robot { border-left-color: var(--rcm-accent); }
.rcs-story-k,
.rcs-pipe-k {
	display: block;
	margin-bottom: 6px;
	font-family: var(--rcm-mono);
	font-size: 11px;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--rcm-smoke);
}
.rcs-story-step--robot .rcs-story-k { color: var(--rcm-accent); }
.rcs .rcs-story-step p { margin: 0; font-size: 14px; line-height: 1.5; letter-spacing: -0.02em; color: var(--rcm-graphite); }
.rcs-story-step ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rcs-story-step li { display: flex; gap: 8px; font-size: 14px; line-height: 1.45; letter-spacing: -0.02em; color: var(--rcm-graphite); }
.rcs-story-step li svg { flex: none; margin-top: 3px; color: var(--rcm-result); }
.rcs-story-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rcm-ash); }

/* --- Каталог --------------------------------------------------------------- */
.rcs-search {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 360px;
	padding: 0 16px;
	border: 1px solid var(--rcm-ash);
	border-radius: 9999px;
	background: #fff;
	color: var(--rcm-smoke);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.rcs-search:focus-within { border-color: var(--rcm-accent); box-shadow: 0 0 0 4px rgba(163, 12, 51, .08); }
.rcs-search input {
	flex: 1;
	min-width: 0;
	height: 46px;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 14px;
	color: var(--rcm-ink);
}
.rcs-search input::placeholder { color: var(--rcm-smoke); }

.rcs-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.rcs-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px 8px 14px;
	border: 1px solid var(--rcm-ash);
	border-radius: 9999px;
	background: var(--rcm-paper);
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--rcm-graphite);
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s var(--rcs-ease);
}
.rcs-chip svg { color: var(--rcm-smoke); transition: color .2s ease; }
.rcs-chip:hover { border-color: var(--rcm-result-soft); color: var(--rcm-ink); }
.rcs-chip:active { transform: scale(.97); }
.rcs-chip-num {
	min-width: 24px;
	padding: 2px 6px;
	border-radius: 9999px;
	background: rgba(206, 202, 200, .5);
	font-family: var(--rcm-mono);
	font-size: 11px;
	text-align: center;
	color: var(--rcm-graphite);
}
.rcs-chip.is-active { border-color: var(--rcm-accent); background: var(--rcm-accent); color: #fff; }
.rcs-chip.is-active svg { color: #fff; }
.rcs-chip.is-active .rcs-chip-num { background: rgba(255, 255, 255, .2); color: #fff; }

.rcs .rcs-found {
	min-height: 18px;
	margin: 18px 0 14px;
	font-family: var(--rcm-mono);
	font-size: 12px;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--rcm-smoke);
}

.rcs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rcs-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	border: 1px solid var(--rcm-ash);
	border-radius: 22px;
	background: #fff;
	transition: border-color .25s ease, transform .3s var(--rcs-ease), box-shadow .3s ease;
}
.rcs-card[hidden] { display: none; }
.rcs-card:hover { border-color: var(--rcm-result-soft); transform: translateY(-3px); box-shadow: 0 24px 48px -36px rgba(36, 36, 36, .35); }
.rcs-card.is-entering { animation: rcs-card-in .45s var(--rcs-ease) both; animation-delay: var(--d, 0ms); }
.rcs-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 40px; }
.rcs-card-logo { display: flex; align-items: center; min-height: 40px; }
.rcs-card-logo img { max-height: 36px; max-width: 140px; width: auto; object-fit: contain; }
.rcs-card-logo--text { gap: 10px; }
.rcs-card-ico {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--rcm-ash);
	border-radius: 9999px;
	background: var(--rcm-parchment);
	color: var(--rcm-accent);
}
.rcs-card-company { font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; color: var(--rcm-ink); }
.rcs-nda {
	flex: none;
	padding: 3px 8px;
	border: 1px dashed var(--rcm-ash);
	border-radius: 9999px;
	font-family: var(--rcm-mono);
	font-size: 10px;
	letter-spacing: .04em;
	color: var(--rcm-smoke);
}
.rcs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rcs-tag {
	padding: 3px 9px;
	border-radius: 9999px;
	background: var(--rcm-parchment);
	font-family: var(--rcm-mono);
	font-size: 10.5px;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--rcm-graphite);
}
.rcs .rcs-card-title {
	margin: 0;
	font-family: var(--robin-font-head);
	font-weight: 400;
	font-size: 18px;
	line-height: 1.28;
	letter-spacing: -0.02em;
	color: var(--rcm-ink);
}
.rcs-card-sub { margin-top: -6px; font-size: 13px; color: var(--rcm-smoke); }
.rcs-card-metric {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 14px;
	background: rgba(197, 34, 41, .06);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--rcm-result);
}
.rcs-card-metric svg { flex: none; margin-top: 2px; }
.rcs .rcs-card-geo {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	font-size: 13.5px;
	line-height: 1.5;
	letter-spacing: -0.02em;
	color: var(--rcm-graphite);
}
.rcs-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.rcs-tech {
	padding: 4px 10px;
	border: 1px dashed var(--rcm-ash);
	border-radius: 9999px;
	background: var(--rcm-paper);
	font-family: var(--rcm-mono);
	font-size: 10.5px;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--rcm-graphite);
}
.rcs-tech--more { color: var(--rcm-accent); }
.rcs-card-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding: 12px 0 0;
	border: 0;
	border-top: 1px solid var(--rcm-ash);
	background: none;
	font-size: 14px;
	font-weight: 500;
	color: var(--rcm-accent);
	text-align: left;
	cursor: pointer;
	transition: gap .2s var(--rcs-ease), color .2s ease;
}
.rcs-card-more:hover { gap: 10px; color: var(--rcm-result); }

.rcs-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 48px 16px;
	border: 1px dashed var(--rcm-ash);
	border-radius: 22px;
	text-align: center;
	color: var(--rcm-graphite);
}
.rcs-empty[hidden] { display: none; }
.rcs-empty-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--rcm-ash);
	border-radius: 9999px;
	color: var(--rcm-accent);
}
.rcs .rcs-empty p { margin: 0; max-width: 28rem; font-size: 14px; }

.rcs-showmore {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px 12px 22px;
	border: 1px solid var(--rcm-accent);
	border-radius: 9999px;
	background: transparent;
	font-size: 14px;
	font-weight: 500;
	color: var(--rcm-accent);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.rcs-showmore[hidden] { display: none; }
.rcs-showmore:hover { background: var(--rcm-accent); color: #fff; }
.rcs-showmore-num {
	min-width: 26px;
	padding: 2px 7px;
	border-radius: 9999px;
	background: rgba(163, 12, 51, .1);
	font-family: var(--rcm-mono);
	font-size: 12px;
	text-align: center;
	transition: background-color .2s ease;
}
.rcs-showmore:hover .rcs-showmore-num { background: rgba(255, 255, 255, .2); }
.rcs-showmore--sm { padding: 10px 12px 10px 18px; }

/* --- Модальное окно -------------------------------------------------------- */
.rcs-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rcs-modal[hidden] { display: none; }
.rcs-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(36, 36, 36, .45);
	backdrop-filter: blur(4px);
	animation: rcs-fade .25s ease both;
}
.rcs-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 32px;
	border: 1px solid var(--rcm-ash);
	border-radius: 28px;
	background: var(--rcm-parchment);
	animation: rcs-pop .35s var(--rcs-ease) both;
}
.rcs-modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--rcm-ash);
	border-radius: 9999px;
	background: #fff;
	color: var(--rcm-graphite);
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease, transform .3s var(--rcs-ease);
}
.rcs-modal-close:hover { border-color: var(--rcm-accent); color: var(--rcm-accent); transform: rotate(90deg); }
.rcs-modal-head { display: flex; align-items: center; gap: 16px; padding-right: 48px; }
.rcs-modal-logo:empty { display: none; }
.rcs-modal-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border: 1px solid var(--rcm-ash);
	border-radius: 14px;
	background: #fff;
}
.rcs-modal-logo img { max-height: 32px; max-width: 120px; object-fit: contain; }
.rcs-modal-company { margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--rcm-ink); }
.rcs .rcs-modal-title {
	margin: 20px 0 0;
	font-family: var(--robin-font-head);
	font-weight: 400;
	font-size: 26px;
	line-height: 1.2;
	letter-spacing: -0.025em;
	color: var(--rcm-ink);
}
.rcs .rcs-modal-geo { margin: 12px 0 0; font-size: 14.5px; line-height: 1.55; letter-spacing: -0.02em; color: var(--rcm-graphite); }

.rcs-pipe { position: relative; margin: 24px 0 0; padding: 0; list-style: none; }
.rcs-pipe::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 10px;
	bottom: 24px;
	width: 2px;
	background: linear-gradient(var(--rcm-ash), var(--rcm-accent) 50%, var(--rcm-result));
}
.rcs-pipe-step { position: relative; padding: 0 0 20px 32px; animation: rcs-card-in .45s var(--rcs-ease) both; }
.rcs-pipe-step:nth-child(2) { animation-delay: .1s; }
.rcs-pipe-step:nth-child(3) { animation-delay: .2s; }
.rcs-pipe-step[hidden] { display: none; }
.rcs-pipe-dot {
	position: absolute;
	left: 0;
	top: 2px;
	width: 16px;
	height: 16px;
	border: 2px solid var(--rcm-ash);
	border-radius: 50%;
	background: var(--rcm-parchment);
}
.rcs-pipe-step--robot .rcs-pipe-dot { border-color: var(--rcm-accent); }
.rcs-pipe-step--result .rcs-pipe-dot { border-color: var(--rcm-result); background: var(--rcm-result); box-shadow: 0 0 0 5px rgba(197, 34, 41, .14); }
.rcs-pipe-step--robot .rcs-pipe-k { color: var(--rcm-accent); }
.rcs-pipe-step--result .rcs-pipe-k { color: var(--rcm-result); }
.rcs .rcs-pipe-step p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--rcm-graphite); }
.rcs-pipe-step ul { margin: 0; padding: 0; list-style: none; counter-reset: rcs-step; }
.rcs-pipe-step li {
	position: relative;
	display: flex;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--rcm-ash);
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--rcm-graphite);
}
.rcs-pipe-step li:last-child { border-bottom: 0; }
.rcs-pipe-step li::before {
	counter-increment: rcs-step;
	content: counter(rcs-step, decimal-leading-zero);
	flex: none;
	padding-top: 2px;
	font-family: var(--rcm-mono);
	font-size: 12px;
	color: var(--rcm-accent);
}
.rcs-pipe-metric {
	display: inline-block;
	font-family: var(--robin-font-head);
	font-size: 30px;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--rcm-result);
}
.rcs-modal-stack { padding-top: 16px; border-top: 1px solid var(--rcm-ash); }
.rcs-modal-stack[hidden] { display: none; }
.rcs-modal-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 22px;
	padding: 11px 20px;
	border-radius: 9999px;
	background: var(--rcm-accent);
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	transition: background-color .2s ease;
}
.rcs-modal-link:hover { background: var(--rcm-result); color: #fff; }
.rcs-modal-link[hidden] { display: none; }

/* --- Видео-кейсы ----------------------------------------------------------- */
.rcs-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rcs-quote {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 26px;
	border: 1px solid var(--rcm-ash);
	border-radius: 24px;
	background: #fff;
	color: inherit;
	transition: border-color .25s ease, transform .3s var(--rcs-ease), opacity .6s var(--rcs-ease) var(--d, 0ms);
}
.rcs-quote:hover { border-color: var(--rcm-result-soft); }
.rcs-quote-ico { color: var(--rcm-result-soft); }
.rcs .rcs-quote-text {
	margin: 0;
	font-family: var(--robin-font-head);
	font-size: 19px;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: var(--rcm-ink);
}
.rcs-quote-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rcm-ash); }
.rcs-quote-play {
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	background: var(--rcm-accent);
	color: #fff;
}
.rcs-quote-play svg { fill: currentColor; margin-left: 2px; }
.rcs-quote-play::after {
	content: "";
	position: absolute;
	inset: -4px;
	border: 1px solid var(--rcm-accent);
	border-radius: inherit;
	opacity: 0;
}
.rcs-quote:hover .rcs-quote-play::after { animation: rcs-pulse 1.4s ease-out infinite; }
.rcs-quote-who { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--rcm-ink); }
.rcs-quote-meta { display: block; margin-top: 2px; font-family: var(--rcm-mono); font-size: 11px; text-transform: uppercase; color: var(--rcm-smoke); }

/* --- Анимации -------------------------------------------------------------- */
@keyframes rcs-spin { to { transform: rotate(360deg); } }
@keyframes rcs-dash { to { stroke-dashoffset: -44; } }
@keyframes rcs-timer { to { transform: scaleX(1); } }
@keyframes rcs-marquee { to { transform: translateX(-50%); } }
@keyframes rcs-swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rcs-card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rcs-fade { from { opacity: 0; } }
@keyframes rcs-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes rcs-pulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }

/* --- Адаптив --------------------------------------------------------------- */
@media (max-width: 1023px) {
	.rcs .rcs-title { font-size: 32px; }
	.rcs-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rcs-inds { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 32px; }
	.rcs-inds-head { position: static; gap: 20px; }
	.rcs .rcs-inds-title { font-size: 36px; }
	.rcs-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rcs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rcs-quotes { grid-template-columns: minmax(0, 1fr); }
	.rcs-ticker { margin-top: 8px; }
}
@media (max-width: 639px) {
	.rcs .rcs-title { font-size: 28px; }
	.rcs-head { margin-bottom: 24px; }
	.rcs-search { max-width: none; }
	.rcs-metrics,
	.rcs-bento,
	.rcs-grid { grid-template-columns: minmax(0, 1fr); }
	.rcs-story--lg { grid-column: auto; padding: 24px; }
	.rcs-story--lg .rcs-story-metric { font-size: 38px; }
	.rcs-story--lg .rcs-story-flow { grid-template-columns: minmax(0, 1fr); }
	.rcs-people { grid-template-columns: repeat(22, minmax(0, 1fr)); gap: 3px; }
	.rcs-inds { padding: 32px 20px; border-radius: 20px; }
	.rcs .rcs-inds-title { font-size: 30px; }
	.rcs-inds-item { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
	.rcs-inds-go { display: none; }
	.rcs-modal-dialog { padding: 24px 20px; border-radius: 22px; }
	.rcs .rcs-modal-title { font-size: 22px; }
	.rcs-logos-track { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	.rcs *,
	.rcs *::before,
	.rcs *::after {
		animation: none !important;
		transition: none !important;
	}
	.rcs [data-reveal] { opacity: 1; transform: none; }
	.rcs-logos-track { flex-wrap: wrap; justify-content: center; width: auto; }
	.rcs-logos-item[aria-hidden="true"] { display: none; }
}
