/* Twelve-slide presentation: original interaction and content, refreshed blue surfaces. */
:root {
	--bg: #f5f7ff;
	--paper: #edf2ff;
	--ink: #12213e;
	--muted: #5c6d8b;
	--line: #dbe4f8;
	--blue: #2348e5;
	--blue-d: #1633b1;
	--blue-t: #e8eeff;
}
.ld-top {
	background: #f9fbfff2;
}
.sl {
	background-image: radial-gradient(
		ellipse at 95% 20%,
		#e4ebff80,
		transparent 55%
	);
}
.hero-glow {
	opacity: 0.65;
}
.btn {
	border-radius: 11px;
}
.btn-primary {
	box-shadow:
		inset 0 1px 0 #ffffff40,
		0 5px 16px #2348e51a;
}
.device {
	box-shadow:
		0 20px 55px #15328420,
		inset 0 1px 0 #ffffff80;
	border-color: #d0dbf2;
}
.device--float {
	animation: none;
	transform: none;
}
.tv-card {
	position: relative;
	overflow: hidden;
	background: linear-gradient(125deg, #fff 50%, #edf2ff);
	box-shadow:
		inset 0 1px 0 #fff,
		0 2px 6px #14378605;
	transition: transform 0.15s;
}
.tv-card:after {
	content: "";
	position: absolute;
	right: -20px;
	bottom: -25px;
	width: 60px;
	height: 60px;
	border: 1px solid #2e50d8;
	border-radius: 13px;
	transform: rotate(35deg);
	opacity: 0.08;
	pointer-events: none;
}
.tv-card:active {
	transform: scale(0.97);
}
.tv-banner {
	box-shadow: inset 0 1px 0 #ffffff30;
}
.tv-top {
	background: #fff;
}
.tv-num {
	box-shadow: inset 0 1px 0 #ffffff30;
}
.card,
.feature-card,
.mockpanel {
	border-radius: 16px;
}
.ld-brand {
	color: #1634a8;
}
.metric {
	border-color: #dce5fa;
}
.hero-device {
	position: relative;
}
.hero-device:after {
	content: "Нажимайте на разделы — экран интерактивный";
	display: block;
	text-align: center;
	font: 500 11px / 1.5 var(--body);
	color: #6179ac;
	margin-top: 10px;
}
@media (prefers-reduced-motion: reduce) {
	*,
	*:before,
	*:after {
		animation: none !important;
		transition: none !important;
	}
}

.live-terminal {
	display: block;
	width: 100%;
	aspect-ratio: 9 / 16;
	border: 0;
	border-radius: 16px;
	background: #f7f9ff;
}
.hero-device .device {
	max-width: 360px;
}
.hero-device {
	flex-direction: column;
}
.hero-device:after {
	max-width: 360px;
	margin: 12px auto 0;
}
.pricing-columns {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 20px;
}
.pricing-card {
	display: flex;
	flex-direction: column;
	background: #ffffffd9;
	border: 1px solid var(--line);
	padding: 25px;
	border-radius: 18px;
}
.pricing-card h3 {
	font-size: 17px;
	color: var(--blue);
}
.pricing-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 22px;
	border-bottom: 1px dashed var(--line);
	padding: 14px 0;
	font-size: 14px;
}
.pricing-row:last-of-type {
	border-bottom: 0;
}
.pricing-name {
	flex: 1 1 auto;
	min-width: 0;
}
.pricing-name b {
	display: block;
	line-height: 1.45;
}
.pricing-price {
	margin-left: 28px;
	flex-shrink: 0;
}
.pricing-row strong {
	white-space: nowrap;
	color: var(--blue);
}
.pricing-row p {
	font-size: 12px;
	color: var(--muted);
	margin: 5px 0;
}
.pricing-row small {
	color: var(--muted);
}
.pricing-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	background: #0d1b33;
	color: white;
	border-radius: 16px;
	padding: 24px 28px;
	margin-top: 20px;
}
.pricing-total b {
	font-size: 32px;
}
#privacy-policy {
	position: fixed;
	top: 20px;
	bottom: 20px;
	width: min(calc(100% - 40px), 1280px);
	height: calc(100% - 40px);
	max-height: none;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	border: 1px solid #dce3f0;
	border-radius: 16px;
	padding: 0;
	color: #132340;
	background: white;
}
#privacy-policy::backdrop {
	background: #0d1b3399;
}
#privacy-policy header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 24px;
	border-bottom: 1px solid #dce3f0;
	position: sticky;
	top: 0;
	background: white;
	gap: 20px;
}
#privacy-policy h2 {
	font: 700 20px / 1.4 var(--body);
	margin: 0;
}
#close-privacy-policy {
	font-size: 30px;
	min-width: 44px;
	min-height: 44px;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	background: #eef2ff;
	color: #1d40d6;
}
#privacy-policy article {
	padding: 24px;
	max-width: 1100px;
	margin: auto;
	overflow-wrap: anywhere;
	line-height: 1.8;
}
#open-privacy-policy {
	text-decoration: underline;
	color: var(--blue);
}
@media (max-width: 700px) {
	.pricing-columns {
		grid-template-columns: 1fr;
	}
	.pricing-total {
		flex-wrap: wrap;
	}
	.pricing-total b {
		font-size: 26px;
	}
	#privacy-policy {
		inset: 10px;
		width: calc(100% - 20px);
		max-width: none;
		height: calc(100% - 20px);
	}
	#privacy-policy h2 {
		font-size: 16px;
	}
}
.demo-scaled-viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border-radius: 14px;
	background: #f7f9ff;
}
/* Читаемый экран миниатюры 360×640: масштабируем весь интерфейс,
   а не отдельный шрифт. Это правило действует только на лендинге. */
