﻿

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:wght@300;400;500&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black: #080808;
    --white: #f0ebe0;
    --lime: #c9f135;
    --dark1: #111;
    --dark2: #181818;
    --dark3: #222;
    --muted: #555;
    --H: 'Saira Condensed', sans-serif;
    --B: 'Saira', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--B);
    font-weight: 300;
    overflow-x: hidden;
    cursor: none;
    min-height: 100vh;
}

a, button {
    cursor: none;
    text-decoration: none;
}

#cd, #cr {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

#cd {
    width: 7px;
    height: 7px;
    background: var(--lime);
}


nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 52px;
    background: rgba(8,8,8,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.logo {
    font-family: var(--H);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: .07em;
    color: var(--white);
    text-transform: uppercase;
}

    .logo em {
        color: var(--lime);
        font-style: normal;
    }

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--H);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .2s;
}

    .nav-back:hover {
        color: var(--white);
    }

.quiz-main {
    min-height: 100vh;
    padding: 96px 24px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-wrap {
    width: 100%;
    max-width: 640px;
    margin-bottom: 48px;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-label {
    font-family: var(--H);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}

.progress-count {
    font-family: var(--H);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--lime);
    letter-spacing: .05em;
}

.progress-bar {
    height: 2px;
    background: var(--dark3);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--lime);
    width: 7.14%; 
    transition: width .5s cubic-bezier(.4,0,.2,1);
    position: relative;
}
    .progress-fill::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translate(50%, -50%);
        width: 8px;
        height: 8px;
        background: var(--lime);
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(201,241,53,.6);
    }

.steps-wrap {
    width: 100%;
    max-width: 640px;
}

.step {
    display: none; 
    animation: stepIn .32s ease forwards;
}

    .step.active {
        display: block;
    }

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step.exit {
    animation: stepOut .2s ease forwards;
}

@keyframes stepOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-24px);
    }
}

.step-num {
    font-family: var(--H);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .2em;
    color: var(--lime);
    margin-bottom: 10px;
}

.step-title {
    font-family: var(--H);
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: .9;
    margin-bottom: 10px;
}

    .step-title span {
        color: var(--lime);
    }

.step-hint {
    font-size: .92rem;
    line-height: 1.6;
    color: rgba(240,235,224,.5);
    margin-bottom: 28px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-label {
    font-family: var(--H);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
}

.field-input {
    background: var(--dark2);
    border: 1px solid rgba(240,235,224,.1);
    color: var(--white);
    font-family: var(--B);
    font-size: 1.05rem;
    font-weight: 300;
    padding: 13px 16px;
    outline: none;
    width: 100%;
    border-radius: 0;
    -webkit-appearance: none;
    transition: border-color .2s;
}

    .field-input:focus {
        border-color: var(--lime);
    }

    .field-input::placeholder {
        color: var(--muted);
        font-size: .9rem;
    }

textarea.field-input {
    resize: vertical;
    line-height: 1.65;
}

.field-error {
    font-size: .78rem;
    color: #ff6b6b;
    margin-top: 8px;
    display: none;
}

    .field-error.show {
        display: block;
    }

.choices {
    display: grid;
    gap: 8px;
}

    .choices.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

.choice {
    background: var(--dark2);
    border: 1px solid rgba(240,235,224,.07);
    padding: 15px 18px;
    cursor: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    transition: border-color .2s, background .2s;
    user-select: none;
}

    .choice:hover {
        border-color: rgba(201,241,53,.3);
        background: rgba(201,241,53,.04);
    }

    .choice.selected {
        border-color: var(--lime);
        background: rgba(201,241,53,.08);
    }

.choice-icon {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}

.choice-text h4 {
    font-size: .92rem;
    font-weight: 400;
    color: var(--white);
}

.choice-text p {
    font-size: .75rem;
    color: var(--muted);
    margin-top: 2px;
}

.choice-check {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 17px;
    height: 17px;
    border: 1px solid rgba(201,241,53,.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s;
}

.choice.selected .choice-check {
    background: var(--lime);
    border-color: var(--lime);
}

    .choice.selected .choice-check::after {
        content: '';
        display: block;
        width: 5px;
        height: 8px;
        border-right: 2px solid var(--black);
        border-bottom: 2px solid var(--black);
        transform: rotate(45deg) translate(-1px, -1px);
    }

.choice.choice-num {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    text-align: center;
}

.num-val {
    font-family: var(--H);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--lime);
    line-height: 1;
}

.num-lbl {
    font-size: .68rem;
    color: var(--muted);
    margin-top: 4px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    gap: 12px;
}
    .step-nav.single {
        justify-content: flex-end;
    }

.btn-next {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--H);
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--lime);
    padding: 14px 30px;
    border: none;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    transition: background .2s, transform .2s, box-shadow .2s;
    margin-left: auto;
}

    .btn-next:hover {
        background: #d7ff45;
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(201,241,53,.22);
    }
