:root {
    --ink: #15212a;
    --muted: #60717e;
    --paper: #ffffff;
    --soft: #f3f7f9;
    --line: #d9e3ea;
    --road: #26343f;
    --accent: #e63746;
    --accent-dark: #bd1f2d;
    --gold: #f5b84b;
    --green: #2f8f69;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 10%, rgba(245, 184, 75, 0.16), transparent 28%),
        radial-gradient(circle at 88% 4%, rgba(47, 143, 105, 0.14), transparent 25%),
        var(--soft);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.quiz-shell {
    min-height: 100vh;
}

.quiz-start-page {
    position: relative;
}

.quiz-shell.compact {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 56px;
}

.quiz-hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    padding: 22px clamp(18px, 5vw, 72px) 68px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(21, 33, 42, 0.94), rgba(38, 52, 63, 0.62)),
        url("/static/images/hero-training-car-highway.webp") center / cover no-repeat;
}

.quiz-start-hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 790px;
    padding: 78px clamp(18px, 5vw, 72px) 76px;
    background:
        radial-gradient(circle at 78% 18%, rgba(245, 184, 75, 0.28), transparent 24%),
        linear-gradient(112deg, rgba(12, 20, 28, 0.96) 0%, rgba(21, 33, 42, 0.82) 44%, rgba(21, 33, 42, 0.28) 78%),
        url("/static/images/quiz-question-banner-desktop.webp") center / cover no-repeat;
    background-attachment: scroll;
}

.quiz-start-hero::before {
    content: "";
    position: absolute;
    inset: auto -10% -120px -10%;
    height: 260px;
    background:
        linear-gradient(90deg, transparent 0 14%, rgba(255, 255, 255, 0.2) 14% 16%, transparent 16% 34%, rgba(255, 255, 255, 0.2) 34% 36%, transparent 36% 54%, rgba(255, 255, 255, 0.2) 54% 56%, transparent 56% 74%, rgba(255, 255, 255, 0.2) 74% 76%, transparent 76%),
        linear-gradient(180deg, rgba(38, 52, 63, 0), rgba(38, 52, 63, 0.98) 34%, #17242e);
    transform: perspective(520px) rotateX(62deg);
    transform-origin: bottom;
    animation: road-flow 4.8s linear infinite;
}

.quiz-start-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 8px;
    background: repeating-linear-gradient(90deg, var(--gold), var(--gold) 72px, transparent 72px, transparent 110px);
}

.quiz-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 86px;
}

.quiz-topbar a {
    font-weight: 900;
    text-decoration: none;
}

.quiz-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.quiz-brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    background: url("/static/images/logo-car.svg") center / contain no-repeat;
}

.quiz-topbar div {
    display: inline-flex;
    gap: 6px;
}

.quiz-topbar div a,
.quiz-topbar.light a + a {
    min-width: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    text-align: center;
}

.quiz-topbar div a.active {
    color: var(--road);
    background: var(--gold);
    border-color: var(--gold);
}

.quiz-topbar.light {
    margin-bottom: 26px;
    color: var(--ink);
}

.quiz-topbar.light a + a {
    border-color: var(--line);
}

.quiz-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 38px;
    align-items: end;
}

.quiz-start-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 520px);
    min-height: 620px;
    align-items: center;
}

.quiz-start-copy {
    max-width: 760px;
    animation: content-rise 0.7s ease both;
}

.quiz-kicker {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.question-panel .quiz-kicker,
.result-hero .quiz-kicker {
    color: var(--accent);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 860px;
    margin-bottom: 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1;
}

.quiz-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(18px, 2vw, 23px);
}

.quiz-start-copy h1 {
    max-width: 780px;
    font-size: clamp(46px, 7vw, 92px);
    letter-spacing: 0;
}

.quiz-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.quiz-hero-chips span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

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

.quiz-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.quiz-button.primary {
    color: #fff;
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 16px 34px rgba(230, 55, 70, 0.24);
}

.quiz-button.primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(230, 55, 70, 0.32);
}

.quiz-button:hover {
    transform: translateY(-2px);
    border-color: rgba(21, 33, 42, 0.2);
}

.quiz-start-button {
    position: relative;
    overflow: hidden;
    min-width: 190px;
}

.quiz-start-button::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -40%;
    width: 34%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    animation: button-shine 2.9s ease-in-out infinite;
}

.quiz-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(21, 33, 42, 0.72);
}