.demo-scaled-viewport iframe.live-terminal {
	position: absolute;
	left: 0;
	top: 0;
	width: 360px;
	height: 640px;
	max-width: none;
	aspect-ratio: auto;
	transform-origin: top left;
	border-radius: 0;
}
.pricing-card {
	box-shadow: 0 8px 26px #18305a08;
	padding: 28px 30px;
}
.pricing-card h3 {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.pricing-hint {
	font-size: 12px;
	color: var(--muted);
	margin: 10px 0 16px;
}
.pricing-work-list {
	list-style: none;
	padding: 0;
	margin: 14px 0 0;
}
.pricing-work-list li {
	position: relative;
	padding-left: 23px;
	margin: 8px 0;
	line-height: 1.5;
}
.pricing-work-list li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--blue);
	font-weight: 700;
}
.pricing-total small {
	font-size: 12px;
	color: #b8c7e3;
}
.pricing-total b {
	font-size: clamp(26px, 3.5vw, 46px);
	letter-spacing: -0.04em;
}
.pricing-row:last-child {
	border-bottom: 0;
}
.pricing-rows + .pricing-spacer,
.pricing-work-list + .pricing-spacer,
.pricing-hint + .pricing-spacer { margin-top: auto; }
#landing-demo-dialog {
	padding: 0;
	border: 0;
	border-radius: 20px;
	overflow: visible;
	width: min(54vh, calc(100vw - 50px));
	height: min(92vh, calc((100vw - 50px) * 16 / 9));
	max-width: none;
	max-height: none;
	background: #fff;
}
#landing-demo-dialog::backdrop {
	background: #101b38b8;
	backdrop-filter: blur(5px);
}
#landing-demo-dialog iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 20px;
}
#close-landing-demo {
	position: absolute;
	right: -18px;
	top: -16px;
	z-index: 2;
	border: 1px solid #dce3f0;
	border-radius: 50%;
	background: white;
	color: #1d40d6;
	width: 40px;
	height: 40px;
	font-size: 26px;
	cursor: pointer;
}
/* Full-page demo, not a floating modal. The landing URL and scroll are preserved. */
#landing-demo-dialog {
	position: fixed;
	inset: 0;
	margin: 0;
	width: 100%;
	height: 100dvh;
	border-radius: 0;
	background: #0b1222;
	z-index: 10000;
	overflow: hidden;
}
#landing-demo-dialog[hidden] {
	display: none;
}
#landing-demo-dialog iframe {
	height: calc(100% - 44px);
	margin-top: 44px;
	width: 100%;
	border-radius: 0;
}
#close-landing-demo {
	top: 0;
	left: 0;
	right: auto;
	width: auto;
	height: 44px;
	padding: 0 18px;
	border-radius: 0;
	border: 0;
	font: 600 14px var(--body);
	background: #0b1222;
	color: white;
}

