:root {
    --bg: #080807;
    --panel: #11110f;
    --panel-light: #171612;

    --text: #f4f0e8;
    --muted: #a9a297;

    --gold: #d6a84a;
    --gold-light: #efca78;

    --line: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family: Inter, Arial, sans-serif;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

.quiz-page {
    position: relative;

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 45px 20px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(214, 168, 74, 0.11),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(214, 168, 74, 0.07),
            transparent 25%
        ),
        #080807;
}

/* ФОНОВЫЕ ЭФФЕКТЫ */

.quiz-glow {
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(130px);

    opacity: 0.15;

    background: var(--gold);

    pointer-events: none;
}

.quiz-glow-one {
    top: -300px;
    left: -200px;
}

.quiz-glow-two {
    bottom: -350px;
    right: -200px;
}


/* ОСНОВНАЯ КАРТОЧКА */

.quiz-shell {
    position: relative;
    z-index: 2;

    width: min(920px, 100%);

    padding: 30px 38px 34px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.015)
        );

    border: 1px solid rgba(214, 168, 74, 0.23);
    border-radius: 28px;

    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/* ВЕРХ */

.quiz-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}

.quiz-logo {
    color: var(--text);

    font-size: 15px;
    font-weight: 900;

    letter-spacing: 0.06em;

    text-decoration: none;
}

.quiz-logo span {
    color: var(--gold);
}

.quiz-step-text {
    color: var(--muted);

    font-size: 13px;
}


/* PROGRESS */

.progress {
    position: relative;

    height: 3px;

    overflow: hidden;

    margin-bottom: 46px;

    border-radius: 100px;

    background: rgba(255, 255, 255, 0.07);
}

.progress-line {
    width: 16.66%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            var(--gold-light)
        );

    box-shadow:
        0 0 18px rgba(214, 168, 74, 0.5);

    transition: width 0.35s ease;
}


/* ШАГ */

.quiz-step {
    display: none;

    animation: stepShow 0.35s ease;
}

.quiz-step.active {
    display: block;
}

@keyframes stepShow {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

}

.question-number {
    margin-bottom: 14px;

    color: var(--gold);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.18em;
}

.question-label {
    margin: 0 0 10px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.16em;
}

h1,
h2 {
    max-width: 650px;

    margin: 0;

    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;

    letter-spacing: -0.035em;
}

.question-description {
    max-width: 640px;

    margin: 17px 0 28px;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.55;
}


/* ОТВЕТЫ */

.answers {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.answer {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;

    gap: 16px;

    padding: 19px;

    text-align: left;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        );

    border: 1px solid var(--line);
    border-radius: 16px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.answer:hover {
    transform: translateY(-2px);

    border-color: rgba(214, 168, 74, 0.48);

    background:
        linear-gradient(
            145deg,
            rgba(214, 168, 74, 0.09),
            rgba(255, 255, 255, 0.018)
        );
}

.answer.selected {
    border-color: var(--gold);

    background:
        linear-gradient(
            145deg,
            rgba(214, 168, 74, 0.14),
            rgba(214, 168, 74, 0.035)
        );
}

.answer-marker {
    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(214, 168, 74, 0.45);
    border-radius: 50%;
}

.answer.selected .answer-marker {
    background: var(--gold);
}

.answer.selected .answer-marker::after {
    content: "✓";

    color: #111;

    font-weight: 900;
}

.answer strong {
    display: block;

    margin-bottom: 3px;

    font-size: 15px;
}

.answer small {
    display: block;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.4;
}


/* НИЗ */

.quiz-bottom {
    min-height: 42px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-top: 32px;
}

.back-button {
    padding: 0;

    background: none;
    border: 0;

    color: var(--muted);

    cursor: pointer;

    transition: color 0.2s ease;
}

.back-button:hover {
    color: white;
}

.quiz-trust {
    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-size: 11px;
}

.trust-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--gold);

    box-shadow: 0 0 10px var(--gold);
}


/* ФОРМА */

.quiz-form {
    max-width: 560px;

    display: grid;

    gap: 14px;

    margin-top: 30px;
}

.quiz-form label {
    display: grid;

    gap: 7px;

    color: var(--muted);

    font-size: 12px;
}

.quiz-form input {
    width: 100%;
    height: 56px;

    padding: 0 17px;

    outline: none;

    background: rgba(0, 0, 0, 0.25);

    border: 1px solid var(--line);
    border-radius: 12px;

    color: white;

    transition: border-color 0.2s ease;
}

.quiz-form input:focus {
    border-color: rgba(214, 168, 74, 0.7);
}

.submit-button {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 22px;

    margin-top: 4px;

    border: 0;
    border-radius: 12px;

    background: var(--gold);

    color: #111;

    font-weight: 900;

    cursor: pointer;
}

.submit-button span {
    font-size: 24px;
}

.privacy {
    margin: 0;

    color: #777066;

    font-size: 10px;
}


/* SUCCESS */

.quiz-success {
    padding: 30px 0;
}

.success-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    margin-bottom: 25px;

    border: 1px solid rgba(214, 168, 74, 0.6);
    border-radius: 50%;

    color: var(--gold);

    font-size: 24px;
}

.home-button {
    display: inline-flex;

    margin-top: 14px;

    padding: 15px 20px;

    border: 1px solid rgba(214, 168, 74, 0.4);
    border-radius: 10px;

    color: white;

    text-decoration: none;
}


/* MOBILE */

@media (max-width: 700px) {

    .quiz-page {
        align-items: flex-start;

        padding: 12px;
    }

    .quiz-shell {
        min-height: calc(100vh - 24px);

        padding: 22px 18px 24px;

        border-radius: 20px;
    }

    .progress {
        margin-bottom: 34px;
    }

    h1,
    h2 {
        font-size: 34px;
    }

    .answers {
        grid-template-columns: 1fr;
    }

    .answer {
        padding: 16px;
    }

    .quiz-bottom {
        align-items: flex-start;

        flex-direction: column-reverse;
    }

}