/* /crm — собственный полноэкранный слайдер. Не опирается на стили главной. */

html.crm-deck-page,
html.crm-deck-page body,
html.crm-deck-page .page-wrapper {
	height: 100%;
	margin: 0;
	padding: 0;
	background: #101114;
}

html.crm-deck-page header.navbar,
html.crm-deck-page .page-wrapper > footer,
html:has(.crm-deck) header.navbar,
html:has(.crm-deck) .page-wrapper > footer {
	display: none !important;
}

html.crm-deck-page #cookieConsent {
	display: none !important;
}

html.crm-deck-page body {
	overflow: hidden;
}

.crm-deck {
	--crm-bg: #101114;
	--crm-panel: #1a1c22;
	--crm-line: rgba(255, 255, 255, 0.08);
	--crm-ink: #f4f1ea;
	--crm-muted: #b4b0a6;
	--crm-accent: #f0a202;
	--crm-accent-ink: #1a1200;
	--crm-chrome: 64px;
	--crm-hud: 72px;
	position: relative;
	height: 100vh;
	height: 100dvh;
	color: var(--crm-ink);
	font-family: ui-sans-serif, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.5;
	background: var(--crm-bg);
	overflow: hidden;
}

.crm-deck *,
.crm-deck *::before,
.crm-deck *::after {
	box-sizing: border-box;
}

.crm-progress {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 5;
	height: 3px;
	background: var(--crm-line);
}

.crm-progress span {
	display: block;
	height: 100%;
	width: 12.5%;
	background: var(--crm-accent);
	transition: width 0.35s ease;
}

.crm-chrome {
	position: absolute;
	top: 3px;
	left: 0;
	right: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 20px;
	height: var(--crm-chrome);
	padding: 0 28px;
}

.crm-brand {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--crm-ink);
	text-decoration: none;
}

.crm-brand:hover,
.crm-brand:focus {
	color: var(--crm-accent);
	text-decoration: none;
}

.crm-chrome-meta {
	margin: 0;
	flex: 1;
	font-size: 14px;
	color: var(--crm-muted);
}

.crm-chrome-actions {
	display: flex;
	gap: 8px;
}

.crm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.crm-btn-accent {
	background: var(--crm-accent);
	color: var(--crm-accent-ink);
}

.crm-btn-accent:hover,
.crm-btn-accent:focus {
	background: #ffb820;
	color: var(--crm-accent-ink);
	text-decoration: none;
}

.crm-btn-ghost {
	background: transparent;
	border-color: rgba(244, 241, 234, 0.28);
	color: var(--crm-ink);
}

.crm-btn-ghost:hover,
.crm-btn-ghost:focus {
	border-color: var(--crm-ink);
	color: var(--crm-ink);
	text-decoration: none;
}

.crm-viewport {
	position: absolute;
	top: calc(3px + var(--crm-chrome));
	bottom: var(--crm-hud);
	left: 0;
	right: 0;
	overflow: hidden;
}

.crm-slide {
	position: absolute;
	inset: 0;
	padding: 4px 40px 8px;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateX(28px);
	pointer-events: none;
	z-index: 0;
}

.crm-slide.is-on {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	pointer-events: auto;
	z-index: 1;
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.crm-slide-inner {
	max-width: 1180px;
	height: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 0;
	overflow: hidden;
}

.crm-slide-inner.crm-slide-close {
	max-width: 720px;
	text-align: center;
	align-items: center;
}

.crm-slide-close .crm-cta {
	justify-content: center;
}

.crm-slide-close h2 {
	font-size: clamp(28px, 4.2vw, 42px);
}

.crm-slide-close .crm-lead {
	max-width: 36em;
}

.crm-why {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 18px;
	width: 100%;
	max-width: 640px;
	margin: 18px 0 8px;
	text-align: left;
}

.crm-why article {
	padding: 14px 16px;
	border: 1px solid var(--crm-line);
	border-radius: 10px;
	background: var(--crm-panel);
}

.crm-why h3 {
	margin: 0 0 6px;
	font-size: 15px;
	color: var(--crm-accent) !important;
}

.crm-why p {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--crm-muted);
}

.crm-slide-inner.crm-split {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 28px;
	align-items: center;
}

.crm-slide-inner.crm-split-flip {
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.crm-slide-inner > .crm-solve {
	flex: 1 1 auto;
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 20px;
	align-items: stretch;
}

.crm-copy {
	min-width: 0;
	min-height: 0;
}

.crm-deck h1,
.crm-deck h2,
.crm-deck h3 {
	margin: 0 0 10px;
	font-family: inherit;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--crm-ink) !important;
	text-transform: none !important;
	background: none;
}

.crm-deck h1 {
	font-size: clamp(28px, 3.4vw, 44px);
}

.crm-deck h2 {
	font-size: clamp(24px, 2.8vw, 36px);
}

.crm-deck h3 {
	margin-bottom: 6px;
	font-size: 17px;
	letter-spacing: -0.02em;
}

.crm-kicker {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--crm-accent);
}