/* --- Планшет 11″ и небольшие ноутбуки: слайд виден целиком ---------------
   На экранах шириной до 1400px каждый слайд должен помещаться по высоте
   без прокрутки: меньше вертикальные отступы, компактнее карточки,
   а высота макета терминала ограничена свободным местом экрана.
   На широком ПК вёрстка не меняется. */
@media (max-width: 1400px) {
	.sl {
		padding: 40px 24px 104px;
	}
	.h-xl {
		font-size: clamp(34px, 4.4vw, 58px);
	}
	.h-lg {
		font-size: clamp(25px, 2.9vw, 40px);
	}
	.lead {
		font-size: 15.5px;
		margin-bottom: 16px;
	}
	.lead--wide {
		margin-bottom: 18px;
	}
	.sl-in--hero,
	.sl-in--split,
	.sl-in--reverse {
		gap: 34px;
	}
	.sl-ghost {
		bottom: -2vh;
	}
	.cards-4 {
		gap: 14px;
	}
	.fcard {
		padding: 19px 17px;
		border-radius: 18px;
	}
	.fcard-ic {
		width: 38px;
		height: 38px;
		border-radius: 12px;
		margin-bottom: 12px;
	}
	.fcard-ic .ic {
		width: 19px;
		height: 19px;
	}
	.fcard b {
		font-size: 15.5px;
		margin-bottom: 6px;
	}
	.fcard p {
		font-size: 13.5px;
	}
	.bcard {
		padding: 15px 18px;
		margin-bottom: 12px;
		gap: 14px;
		border-radius: 18px;
	}
	.bcard-ic {
		width: 38px;
		height: 38px;
		flex: 0 0 38px;
	}
	.bcard b {
		font-size: 15.5px;
		margin-bottom: 4px;
	}
	.bcard p {
		font-size: 13.5px;
		margin-bottom: 7px;
	}
	.bcard-hl {
		font-size: 14px;
	}
	.step {
		padding: 30px 18px 20px;
	}
	.steps {
		gap: 14px;
		margin-bottom: 22px;
	}
	.step b {
		font-size: 15.5px;
	}
	.step p {
		font-size: 13.5px;
	}
	.chips {
		gap: 8px;
		margin-bottom: 20px;
	}
	.chip {
		padding: 7px 13px;
		font-size: 12.5px;
	}
	.metrics {
		gap: 10px;
	}
	.metric {
		padding: 12px 14px;
		border-radius: 14px;
	}
	.metric b {
		font-size: 21px;
	}
	.metric span {
		font-size: 11.5px;
	}
	.adv-cols {
		gap: 16px;
	}
	.adv-col {
		padding: 14px 18px 8px;
	}
	.adv-col li {
		padding: 6px 0;
		gap: 10px;
	}
	.adv-col li b {
		font-size: 14.5px;
	}
	.adv-col li span span {
		font-size: 12.5px;
		line-height: 1.45;
	}
	.center {
		margin-top: 10px;
	}
	.mockpanel {
		padding: 14px 16px;
		margin-bottom: 14px;
	}
	.mockrow {
		padding: 6px 0;
	}
	.mockrow b {
		font-size: 14px;
	}
	.mockpanel-actions {
		margin-top: 10px;
	}
	.note-line {
		margin-top: 16px;
		font-size: 13px;
	}
	.lead-form {
		padding: 16px 18px;
	}
	.lead-form h3 {
		font-size: 17px;
	}
	.form-sub {
		margin-bottom: 10px;
		font-size: 12.5px;
	}
	.field {
		margin-bottom: 6px;
	}
	.field > span {
		margin-bottom: 5px;
		font-size: 12.5px;
	}
	.field input,
	.field textarea {
		padding: 9px 12px;
		font-size: 14px;
		border-radius: 12px;
	}
	.field textarea {
		min-height: 50px;
	}
	.f-row {
		gap: 10px;
	}
	.form-note {
		margin: 8px 0 0;
		font-size: 12.5px;
	}
	.form-legal {
		margin: 8px 0 0;
		font-size: 11.5px;
	}
	.contact-person {
		margin-bottom: 8px;
	}
	.contact-links {
		gap: 10px;
	}
	.clink {
		padding: 10px 16px;
		font-size: 14px;
	}
	.eyebrow {
		margin-bottom: 12px;
		font-size: 10.5px;
	}
	.h-lg {
		margin-bottom: 10px;
	}
	.chips {
		margin-bottom: 14px;
	}
	.btn-lg {
		min-height: 44px;
		font-size: 15px;
	}
	.form-legal {
		margin: 6px 0 0;
	}
	/* Слайд со сметой */
	.pricing-card {
		padding: 18px 20px;
	}
	.pricing-hint {
		margin: 6px 0 10px;
		font-size: 11.5px;
	}
	.pricing-row {
		padding: 9px 0;
		font-size: 13.5px;
	}
	.pricing-row p {
		font-size: 11.5px;
		margin: 3px 0;
	}
	.pricing-work-list {
		margin: 8px 0;
	}
	.pricing-work-list li {
		margin: 4px 0;
	}
	.pricing-total {
		padding: 14px 20px;
		margin-top: 12px;
		border-radius: 14px;
	}
	.pricing-total b {
		font-size: clamp(22px, 2.6vw, 32px);
	}
	/* Размер демо определяется шириной, а не текущей высотой браузера. */
	.hero-device .device,
	.sl-in--split .device {
		max-width: min(340px, 22vw);
		max-width: min(340px, 22vw);
	}
	.hero-device {
		justify-content: center;
	}
	.hero-device .device {
		max-width: min(330px, 22vw);
		max-width: min(330px, 22vw);
	}
	.hero-device:after {
		max-width: min(330px, 22vw);
	}
}