.quiz-card span {
    display: block;
    color: var(--gold);
    font-size: 42px;
    font-weight: 900;
}

.quiz-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
}

.quiz-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
}

.quiz-dashboard {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(248, 251, 253, 0.12);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
    animation: dashboard-in 0.8s ease 0.08s both;
}

.quiz-dashboard::before {
    content: "";
    position: absolute;
    inset: -120px -90px auto auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(245, 184, 75, 0.18);
}

.quiz-preview-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.18);
}

.quiz-preview-card img {
    width: 100%;
    height: 176px;
    object-fit: cover;
}

.quiz-preview-card div {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.quiz-preview-card span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.quiz-preview-card strong {
    color: var(--ink);
    font-size: 24px;
    line-height: 1.08;
}

.quiz-preview-card p {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--soft);
    font-size: 14px;
    font-weight: 850;
}

.quiz-preview-card i {
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(21, 33, 42, 0.3);
    border-radius: 50%;
}

.quiz-dashboard-bottom {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(21, 33, 42, 0.78);
}

.quiz-speedometer {
    position: relative;
    display: grid;
    width: min(132px, 80vw);
    aspect-ratio: 1;
    place-items: center;
    margin: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(21, 33, 42, 0.96) 0 48%, transparent 49%),
        conic-gradient(from 220deg, var(--accent) 0 74deg, var(--gold) 74deg 138deg, rgba(255, 255, 255, 0.18) 138deg 300deg, transparent 300deg);
}

.quiz-speedometer span {
    position: absolute;
    width: 4px;
    height: 42%;
    border-radius: 999px;
    background: linear-gradient(var(--gold), var(--accent));
    transform-origin: 50% 92%;
    transform: rotate(42deg);
    animation: needle 2.8s ease-in-out infinite;
}

.quiz-speedometer strong {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 46px;
    line-height: 0.9;
}

.quiz-speedometer em {
    position: absolute;
    bottom: 25px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.quiz-dashboard-copy p {
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.quiz-dashboard-copy h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
}

.quiz-dashboard-copy span {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.quiz-road-line {
    height: 8px;
    margin: 14px 2px 0;
    border-radius: 999px;
    background: repeating-linear-gradient(90deg, var(--gold), var(--gold) 44px, transparent 44px, transparent 68px);
    opacity: 0.82;
    animation: dash-slide 1.3s linear infinite;
}

.quiz-benefits,
.quiz-stats {
    display: grid;
    width: min(1100px, calc(100% - 32px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: -46px auto 56px;
    position: relative;
    z-index: 2;
}

.quiz-benefits article,
.quiz-stats article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(24, 39, 51, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.quiz-benefits article:hover,
.quiz-stats article:hover,
.quiz-topic-grid article:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 55, 70, 0.22);
    box-shadow: 0 24px 48px rgba(24, 39, 51, 0.12);
}

.quiz-benefits strong,
.quiz-stats strong {
    display: block;
    color: var(--accent);
    font-size: 34px;
}

.quiz-benefits span,
.quiz-stats span,
.quiz-muted,
.result-hero p {
    color: var(--muted);
}

.quiz-start-content,
.quiz-motivation,
.quiz-flow {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto 62px;
}

.quiz-flow {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 54px;
}

.quiz-flow-copy p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.quiz-flow-copy h2 {
    margin-bottom: 12px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
}

.quiz-flow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.quiz-flow-steps article {
    display: grid;
    gap: 10px;
    min-height: 210px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(24, 39, 51, 0.07);
}

.quiz-flow-steps span {
    display: inline-flex;
    width: fit-content;
    min-width: 42px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 8px;
    color: #fff;
    background: var(--road);
    font-weight: 950;
}

.quiz-flow-steps h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
}

.quiz-flow-steps p {
    margin: 0;
    color: var(--muted);
    font-weight: 760;
}

.quiz-topic-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(280px, 0.7fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 22px;
}

.quiz-topic-heading h2,
.quiz-motivation h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.06;
}

.quiz-topic-heading p:last-child,
.quiz-motivation p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

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

.quiz-topic-grid article {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(24, 39, 51, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.quiz-topic-grid article::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(245, 184, 75, 0.16);
}

.quiz-topic-grid span {
    display: inline-flex;
    min-width: 44px;
    height: 32px;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border-radius: 8px;
    color: #fff;
    background: var(--road);
    font-weight: 900;
}

.quiz-topic-grid p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
}

.quiz-motivation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 34px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(120deg, rgba(38, 52, 63, 0.36), rgba(0, 0, 0, 0.92)), url("/static/images/IMG_6574.webp") center / cover no-repeat;
    box-shadow: 0 24px 60px rgba(21, 33, 42, 0.14);
}

