*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--accent: #e8400a;
	--accent-d: #c73208;
	--bg: #f0ece6;
	--bg-card: #ffffff;
	--bg-input: #ffffff;
	--border: #e5e5e5;
	--text: #111111;
	--text-2: #444444;
	--text-3: #777777;
	--sans: 'Montserrat', system-ui, -apple-system, sans-serif;
	--serif: 'Playfair Display', Georgia, serif;
}

body {
	font-family: var(--sans);
	color: var(--text);
	background: var(--bg);
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
}

.lp-shell {
	width: 100%;
	max-width: 1100px;
}

.chat-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 90;
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 50%;
	background: #111;
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
	transition: transform .2s ease, background .2s ease;
	text-decoration: none;
}

.chat-fab:hover {
	background: var(--accent);
	transform: scale(1.07);
}

.chat-fab:focus-visible {
	outline: 3px solid rgba(232, 64, 10, .35);
	outline-offset: 3px;
}

.chat-fab-icon {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* ── Split card ───────────────────────────────────────── */
.lp-card {
	background: var(--bg-card);
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	min-height: 600px;
	border: 1px solid var(--border);
}

/* ── Left: media panel ────────────────────────────────── */
.lp-media {
	position: relative;
	overflow: hidden;
	background: #1a1410;
	min-height: 320px;
}

.lp-media-picture {
	display: block;
	width: 100%;
	height: 100%;
}

.lp-media-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 42%;
	display: block;
	opacity: .85;
}

.lp-media-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .32) 0%, rgba(0, 0, 0, .66) 100%);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 36px 36px 40px;
}

.lp-brand {
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 700;
	color: #fff;
	letter-spacing: -.01em;
	line-height: 1.1;
}

.lp-brand .accent {
	color: var(--accent);
	font-style: normal;
}

.lp-brand-sub {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .7);
	margin-top: 8px;
}

.lp-quote-eyebrow {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .72);
	margin-bottom: 16px;
}

.lp-quote-text {
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -.01em;
	color: #fff;
	max-width: 420px;
}

.lp-quote-author {
	margin-top: 16px;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, .85);
}

/* ── Right: form panel ────────────────────────────────── */
.lp-form {
	padding: 64px 56px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.form-eyebrow {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 14px;
}

.lp-h2 {
	font-family: var(--serif);
	font-size: 38px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	margin: 0 0 12px;
}

.lp-lead {
	font-size: 15px;
	line-height: 1.5;
	color: var(--text-2);
	margin: 0 0 28px;
	max-width: 380px;
}

.lp-lead strong {
	color: var(--text);
	font-weight: 700;
}

.lp-recipe-context {
	display: grid;
	gap: 3px;
	margin: -12px 0 16px;
	color: var(--text);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
}

.lp-recipe-context[hidden] {
	display: none;
}

.lp-recipe-context strong {
	font-weight: 700;
}

.lp-recipe-context span {
	color: var(--text-2);
}

.lp-delivery-help {
	margin: -12px 0 22px;
	padding: 11px 13px;
	border: 1px solid #e8e2d9;
	border-left: 3px solid var(--accent);
	border-radius: 8px;
	background: #faf8f5;
	color: var(--text-2);
	font-size: 12px;
	line-height: 1.55;
}


.lp-support-email {
	color: var(--text);
	font-weight: 700;
	white-space: nowrap;
}

.lp-pricing-note {
	margin: -4px 0 22px;
	padding: 14px 16px 13px;
	border-left: 4px solid var(--accent);
	background: #faf8f5;
}

.lp-pricing-line {
	margin: 0;
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.38;
}

.lp-pricing-line + .lp-pricing-line {
	margin-top: 4px;
}

.lp-pricing-detail {
	margin: 2px 0 0;
	color: var(--text-2);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
}

.lp-pricing-line--full {
	margin-top: 9px;
}

.lp-no-card-note {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 9px 0 0;
	color: var(--text-2);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.lp-no-card-note span {
	display: grid;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	place-items: center;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
}

.lp-pricing-link {
	display: inline-block;
	margin-top: 9px;
	color: var(--text-2);
	font-size: 12px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lp-pricing-link:hover,
.lp-pricing-link:focus-visible {
	color: var(--accent);
}

.form-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text);
	margin-bottom: 8px;
}

.form-input {
	width: 100%;
	padding: 14px 16px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	color: var(--text);
	border: 1px solid var(--border);
	background: var(--bg-input);
	border-radius: 0;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}

.form-input::placeholder {
	color: var(--text-3);
}

.form-input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}

.form-input[readonly] {
	color: var(--text-3);
	background: #fafafa;
}

.form-input.code-input {
	font-size: 28px;
	letter-spacing: 14px;
	text-align: center;
	font-weight: 700;
	padding: 18px 16px;
}