/* Компактная ширина планшета: правила не зависят от панели браузера. */
@media (max-width: 1100px) {
	.sl {
		padding: 28px 22px 92px;
	}
	.eyebrow {
		margin-bottom: 8px;
	}
	.h-lg {
		font-size: clamp(22px, 2.6vw, 34px);
		margin-bottom: 8px;
	}
	.lead {
		font-size: 14.5px;
		margin-bottom: 12px;
	}
	.fcard {
		padding: 15px 14px;
	}
	.bcard {
		padding: 12px 15px;
		margin-bottom: 10px;
	}
	.step {
		padding: 26px 15px 16px;
	}
	.adv-col {
		padding: 12px 16px 6px;
	}
	.adv-col li {
		padding: 4px 0;
	}
	.adv-col li b {
		font-size: 14px;
	}
	.adv-col li span span {
		font-size: 12px;
	}
	.mockpanel {
		padding: 12px 14px;
		margin-bottom: 10px;
	}
	.mockrow {
		padding: 5px 0;
	}
	.lead-form {
		padding: 12px 14px;
	}
	.lead-form h3 {
		font-size: 16px;
	}
	.form-sub {
		margin-bottom: 8px;
	}
	.field {
		margin-bottom: 4px;
	}
	.field > span {
		margin-bottom: 3px;
	}
	.field input,
	.field textarea {
		padding: 7px 11px;
	}
	.field textarea {
		min-height: 36px;
	}
	.btn-lg {
		min-height: 38px;
		font-size: 14.5px;
	}
	.form-legal {
		font-size: 10.5px;
	}
	.pricing-row {
		padding: 7px 0;
	}
	.pricing-total {
		padding: 12px 16px;
		margin-top: 10px;
	}
	.hero-device .device,
	.sl-in--split .device {
		max-width: min(300px, 22vw);
		max-width: min(300px, 22vw);
	}
	.hero-device .device {
		max-width: min(290px, 22vw);
		max-width: min(290px, 22vw);
	}
}