.crm-lead {
	margin: 0 0 14px;
	max-width: 38em;
	font-size: clamp(15px, 1.15vw, 18px);
	line-height: 1.45;
	color: var(--crm-muted);
}

.crm-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
	flex-shrink: 0;
}

.crm-shot {
	margin: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--crm-line);
	border-radius: 16px;
	background: #0b0c0f;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.crm-shot img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 46vh;
	object-fit: contain;
	object-position: top;
	background: #0b0c0f;
}

.crm-shot figcaption {
	margin: 0;
	padding: 8px 14px;
	font-size: 13px;
	line-height: 1.35;
	color: var(--crm-muted);
	background: #14161c;
	flex-shrink: 0;
}

.crm-cards-stack {
	grid-template-columns: 1fr;
	margin: 0;
	min-height: 0;
}

.crm-cards-stack article {
	padding: 12px 16px;
}

.crm-solve {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: stretch;
}

.crm-solve .crm-shot img {
	max-height: none;
}

.crm-cards {
	display: grid;
	gap: 12px;
	margin: 4px 0 0;
	min-height: 0;
}

.crm-cards-2 {
	grid-template-columns: 1fr 1fr;
}

.crm-cards-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crm-cards article {
	padding: 14px 16px;
	border: 1px solid var(--crm-line);
	border-radius: 14px;
	background: var(--crm-panel);
	min-height: 0;
}

.crm-faq-grid {
	margin-top: 16px;
}

.crm-faq-grid article {
	padding: 12px 14px;
}

.crm-faq-grid h3 {
	font-size: 16px;
}

.crm-faq-grid p {
	font-size: 14px;
}

.crm-cards p,
.crm-copy p,
.crm-methods p {
	margin: 0;
	color: var(--crm-muted);
}