.quiz-motivation .quiz-kicker {
    color: var(--gold);
}

.quiz-motivation p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
}

.quiz-motivation p.quiz-kicker {
    color: var(--gold);
}

@keyframes content-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dashboard-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes needle {
    0%,
    100% {
        transform: rotate(32deg);
    }

    50% {
        transform: rotate(54deg);
    }
}

@keyframes dash-slide {
    to {
        background-position: 68px 0;
    }
}

@keyframes button-shine {
    0%,
    42% {
        left: -40%;
    }

    72%,
    100% {
        left: 120%;
    }
}

@keyframes road-flow {
    to {
        background-position: 110px 0, 0 0;
    }
}

.question-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1fr);
    gap: 26px;
    align-items: start;
}

.quiz-question-page {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 70px;
}

.quiz-question-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(240px, 28vw, 360px);
    margin-bottom: 22px;
    border-radius: 8px;
    color: #fff;
    background: var(--road);
    box-shadow: 0 24px 60px rgba(21, 33, 42, 0.14);
}

.quiz-question-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 7px;
    background: repeating-linear-gradient(90deg, var(--gold), var(--gold) 68px, transparent 68px, transparent 104px);
    animation: dash-slide 1.8s linear infinite;
}

.quiz-question-banner-media {
    position: absolute;
    inset: 0;
    display: block;
}

.quiz-question-banner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
    animation: none;
}

.quiz-question-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    padding: 34px;
    background:
        linear-gradient(90deg, rgba(21, 33, 42, 0.82), rgba(21, 33, 42, 0.34) 48%, rgba(21, 33, 42, 0.68)),
        linear-gradient(0deg, rgba(21, 33, 42, 0.62), transparent 58%);
}

.quiz-question-hero h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 70px);
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.quiz-question-hero .quiz-button {
    position: relative;
    z-index: 1;
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.quiz-question-hero .quiz-button:hover {
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.2);
}

.question-layout-upgraded {
    grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1fr);
    gap: 22px;
}

.question-media-card,
.question-panel-upgraded {
    animation: content-rise 0.55s ease both;
}

.question-panel-upgraded {
    animation-delay: 0.06s;
}

.question-media-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 50px rgba(21, 33, 42, 0.1);
}

.question-media-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    color: #fff;
    background: var(--road);
}

.question-media-top span,
.question-panel-head span {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.question-media-top strong {
    color: var(--gold);
    font-size: 24px;
    line-height: 1;
}

.question-media-card .question-media {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.question-media-card .question-media img {
    min-height: 420px;
    max-height: 560px;
    transition: transform 0.45s ease;
}

.question-media-card:hover .question-media img {
    transform: scale(1.025);
}

.question-progress-card {
    padding: 18px;
}

.question-progress-card p {
    margin: 12px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.question-panel-upgraded {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: clamp(22px, 3vw, 34px);
    box-shadow: 0 22px 50px rgba(21, 33, 42, 0.1);
}

.question-panel-upgraded::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgb(245 75 75 / 14%);
}

.question-panel-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.question-panel-head .quiz-kicker {
    margin: 0;
}

.question-panel-head span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--road);
    background: #f8e5bd;
}

.question-panel-upgraded h1,
.question-panel-upgraded .quiz-muted,
.question-panel-upgraded .answer-form {
    position: relative;
    z-index: 1;
}

.question-panel-upgraded h1 {
    font-size: clamp(30px, 4vw, 50px);
}

.question-media,
.question-panel,
.result-hero,
.answer-review {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(24, 39, 51, 0.06);
}

.question-media {
    overflow: hidden;
}

.question-media img {
    width: 100%;
    min-height: 360px;
    object-fit: cover;
}

.question-panel,
.result-hero,
.answer-review {
    padding: 28px;
}

.question-panel h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
}

.quiz-progress {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.quiz-progress span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.quiz-progress div {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: var(--line);
}

.quiz-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--gold));
    transition: width 0.5s ease;
}

