.quiz-page-body {
    min-height: 100vh;
}

.quiz-page-shell {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
}

.quiz-page-shell::before,
.quiz-page-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.quiz-page-shell::before {
    z-index: -2;
    background:
        radial-gradient(circle at 10% 12%, rgba(var(--accent-rgb), 0.14), transparent 22%),
        radial-gradient(circle at 82% 8%, rgba(214, 184, 132, 0.1), transparent 20%),
        radial-gradient(circle at 68% 82%, rgba(var(--accent-rgb), 0.08), transparent 24%);
}

.quiz-page-shell::after {
    z-index: -1;
    background: linear-gradient(180deg, rgba(11, 13, 12, 0.08), rgba(11, 13, 12, 0.24));
}

.quiz-page-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding-top: 14px;
}

.quiz-page-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 250, 242, 0.06), rgba(255, 250, 242, 0.02)),
        rgba(14, 17, 14, 0.72);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.quiz-page-brand {
    gap: 0.85rem;
}

html[data-theme="dark"] .quiz-page-brand img {
    filter: brightness(0) invert(1);
}

.quiz-page-brand-copy {
    display: grid;
    gap: 0.18rem;
}

.quiz-page-brand-title {
    color: rgba(var(--accent-strong-rgb), 0.92);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.quiz-page-brand-meta {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.quiz-page-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.quiz-page-header-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease, transform 0.25s ease;
}

.quiz-page-header-link:hover,
.quiz-page-header-link:focus-visible {
    color: var(--text);
    transform: translateY(-1px);
}

.quiz-page-header-phone {
    min-height: 48px;
    padding-inline: 1.25rem;
}

.quiz-page-main {
    padding: clamp(2.5rem, 6vw, 4.6rem) 0 4.5rem;
}

.quiz-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 1.25rem;
    align-items: start;
}

.quiz-hero-copy,
.quiz-hero-aside,
.quiz-page-lead .modal-dialog {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 250, 242, 0.07), rgba(255, 250, 242, 0.03)),
        rgba(14, 17, 14, 0.6);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quiz-hero-copy::before,
.quiz-hero-aside::before,
.quiz-page-lead .modal-dialog::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.42), transparent);
    opacity: 0.8;
}

.quiz-hero-copy {
    padding: clamp(1.55rem, 3vw, 2.6rem);
}

.quiz-hero-copy h1 {
    max-width: 11ch;
    font-family: "Tenor Sans", sans-serif;
    font-size: clamp(2.85rem, 6vw, 5.1rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.quiz-hero-lead {
    max-width: 40rem;
    margin-top: 1.1rem;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.quiz-hero-points {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.quiz-hero-point {
    min-height: 100%;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 250, 242, 0.03);
}

.quiz-hero-point strong {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    line-height: 1.2;
}

.quiz-hero-point p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.quiz-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.quiz-hero-aside {
    display: grid;
    gap: 1rem;
    align-self: stretch;
    padding: clamp(1.4rem, 2.8vw, 2rem);
}

.quiz-hero-aside h2 {
    max-width: 14ch;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.08;
    text-wrap: balance;
}

.quiz-step-list {
    list-style: none;
    counter-reset: quiz-step;
    display: grid;
    gap: 0.8rem;
}

.quiz-step-list li {
    position: relative;
    padding: 1rem 1rem 1rem 4rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 250, 242, 0.03);
}

.quiz-step-list li::before {
    counter-increment: quiz-step;
    content: counter(quiz-step);
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8dc6f, var(--accent) 62%, #8ea630 100%);
    color: var(--accent-dark);
    font-weight: 800;
    font-size: 0.95rem;
}

.quiz-step-list strong {
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.quiz-step-list span {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.quiz-page-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.quiz-page-stat {
    padding: 0.95rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 250, 242, 0.03);
}

.quiz-page-stat strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.15;
}

.quiz-page-stat span {
    color: var(--muted);
    font-size: 0.92rem;
}

.quiz-page-lead {
    padding-top: 2rem;
    padding-bottom: 0;
}

.quiz-page-lead .modal-dialog {
    padding: clamp(1.4rem, 3vw, 2rem);
}

.quiz-page-lead .modal-copy {
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    max-width: none;
    padding-right: 0;
    text-align: center;
}

.quiz-page-lead .modal-copy .section-tag {
    justify-self: center;
}

.quiz-page-lead .modal-copy h2 {
    max-width: 24ch;
    text-wrap: balance;
}

.quiz-page-support {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

.quiz-page-support-title {
    margin-bottom: 0.85rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.quiz-page-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quiz-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.4rem;
    justify-content: center;
}

.quiz-page-footer {
    padding: 2rem 0 2.6rem;
}

.quiz-page-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.quiz-page-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.quiz-page-footer-links a {
    color: inherit;
    text-decoration: none;
}

.quiz-page-footer-links a:hover,
.quiz-page-footer-links a:focus-visible {
    color: var(--text);
}

html[data-theme="light"] .quiz-page-header-inner,
html[data-theme="light"] .quiz-hero-copy,
html[data-theme="light"] .quiz-hero-aside,
html[data-theme="light"] .quiz-page-lead .modal-dialog {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 249, 240, 0.46)),
        rgba(255, 249, 242, 0.68);
}

html[data-theme="light"] .quiz-page-shell::after {
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.16), rgba(236, 225, 210, 0.24));
}