.field {
	margin-bottom: 18px;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
	width: 100%;
	padding: 16px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	background: var(--text);
	color: #fff;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}

.btn-primary:hover:not(:disabled) {
	background: var(--accent);
}

.btn-primary:active:not(:disabled) {
	background: var(--accent-d);
}

.btn-primary:disabled {
	opacity: .5;
	cursor: not-allowed;
}

.btn-secondary {
	width: 100%;
	margin-top: 10px;
	padding: 12px;
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text-2);
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 0;
	transition: color .15s, border-color .15s;
}

.btn-secondary:hover {
	color: var(--text);
	border-color: var(--text);
}

/* ── Error / hint / timer ─────────────────────────────── */
.lp-error {
	display: none;
	margin-bottom: 14px;
	padding: 10px 14px;
	border-left: 3px solid #c0392b;
	background: #fdf3f2;
	color: #8b1f15;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.lp-error.is-visible {
	display: block;
}

.fine-print {
	font-size: 11px;
	color: var(--text-3);
	line-height: 1.6;
	margin-top: 18px;
}

.fine-print a {
	color: var(--text);
	text-decoration: underline;
}

.fine-print a:hover {
	color: var(--accent);
}

.lp-timer {
	margin-top: 14px;
	font-size: 12px;
	color: var(--text-2);
	text-align: center;
	letter-spacing: .02em;
}

.lp-timer.has-error {
	color: #c0392b;
}

.lp-timer a {
	color: var(--accent);
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}

.lp-timer a:hover {
	text-decoration: underline;
}

/* ── Step animation ───────────────────────────────────── */
.lp-step {
	animation: fadeUp .32s ease both;
}

.is-hidden {
	display: none;
}

.lp-step.is-animation-reset {
	animation: none;
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── Spinner inside primary button ────────────────────── */
.lp-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin .6s linear infinite;
	vertical-align: -2px;
	margin-right: 8px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ── Success state ───────────────────────────────────── */
.lp-success {
	display: none;
	text-align: left;
	animation: fadeUp .32s ease both;
}

.lp-success.is-visible {
	display: block;
}

.lp-success-mark {
	width: 56px;
	height: 56px;
	border: 2px solid var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 22px;
}

.lp-success-mark svg {
	width: 28px;
	height: 28px;
	stroke: var(--accent);
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lp-success-context {
	margin: -4px 0 22px;
	padding: 12px 14px;
	border-left: 3px solid var(--accent);
	background: #faf8f5;
	color: var(--text-2);
	font-size: 13px;
	line-height: 1.55;
}

.lp-success-actions {
	display: grid;
	gap: 14px;
}

.lp-success-primary {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.lp-success-secondary {
	color: var(--text-2);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lp-success-secondary:hover,
.lp-success-secondary:focus-visible {
	color: var(--accent);
}

.lp-features.is-hidden { display: none; }

/* ── Features under form (decoupled from card grid) ──── */
.lp-features {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--border);
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.lp-feat {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-2);
}

.lp-feat-dot {
	width: 5px;
	height: 5px;
	background: var(--accent);
	display: inline-block;
}

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 860px) {
	.chat-fab {
		right: 16px;
		bottom: 16px;
	}

	body {
		padding: 0;
		align-items: stretch;
	}

	.lp-shell {
		max-width: none;
	}

	.lp-card {
		grid-template-columns: 1fr;
		min-height: 100dvh;
		border: none;
	}

	.lp-media {
		min-height: 0;
		height: 150px;
		aspect-ratio: auto;
	}

	.lp-media-img {
		object-position: center;
	}

	.lp-media-overlay {
		padding: 16px 24px;
		justify-content: flex-start;
		background: linear-gradient(180deg, rgba(16, 12, 10, .82) 0%, rgba(16, 12, 10, .58) 42%, rgba(16, 12, 10, .14) 78%, rgba(16, 12, 10, 0) 100%);
	}

	.lp-brand {
		font-size: 22px;
		text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
	}

	.lp-brand-sub {
		margin-top: 5px;
		color: rgba(255, 255, 255, .94);
		text-shadow: 0 2px 7px rgba(0, 0, 0, .95);
	}

	.lp-quote {
		display: none;
	}

	.lp-form {
		padding: 28px 24px 36px;
		justify-content: flex-start;
	}

	.form-eyebrow {
		margin-bottom: 9px;
	}

	.lp-h2 {
		font-size: 30px;
		margin-bottom: 9px;
	}

	.lp-lead {
		font-size: 14px;
		margin-bottom: 16px;
	}

	.lp-pricing-note {
		margin: 0 0 18px;
		padding: 12px 14px;
	}

	.lp-pricing-link {
		margin-top: 7px;
	}
}

@media (max-width: 380px) {
	.lp-form {
		padding: 24px 18px 32px;
	}

	.lp-media-overlay {
		padding-left: 18px;
		padding-right: 18px;
	}

	.lp-h2 {
		font-size: 26px;
	}

	.form-input.code-input {
		font-size: 22px;
		letter-spacing: 10px;
	}
}

/* Системная настройка "уменьшить движение": состояния остаются понятными,
   но элементы не перемещаются и не крутятся. */
@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}
}