.answer-form {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.answer-form label {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 12px;
    align-items: center;
    min-height: 74px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(21, 33, 42, 0.04);
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.answer-form label:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 143, 105, 0.34);
    box-shadow: 0 18px 34px rgba(21, 33, 42, 0.08);
}

.answer-form label:has(input:checked) {
    border-color: var(--green);
    background: #ecf8f2;
    box-shadow: 0 16px 34px rgba(47, 143, 105, 0.14);
}

.answer-form input {
    width: 20px;
    height: 20px;
    margin-top: 6px;
    accent-color: var(--green);
}

.answer-form em {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: var(--road);
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.answer-form label:has(input:checked) em {
    background: var(--green);
}

.answer-form label span {
    min-width: 0;
    color: var(--ink);
    font-size: 17px;
    font-weight: 850;
}

.answer-form .quiz-button {
    width: 100%;
    margin-top: 4px;
}

.result-hero {
    margin-bottom: 22px;
}

.result-hero h1 {
    font-size: clamp(36px, 5vw, 62px);
}

.answer-review h2 {
    margin-bottom: 18px;
}

.review-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    padding: 22px 0 24px;
    border-top: 1px solid var(--line);
    transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.review-card:hover {
    transform: translateY(-1px);
}

.review-card.correct {
    background: rgba(47, 143, 105, 0.06);
    border-color: rgba(47, 143, 105, 0.2);
}

.review-card.wrong {
    background: rgba(230, 55, 70, 0.08);
    border-color: rgba(230, 55, 70, 0.2);
}

.review-card img {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
}

.review-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--road);
    font-size: clamp(20px, 2vw, 26px);
}

.review-card ol {
    margin: 0;
    padding-left: 0;
    display: grid;
    gap: 10px;
}

