.qm-root {
	--qm-accent: #d34085;
	--qm-bg: #fff;
	--qm-text: #1b1b1d;
	--qm-muted: #6b6f76;
	--qm-border: #e3e5ea;
	--qm-soft: #f5f6f8;
	--qm-radius: 16px;
	--qm-shadow: 0 12px 40px rgba(0,0,0,.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--qm-text);
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px 16px 40px;
	box-sizing: border-box;
	line-height: 1.45;
}
.qm-root--wide-question {
	max-width: 1320px;
}
.qm-root *, .qm-root *::before, .qm-root *::after { box-sizing: border-box; }

/* Полный экран на стартовом шаге */
.qm-root--fullscreen {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
	height: 100vh;
	min-height: 100vh;
	min-height: 100dvh;
}

/* Start: слева только фоны-кнопки, справа текст и CTA */
.qm-layout--start {
	display: grid;
	grid-template-columns: minmax(280px, 1.12fr) minmax(260px, 0.88fr);
	gap: 32px 44px;
	align-items: center;
	background: var(--qm-bg);
	border-radius: var(--qm-radius);
	box-shadow: var(--qm-shadow);
	padding: 28px 36px 36px;
}
.qm-root--fullscreen .qm-layout--start {
	grid-template-columns: 1fr;
	grid-template-rows: auto auto;
	gap: clamp(14px, 2vh, 24px);
	align-items: start;
	align-content: center;
	justify-items: center;
	height: 100%;
	min-height: 100%;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
}
.qm-start-visual { min-width: 0; }
.qm-root--fullscreen .qm-start-visual {
	display: block;
	padding: clamp(10px, 1.6vw, 18px) clamp(12px, 2vw, 24px) 0;
	max-width: 1240px;
	width: 100%;
	margin: 0 auto;
}
.qm-car-banners {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.qm-root--fullscreen .qm-car-banners {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	height: auto;
	min-height: 0;
	gap: clamp(8px, 1.1vw, 14px);
}
.qm-car-banner {
	position: relative;
	display: block;
	width: 100%;
	min-height: 128px;
	border: none;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	padding: 0;
	background-color: transparent;
	box-shadow: 0 4px 18px rgba(0,0,0,.12);
	transition: opacity .15s ease, outline .12s ease, filter .15s ease;
}
.qm-car-banner__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: top center;
	background: transparent;
}
.qm-car-banner__meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 8px 10px;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.7) 100%);
	color: #fff;
	font-size: 12px;
	line-height: 1.35;
}
.qm-car-banner__loan,
.qm-car-banner__price {
	font-weight: 700;
	text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.qm-root--fullscreen .qm-car-banner {
	flex: 1 1 0;
	height: auto;
	min-height: 0;
	border-radius: 10px;
	box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.qm-car-banner:hover {
	filter: brightness(1.04);
}
.qm-car-banner:focus-visible {
	outline: 3px solid var(--qm-accent);
	outline-offset: -3px;
}
.qm-car-banner--active {
	outline: 3px solid var(--qm-accent);
	outline-offset: -3px;
	filter: brightness(1.02);
}
.qm-car-banner--disabled {
	cursor: default;
	opacity: .92;
}
.qm-car-banner--disabled:hover {
	filter: none;
}
.qm-car-banner--no-photo {
	background-image: linear-gradient(135deg, #3d3d45 0%, #1a1a1f 100%);
}
.qm-root--fullscreen .qm-start-panel {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	padding: 0 clamp(16px, 2.6vw, 30px);
	background: var(--qm-bg);
	min-height: 0;
	height: auto;
	overflow: visible;
}
.qm-root--fullscreen .qm-start-panel > * {
	width: min(760px, 100%);
}
.qm-root--fullscreen .qm-title--start {
	font-size: clamp(20px, 2.1vw, 30px);
	margin-bottom: 12px;
	text-align: center;
}
.qm-root--fullscreen .qm-features-list--start {
	margin-bottom: 16px;
	gap: 9px;
}
.qm-root--fullscreen .qm-features-list--start .qm-feature {
	font-size: 13px;
	line-height: 1.3;
}
.qm-root--fullscreen .qm-start-progress {
	margin-bottom: 16px;
}
.qm-root--fullscreen .qm-progress-title {
	margin-bottom: 6px;
	font-size: 12px;
}
.qm-root--fullscreen .qm-start-progress .qm-progress {
	height: 8px;
	margin-bottom: 6px;
}
.qm-root--fullscreen .qm-progress__label {
	font-size: 12px;
}
.qm-root--fullscreen .qm-btn--start {
	min-height: 48px;
	align-self: center;
}
.qm-root--fullscreen .qm-start-note {
	text-align: center;
	margin-top: 8px;
	max-width: 700px;
}
.qm-start-hero-fallback {
	border-radius: 12px;
	overflow: hidden;
	background: var(--qm-soft);
}
.qm-start-hero-fallback img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}
.qm-start-panel {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
}
.qm-title--start {
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 800;
	line-height: 1.22;
	margin: 0 0 20px;
	max-width: 22em;
}
.qm-subtitle--start {
	margin-bottom: 18px;
}
.qm-features-list--start {
	margin: 0 0 30px;
	gap: 12px;
}
.qm-features-list--last {
	margin: 20px auto 0;
	max-width: 560px;
	text-align: left;
}
.qm-features-list--start .qm-feature {
	font-size: 15px;
	align-items: center;
}
.qm-features-list--start .qm-feature__emoji {
	font-size: 20px;
	flex: 0 0 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transform: translateY(-1px);
}
.qm-start-progress {
	margin-bottom: 26px;
}
.qm-progress-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	color: #4d5562;
	margin: 0 0 8px;
	text-transform: uppercase;
}
.qm-start-progress .qm-progress {
	height: 10px;
}

/* Step wrap (question/form/thanks) */
.qm-step-wrap {
	background: var(--qm-bg);
	border-radius: var(--qm-radius);
	box-shadow: var(--qm-shadow);
	padding: 28px 32px 32px;
	overflow: hidden;
}
.qm-question-layout--with-image {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px;
	align-items: stretch;
}
.qm-question-layout--with-image > * {
	min-width: 0;
}
.qm-question-layout--image-left .qm-step {
	order: 2;
}
.qm-question-layout--image-left .qm-question-media {
	order: 1;
}
.qm-question-layout--with-image .qm-step {
	margin: 0;
	min-width: 0;
}
.qm-question-media {
	border-radius: 12px;
	overflow: hidden;
	background: var(--qm-soft);
	border: 1px solid var(--qm-border);
	aspect-ratio: 3 / 2;
	min-height: 0;
	width: 100%;
	max-width: 100%;
}
.qm-question-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Titles */
.qm-title {
	font-size: 28px;
	line-height: 1.2;
	font-weight: 800;
	margin: 0 0 14px;
	white-space: pre-line;
}
.qm-subtitle {
	color: var(--qm-muted);
	font-size: 15px;
	line-height: 1.5;
	white-space: pre-line;
	margin-bottom: 18px;
}

.qm-q-title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 20px;
}

