/*
 * «Монтаж» page (page-templates/montazh.php). Loaded on that template only.
 *
 * Mobile-first: 375 is the base, 768 / 1024 / 1440 add up to the desktop
 * design (design-refs/montazh/Montazh EcoFlow.dc.html, 1b and 1c).
 * Colours, radii, easing and fonts come from theme.json; the two status
 * colours are new - the theme's #5A9B62 only reaches 3.2:1 as text.
 *
 * Motion: transform/opacity only, through the theme's .reveal observer
 * (assets/js/motion.js), never on the hero; prefers-reduced-motion turns
 * everything off.
 */

:root {
	--ef-install-success: #3f7a47;
	--ef-install-error: #b3261e;
	--ef-install-error-bg: #fff6f5;
	--ef-install-input-border: var(--wp--preset--color--contrast-muted, #888);
	--ef-install-ink: var(--wp--preset--color--contrast, #111);
	--ef-install-muted: var(--wp--preset--color--contrast-subtle, #555);
	--ef-install-line: var(--wp--preset--color--border, #e5e5e5);
	--ef-install-soft: var(--wp--preset--color--base-soft, #f8f8f8);
	--ef-install-subtle: var(--wp--preset--color--base-subtle, #f3f3f3);
	--ef-install-dark: var(--wp--preset--color--base-dark, #0a0a0a);
	--ef-install-on-dark: var(--wp--preset--color--on-dark-muted, #b5b5b5);
	--ef-install-ease: var(--wp--custom--ease--out, cubic-bezier(0.16, 1, 0.3, 1));
	--ef-install-radius: var(--wp--custom--radius--lg, 12px);
	--ef-install-radius-card: 16px;
	--ef-install-mono: var(--wp--preset--font-family--ibm-plex-mono, "IBM Plex Mono", monospace);
	--ef-install-gutter: 20px;
	--ef-install-sticky-h: 68px;
}

.ef-inst {
	color: var(--ef-install-ink);
	font-family: var(--wp--preset--font-family--manrope, Manrope, system-ui, sans-serif);
	overflow-x: clip;
}

.ef-inst *,
.ef-inst *::before,
.ef-inst *::after {
	box-sizing: border-box;
}

.ef-inst p,
.ef-inst h1,
.ef-inst h2,
.ef-inst h3,
.ef-inst ul,
.ef-inst ol,
.ef-inst fieldset,
.ef-inst figure {
	margin: 0;
}

.ef-inst ul,
.ef-inst ol {
	padding: 0;
	list-style: none;
}

.ef-inst :focus-visible {
	outline: 2px solid var(--ef-install-ink);
	outline-offset: 3px;
}

.ef-inst-hero :focus-visible,
.ef-inst-cta :focus-visible {
	outline-color: #fff;
}

.ef-inst-icon {
	flex: none;
	width: 24px;
	height: 24px;
}

/* --- Shared ------------------------------------------------------------- */

.ef-inst-sec {
	padding: 56px var(--ef-install-gutter);
	background: #fff;
}

.ef-inst-sec--soft {
	background: var(--ef-install-soft);
}

.ef-inst-sec--subtle {
	background: var(--ef-install-subtle);
}

.ef-inst-sec--tight {
	padding-top: 40px;
	padding-bottom: 40px;
	border-top: 1px solid var(--ef-install-line);
}

.ef-inst-wrap {
	max-width: 1320px;
	margin: 0 auto;
}

.ef-inst-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ef-install-muted);
}

.ef-inst-eyebrow--on-dark {
	color: var(--ef-install-on-dark);
}

.ef-inst-h2 {
	margin-top: 10px;
	font-size: 30px;
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.ef-inst-head {
	margin-bottom: 24px;
}

.ef-inst-lede {
	margin-top: 12px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ef-install-muted);
}

.ef-inst-mono {
	font: 500 12px/1.4 var(--ef-install-mono);
	color: var(--ef-install-muted);
}

.ef-inst-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-weight: 700;
	color: var(--ef-install-ink);
	text-decoration: none;
}

.ef-inst-link:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.ef-inst-arrow {
	display: inline-block;
	transition: transform var(--wp--custom--duration--fast, 180ms) var(--ef-install-ease);
}

a:hover > .ef-inst-arrow {
	transform: translateX(4px);
}

/* Buttons: primary dark (radius 12), white pill on dark, ghost on dark, outline. */
.ef-inst-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: var(--ef-install-radius);
	font: 700 16px/1.2 inherit;
	font-family: inherit;
	text-decoration: none;
	cursor: pointer;
	transition:
		transform var(--wp--custom--duration--fast, 180ms) var(--ef-install-ease),
		background-color var(--wp--custom--duration--fast, 180ms) var(--ef-install-ease),
		color var(--wp--custom--duration--fast, 180ms) var(--ef-install-ease);
}

.ef-inst-btn:hover {
	transform: translateY(-1px);
}

.ef-inst-btn:active {
	transform: translateY(0);
}

.ef-inst-btn--dark {
	background: var(--ef-install-ink);
	color: #fff;
}

.ef-inst-btn--dark:hover {
	background: var(--wp--preset--color--primary-hover, #3d3d3d);
	color: #fff;
}

.ef-inst-btn--light {
	background: #fff;
	color: var(--ef-install-ink);
}

.ef-inst-btn--light:hover {
	background: var(--wp--preset--color--primary-tint, #f0f0f0);
	color: var(--ef-install-ink);
}

.ef-inst-btn--ghost-dark {
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.ef-inst-btn--ghost-dark:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.ef-inst-btn--outline {
	border-color: var(--ef-install-ink);
	background: #fff;
	color: var(--ef-install-ink);
}

.ef-inst-btn--outline:hover {
	background: var(--ef-install-ink);
	color: #fff;
}

.ef-inst-btn--pill {
	border-radius: 999px;
}

.ef-inst-btn--block {
	width: 100%;
	min-height: 56px;
}

.ef-inst-tag {
	align-self: flex-start;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--ef-install-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.ef-inst-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--ef-install-input-border);
	border-radius: 999px;
	background: #fff;
	color: var(--ef-install-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--wp--custom--duration--fast, 180ms) var(--ef-install-ease), border-color var(--wp--custom--duration--fast, 180ms) var(--ef-install-ease);
}

.ef-inst-chip--soft {
	min-height: 48px;
	padding: 0 20px;
	border-color: var(--ef-install-line);
	background: var(--ef-install-soft);
	font-size: 15px;
}

a.ef-inst-chip:hover {
	border-color: var(--ef-install-ink);
	background: var(--wp--preset--color--primary-tint, #f0f0f0);
	color: var(--ef-install-ink);
}

.ef-inst-chip__img {
	width: 32px;
	height: 32px;
	margin-left: -8px;
	border-radius: 999px;
	background: #fff;
	object-fit: contain;
}

/* Placeholder when a photo file is missing (drop the file in to replace it). */
.ef-inst-ph {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 200px;
	background: repeating-linear-gradient(135deg, #ededed 0 10px, #e3e3e3 10px 20px);
}

/* --- 01 Hero ------------------------------------------------------------ */

.ef-inst-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(640px, 88svh);
	padding: 120px var(--ef-install-gutter) 40px;
	overflow: hidden;
	background: #151515;
	color: #fff;
}

.ef-inst-hero__media,
.ef-inst-hero__shade {
	position: absolute;
	inset: 0;
}

.ef-inst-hero__media picture,
.ef-inst-hero__img,
.ef-inst-hero__media .ef-inst-ph {
	display: block;
	width: 100%;
	height: 100%;
}

.ef-inst-hero__img {
	object-fit: cover;
}

.ef-inst-hero__media .ef-inst-ph {
	background: repeating-linear-gradient(135deg, #1c1c1c 0 12px, #151515 12px 24px);
}

.ef-inst-hero__shade {
	/* The stock photo is bright: white text needs AA over its lightest parts. */
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.9));
}

.ef-inst-hero__inner {
	position: relative;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}

.ef-inst-hero__title {
	margin-top: 14px;
	font-size: 36px;
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.ef-inst-hero__lede {
	margin-top: 14px;
	font-size: 16px;
	line-height: 1.55;
	color: #e5e5e5;
}

.ef-inst-hero__text {
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.6;
	color: #d6d6d6;
}

.ef-inst-hero__actions {
	display: grid;
	gap: 10px;
	margin-top: 22px;
}

.ef-inst-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.ef-inst-trust__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	font-size: 13px;
	font-weight: 600;
}

.ef-inst-trust__item .ef-inst-icon {
	width: 18px;
	height: 18px;
}

/* --- 02 Objects --------------------------------------------------------- */

.ef-inst-object {
	display: grid;
	overflow: hidden;
	border: 1px solid var(--ef-install-line);
	border-radius: var(--ef-install-radius-card);
}

.ef-inst-object__media {
	aspect-ratio: 16 / 10;
	background: var(--ef-install-subtle);
}

.ef-inst-object__img,
.ef-inst-object__media .ef-inst-ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ef-inst-object__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
}

.ef-inst-object__title {
	font-size: 24px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.ef-inst-object__text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--ef-install-muted);
}

.ef-inst-object__list-intro {
	font-size: 15px;
	font-weight: 600;
}

.ef-inst-object__list {
	display: grid;
	gap: 8px;
}

.ef-inst-object__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.45;
}

.ef-inst-object__list .ef-inst-icon {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	stroke-width: 2;
}

.ef-inst-object__note {
	font-size: 14px;
	line-height: 1.55;
	color: var(--ef-install-muted);
}

.ef-inst-object__body .ef-inst-btn {
	align-self: flex-start;
	margin-top: 4px;
}

/* --- Models (DELTA / RIVER) ---------------------------------------------- */

.ef-inst-models__inner {
	display: grid;
	gap: 20px;
}

.ef-inst-models .ef-inst-h2 {
	margin-top: 0;
}

.ef-inst-note {
	display: flex;
	flex-direction: column;
	margin-top: 12px;
	padding: 14px 16px 4px;
	border: 1px solid var(--ef-install-line);
	border-radius: var(--ef-install-radius);
	background: var(--ef-install-soft);
	font-size: 15px;
	line-height: 1.45;
}

.ef-inst-series {
	margin-top: 24px;
}

.ef-inst-series__label {
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ef-install-muted);
}

.ef-inst-series__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* --- 03 Scheme ---------------------------------------------------------- */

.ef-inst-scheme {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

.ef-inst-scheme__live {
	display: none;
	margin-top: 20px;
	padding: 16px;
	min-height: 128px;
	border: 1px solid var(--ef-install-line);
	border-radius: var(--ef-install-radius);
	background: #fff;
}

.ef-inst-scheme__live-title {
	margin: 6px 0;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.ef-inst-scheme__live-text {
	font-size: 14px;
	line-height: 1.55;
	color: var(--ef-install-muted);
}

.ef-inst-scheme__board {
	padding: 20px 16px;
	border: 1px solid var(--ef-install-line);
	border-radius: var(--ef-install-radius-card);
	background: #fff;
}

.ef-inst-scheme__nodes {
	display: grid;
	justify-items: stretch;
}

.ef-inst-scheme__item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ef-inst-node {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 56px;
	padding: 8px 14px;
	border: 1px solid var(--ef-install-line);
	border-radius: var(--ef-install-radius);
	background: var(--ef-install-soft);
	color: var(--ef-install-ink);
	font: inherit;
	text-align: left;
	cursor: default;
	transition: background-color var(--wp--custom--duration--fast, 180ms) var(--ef-install-ease), color var(--wp--custom--duration--fast, 180ms) var(--ef-install-ease);
}

.ef-inst-node__dot {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--ef-install-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.ef-inst-scheme__item,
.ef-inst-node__title,
.ef-inst-node__sub {
	min-width: 0;
}

.ef-inst-node__title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}

.ef-inst-node__sub {
	margin-left: auto;
	font-size: 12px;
	font-weight: 500;
	color: var(--ef-install-muted);
	text-align: right;
}

/* No JS: every description is printed under its node. */
.ef-inst-node__text {
	width: 100%;
	padding: 8px 4px 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ef-install-muted);
}

.ef-inst-scheme__wire {
	display: block;
	width: 2px;
	height: 18px;
	margin: 6px 0;
	background: var(--ef-install-ink);
	transform-origin: top;
}

.ef-inst-scheme__note {
	margin-top: 20px;
	font-size: 11px;
	text-align: center;
}

/* JS on: one live panel, nodes become toggles. */
.ef-inst-scheme.is-enhanced .ef-inst-scheme__live {
	display: block;
}

.ef-inst-scheme.is-enhanced .ef-inst-node__text {
	display: none;
}

.ef-inst-scheme.is-enhanced .ef-inst-node {
	cursor: pointer;
}

.ef-inst-scheme.is-enhanced .ef-inst-node:hover {
	border-color: var(--ef-install-ink);
}

.ef-inst-scheme.is-enhanced .ef-inst-node.is-active {
	border-color: var(--ef-install-ink);
	background: var(--ef-install-ink);
	color: #fff;
}

.ef-inst-node.is-active .ef-inst-node__sub {
	color: var(--ef-install-on-dark);
}

.ef-inst-scheme.is-enhanced .ef-inst-node.is-active .ef-inst-node__dot {
	background: #fff;
	color: var(--ef-install-ink);
}

.ef-inst-scheme.is-enhanced .ef-inst-node:not(.is-active) .ef-inst-node__sub {
	color: var(--ef-install-muted);
}

/* --- 04 Included -------------------------------------------------------- */

.ef-inst-incl {
	display: grid;
	gap: 12px;
}

.ef-inst-incl__item {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	padding: 12px 14px;
	border: 1px solid var(--ef-install-line);
	border-radius: var(--ef-install-radius);
	background: #fff;
}

.ef-inst-incl__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--ef-install-radius);
	background: var(--ef-install-ink);
	color: #fff;
}

.ef-inst-incl__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.ef-inst-incl__note {
	margin-top: 20px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ef-install-muted);
}