.btn-finish {
    background: var(--lime);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--H);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    background: transparent;
    border: 1px solid rgba(240,235,224,.1);
    padding: 13px 20px;
    transition: border-color .2s, color .2s;
}

    .btn-back:hover {
        border-color: rgba(240,235,224,.3);
        color: var(--white);
    }


.result-wrap {
    display: none;
    width: 100%;
    max-width: 720px;
    animation: stepIn .5s ease forwards;
}

    .result-wrap.show {
        display: block;
    }

.result-message {
    margin-bottom: 48px;
}

.result-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--H);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--lime);
    margin-bottom: 14px;
}

    .result-tag::before {
        content: '';
        width: 22px;
        height: 1px;
        background: var(--lime);
    }

.result-title {
    font-family: var(--H);
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: .9;
    margin-bottom: 24px;
}

    .result-title span {
        color: var(--lime);
    }

.result-text {
    background: var(--dark2);
    border-left: 2px solid var(--lime);
    padding: 24px 28px;
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(240,235,224,.75);
}

    .result-text strong {
        color: var(--white);
        font-weight: 500;
    }

    .result-text p {
        margin-bottom: 12px;
    }

        .result-text p:last-child {
            margin-bottom: 0;
        }

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.action-card {
    background: var(--dark2);
    border: 1px solid rgba(240,235,224,.06);
    padding: 28px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: border-color .25s, background .25s;
}

    .action-card:hover {
        border-color: rgba(201,241,53,.15);
        background: var(--dark3);
    }

    .action-card.action-primary {
        border-top: 2px solid var(--lime);
    }

.action-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.action-info {
    flex: 1;
}

    .action-info h3 {
        font-family: var(--H);
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: var(--white);
        margin-bottom: 5px;
    }

    .action-info p {
        font-size: .86rem;
        line-height: 1.5;
        color: var(--muted);
    }

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--H);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 13px 22px;
    border: none;
    flex-shrink: 0;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    transition: background .2s, transform .15s, box-shadow .2s, opacity .2s;
}

.btn-lime-full {
    background: var(--lime);
    color: var(--black);
}

    .btn-lime-full:hover {
        background: #d7ff45;
        transform: translateY(-1px);
        box-shadow: 0 8px 24px rgba(201,241,53,.22);
    }

.btn-outline-action {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(240,235,224,.2) !important;
    clip-path: none;
}

    .btn-outline-action:hover {
        border-color: var(--lime) !important;
        color: var(--lime);
    }

.btn-action:disabled {
    opacity: .4;
    pointer-events: none;
}

.send-veil {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8,8,8,.9);
    z-index: 300;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

    .send-veil.show {
        display: flex;
    }

.spinner {
    width: 46px;
    height: 46px;
    border: 2px solid rgba(201,241,53,.2);
    border-top-color: var(--lime);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.send-txt {
    font-family: var(--H);
    font-size: 1.3rem;
    letter-spacing: .08em;
    color: var(--white);
}

@media (max-width: 600px) {
    #cd, #cr {
        display: none !important;
    }

    body, a, button {
        cursor: auto !important;
    }
    nav {
        padding: 0 20px;
        height: 58px;
    }

    .quiz-main {
        padding: 80px 16px 48px;
    }

    .step-title {
        font-size: 2.2rem;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .choices.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .action-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 22px 20px;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
        clip-path: none;
    }

    .btn-outline-action {
        clip-path: none;
    }
}

@media (max-width: 380px) {
    .choices.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-title {
        font-size: 2rem;
    }
}