.crm-chip {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.crm-chip-ok {
	background: rgba(61, 168, 96, 0.16);
	color: #8ee0a8;
}

.crm-chip-beta {
	background: rgba(240, 162, 2, 0.16);
	color: var(--crm-accent);
}

.crm-note {
	margin: 4px 0 0;
	max-width: 40em;
	font-size: 16px;
	color: var(--crm-muted);
}

.crm-plain {
	margin: 0 0 18px;
	padding-left: 1.15em;
	max-width: 34em;
	color: var(--crm-muted);
}

.crm-plain li {
	margin: 0 0 8px;
}

.crm-faq {
	margin-top: 28px;
	max-width: 42em;
}

.crm-faq h3 {
	margin-bottom: 12px;
}

.crm-faq details {
	margin: 0 0 8px;
	border: 1px solid var(--crm-line);
	border-radius: 12px;
	background: var(--crm-panel);
}

.crm-faq summary {
	padding: 14px 16px;
	cursor: pointer;
	font-size: 17px;
	font-weight: 700;
	color: var(--crm-ink);
}

.crm-faq details p {
	margin: 0;
	padding: 0 16px 16px;
	font-size: 16px;
	color: var(--crm-muted);
}

.crm-hud {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	height: var(--crm-hud);
	padding: 0 28px 10px;
}

.crm-nav-btn {
	width: 48px;
	height: 48px;
	border: 1px solid var(--crm-line);
	border-radius: 50%;
	background: var(--crm-panel);
	color: var(--crm-ink);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.crm-nav-btn:hover,
.crm-nav-btn:focus {
	border-color: var(--crm-accent);
	color: var(--crm-accent);
}

.crm-nav-btn:disabled {
	opacity: 0.28;
	cursor: default;
}

.crm-dots {
	display: flex;
	gap: 8px;
}

.crm-dot {
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--crm-muted);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.crm-dot:hover,
.crm-dot:focus {
	color: var(--crm-ink);
}

.crm-dot.is-on {
	background: var(--crm-accent);
	color: var(--crm-accent-ink);
}

.crm-counter {
	margin: 0;
	min-width: 3.5em;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--crm-muted);
}

@media (max-width: 991px) {
	.crm-deck {
		--crm-chrome: 52px;
		--crm-hud: 60px;
		font-size: 16px;
		padding-left: env(safe-area-inset-left, 0);
		padding-right: env(safe-area-inset-right, 0);
	}

	.crm-progress {
		top: env(safe-area-inset-top, 0);
	}

	.crm-chrome {
		top: calc(3px + env(safe-area-inset-top, 0px));
		height: var(--crm-chrome);
		padding: 0 14px;
		gap: 10px;
	}

	.crm-brand {
		font-size: 13px;
		letter-spacing: 0.12em;
	}

	.crm-chrome-meta {
		display: none;
	}

	.crm-chrome-actions .crm-btn-ghost {
		display: none;
	}

	.crm-btn {
		min-height: 40px;
		padding: 0 16px;
		font-size: 14px;
	}

	.crm-viewport {
		top: calc(3px + var(--crm-chrome) + env(safe-area-inset-top, 0px));
		bottom: calc(var(--crm-hud) + env(safe-area-inset-bottom, 0px));
	}

	.crm-slide {
		padding: 8px 16px 6px;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	.crm-slide-inner {
		justify-content: flex-start;
		gap: 12px;
		height: auto;
		min-height: 100%;
	}

	.crm-slide-inner.crm-split,
	.crm-slide-inner.crm-split-flip,
	.crm-slide-inner > .crm-solve,
	.crm-solve {
		display: flex;
		flex-direction: column;
		grid-template-columns: none;
		gap: 12px;
		align-items: stretch;
		justify-content: flex-start;
		flex: 1 1 auto;
		min-height: 100%;
	}

	.crm-copy {
		flex: 0 0 auto;
	}

	.crm-cards-2,
	.crm-cards-3 {
		grid-template-columns: 1fr;
	}

	.crm-deck h1 {
		font-size: clamp(24px, 7vw, 30px);
		margin-bottom: 8px;
	}

	.crm-deck h2 {
		font-size: clamp(22px, 6.2vw, 28px);
		margin-bottom: 8px;
	}

	.crm-kicker {
		margin-bottom: 6px;
		font-size: 11px;
	}

	.crm-lead {
		margin-bottom: 10px;
		font-size: 15px;
		line-height: 1.4;
		max-width: none;
	}

	.crm-cta {
		gap: 8px;
		margin-top: 4px;
	}

	.crm-cta .crm-btn {
		flex: 1 1 auto;
	}

	.crm-shot {
		flex: 0 0 auto;
		height: min(44vh, 420px);
		border-radius: 14px;
		box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
	}

	.crm-shot figcaption {
		display: none;
	}

	.crm-shot img {
		height: 100%;
		max-height: none;
		min-height: 0;
		object-fit: contain;
		object-position: center top;
	}

	.crm-cards {
		gap: 8px;
		margin-top: 0;
	}

	.crm-cards article,
	.crm-cards-stack article,
	.crm-why article {
		padding: 10px 12px;
		border-radius: 12px;
	}

	.crm-deck h3 {
		font-size: 15px;
		margin-bottom: 4px;
	}

	.crm-cards p,
	.crm-methods p,
	.crm-why p {
		font-size: 13px;
		line-height: 1.4;
	}

	.crm-chip {
		margin-bottom: 6px;
		padding: 3px 8px;
		font-size: 11px;
	}

	.crm-why {
		gap: 8px;
		margin: 10px 0 4px;
	}

	.crm-slide-close {
		text-align: left;
		align-items: stretch;
	}

	.crm-slide-close .crm-cta {
		justify-content: stretch;
	}

	.crm-slide-close h2 {
		font-size: clamp(22px, 6.2vw, 28px);
	}

	.crm-hud {
		height: calc(var(--crm-hud) + env(safe-area-inset-bottom, 0px));
		gap: 12px;
		padding: 0 14px calc(8px + env(safe-area-inset-bottom, 0px));
	}

	.crm-nav-btn {
		width: 42px;
		height: 42px;
		flex-shrink: 0;
		font-size: 18px;
	}

	.crm-dots {
		gap: 6px;
		flex: 1 1 auto;
		justify-content: center;
		max-width: 220px;
	}

	.crm-dot {
		min-width: 0;
		width: 8px;
		height: 8px;
		padding: 0;
		font-size: 0;
		line-height: 0;
		color: transparent;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.18);
	}

	.crm-dot.is-on {
		width: 22px;
		border-radius: 999px;
		background: var(--crm-accent);
		color: transparent;
	}

	.crm-counter {
		display: block;
		min-width: 3em;
		font-size: 12px;
		letter-spacing: 0.06em;
	}
}

@media (max-width: 720px) {
	.crm-why {
		grid-template-columns: 1fr;
	}

	.crm-slide {
		padding: 6px 14px 4px;
	}

	.crm-shot {
		height: min(40vh, 360px);
	}

	/* Скрин — визуальный якорь выше текста на flip-слайдах */
	.crm-split-flip .crm-shot {
		order: -1;
	}

	.crm-solve .crm-shot {
		height: min(26vh, 220px);
	}

	.crm-methods article {
		padding: 8px 10px;
	}

	.crm-methods h3 {
		font-size: 14px;
	}

	.crm-methods p {
		font-size: 12.5px;
	}
}

@media (max-width: 420px) {
	.crm-deck {
		--crm-chrome: 48px;
		--crm-hud: 56px;
	}

	.crm-lead {
		font-size: 14px;
	}

	.crm-cta .crm-btn-ghost {
		display: none;
	}

	.crm-slide-close .crm-cta .crm-btn-ghost {
		display: inline-flex;
	}

	.crm-shot {
		height: min(36vh, 300px);
	}

	.crm-dots {
		max-width: 160px;
	}
}

@media (max-height: 700px) and (max-width: 991px) {
	.crm-kicker {
		margin-bottom: 4px;
	}

	.crm-lead {
		margin-bottom: 8px;
		font-size: 14px;
	}

	.crm-shot {
		height: min(34vh, 280px);
	}

	.crm-solve .crm-shot {
		height: min(22vh, 180px);
	}

	.crm-cards article,
	.crm-methods article {
		padding: 8px 10px;
	}
}