/* --- 05 Steps ----------------------------------------------------------- */

.ef-inst-steps {
	position: relative;
}

.ef-inst-steps__line {
	position: absolute;
	top: 24px;
	bottom: 24px;
	left: 23px;
	width: 2px;
	background: var(--ef-install-ink);
	transform-origin: top;
}

.ef-inst-steps__list {
	position: relative;
	display: grid;
	gap: 26px;
}

.ef-inst-step {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 16px;
}

.ef-inst-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ef-install-ink);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 0 0 6px var(--ef-install-subtle);
}

.ef-inst-step__title {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.ef-inst-step__text {
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ef-install-muted);
}

/* --- Guarantees --------------------------------------------------------- */

.ef-inst-guar {
	display: grid;
	gap: 16px;
}

.ef-inst-guar__title {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.ef-inst-guar__list {
	display: grid;
	gap: 10px;
}

.ef-inst-guar__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 44px;
}

.ef-inst-guar__name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.ef-inst-guar__text {
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ef-install-muted);
}

.ef-inst-guar__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--ef-install-line);
	border-radius: var(--ef-install-radius);
	background: var(--ef-install-soft);
}

/* --- 08 Cases ----------------------------------------------------------- */

.ef-inst-cases {
	display: flex;
	gap: 12px;
	margin-right: calc(-1 * var(--ef-install-gutter));
	padding-right: var(--ef-install-gutter);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.ef-inst-case {
	flex: none;
	width: 290px;
	overflow: hidden;
	border: 1px solid var(--ef-install-line);
	border-radius: var(--ef-install-radius);
	scroll-snap-align: start;
}

.ef-inst-case__media {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 2px;
	aspect-ratio: 4 / 3;
	background: var(--ef-install-line);
}

.ef-inst-case__fig {
	position: relative;
	overflow: hidden;
}

.ef-inst-case__fig img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ef-inst-case__fig figcaption {
	position: absolute;
	left: 8px;
	bottom: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.ef-inst-case__body {
	padding: 16px;
}

.ef-inst-case__title {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.ef-inst-case__place {
	margin-top: 2px;
	font-size: 13px;
	color: var(--ef-install-muted);
}

/* --- 09 Form ------------------------------------------------------------ */

.ef-inst-form {
	display: grid;
	gap: 24px;
	align-items: start;
}

.ef-inst-form__callback {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-size: 15px;
	font-weight: 600;
}

.ef-inst-contacts {
	display: grid;
	gap: 10px;
	max-width: 360px;
	margin-top: 20px;
}

.ef-inst-contact {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 0 20px;
	border: 1px solid var(--ef-install-line);
	border-radius: var(--ef-install-radius);
	background: #fff;
	color: var(--ef-install-ink);
	font-weight: 700;
	text-decoration: none;
}

.ef-inst-contact:hover {
	border-color: var(--ef-install-ink);
	color: var(--ef-install-ink);
}

.ef-inst-contact .ef-inst-arrow {
	margin-left: auto;
}

.ef-inst-form__card,
.ef-inst-modal__card {
	padding: 20px;
	border: 1px solid var(--ef-install-line);
	border-radius: var(--ef-install-radius-card);
	background: #fff;
	box-shadow: var(--wp--custom--shadow--md, 0 8px 24px rgba(0, 0, 0, 0.06));
}

.ef-inst-fields {
	display: grid;
	gap: 18px;
}

.ef-inst-field {
	display: grid;
	gap: 6px;
	min-width: 0;
	padding: 0;
	border: 0;
}

.ef-inst-label {
	padding: 0;
	font-size: 14px;
	font-weight: 600;
}

.ef-inst-label__muted {
	font-weight: 500;
	color: var(--ef-install-muted);
}

.ef-inst-input {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 1px solid var(--ef-install-input-border);
	border-radius: var(--ef-install-radius);
	background: #fff;
	color: var(--ef-install-ink);
	font: 500 16px/1.4 inherit;
	font-family: inherit;
	transition: border-color var(--wp--custom--duration--fast, 180ms) var(--ef-install-ease), box-shadow var(--wp--custom--duration--fast, 180ms) var(--ef-install-ease);
}

.ef-inst-input::placeholder {
	color: #767676;
}

.ef-inst-input:focus {
	border-color: var(--ef-install-ink);
	box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.18);
	outline: 2px solid var(--ef-install-ink);
	outline-offset: 2px;
}

.ef-inst-input--sm {
	width: 200px;
	max-width: 100%;
	height: 48px;
	font-size: 15px;
}

.ef-inst-select {
	appearance: none;
	padding-right: 44px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
}

.ef-inst-textarea {
	height: auto;
	min-height: 96px;
	padding: 14px 16px;
	resize: vertical;
}

.ef-inst-hint {
	font-size: 13px;
	font-weight: 500;
	color: var(--ef-install-muted);
}

.ef-inst-err {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ef-install-error);
}

.ef-inst-err::before {
	content: "⚠";
	font-size: 14px;
}

.ef-inst-err[hidden] {
	display: none;
}

.ef-inst-field.has-error .ef-inst-input {
	border: 2px solid var(--ef-install-error);
	background: var(--ef-install-error-bg);
}

.ef-inst-field.is-valid .ef-inst-input {
	border-color: var(--ef-install-success);
}

.ef-inst-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--ef-install-error);
	border-radius: var(--ef-install-radius);
	background: var(--ef-install-error-bg);
	color: var(--ef-install-error);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