html[data-theme="light"] .quiz-hero-point,
html[data-theme="light"] .quiz-step-list li,
html[data-theme="light"] .quiz-page-stat {
    background: rgba(255, 252, 247, 0.64);
}

html[data-quiz-embed="true"],
html[data-quiz-embed="true"] body {
    background: transparent;
}

html[data-quiz-embed="true"] .quiz-page-header,
html[data-quiz-embed="true"] .quiz-hero,
html[data-quiz-embed="true"] .quiz-page-footer,
html[data-quiz-embed="true"] .quiz-page-support {
    display: none;
}

html[data-quiz-embed="true"] .quiz-page-shell::before,
html[data-quiz-embed="true"] .quiz-page-shell::after {
    display: none;
}

html[data-quiz-embed="true"] .quiz-page-shell,
html[data-quiz-embed="true"] .quiz-page-main {
    min-height: 0;
}

html[data-quiz-embed="true"] .quiz-page-shell {
    padding: 0;
    background: transparent;
}

html[data-quiz-embed="true"] .quiz-page-main {
    padding: 0;
}

html[data-quiz-embed="true"] .quiz-page-lead {
    padding: 0;
}

html[data-quiz-embed="true"] .quiz-page-lead .container {
    width: min(100%, 100%);
    max-width: none;
    padding: 0;
}

html[data-quiz-embed="true"] .quiz-page-lead .modal-dialog {
    width: 100%;
    max-width: none;
    padding: clamp(1.2rem, 2.4vw, 1.8rem);
    border-radius: 28px;
    box-shadow: none;
}

html[data-quiz-embed="true"] .quiz-page-lead .modal-copy h2 {
    max-width: 28ch;
}

@media (max-width: 1100px) {
    .quiz-hero-shell {
        grid-template-columns: 1fr;
    }

    .quiz-hero-copy h1 {
        max-width: 13ch;
    }
}

@media (max-width: 900px) {
    .quiz-page-header {
        padding-top: 10px;
    }

    .quiz-page-header-inner,
    .quiz-page-footer-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .quiz-page-header-actions {
        justify-content: flex-start;
    }

    .quiz-hero-points,
    .quiz-page-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .quiz-page-main {
        padding-top: 1.6rem;
        padding-bottom: 3rem;
    }

    .quiz-page-brand {
        gap: 0.65rem;
    }

    .quiz-page-brand-copy {
        gap: 0.12rem;
    }

    .quiz-page-brand-meta {
        font-size: 0.92rem;
    }

    .quiz-step-list li {
        padding-left: 3.5rem;
    }

    .quiz-success-actions,
    .quiz-page-support-actions {
        display: grid;
    }
}
