.quiz-container {
    width: 100%;
    margin: 20px auto;
    padding: 40px;
    background: #000;
    border: 1px solid #ececec;
    height: fit-content;

    h2, h3 {
        margin-top: 0;
    }

    @media (max-width: 450px) {
        padding: 20px;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        background: #f5f7fa;
        font-family: sans-serif;
    }
    .progress {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 90vw;
        position: relative;
        margin-bottom: 60px;
    }
    .progress::before {
        content: '';
        position: absolute;
        top: 50% ;
        left: 0;
        right: 0;
        height: 3px;
        background: #e0e4eb;
        z-index: 0;
    }
    /* Активная линия */
    .progress__line {
        position: absolute;
        top: 50% ;
        left: 0;
        height: 3px;
        background: var(--main-template-color);
        z-index: 1;
        width: 66%; /* меняй под нужный шаг: 0%, 33%, 66%, 100% */
    }
    .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        z-index: 1;
    }

    .step__circle {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #fff;
        border: 3px solid #e0e4eb;
        color: #333;
        font-weight: 600;
        font-size: 14px;
    }
    .step__label {
        position: absolute;
        top: 100%;
        margin-top: 10px;
        text-align: center;
        font-size: 13px;
        color: white;
    }
    /* Активный шаг */
    .step.active .step__circle {
        border-color: var(--main-template-color);
        background: var(--main-template-color);
        color: #fff;
    }
    .step.active .step__label {
        color: white;
        font-weight: 600;
    }

    /* Пройденные шаги (для заполнения линии) */
    .step.done .step__circle {
        border-color: var(--main-template-color);
        background: var(--main-template-color);
        color: #fff;
    }
}


.quiz-container .button-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;


    @media (max-width: 450px) {
        button {
            width: 100% !important;
        }

        flex-direction: column;
    }
}

.quiz-container button {
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: var(--main-template-color);
    color: #fff;
    width: fit-content;
    font-size: 1rem;
}

.quiz-container button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.quiz-container .options-list {
    gap: 10px;
    @media (min-width: 769px) {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }
    @media (max-width: 768px) {
        display: flex;
        flex-direction: column;
    }
    margin-bottom: 10px;
}

.quiz-container .options-list label {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 0;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.quiz-container .options-list label:hover {
    border-color: var(--main-template-color);
}

.quiz-container .options-list input {
    margin-right: 10px;
}

.quiz-container .spinner {
    width: 30px;
    height: 30px;
    margin: 20px auto;
    border: 3px solid #ddd;
    border-top-color: var(--main-template-color);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.quiz-container .result-list {
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.quiz-container .result-list li {
    color: white;
    padding: 12px;
    margin: 5px 0;
    border: 1px solid #ececec;
    border-left: 2px solid var(--main-template-color);
    background-color: #ffffff21;
}

.quiz-container .result-list p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

.quiz-container .btn-back {
    background: #ddd;
    color: #333;
}

.quiz-container .btn-consult {
    display: inline-block;
    padding: 10px 30px;
    background: var(--main-template-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.quiz-container .btn-restart {
    background: #ff6b6b;
}

.quiz-start {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    min-height: 250px;
    height: fit-content;

    .quiz-cont {
        min-height: 350px;
        width: 50%;
        display: flex;
        flex-direction: column;
        @media (max-width: 991px) {
            width: 100%;
            align-items: center;
        }
    }

    @media (max-width: 991px) {
        align-items: center;
    }

    h2 {
        font-size: 2.5rem;
        font-weight: 600;
        margin-top: 0;
        @media (max-width: 991px) {
            text-align: center;
        }

        @media (max-width: 450px) {
            font-size: 1.5rem;
        }
    }

    p {
        max-width: 400px;
        font-size: 1.25rem;

        @media (max-width: 450px) {
            font-size: 1rem;
            text-align: center;
        }
    }

    .hero-img {
        width: 50%;
        object-fit: cover;
        @media (max-width: 991px) { 
            width: 100%;
        }
        @media (min-width: 992px) {
            position: absolute;
            height: 100%;
        }

        @media (max-width: 450px) {
            display: none;
        }

        top: 0;
        right: 0;
    }
}

.quiz-container {
    position: relative;
    color: white;

    p {
        color: white;
    }

    .quiz-step-class {
        position: relative;
    }

    .background-img {
        opacity: 0.8;
        z-index: 0;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        object-fit: cover;
    }

    .background-img.active {
        opacity: 0.4;
    }
}