.ef-inst-alert[hidden] {
	display: none;
}

.ef-inst-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.ef-inst-choice {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.ef-inst-choice input,
.ef-inst-consent input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.ef-inst-chip__tick {
	display: none;
	width: 16px;
	height: 16px;
}

.ef-inst-choice:hover .ef-inst-chip {
	border-color: var(--ef-install-ink);
}

.ef-inst-choice input:checked + .ef-inst-chip {
	border-color: var(--ef-install-ink);
	background: var(--ef-install-ink);
	color: #fff;
}

.ef-inst-choice input:checked + .ef-inst-chip .ef-inst-chip__tick {
	display: block;
}

.ef-inst-choice input:focus-visible + .ef-inst-chip,
.ef-inst-consent input:focus-visible + .ef-inst-consent__box {
	outline: 2px solid var(--ef-install-ink);
	outline-offset: 3px;
}

/* The order number field only matters once «Так» is chosen. */
.ef-inst-order {
	display: none;
}

.ef-inst-group:has([data-ef-bought][value="yes"]:checked) .ef-inst-order {
	display: block;
}

.ef-inst-file {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.ef-inst-drop {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 12px;
	min-height: 64px;
	padding: 12px 16px;
	border: 1.5px dashed var(--ef-install-input-border);
	border-radius: var(--ef-install-radius);
	background: var(--ef-install-soft);
	color: var(--ef-install-muted);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
}

.ef-inst-drop:hover,
.ef-inst-file:focus-visible + .ef-inst-drop,
.ef-inst-field:focus-within .ef-inst-drop {
	border-color: var(--ef-install-ink);
	color: var(--ef-install-ink);
}

.ef-inst-drop__name {
	flex-basis: 100%;
	color: var(--ef-install-ink);
}

.ef-inst-drop__name:empty {
	display: none;
}

.ef-inst-consent {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 44px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ef-install-muted);
	cursor: pointer;
}

.ef-inst-consent a {
	color: var(--ef-install-ink);
}

.ef-inst-consent__box {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-top: 1px;
	border: 2px solid var(--ef-install-ink);
	border-radius: 6px;
	color: transparent;
}

.ef-inst-consent__box .ef-inst-icon {
	width: 16px;
	height: 16px;
	stroke-width: 2.5;
}

.ef-inst-consent input:checked + .ef-inst-consent__box {
	background: var(--ef-install-ink);
	color: #fff;
}

.ef-inst-consent.has-error .ef-inst-consent__box {
	border-color: var(--ef-install-error);
}

.ef-inst-err--consent {
	margin-left: 36px;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.ef-inst-form__call {
	font-size: 14px;
	text-align: center;
	color: var(--ef-install-muted);
}

.ef-inst-form__call a {
	color: var(--ef-install-ink);
	font-weight: 700;
	white-space: nowrap;
}

.ef-inst-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ef-inst-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ef-inst-spin 0.8s linear infinite;
}

.is-loading .ef-inst-spinner {
	display: inline-block;
}

.is-loading [data-ef-submit] {
	background: var(--wp--preset--color--primary-hover, #3d3d3d);
	cursor: progress;
}

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

.ef-inst-success {
	padding: 40px 12px;
	text-align: center;
}

.ef-inst-success[hidden] {
	display: none;
}

.ef-inst-success:focus {
	outline: none;
}

.ef-inst-success__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: var(--ef-install-success);
	color: #fff;
}

.ef-inst-success__badge .ef-inst-icon {
	width: 34px;
	height: 34px;
	stroke-width: 2;
}

.ef-inst-success__title {
	margin-bottom: 10px;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.ef-inst-success__text {
	margin-bottom: 28px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ef-install-muted);
}

/* --- 10 FAQ ------------------------------------------------------------- */

.ef-inst-faq {
	display: grid;
	gap: 20px;
}

.ef-inst-faq__list {
	border-top: 1px solid var(--ef-install-line);
}

.ef-inst-qa {
	border-bottom: 1px solid var(--ef-install-line);
}

.ef-inst-qa__h {
	font-size: inherit;
}

.ef-inst-qa__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	min-height: 60px;
	padding: 10px 0;
	border: 0;
	background: none;
	color: var(--ef-install-ink);
	font: 600 16px/1.4 inherit;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.ef-inst-qa__icon {
	position: relative;
	flex: none;
	width: 20px;
	height: 20px;
	transition: transform var(--wp--custom--duration--fast, 180ms) var(--ef-install-ease);
}

.ef-inst-qa__icon::before,
.ef-inst-qa__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 1.5px;
	background: currentColor;
	transform: translate(-50%, -50%);
}

