*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }

:root {
    --bg: #FFFFFF;
    --bg-soft: #F0F0F5;
    --ink: #0A143C;
    --ink-soft: #8C96A0;
    --line: #E8EAED;
    --accent: #3C50C8;
    --accent-2: #3200F0;
    --button: #0A143C;
    --button-hover: #2a3458;
    --highlight: #fac850;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ============ HEADER ============ */
.header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    padding: 18px 0;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.header__logo { display: flex; align-items: center; text-decoration: none; }
.header__logo img {
    display: block;
    height: 28px;
    width: auto;
}
.header__cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: 0;
    background: var(--button);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}
.header__cta:hover { background: var(--button-hover); }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FB 100%);
}
.hero__bg {
    position: absolute; inset: 0;
    pointer-events: none;
}
.hero__bg svg {
    width: 100%; height: 100%; display: block;
}
.hero__overlay {
    position: absolute; inset: 0;
    background: transparent;
}
.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.hero__title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 24px;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.accent {
    color: var(--accent);
    font-weight: 700;
}

.hero__sub {
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.5;
    margin: 0 auto 14px;
    color: var(--ink);
    max-width: 760px;
    font-weight: 500;
}
.hero__note {
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.55;
    margin: 0 auto 36px;
    color: var(--ink-soft);
    max-width: 700px;
    font-weight: 400;
}
.hero__note--accent {
    color: var(--accent);
    font-weight: 600;
}

.hero__ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ BUTTON ============ */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    border: 0;
    cursor: pointer;
    color: #fff;
    background: var(--button);
    transition: background .2s ease, transform .1s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
    text-decoration: none;
}
.btn:hover { background: var(--button-hover); }
.btn:active { transform: translateY(1px); }
.btn__ico { font-size: 14px; line-height: 16px; display: inline-flex; align-items: center; transform: rotate(90deg); }

/* ============ QUIZ SECTION ============ */
.quiz-section {
    background: var(--bg-soft);
    padding: 80px 24px;
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    scroll-margin-top: 20px;
}
.quiz-section__inner {
    max-width: 1160px;
    margin: 0 auto;
}

.quiz-section__title {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: clamp(22px, 2.6vw, 36px);
    font-weight: 700;
    color: var(--ink);
    max-width: 800px;
    margin: 0 auto 48px;
    line-height: 1.25;
    letter-spacing: -0.005em;
}

.quiz {
    background: #fff;
    padding: 48px 56px 32px;
    border-radius: var(--radius-lg);
    position: relative;
    border: 1px solid var(--line);
    overflow: hidden;
}

.quiz__progress-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--line);
}
.quiz__progress-line-fill {
    height: 100%;
    width: var(--progress, 0%);
    background: var(--accent);
    transition: width .4s ease;
}

.quiz__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    min-height: 360px;
    padding: 24px 0 32px;
    animation: fadeSlide .35s ease;
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz__left { display: flex; flex-direction: column; }
.quiz__right { display: flex; flex-direction: column; }

.quiz__step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.quiz__step-label span { color: inherit; font-weight: 600; }

.question__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.005em;
}
.question__hint {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
    max-width: 380px;
    font-weight: 500;
}

.options { display: grid; gap: 8px; }
.option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    transition: border-color .18s ease, background .18s ease;
}
.option:hover {
    border-color: var(--accent);
    background: #fbfbfd;
}
.option--active {
    border-color: var(--accent);
    background: #f4f5fc;
}
.option__num { display: none; }
.option__check {
    flex-shrink: 0;
    width: 16px; height: 16px;
    border: 1.5px solid var(--line);
    background: transparent;
    border-radius: 4px;
    position: relative;
    transition: all .18s ease;
}
.option--active .option__check {
    background: var(--accent);
    border-color: var(--accent);
}
.option--active .option__check::after {
    content: '';
    position: absolute;
    left: 4px; top: 1px;
    width: 4px; height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.option__text { flex: 1; }

.quiz__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    gap: 12px;
}
.quiz__footer .btn--quiz { margin-left: auto; }