/* Stable landscape layout: no height-driven transforms during touch scrolling. */
@media (orientation: landscape) and (min-width: 761px) {

 .sl { height: auto;
       min-height: calc(100svh - var(--top)); padding: 20px 24px 76px; align-items: center; }
 .sl-in { transform: none; }
 .sl-in--hero { grid-template-columns: 1.1fr .9fr; gap: 28px; }
 .sl-in--split { grid-template-columns: 1.05fr .95fr; gap: 28px; }
 .sl-in--reverse { grid-template-columns: .95fr 1.05fr; }
 .hero-device { order: 0; }
 .sl-in--reverse .split-device { order: initial; }
 .hero-device .device, .sl-in--split .device {
   max-width: min(340px, 22vw);
   padding: 6px; border-radius: 22px;
 }
 .hero-device:after { max-width: 340px; }
 .ld-dots { bottom: 18px; }
 .ld-arrows { bottom: 12px; }
}
@media (orientation: landscape) and (min-width: 761px) {
 .sl { scroll-margin-top: var(--top); }
}

/* Kept apart from bottom navigation and independent of browser toolbar height. */
.ld-fullscreen {
 position: fixed; right: 10px; top: 110px; z-index: 70;
 width: 44px; height: 44px; display: grid; place-items: center;
 border: 1px solid #d0dbf2; border-radius: 12px;
 background: rgba(255,255,255,.94); color: #2549db; cursor: pointer;
 box-shadow: 0 3px 12px #19386618;
}
.ld-fullscreen[hidden] { display: none; }
.ld-fullscreen:focus-visible { outline: 3px solid #2549db; outline-offset: 3px; }
.ld-fullscreen[aria-pressed="true"] { background: #2549db; color: white; }

/* Portrait demos: fill available width, capped by a stable screen height.
   svh does not jump when browser toolbars hide during touch scrolling. */
@media (orientation: portrait) {
 .hero-device .device,
 .sl-in--split .device {
   width: 100%;
   max-width: min(100%, calc((100svh - 180px) * .5625));
   padding: 6px;
   border-radius: 22px;
 }
 .hero-device:after { max-width: 100%; }
 .hero-device, .split-device { width: 100%; min-width: 0; }
}
.pricing-total--blue {
	background: linear-gradient(135deg, var(--blue) 0%, var(--blue-d) 100%);
	color: #fff;
	box-shadow: 0 12px 30px #2348e533;
}
.pricing-total--blue span { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.pricing-total--blue small { font-size: 15px; color: #d7e1ff; font-weight: 600; }
.pricing-spacer { flex: 1 1 auto; min-height: 22px; }
.pricing-subtotal { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 0; padding-top: 14px; border-top: 2px solid var(--blue-t); }
.pricing-subtotal span { font-size: 16px; font-weight: 700; color: var(--ink); }
.pricing-subtotal b { font-size: 20px; color: var(--blue); white-space: nowrap; }
.pricing-sub { margin: 14px 2px 0; font-size: 13px; color: var(--muted); }
.pricing-sub--big { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.pricing-sub--big b { font-size: 16px; }