.review-card li {
    position: relative;
    margin-bottom: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid transparent;
    transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.review-card li.correct {
    color: var(--green);
    font-weight: 900;
    border-color: rgba(47, 143, 105, 0.24);
    background: rgba(47, 143, 105, 0.08);
}

.review-card li.selected {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(21, 33, 42, 0.12);
}

.review-card li.selected:not(.correct) {
    background: rgba(230, 55, 70, 0.1);
    border-color: rgba(230, 55, 70, 0.2);
    color: var(--accent);
}

.choice-summary,
.correct-summary {
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    box-shadow: 0 14px 32px rgba(21, 33, 42, 0.04);
}

.choice-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.status-pill {
    display: inline-flex;
    min-width: 120px;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.choice-summary.is-correct {
    background: rgba(47, 143, 105, 0.08);
    border: 1px solid rgba(47, 143, 105, 0.18);
}

.choice-summary.is-correct .status-pill {
    background: rgba(47, 143, 105, 0.18);
    color: var(--green);
}

.choice-summary.is-wrong {
    background: rgba(230, 55, 70, 0.1);
    border: 1px solid rgba(230, 55, 70, 0.2);
}

.choice-summary.is-wrong .status-pill {
    background: rgba(230, 55, 70, 0.16);
    color: var(--accent);
}

.choice-summary.is-correct strong,
.choice-summary.is-wrong strong {
    display: inline-block;
    margin-left: 8px;
    font-weight: 900;
}

.correct-summary {
    border-left: 4px solid var(--green);
    background: rgba(47, 143, 105, 0.08);
    color: var(--green);
}

.review-card.wrong .correct-summary {
    border-color: var(--accent);
    background: rgba(230, 55, 70, 0.08);
    color: var(--accent);
}

@media (max-width: 860px) {
    .quiz-topbar,
    .quiz-hero-grid,
    .question-layout,
    .review-card,
    .quiz-flow,
    .quiz-topic-heading,
    .quiz-motivation {
        grid-template-columns: 1fr;
    }

    .quiz-hero-grid,
    .question-layout,
    .review-card,
    .quiz-flow,
    .quiz-topic-heading,
    .quiz-motivation {
        display: grid;
    }

    .quiz-benefits,
    .quiz-stats,
    .quiz-flow-steps,
    .quiz-topic-grid {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .quiz-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: -38px;
    }

    .quiz-topic-grid {
        margin-top: 0;
    }

    .quiz-flow-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quiz-topbar {
        display: flex;
        flex-wrap: wrap;
    }

    .quiz-motivation .quiz-button {
        width: 100%;
    }

    .quiz-question-page {
        width: min(100% - 28px, 1220px);
        padding-top: 24px;
    }

    .quiz-question-banner-overlay,
    .question-layout-upgraded {
        grid-template-columns: 1fr;
    }

    .quiz-question-hero {
        min-height: 320px;
    }

    .quiz-question-hero .quiz-button {
        width: 100%;
    }

    .quiz-question-banner-overlay {
        align-items: end;
        padding: 26px;
        background:
            linear-gradient(180deg, rgba(21, 33, 42, 0.26), rgba(21, 33, 42, 0.86)),
            linear-gradient(90deg, rgba(21, 33, 42, 0.52), rgba(21, 33, 42, 0.2));
    }

    .question-media-card .question-media img {
        min-height: 300px;
        max-height: 440px;
    }
}

@media (max-width: 760px) {
    .quiz-start-hero {
        min-height: calc(100svh - 62px);
        padding: 26px 14px 26px;
        align-items: end;
        background:
            linear-gradient(180deg, rgba(12, 20, 28, 0.55), rgba(12, 20, 28, 0.86) 48%, rgba(12, 20, 28, 0.98)),
            url("/static/images/quiz-question-banner-mobile.webp") center / cover no-repeat;
        background-attachment: scroll;
    }

    .quiz-start-hero::before {
        height: 170px;
        opacity: 0.7;
    }

    .quiz-start-grid {
        gap: 18px;
        min-height: 0;
    }

    .quiz-start-copy h1 {
        max-width: 390px;
        margin-bottom: 10px;
        font-size: clamp(36px, 11vw, 52px);
    }

    .quiz-start-copy > p:not(.quiz-kicker) {
        font-size: 16px;
        line-height: 1.45;
    }

    .quiz-hero-chips {
        gap: 7px;
        margin-top: 14px;
    }

    .quiz-hero-chips span {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 12px;
        backdrop-filter: none;
    }

    .quiz-actions {
        display: grid;
        gap: 10px;
        margin-top: 18px;
    }

    .quiz-dashboard {
        padding: 10px;
        backdrop-filter: none;
    }

    .quiz-preview-card img {
        height: 118px;
    }

    .quiz-preview-card div {
        gap: 8px;
        padding: 12px;
    }

    .quiz-preview-card strong {
        font-size: 19px;
    }

    .quiz-preview-card p {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .quiz-dashboard-bottom {
        grid-template-columns: 94px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .quiz-speedometer {
        width: 94px;
    }

    .quiz-speedometer strong {
        font-size: 34px;
    }

    .quiz-speedometer em {
        bottom: 17px;
        font-size: 8px;
    }

    .quiz-dashboard-copy h2 {
        margin-bottom: 6px;
        font-size: 22px;
    }

    .quiz-dashboard-copy span {
        font-size: 13px;
        line-height: 1.35;
    }

    .quiz-road-line {
        height: 6px;
    }

    .quiz-stats {
        width: min(100% - 20px, 1100px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: -16px auto 34px;
    }

    .quiz-stats article {
        padding: 14px;
    }

    .quiz-stats strong {
        font-size: 26px;
    }

    .quiz-stats span {
        font-size: 13px;
        line-height: 1.25;
    }

    .quiz-flow,
    .quiz-start-content,
    .quiz-motivation {
        width: min(100% - 20px, 1100px);
        margin-bottom: 38px;
    }

    .quiz-flow {
        gap: 16px;
    }

    .quiz-flow-copy h2,
    .quiz-topic-heading h2,
    .quiz-motivation h2 {
        font-size: 30px;
    }

    .quiz-flow-copy p:last-child,
    .quiz-topic-heading p:last-child,
    .quiz-motivation p {
        font-size: 16px;
    }

    .quiz-flow-steps,
    .quiz-topic-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .quiz-flow-steps article,
    .quiz-topic-grid article {
        min-height: 0;
        padding: 16px;
    }

    .quiz-topic-heading {
        gap: 12px;
        margin-bottom: 14px;
    }

    .quiz-motivation {
        padding: 22px;
    }

    .quiz-motivation .quiz-button {
        width: 100%;
    }

    .quiz-question-body {
        background: #eef4f7;
    }

    .quiz-question-body .site-header {
        box-shadow: 0 8px 24px rgba(21, 33, 42, 0.08);
    }

    .quiz-question-page {
        width: min(100% - 20px, 620px);
        padding: 10px 0 28px;
    }

    .quiz-question-hero {
        display: none;
    }

    .question-layout-upgraded {
        gap: 12px;
    }

    .question-media-card,
    .question-panel-upgraded {
        border-radius: 8px;
        box-shadow: 0 12px 28px rgba(21, 33, 42, 0.08);
    }

    .question-media-top {
        padding: 10px 12px;
    }

    .question-media-top span {
        font-size: 11px;
    }

    .question-media-top strong {
        font-size: 18px;
    }

    .question-media-card .question-media img {
        width: 100%;
        min-height: 132px;
        max-height: 180px;
        aspect-ratio: 16 / 7;
        object-fit: cover;
    }

    .question-progress-card {
        padding: 10px 12px 12px;
    }

    .question-progress-card p,
    .quiz-muted {
        font-size: 15px;
    }

    .quiz-progress {
        gap: 6px;
        margin-bottom: 8px;
    }

    .quiz-progress div {
        height: 7px;
    }

    .question-panel-upgraded {
        padding: 16px;
    }

    .question-panel-upgraded::after {
        right: -72px;
        top: -72px;
        width: 150px;
        height: 150px;
    }

    .question-panel-head {
        margin-bottom: 10px;
    }

    .question-panel-head .quiz-kicker {
        font-size: 12px;
    }

    .question-panel-head span {
        min-height: 30px;
        padding: 5px 9px;
        font-size: 12px;
    }

    .question-panel-upgraded h1 {
        margin-bottom: 10px;
        font-size: clamp(24px, 7.1vw, 31px);
        line-height: 1.08;
    }

    .answer-form {
        gap: 10px;
        margin-top: 14px;
    }

    .answer-form label {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 9px 12px;
        min-height: 0;
        padding: 12px;
    }

    .answer-form input {
        grid-row: span 2;
        align-self: center;
        width: 20px;
        height: 20px;
        margin: 0;
    }

    .answer-form em {
        grid-column: 2;
        width: fit-content;
        min-width: 34px;
        height: 31px;
        font-size: 15px;
    }

    .answer-form label span {
        grid-column: 2;
        font-size: 16px;
        line-height: 1.28;
    }

    .answer-form .quiz-button {
        min-height: 50px;
        margin-top: 2px;
    }
}

@media (max-width: 560px) {
    .quiz-hero {
        min-height: auto;
        padding-bottom: 44px;
    }

    .quiz-topbar {
        margin-bottom: 48px;
    }

    .quiz-brand {
        width: 100%;
    }

    .quiz-language-switch {
        width: 100%;
    }

    .quiz-topbar div a {
        flex: 1;
    }

    h1 {
        font-size: 40px;
    }

    .quiz-start-copy h1 {
        max-width: 340px;
    }

    .quiz-actions,
    .quiz-actions .quiz-button {
        width: 100%;
    }

    .quiz-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quiz-start-content,
    .quiz-motivation {
        width: min(100% - 28px, 1100px);
    }

    .quiz-topic-grid article {
        min-height: 0;
    }

    .question-panel,
    .result-hero,
    .answer-review {
        padding: 20px;
    }

    .quiz-question-page {
        width: min(100% - 16px, 1220px);
        padding: 8px 0 28px;
    }
}

@media (max-width: 390px) {
    .quiz-start-hero {
        padding: 18px 10px 22px;
    }

    .quiz-start-copy h1 {
        font-size: 34px;
    }

    .quiz-hero-chips span {
        font-size: 11px;
    }

    .quiz-preview-card img {
        height: 96px;
    }

    .quiz-dashboard-bottom {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .quiz-speedometer {
        width: 82px;
    }

    .quiz-dashboard-copy h2 {
        font-size: 20px;
    }

    .quiz-stats {
        width: min(100% - 16px, 1100px);
    }

    .quiz-flow,
    .quiz-start-content,
    .quiz-motivation {
        width: min(100% - 16px, 1100px);
    }
}

@media (max-width: 390px) {
    .question-media-card .question-media img {
        min-height: 112px;
        max-height: 145px;
    }

    .question-progress-card {
        padding: 9px 10px 10px;
    }

    .question-panel-upgraded {
        padding: 14px;
    }

    .question-panel-upgraded h1 {
        font-size: 23px;
    }

    .quiz-muted {
        margin-bottom: 0;
    }

    .answer-form label {
        padding: 10px;
    }

    .answer-form label span {
        font-size: 15px;
    }
}