.btn--quiz {
    font-family: 'Montserrat', sans-serif;
    background: var(--button);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0;
    padding: 14px 36px;
    border-radius: var(--radius-pill);
    border: 0;
    transition: background .2s ease;
    text-transform: none;
    box-shadow: none;
}
.btn--quiz:hover { background: var(--button-hover); filter: none; box-shadow: none; }

.btn--ghost {
    font-size: 14px;
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 12px 0;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}
.btn--ghost:hover { color: var(--ink); background: transparent; border: 0; box-shadow: none; filter: none; }

.quiz__progress-text {
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 500;
}

/* ============ FORM ============ */
.form-field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}
.form-field label {
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
}
.form-field input {
    font-family: inherit;
    font-size: 15px;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    outline: 0;
}
.form-field input:focus { border-color: var(--accent); }

.consent {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 12px;
    cursor: pointer;
}
.consent input { margin-top: 2px; accent-color: var(--accent); }
.consent__link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s ease;
}
.consent__link:hover { color: var(--accent); }

/* ============ THANKS ============ */
.thanks {
    text-align: center;
    padding: 60px 0;
    grid-column: 1 / -1;
}
.thanks__icon {
    width: 56px; height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 22px;
}
.thanks__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink);
    letter-spacing: -0.005em;
}
.thanks__text {
    color: var(--ink-soft);
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============ FOOTER ============ */
.footer {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 40px 24px;
    color: var(--ink-soft);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.7;
}
.footer__inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.footer__logo { display: flex; align-items: center; text-decoration: none; }
.footer__logo img {
    display: block;
    height: 28px;
    width: auto;
}
.footer__cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: 0;
    background: var(--button);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
    white-space: nowrap;
}
.footer__cta:hover { background: var(--button-hover); }

.footer__legal {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.7;
}
.footer__legal b { color: var(--ink); font-weight: 600; }
.footer__legal-info span + span::before { content: " · "; }
.footer__disclaimer {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink-soft);
}

/* ============ CALLBACK MODAL ============ */
.cb-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cb-modal[hidden] { display: none; }
.cb-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 60, .55);
    backdrop-filter: blur(6px);
    animation: cbFade .2s ease;
}
.cb-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 36px 32px;
    box-shadow: 0 30px 80px -20px rgba(10, 20, 60, .35);
    animation: cbSlideUp .25s ease;
}
@keyframes cbFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes cbSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.cb-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.cb-modal__close:hover {
    background: var(--bg-soft);
    color: var(--ink);
}

.cb-modal__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
    letter-spacing: -0.005em;
}
.cb-modal__sub {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0 0 24px;
    line-height: 1.5;
}
.cb-modal__submit {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
}

.cb-thanks {
    text-align: center;
    padding: 20px 0 4px;
}
.cb-thanks .thanks__icon {
    margin-bottom: 16px;
}
.cb-thanks .thanks__title {
    font-size: 22px;
    margin-bottom: 8px;
}
.cb-thanks .thanks__text {
    font-size: 14px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .quiz { padding: 36px 28px 24px; }
    .quiz__content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 20px 0 28px;
        min-height: 0;
    }
    .quiz__step-label { margin-bottom: 0; }
}

@media (max-width: 640px) {
    .header { padding: 12px 0; }
    .header__inner { padding: 0 16px; }
    .header__logo img { height: 24px; }
    .header__cta { font-size: 13px; padding: 10px 16px; }
    .hero { padding: 100px 16px 40px; min-height: 80vh; }
    .hero__title { font-size: 24px; line-height: 1.3; }
    .hero__sub { font-size: 15px; }
    .hero__ctas { gap: 12px; flex-direction: column; align-items: stretch; }
    .btn { font-size: 14px; padding: 14px 22px; justify-content: center; }
    .quiz-section { padding: 56px 16px; }
    .quiz-section__title { margin-bottom: 32px; }
    .quiz { padding: 28px 20px 20px; }
    .btn--quiz { padding: 14px 24px; }
    .footer { padding: 32px 16px; }
    .footer__top { flex-wrap: wrap; gap: 16px; }
    .footer__cta { font-size: 13px; padding: 10px 18px; }
    .footer__legal-info span { display: block; }
    .footer__legal-info span + span::before { content: ""; }
    .cb-modal__dialog { padding: 28px 24px 24px; }
    .cb-modal__title { font-size: 20px; }
}
