.quiz-page {
    background: #050505;
}

.quiz-hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    padding: 128px 0 76px;
    overflow: hidden;
}

.quiz-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(5, 5, 5, 0.96) 0%, rgba(8, 20, 22, 0.82) 48%, rgba(12, 41, 38, 0.66) 100%),
        url("/assets/logo-mv3-original.png") center right 9% / min(520px, 52vw) auto no-repeat;
    opacity: 0.96;
}

.quiz-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0), #050505);
}

.quiz-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.64fr);
    gap: 42px;
    align-items: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 22px;
    color: #aeb9bd;
    font-size: 14px;
    font-weight: 750;
}

.breadcrumb a {
    color: #ffffff;
}

.quiz-hero-copy h1 {
    max-width: 860px;
}

.quiz-score-preview {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 26px;
    background: rgba(10, 14, 15, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.preview-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #b6c0c5;
    font-weight: 800;
}

.preview-topline strong {
    color: #3cff9a;
}

.preview-bars {
    display: grid;
    gap: 13px;
    margin: 26px 0;
}

.preview-bars span {
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    overflow: hidden;
}

.preview-bars span::before {
    content: "";
    display: block;
    width: var(--value);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #20c4df, #3cff9a);
}

.preview-card {
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.preview-card strong {
    display: block;
    margin-bottom: 12px;
    color: #ffffff;
}

.preview-card ul,
.result-columns ul,
.free-material ol {
    margin: 0;
    padding-left: 20px;
}

.preview-card li,
.result-columns li,
.free-material li {
    margin: 8px 0;
    color: #d7e1e4;
    line-height: 1.55;
}

.quiz-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.quiz-card,
.quiz-side,
.result-card,
.free-material {
    border: 1px solid rgba(17, 21, 20, 0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(17, 21, 20, 0.09);
}

.quiz-card {
    padding: 30px;
}

.quiz-card-header {
    max-width: 760px;
}

.quiz-card-header p,
.lead-gate p,
.quiz-side p,
.free-material p,
.faq-compact p {
    color: #4e5a5f;
}

.quiz-progress {
    height: 12px;
    margin: 28px 0;
    border-radius: 999px;
    background: rgba(17, 21, 20, 0.09);
    overflow: hidden;
}

.quiz-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #20c4df, #3cff9a);
    transition: width 180ms ease;
}

.quiz-question {
    display: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.quiz-question.is-active {
    display: block;
}

.quiz-question legend {
    display: block;
    width: 100%;
    padding: 0;
}

.question-kicker {
    margin-bottom: 10px;
    color: #168ea1;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.question-title {
    max-width: 760px;
    margin-bottom: 18px;
    color: #111514;
    font-size: clamp(25px, 3vw, 36px);
}

.answer-grid {
    display: grid;
    gap: 12px;
}

.answer-option {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    padding: 18px;
    border: 1px solid rgba(17, 21, 20, 0.13);
    border-radius: 8px;
    color: #111514;
    background: #f7faf9;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.answer-option:hover {
    transform: translateY(-1px);
    border-color: rgba(32, 196, 223, 0.55);
}

.answer-option input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: #168ea1;
}

.answer-option:has(input:checked) {
    border-color: rgba(32, 196, 223, 0.9);
    background: #ecfbf8;
}

.answer-option strong {
    display: block;
    margin-bottom: 5px;
    color: #111514;
}

.answer-option span {
    color: #4e5a5f;
    line-height: 1.52;
}

.lead-gate {
    display: none;
}

.lead-gate.is-active {
    display: grid;
    gap: 22px;
}

.lead-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lead-grid label {
    display: grid;
    gap: 8px;
    color: #111514;
    font-weight: 850;
}

.lead-grid input {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(17, 21, 20, 0.16);
    border-radius: 8px;
    padding: 0 14px;
    color: #111514;
    background: #f7faf9;
    outline: none;
}

.lead-grid input:focus {
    border-color: #20c4df;
    box-shadow: 0 0 0 4px rgba(32, 196, 223, 0.15);
}

.quiz-alert {
    min-height: 24px;
    margin: 18px 0 0;
    color: #a13500;
    font-weight: 800;
}

.quiz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.quiz-actions [data-quiz-submit] {
    display: none;
}

.quiz-actions.is-final [data-quiz-next] {
    display: none;
}

.quiz-actions.is-final [data-quiz-submit] {
    display: inline-flex;
}

.quiz-side {
    position: sticky;
    top: 98px;
    padding: 24px;
}

.side-points {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.side-points div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
}

.side-points svg {
    width: 28px;
    height: 28px;
    color: #168ea1;
}

.side-points span {
    color: #334044;
    line-height: 1.55;
}

.result-section {
    background: #050505;
}

.result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
}

.result-card,
.free-material {
    padding: 30px;
}

.result-card {
    color: #111514;
}

.result-card .lead {
    color: #334044;
}

.result-meter {
    height: 18px;
    margin: 24px 0;
    border-radius: 999px;
    background: rgba(17, 21, 20, 0.1);
    overflow: hidden;
}

.result-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #20c4df, #3cff9a);
    transition: width 240ms ease;
}

.result-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 22px 0 26px;
}

.result-columns li,
.free-material li {
    color: #334044;
}

.free-material {
    color: #111514;
}

.faq-compact .faq-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.faq-box {
    border: 1px solid rgba(17, 21, 20, 0.12);
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
}

@media (max-width: 980px) {
    .quiz-hero-grid,
    .quiz-layout,
    .result-grid,
    .faq-compact .faq-list {
        grid-template-columns: 1fr;
    }

    .quiz-side {
        position: static;
    }

    .quiz-hero::before {
        background:
            linear-gradient(140deg, rgba(5, 5, 5, 0.96), rgba(8, 22, 23, 0.92)),
            url("/assets/logo-mv3-original.png") center bottom 18% / 460px auto no-repeat;
    }
}

@media (max-width: 700px) {
    .quiz-hero {
        min-height: auto;
        padding: 108px 0 58px;
    }

    .quiz-card,
    .quiz-side,
    .result-card,
    .free-material {
        padding: 22px;
    }

    .lead-grid,
    .result-columns {
        grid-template-columns: 1fr;
    }

    .answer-option {
        padding: 16px;
    }

    .quiz-actions .btn {
        width: 100%;
    }
}