.ef-inst-qa__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.ef-inst-qa__q[aria-expanded="true"] .ef-inst-qa__icon {
	transform: rotate(45deg);
}

.ef-inst-qa__a {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows var(--wp--custom--duration--base, 420ms) var(--ef-install-ease);
}

.ef-inst-qa__inner {
	overflow: hidden;
}

.ef-inst-qa__inner p {
	padding: 0 0 18px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ef-install-muted);
}

.ef-inst-qa.is-closed .ef-inst-qa__a {
	grid-template-rows: 0fr;
}

.ef-inst-qa.is-closed .ef-inst-qa__inner {
	visibility: hidden;
	transition: visibility 0s var(--wp--custom--duration--base, 420ms);
}

/* --- 11 Final CTA ------------------------------------------------------- */

.ef-inst-cta {
	position: relative;
	padding: 64px var(--ef-install-gutter) 96px;
	overflow: hidden;
	background: var(--ef-install-dark);
	color: #fff;
	text-align: center;
}

.ef-inst-cta__media {
	position: absolute;
	inset: 0;
}

.ef-inst-cta__img,
.ef-inst-cta__media .ef-inst-ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.22;
	filter: grayscale(1);
}

.ef-inst-cta__media .ef-inst-ph {
	opacity: 1;
	background: repeating-linear-gradient(135deg, #141414 0 14px, #0f0f0f 14px 28px);
}

.ef-inst-cta__inner {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
}

.ef-inst-cta__title {
	font-size: 32px;
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.ef-inst-cta__text {
	margin: 12px 0 24px;
	font-size: 15px;
	color: var(--ef-install-on-dark);
}

.ef-inst-cta__actions {
	display: grid;
	gap: 10px;
}

/* --- Sticky bar and modal ------------------------------------------------ */

.ef-inst-sticky {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 90;
	display: flex;
	gap: 8px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--ef-install-line);
	background: #fff;
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(110%);
	transition: transform 240ms var(--ef-install-ease);
}

.ef-inst-sticky[hidden] {
	display: none;
}

.ef-inst-sticky.is-shown {
	transform: none;
}

.ef-inst-sticky__main {
	flex: 1;
	min-height: 48px;
	font-size: 15px;
}

.ef-inst-sticky__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--ef-install-line);
	border-radius: var(--ef-install-radius);
	color: var(--ef-install-ink);
}