.qm-form-header {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 20px;
	text-align: center;
}

/* Features list */
.qm-features-list {
	list-style: none;
	padding: 0;
	margin: 22px 0 0;
	display: grid;
	gap: 10px;
}
.qm-feature {
	display: flex;
	gap: 12px;
	align-items: center;
	font-size: 14px;
	color: #2a2a30;
	line-height: 1.45;
}
.qm-feature__emoji {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(211,64,133,.1);
	color: var(--qm-accent);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	overflow: hidden;
}
.qm-feature__emoji img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.qm-feature__emoji--fallback {
	font-size: 14px;
}
.qm-feature__text {
	flex: 1;
	min-width: 0;
}

/* Progress */
.qm-progress-block { margin: 0 0 22px; }
.qm-progress {
	height: 10px;
	background: #eef0f4;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 8px;
}
.qm-progress__bar {
	height: 100%;
	background: linear-gradient(90deg, var(--qm-accent), color-mix(in srgb, var(--qm-accent) 70%, #000 0%));
	transition: width .45s cubic-bezier(.2,.8,.2,1);
	width: 0%;
}
.qm-progress__label {
	font-size: 13px;
	color: var(--qm-muted);
	font-weight: 600;
}
.qm-start-progress .qm-progress__label::before {
	content: "Скидка: ";
	color: #4d5562;
}
.qm-progress__label span:first-child { color: var(--qm-accent); }
.qm-progress__full {
	font-size: 13px;
	color: #2ecc71;
	font-weight: 600;
	margin-top: 4px;
}

/* Buttons */
.qm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--qm-accent);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: filter .15s ease, transform .08s ease;
	text-decoration: none;
	font-family: inherit;
	letter-spacing: .2px;
	text-transform: uppercase;
}
.qm-btn:hover { filter: brightness(1.05); }
.qm-btn:active { transform: translateY(1px); }
.qm-btn--ghost {
	background: transparent;
	color: var(--qm-muted);
	border: 1px solid var(--qm-border);
	text-transform: none;
	font-weight: 600;
}
.qm-btn--block { width: 100%; }
.qm-btn--start {
	position: relative;
	overflow: hidden;
	width: auto;
	min-width: 248px;
	padding-left: 28px;
	padding-right: 28px;
	align-self: flex-start;
}
.qm-start-note {
	margin-top: 10px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--qm-muted);
	max-width: 560px;
}
.qm-btn--start::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -48%;
	width: 34%;
	transform: skewX(-22deg);
	background: linear-gradient(
		90deg,
		rgba(255,255,255,0) 0%,
		rgba(255,255,255,.24) 42%,
		rgba(255,255,255,.5) 50%,
		rgba(255,255,255,.22) 58%,
		rgba(255,255,255,0) 100%
	);
	animation: qm-btn-shine 2.9s ease-in-out infinite;
	pointer-events: none;
}
.qm-btn--small { min-height: 40px; padding: 8px 16px; font-size: 14px; text-transform: none; margin-top: 10px; }
.qm-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Options (radio/checkbox) */
.qm-options { display: grid; gap: 10px; margin-bottom: 18px; }
.qm-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border: 2px solid var(--qm-border);
	border-radius: 12px;
	cursor: pointer;
	background: #fff;
	transition: border-color .15s ease, background .15s ease;
	font-size: 15px;
	font-weight: 500;
}
.qm-option:hover { border-color: var(--qm-accent); }
.qm-option input { accent-color: var(--qm-accent); width: 18px; height: 18px; flex-shrink: 0; }
.qm-option--active { border-color: var(--qm-accent); background: rgba(211,64,133,.04); }

