:root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #162033;
    --muted: #667085;
    --line: #dbe4f0;
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --accent: #eef2ff;
    --success: #12b76a;
    --shadow: 0 20px 50px rgba(17, 24, 39, 0.10);
    --radius: 24px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top left, #eef2ff 0%, var(--bg) 45%, #eef6ff 100%);
    color: var(--text);
}
.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}
.quiz-shell { width: 100%; max-width: 1180px; }
.quiz-card {
    display: grid;
    grid-template-columns: 380px 1fr;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.quiz-aside {
    padding: 40px 32px;
    background: linear-gradient(160deg, #1d4ed8 0%, #4f46e5 100%);
    color: #fff;
}
.badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}
.quiz-aside h1 { font-size: 34px; line-height: 1.15; margin: 0 0 16px; }
.quiz-aside p { color: rgba(255,255,255,0.9); line-height: 1.65; margin: 0 0 24px; }
.benefits { margin: 0 0 30px; padding-left: 18px; line-height: 1.8; color: rgba(255,255,255,0.95); }
.progress-wrap { margin-top: auto; padding-top: 14px; }
.progress-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: rgba(255,255,255,0.92); }
.progress-bar { width: 100%; height: 10px; background: rgba(255,255,255,0.2); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; transition: width .25s ease; }
.quiz-main { padding: 40px 36px; }
.step { display: none; animation: fade .25s ease; }
.step.active { display: block; }
.step h2 { margin: 0 0 14px; font-size: 30px; line-height: 1.2; }
.lead-text { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.options { display: grid; gap: 14px; margin-top: 24px; }
.option-card {
    position: relative;
    display: block;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 18px 18px 54px;
    cursor: pointer;
    transition: .2s ease;
    background: #fff;
    font-weight: 600;
}
.option-card:hover, .option-card.selected {
    border-color: var(--primary);
    background: var(--accent);
    transform: translateY(-1px);
}
.option-card input {
    position: absolute;
    opacity: 0;
}
.option-card::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #b7c3d5;
    background: #fff;
}
.option-card.selected::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    outline: none;
    font-size: 16px;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,70,229,0.12); }
.consent { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.nav-row {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 32px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 14px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #eef2f7; color: var(--text); }
.hidden { display: none; }
.error-text { min-height: 22px; color: #b42318; margin-top: 14px; font-weight: 600; }
.hp-field { position: absolute !important; left: -9999px !important; }
.success-page { background: linear-gradient(180deg, #eef2ff 0%, #f8fbff 100%); }
.success-card {
    background: #fff;
    padding: 42px 32px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    max-width: 560px;
    text-align: center;
}
.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(18,183,106,0.12);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 18px;
}
.success-card h1 { margin: 0 0 12px; font-size: 34px; }
.success-card p { color: var(--muted); line-height: 1.7; margin: 0 0 26px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
    .quiz-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .quiz-aside, .quiz-main { padding: 28px 20px; }
    .step h2 { font-size: 24px; }
    .quiz-aside h1 { font-size: 28px; }
    .form-grid { grid-template-columns: 1fr; }
    .nav-row { flex-direction: column; }
    .btn { width: 100%; }
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