body.ef-install-page.has-ef-sticky {
	padding-bottom: calc(var(--ef-install-sticky-h) + env(safe-area-inset-bottom));
}

.ef-inst-modal {
	width: min(440px, calc(100vw - 24px));
	max-height: calc(100svh - 24px);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ef-install-ink);
	font-family: var(--wp--preset--font-family--manrope, Manrope, system-ui, sans-serif);
	overflow: visible;
}

.ef-inst-modal::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

.ef-inst-modal[open] {
	animation: ef-inst-modal-in 240ms var(--ef-install-ease);
}

@keyframes ef-inst-modal-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

.ef-inst-modal__card {
	position: relative;
	max-height: calc(100svh - 24px);
	overflow-y: auto;
	box-shadow: var(--wp--custom--shadow--lg, 0 24px 64px rgba(0, 0, 0, 0.08));
}

.ef-inst-modal__form {
	display: grid;
	gap: 14px;
}

.ef-inst-modal__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--ef-install-radius);
	background: none;
	color: var(--ef-install-ink);
	cursor: pointer;
}

.ef-inst-modal__close:hover {
	background: var(--ef-install-subtle);
}

.ef-inst-modal__title {
	padding-right: 36px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.ef-inst-modal__text {
	font-size: 14px;
	color: var(--ef-install-muted);
}

.ef-inst-modal *,
.ef-inst-sticky * {
	box-sizing: border-box;
}

.ef-inst-modal p {
	margin: 0;
}

.ef-inst-modal :focus-visible {
	outline: 2px solid var(--ef-install-ink);
	outline-offset: 3px;
}

/* --- Motion ------------------------------------------------------------- */

/* The theme's reveal travels 40px; the design asks for 16px here. */
.has-motion .ef-inst .reveal {
	transform: translateY(16px);
}

.has-motion .ef-inst .reveal.is-revealed {
	transform: none;
}

.has-motion .ef-inst-scheme__wire,
.has-motion .ef-inst-steps__line {
	transform: scaleY(0);
	transition: transform 900ms var(--ef-install-ease) 200ms;
}

.has-motion .ef-inst-scheme.is-in .ef-inst-scheme__wire,
.has-motion .ef-inst-steps.is-in .ef-inst-steps__line {
	transform: none;
}

.has-motion .ef-inst-scheme.is-in .ef-inst-node__dot {
	animation: ef-inst-pulse 700ms var(--ef-install-ease) 1;
}

@keyframes ef-inst-pulse {
	50% {
		transform: scale(1.18);
	}
}

/* --- 768 ---------------------------------------------------------------- */

@media (min-width: 768px) {
	:root {
		--ef-install-gutter: 40px;
	}

	.ef-inst-sec {
		padding-top: 80px;
		padding-bottom: 80px;
	}

	.ef-inst-h2 {
		font-size: 40px;
	}

	.ef-inst-head {
		margin-bottom: 36px;
	}

	.ef-inst-hero {
		align-items: center;
		min-height: 640px;
		padding-top: 96px;
		padding-bottom: 72px;
		text-align: center;
	}

	.ef-inst-hero__shade {
		background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.58) 75%);
	}

	.ef-inst-hero__title {
		font-size: 56px;
	}

	.ef-inst-hero__lede {
		font-size: 20px;
	}

	.ef-inst-hero__actions,
	.ef-inst-trust,
	.ef-inst-cta__actions {
		display: flex;
		justify-content: center;
	}

	.ef-inst-hero__actions .ef-inst-btn,
	.ef-inst-cta__actions .ef-inst-btn {
		min-height: 56px;
		padding: 0 32px;
	}

	.ef-inst-note {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		min-height: 72px;
		padding: 8px 24px;
		font-size: 16px;
	}

	.ef-inst-incl {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.ef-inst-guar {
		gap: 24px;
	}

	.ef-inst-guar__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 32px;
	}

	.ef-inst-models__inner {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: center;
		gap: 40px;
	}

	.ef-inst-models__inner .ef-inst-series__list {
		justify-content: flex-end;
	}

	.ef-inst-hero__text {
		max-width: 720px;
		margin-right: auto;
		margin-left: auto;
		font-size: 16px;
	}

	.ef-inst-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.ef-inst-field--wide {
		grid-column: 1 / -1;
	}

	.ef-inst-form__card {
		padding: 36px;
	}

	.ef-inst-modal__card {
		padding: 24px;
	}

	.ef-inst-qa__q {
		min-height: 68px;
		font-size: 19px;
	}

	.ef-inst-qa__inner p {
		padding: 0 48px 24px 0;
		font-size: 16px;
		line-height: 1.65;
	}

	.ef-inst-cta {
		padding: 120px var(--ef-install-gutter);
	}

	.ef-inst-cta__title {
		font-size: 48px;
	}

	.ef-inst-cta__text {
		margin: 18px 0 36px;
		font-size: 20px;
	}

	.ef-inst-cases {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
		margin-right: 0;
		padding-right: 0;
		overflow: visible;
	}

	.ef-inst-case {
		width: auto;
	}
}