/* Input fields */
.qm-input, .qm-field {
	display: block;
	width: 100%;
	padding: 16px 18px;
	font-size: 16px;
	font-family: inherit;
	border: 2px solid var(--qm-border);
	border-radius: 12px;
	outline: none;
	transition: border-color .15s ease;
	background: #fff;
	color: var(--qm-text);
	box-shadow: inset 0 1px 2px rgba(0,0,0,.02);
}
.qm-input:focus, .qm-field:focus { border-color: var(--qm-accent); }
.qm-input { margin-bottom: 18px; }
.qm-field { margin-bottom: 12px; }

.qm-input-wrap { position: relative; margin-bottom: 18px; }
.qm-input-wrap .qm-input { margin-bottom: 0; }
.qm-suggest-list {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	z-index: 20;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border: 2px solid var(--qm-border);
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(0,0,0,.12);
	max-height: 260px;
	overflow: auto;
}
.qm-suggest-item {
	padding: 12px 16px;
	font-size: 15px;
	cursor: pointer;
}
.qm-suggest-item:hover,
.qm-suggest-item:focus {
	background: rgba(211,64,133,.08);
}

/* Nav / form legal */
.qm-nav { display: flex; justify-content: space-between; gap: 10px; }
.qm-error {
	color: #c0392b;
	font-size: 14px;
	margin: 0 0 10px;
}
.qm-step--form {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(18px, 2vw, 28px);
	border: 1px solid var(--qm-border);
	border-radius: 14px;
	background: linear-gradient(180deg, #fff 0%, #fbfbfd 100%);
}
.qm-step--form .qm-field {
	margin-bottom: 10px;
}
.qm-step--form .qm-btn--block {
	margin-top: 8px;
}
.qm-form-note {
	margin-top: 10px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--qm-muted);
	text-align: center;
}
.qm-legal {
	color: var(--qm-muted);
	font-size: 12px;
	line-height: 1.45;
	margin-top: 16px;
	text-align: center;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}
