* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
	background: #0a0a0a;
	color: #e8e8e8;
	overflow-x: hidden;     /* zoom не ломает layout */
	max-width: 100%;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	line-height: 1.5;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.topbar {
	display: block;
	padding: 16px 20px;
	color: #999;
	font-size: 14px;
	border-bottom: 1px solid #1a1a1a;
}
.topbar:hover { color: #fff; }

.quiz-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 32px 20px 64px;
	flex: 1;
	width: 100%;
}

.quiz-header { text-align: center; margin-bottom: 32px; }
.brand {
	display: inline-block;
	padding: 4px 12px;
	background: #cb0e7d;
	color: #fff;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-radius: 12px;
	margin-bottom: 16px;
}
.quiz-header h1 {
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 8px;
	letter-spacing: -0.02em;
}
.lead {
	color: #aaa;
	font-size: 16px;
}

.progress {
	background: #1a1a1a;
	height: 4px;
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 36px;
}
.progress__bar {
	background: linear-gradient(90deg, #cb0e7d, #ff4081);
	height: 100%;
	width: 0%;
	transition: width 0.3s ease;
}

.step { display: none; }
.step.active { display: block; animation: fadein 0.3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.qnum {
	color: #cb0e7d;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 8px;
}
.step h2 {
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 24px;
	letter-spacing: -0.01em;
}

.options { display: flex; flex-direction: column; gap: 10px; }
.opt {
	background: #131313;
	border: 1px solid #262626;
	color: #e8e8e8;
	padding: 18px 20px;
	font-size: 16px;
	font-family: inherit;
	border-radius: 12px;
	text-align: left;
	cursor: pointer;
	transition: all 0.15s ease;
}
.opt:hover {
	background: #1a1a1a;
	border-color: #cb0e7d;
	transform: translateX(2px);
}
.opt:focus-visible {
	outline: 2px solid #cb0e7d;
	outline-offset: 2px;
}

/* === RESULT === */
.result-badge {
	display: inline-block;
	padding: 6px 14px;
	background: rgba(203,14,125,0.15);
	color: #ff4081;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-radius: 12px;
	margin-bottom: 12px;
}

.result-card {
	background: #131313;
	border: 1px solid rgba(203,14,125,0.25);
	border-radius: 14px;
	padding: 20px;
	margin: 24px 0;
}
.result-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #1f1f1f;
}
.result-row:last-child { border-bottom: none; }
.result-row__label { color: #888; font-size: 14px; }
.result-row__value { color: #fff; font-weight: 700; font-size: 16px; }

.result-styles { margin: 24px 0; }
.result-styles__label {
	color: #888; font-size: 14px;
	margin-bottom: 10px;
}
.result-styles__list {
	display: flex; flex-wrap: wrap; gap: 8px;
}
.style-chip {
	display: inline-block;
	padding: 6px 12px;
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	border-radius: 999px;
	font-size: 14px;
	color: #ccc;
}

.result-form-wrap {
	margin-top: 32px;
	padding: 24px 20px;
	background: linear-gradient(135deg, rgba(203,14,125,0.08), rgba(203,14,125,0.02));
	border: 1px solid rgba(203,14,125,0.25);
	border-radius: 14px;
}
.result-form-wrap h3 {
	font-size: 18px;
	margin-bottom: 6px;
	color: #fff;
}
.result-form-wrap > p { color: #aaa; font-size: 14px; margin-bottom: 18px; }

.lead-form {
	display: flex; gap: 8px; flex-wrap: wrap;
}
.lead-form input,
.lead-form input[type=text],
.lead-form input[type=email] {
	flex: 1;
	min-width: 200px;
	padding: 14px 16px;
	background: #0e0e0e;
	border: 1px solid #2a2a2a;
	border-radius: 10px;
	color: #fff;
	font-size: 16px;       /* 16px = iOS не зумит при фокусе */
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	transition: border-color 0.15s, background 0.15s;
}
.lead-form input::placeholder { color: #666; }
.lead-form input:focus {
	outline: none;
	border-color: #cb0e7d;
	background: #131313;
	box-shadow: 0 0 0 3px rgba(203,14,125,0.15);
}

.btn-primary {
	background: #cb0e7d;
	color: #fff !important;
	border: none;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none !important;
	transition: background 0.15s, transform 0.1s;
	display: inline-block;
}
.btn-primary:hover { background: #b30b6d; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background: #555; cursor: not-allowed; }

.btn-secondary {
	background: transparent;
	color: #ccc !important;
	border: 1px solid #333;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none !important;
	display: inline-block;
}
.btn-secondary:hover { background: #1a1a1a; border-color: #555; }

.form-trust {
	margin-top: 14px;
	font-size: 12px;
	color: #777;
}
.form-error {
	margin-top: 10px;
	color: #ff6b6b;
	font-size: 14px;
	min-height: 18px;
}

.link-back {
	display: block;
	margin: 32px auto 0;
	background: transparent;
	border: none;
	color: #777;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
}
.link-back:hover { color: #ccc; }

/* === THANK YOU === */
.thanks-icon {
	width: 72px; height: 72px; margin: 0 auto 24px;
	background: rgba(203,14,125,0.15);
	color: #ff4081;
	border-radius: 50%;
	font-size: 36px;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800;
}
.lead-secondary { color: #888; font-size: 14px; margin-top: 12px; }
.thanks-actions {
	margin-top: 32px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.thanks-actions a { text-align: center; }

#step-thanks { text-align: center; }

.quiz-footer {
	text-align: center;
	padding: 24px 20px;
	font-size: 13px;
	color: #666;
	border-top: 1px solid #151515;
}
.quiz-footer a:hover { color: #999; }

@media (max-width: 600px) {
	.quiz-header h1 { font-size: 24px; }
	.step h2 { font-size: 20px; }
	.opt { padding: 16px; font-size: 15px; }
	.lead-form { flex-direction: column; }
	.lead-form input[type=email], .btn-primary { width: 100%; }
}