/* --- 1024: desktop layout ------------------------------------------------ */

@media (min-width: 1024px) {
	.ef-inst-sec {
		padding: 112px 60px;
	}

	.ef-inst-sec--tight {
		padding-top: 48px;
		padding-bottom: 48px;
	}

	.ef-inst-eyebrow {
		font-size: 12px;
	}

	.ef-inst-h2 {
		margin-top: 12px;
		font-size: 48px;
		line-height: 1.08;
	}

	.ef-inst-head {
		margin-bottom: 48px;
	}

	.ef-inst-lede {
		font-size: 17px;
		line-height: 1.65;
	}

	.ef-inst-hero {
		min-height: 700px;
	}

	.ef-inst-hero__title {
		margin-top: 20px;
		font-size: 68px;
		line-height: 1.05;
	}

	.ef-inst-hero__lede {
		margin-top: 22px;
		font-size: 22px;
		line-height: 1.5;
	}

	.ef-inst-hero__actions {
		margin-top: 34px;
	}

	.ef-inst-trust {
		margin-top: 32px;
		gap: 10px;
	}

	.ef-inst-trust__item {
		padding: 0 18px;
		font-size: 14px;
	}

	.ef-inst-object {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}

	.ef-inst-object__media {
		aspect-ratio: auto;
		min-height: 480px;
	}

	.ef-inst-object__body {
		justify-content: center;
		gap: 16px;
		padding: 48px;
	}

	.ef-inst-object__title {
		font-size: 40px;
		letter-spacing: -0.03em;
	}

	.ef-inst-object__text {
		font-size: 17px;
		line-height: 1.6;
	}

	.ef-inst-object__body .ef-inst-btn {
		min-height: 56px;
		margin-top: 12px;
		padding: 0 32px;
	}

	.ef-inst-note {
		margin-top: 20px;
	}

	.ef-inst-series {
		margin-top: 40px;
	}

	/* Scheme: horizontal board; text beside it from 1440px (below). */
	.ef-inst-scheme {
		gap: 40px;
	}

	.ef-inst-scheme__live {
		margin-top: 28px;
		padding: 24px;
	}

	.ef-inst-scheme__live-title {
		font-size: 22px;
	}

	.ef-inst-scheme__live-text {
		font-size: 15px;
	}

	.ef-inst-scheme__board {
		padding: 48px 32px 40px;
	}

	.ef-inst-scheme__nodes {
		display: flex;
		align-items: flex-start;
	}

	.ef-inst-scheme__item {
		flex: 1 1 0;
		flex-direction: row;
		align-items: center;
	}

	.ef-inst-scheme__item:last-child {
		flex: none;
	}

	.ef-inst-node {
		flex-direction: column;
		gap: 8px;
		width: clamp(112px, 11vw, 132px);
		min-height: 150px;
		padding: 22px 10px 16px;
		text-align: center;
	}

	.ef-inst-node__dot {
		position: absolute;
		top: -12px;
		left: 50%;
		transform: translateX(-50%);
	}

	.has-motion .ef-inst-scheme.is-in .ef-inst-node__dot {
		animation-name: ef-inst-pulse-x;
	}

	.ef-inst-node__sub {
		margin-left: 0;
		text-align: center;
	}

	.ef-inst-scheme__wire {
		flex: 1;
		width: auto;
		min-width: 20px;
		height: 2px;
		margin: 0 6px;
		background: repeating-linear-gradient(90deg, var(--ef-install-ink) 0 8px, transparent 8px 14px);
		transform-origin: left;
	}

	.has-motion .ef-inst-scheme__wire {
		transform: scaleX(0);
	}

	/* No JS on desktop: descriptions move under the board as a list. */
	.ef-inst-scheme:not(.is-enhanced) .ef-inst-scheme__item {
		flex-direction: column;
	}

	.ef-inst-scheme:not(.is-enhanced) .ef-inst-scheme__wire {
		display: none;
	}

	.ef-inst-scheme:not(.is-enhanced) .ef-inst-scheme__nodes {
		gap: 12px;
	}

	.ef-inst-scheme__note {
		margin-top: 28px;
	}

	.ef-inst-incl {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}

	.ef-inst-incl__item {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding: 28px;
	}

	.ef-inst-incl__icon {
		width: 48px;
		height: 48px;
	}

	.ef-inst-incl__title {
		font-size: 20px;
		letter-spacing: -0.02em;
	}

	/* Stepper: horizontal. */
	.ef-inst-steps__line {
		top: 27px;
		right: 28px;
		bottom: auto;
		left: 28px;
		width: auto;
		height: 2px;
		transform-origin: left;
	}

	.has-motion .ef-inst-steps__line {
		transform: scaleX(0);
	}

	.ef-inst-steps__list {
		grid-template-columns: repeat(var(--ef-steps, 4), minmax(0, 1fr));
		gap: 0;
	}

	.ef-inst-step {
		grid-template-columns: 1fr;
		gap: 24px;
		padding-right: 32px;
	}

	.ef-inst-step__num {
		width: 56px;
		height: 56px;
		font-size: 20px;
		box-shadow: 0 0 0 8px var(--ef-install-subtle);
	}

	.ef-inst-step__title {
		font-size: 22px;
	}

	.ef-inst-step__text {
		margin-top: 8px;
		font-size: 15px;
		line-height: 1.55;
	}

	.ef-inst-cases {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ef-inst-guar__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ef-inst-guar__title {
		font-size: 28px;
	}

	.ef-inst-hero__text {
		font-size: 17px;
	}

	.ef-inst-case__body {
		padding: 20px 22px 24px;
	}

	.ef-inst-case__title {
		font-size: 19px;
	}

	.ef-inst-form {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 64px;
	}

	.ef-inst-faq {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		gap: 64px;
	}

	.ef-inst-cta {
		padding: 140px 60px;
	}

	.ef-inst-cta__title {
		font-size: 64px;
		line-height: 1.05;
	}

	/* The bar is a phone/tablet affordance only. */
	.ef-inst-sticky {
		display: none !important;
	}

	body.ef-install-page.has-ef-sticky {
		padding-bottom: 0;
	}
}

@media (min-width: 1440px) {
	.ef-inst-scheme {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 72px;
		align-items: center;
	}
}

@keyframes ef-inst-pulse-x {
	50% {
		transform: translateX(-50%) scale(1.18);
	}
}

/* --- Reduced motion: everything off -------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.ef-inst *,
	.ef-inst *::before,
	.ef-inst *::after,
	.ef-inst-sticky,
	.ef-inst-modal[open] {
		animation: none !important;
		transition: none !important;
	}

	.ef-inst .reveal,
	.ef-inst-scheme__wire,
	.ef-inst-steps__line {
		opacity: 1 !important;
		transform: none !important;
	}

	.ef-inst-btn:hover,
	a:hover > .ef-inst-arrow {
		transform: none;
	}
}