.qm-legal a {
	color: var(--qm-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.qm-legal a:hover {
	filter: brightness(0.95);
}

/* Thanks */
.qm-thanks { text-align: center; padding: 16px 0; }
.qm-thanks__icon {
	width: 72px; height: 72px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--qm-accent);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 40px;
	font-weight: 700;
}
.qm-thanks__title { font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.qm-thanks__text  { color: var(--qm-muted); font-size: 16px; }
.qm-final-note {
	margin: 18px auto 0;
	max-width: 860px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--qm-muted);
	text-align: center;
}

/* Animations */
.qm-step-wrap, .qm-layout {
	animation: qm-fade .25s ease;
}
@keyframes qm-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes qm-btn-shine {
	0% { left: -55%; }
	45% { left: 125%; }
	100% { left: 125%; }
}

/* Mobile */
@media (max-width: 760px) {
	.qm-root:not(.qm-root--fullscreen) { padding: 16px 12px 28px; }
	.qm-layout--start {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 20px 18px 26px;
	}
	.qm-root--fullscreen {
		height: auto;
		min-height: 100vh;
		min-height: 100dvh;
		overflow: auto;
	}
	.qm-root--fullscreen .qm-layout--start {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		min-height: 0;
		height: auto;
		align-content: start;
		justify-items: stretch;
		gap: 14px;
		padding: 10px 10px 18px;
	}
	.qm-root--fullscreen .qm-start-visual,
	.qm-root--fullscreen .qm-car-banners {
		min-height: 0;
		flex: none;
	}
	.qm-root--fullscreen .qm-start-visual {
		min-height: auto;
		padding: 0;
	}
	.qm-root--fullscreen .qm-car-banners {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.qm-root--fullscreen .qm-car-banner {
		flex: none;
		min-height: 120px;
	}
	.qm-root--fullscreen .qm-car-banner__img {
		object-fit: cover;
		object-position: center;
	}
	.qm-car-banner__meta {
		padding: 7px 9px;
		font-size: 11px;
	}
	.qm-root--fullscreen .qm-start-panel {
		min-height: 0;
		padding: 0 4px 14px;
		align-items: stretch;
		background: transparent;
	}
	.qm-root--fullscreen .qm-start-panel > * { width: 100%; }
	.qm-root--fullscreen .qm-start-panel { order: 1; }
	.qm-root--fullscreen .qm-start-visual {
		order: 2;
		margin-top: 60px;
	}
	.qm-root--fullscreen .qm-title--start { text-align: center; }
	.qm-car-banner { min-height: 112px; }
	.qm-step-wrap { padding: 20px; }
	.qm-question-layout--with-image {
		grid-template-columns: 1fr;
        height: auto;
	}
	.qm-question-media {
		aspect-ratio: auto;
		min-height: 0;
	}
	.qm-title { font-size: 23px; }
	.qm-title--start { font-size: 22px; margin-bottom: 16px; }
	.qm-q-title, .qm-form-header { font-size: 20px; }
	.qm-btn { min-height: 52px; font-size: 15px; }
	.qm-btn--start { min-width: 220px; }
	.qm-step--form {
		padding: 16px;
		border-radius: 12px;
	}
	.qm-features-list--last {
		margin-top: 16px;
	}
}