.visually-hidden {
    position: absolute !important;
    clip: rect(1px 1px 1px 1px);
    /* IE6, IE7 */
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

.section__quiz {
    margin-top: -350px;
    position: relative;
    background: transparent;
    padding: 50px 0;
    z-index: 2;

    @media (min-width:280px) and (max-width:1023.98px) {
        margin-top: -300px;
    }

    @media (min-width:1024px) and (max-width:1167.98px) {
        margin-top: -300px;
    }
}

@media (max-width: 899px) {
    .section__quiz {
        padding: 20px 0;
    }
}

.quiz {
    border-radius: 20px;
    background: linear-gradient(180.00deg, rgb(30, 24, 5), rgb(39, 39, 36) 100%);
    margin-top: 4rem;
    margin-bottom: 4rem;
    padding-top: 1.813rem;
    padding-left: 2.563rem;
    padding-right: 2.563rem;
    padding-bottom: 2.5rem;
    border: 1px solid #767676;
}

.final-step .quiz {
    position: relative;
    overflow: hidden;
}

@media (max-width: 899px) {
    .quiz {
        padding-top: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.quiz__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;

    h3 {
        color: rgb(255, 255, 255);
        font-weight: 600;
        font-size: 30px;
        line-height: 34.8px;
    }

    p {
        color: rgb(255, 255, 255);
        font-size: 20px;
        font-weight: 400;
        line-height: 114.59%;
    }
}

.final-step .quiz .quiz__top {
    @media (min-width:280px) and (max-width:359.98px) {
        margin-bottom: 0;
    }

    @media (min-width:360px) and (max-width:543.98px) {
        margin-bottom: 0;
    }
}

.quiz__wrapper {
    display: flex;
    position: relative;
    overflow: hidden;
    justify-content: space-between;
}

.quiz__left {
    width: 21%;
    border-radius: 20px;
    border: 1px solid #767676;
    background-image: url(../img/left_bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
}

/* @media (max-width: 899px) {
    .quiz__left {
        display: none;
    }
} */

.quiz__gift {
    padding: 0 47px 47px 47px;
}

.quiz__gift p {
    color: rgb(255, 255, 255);
    font-size: 18px;
    font-weight: 500;
    line-height: 114.59%;
    text-align: center;
}

.bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 20px;
    z-index: 2;

    span {
        color: rgb(255, 255, 255);
        font-weight: 500;
        font-size: 20px;
        line-height: 22.92px;
    }
}

.quiz__bar {
    width: 301px;
    height: 35px;
    border-radius: 12px;
    border: 1px solid #767676;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

@media (max-width: 899px) {
    .quiz__bar {
        margin-left: 0;
        width: 100%;
    }
}

.quiz__bar--ln {
    width: 100%;
    margin-left: 0;
}

.quiz__bar__prg {
    width: 8.131rem;
    height: 100%;
    background-color: #edc777;
    transition: .3s all;
    border-radius: inherit;
    position: relative;
}

.quiz__bar__prg::after {
    content: "";
    display: block;
    transition: all .3s;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: url(../img/lines.png);
    background-size: 2.49rem;
    animation: moveIt 1.5s infinite linear;
}

.quiz__main {
    width: calc(79% - 2.563rem);
}

.quiz__question:not(.active) {
    display: none;
}

.quiz__answers {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 30px;
    padding-top: 2px;
    padding-bottom: 2rem;
}

@media (max-width: 899px) {
    .quiz__answers {
        margin: auto;
        max-width: 100%;
        padding-inline: 2px;
        row-gap: 20px;
    }
}

.quiz__answer-img {
    width: calc(25% - 12.67px);
}

@media (max-width: 899px) {
    .quiz__answer-img {
        width: calc(50% - 12.67px);
    }
}

.quiz__answer__img {
    width: 100%;
    height: 11rem;
    border-radius: 20px;
    background-color: #fff;
    position: relative;
    transition: .3s all;
}

/* @media (max-width: 899px) {
    .quiz__answer__img {
        height: 115px;
    }
} */

.quiz__answer__img img {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quiz__answer__img::before {
    width: 41px;
    min-width: 41px;
    height: 40px;
    border-radius: 50%;
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    box-sizing: border-box;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: .3s all;
    background-image: url(../img/no_active.svg);
}

input:checked+.quiz__answer__box .quiz__answer__img::before {
    width: 52px;
    min-width: 52px;
    height: 52px;
    border-radius: 50%;
    background-size: cover;
    background-image: url(../img/active.svg);
}

input:checked+.quiz__answer__box .quiz__answer__img {
    box-shadow: 0 0 0 2px #edc777;
}

.quiz__answer__text {
    font-size: 0.875rem;
    transition: .3s all;
    color: #fff;
    text-align: center;
    margin-top: 1.5rem;
}

.quiz__buttons {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quiz__buttons .btn {
    padding: 20px 49px;
    background: linear-gradient(180.00deg, rgb(252, 229, 179), rgb(233, 191, 105) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;

    span {
        color: rgb(30, 28, 17);
        font-size: 18px;
        font-weight: 500;
        line-height: 21px;
    }
}

.quiz__buttons .btn:hover {
    opacity: .6;
}

.quiz__buttons .btn[disabled] {
    background: rgb(89, 89, 89);
}

.quiz__btn-next__wrap {
    position: relative;
}

.quiz__btn-next[disabled]:hover+.quiz__btn-help {
    transform: translate(-50%, -100%) scale(1);
}

.quiz__btn-help {
    width: 11.563rem;
    padding: 0.625rem 1rem;
    border-radius: 5px;
    box-shadow: 0 0 18px 0 #28272819;
    background-color: #fff;
    text-align: center;
    font-size: 1rem;
    line-height: 1.38;
    letter-spacing: 0.08px;
    color: #282728a6;
    position: absolute;
    top: -0.75rem;
    left: 0;
    transform: translate(-50%, -100%) scale(0);
    transition: var(--transition);
}

/* текстовые шаги */
.quiz__answers--text {
    flex-direction: column;
}

.quiz__answer--txt p {
    display: flex;
    column-gap: 10px;
    align-items: center;
    cursor: pointer;
    width: 21.938rem;
    height: 2.438rem;
    border-radius: 5px;
    /* background-color: #fff; */
    border: solid 1px transparent;
    padding: .5rem 1.37rem;
    transition: .3s all;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 22.92px;
}

.quiz__answer--txt p::before {
    width: 26px;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    content: '';
    /* position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%); */
    box-sizing: border-box;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: .3s all;
    background-image: url(../img/radio_no-active.svg);
}

.quiz__answer--txt input:checked+p::before {
    width: 26px;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background-size: cover;
    background-image: url(../img/active.svg);
}

/* Финальный экран */
.quiz__final {
    width: 100%;
    position: relative;
    z-index: 2;

    @media (min-width:280px) and (max-width:359.98px) {
        padding-bottom: 180px;
    }

    @media (min-width:360px) and (max-width:543.98px) {
        padding-bottom: 180px;
    }
}

.quiz__final:not(.active) {
    display: none;
}

.final-step .quiz {
    overflow: hidden;
}

.final-step .quiz::before {
    position: absolute;
    width: 100%;
    height: 100%;
    content: '';
    opacity: .06;
    z-index: 1;
    top: 0;
    left: 0;
}

.bottom__hand {
    display: none;
}
.final-step .quiz .bottom__hand {
    position: absolute;
    width: 100%;
    max-width: 462px;
    z-index: 1;
    bottom: 0;
    right: 0;
    display: block;

    @media (min-width:280px) and (max-width:767.98px) {
        width: 90%;
        max-width: 90%;
        height: 199px;
    }

    @media (min-width:768px) and (max-width:1023.98px) {
        width: 70%;
        max-width: 70%;
        opacity: .3;
        
    }

    @media (min-width:1024px) and (max-width:1279.98px) {
        opacity: .3;
    }

    img {
        width: 100%;
        height: auto;
        /* object-fit: contain; */
    }
}

@media (max-width: 899px) {
    .quiz__final {
        width: 100%;
    }
}

.final-top {
    display: flex;
    flex-direction: column;
    row-gap: 40px;
    margin-bottom: 15px;

    @media (min-width:280px) and (max-width:359.98px) {
        row-gap: 20px;
    }

    @media (min-width:360px) and (max-width:543.98px) {
        row-gap: 20px;
    }

    h2 {
        width: 100%;
        color: #fff;
        font-weight: 600;
        font-size: 40px;
        line-height: 45.83px;

        @media (min-width:280px) and (max-width:359.98px) {
            font-size: 24px;
            line-height: 26.4px;
            text-align: center;
        }

        @media (min-width:360px) and (max-width:543.98px) {
            font-size: 24px;
            line-height: 26.4px;
            text-align: center;
        }
    }

    p.top-info {
        width: 100%;
        color: #fff;
        font-weight: 500;
        font-size: 20px;
        line-height: 26px;

        @media (min-width:280px) and (max-width:359.98px) {
            text-align: center;
            font-size: 14px;
            line-height: 18px;
        }

        @media (min-width:360px) and (max-width:543.98px) {
            text-align: center;
            font-size: 14px;
            line-height: 18px;
        }
    }

    p.top-spam {
        width: 100%;
        color: #fff;
        font-weight: 500;
        font-size: 28px;
        line-height: 33.06px;

        @media (min-width:280px) and (max-width:359.98px) {
            font-size: 16px;
            line-height: 20px;
            text-align: center;
            font-weight: 400;
        }

        @media (min-width:360px) and (max-width:543.98px) {
            font-size: 16px;
            line-height: 20px;
            text-align: center;
            font-weight: 400;
        }
    }
}

.final-social {
    display: flex;
    column-gap: 15px;
    margin-bottom: 30px;

    @media (min-width:280px) and (max-width:359.98px) {
        column-gap: 5px;
    margin-bottom: 20px;
    justify-content: space-between;
    }

    @media (min-width:360px) and (max-width:543.98px) {
        /* column-gap: 5px; */
    margin-bottom: 20px;
    justify-content: space-between;
    }
}

.final-social .label-link {
    position: relative;
    padding: 14px 35px 14px 20px;
    border: 1px solid #817b7b;
    border-radius: 10px;
    opacity: .7;
    background: linear-gradient(180.00deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1) 100%);

    @media (min-width:280px) and (max-width:359.98px) {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8.5px;
    }

    @media (min-width:360px) and (max-width:543.98px) {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8.5px;
    }
}

.final-social input:checked+.label-link {
    opacity: 1;
    background: #212121;
}


.label-link {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 10px;

    @media (min-width:280px) and (max-width:359.98px) {
        column-gap: 5px;
    }

    @media (min-width:360px) and (max-width:543.98px) {
        column-gap: 5px;
        width: 95%;
    }

    svg {
        width: 27px;
        height: 27px;

        @media (min-width:280px) and (max-width:543.98px) {
            width: 18px;
            height: 18px;
        }
    }

    span {
        font-size: 14px;
        color: #fff;
        font-weight: 600;

        @media (min-width:280px) and (max-width:767.98px) {
            font-weight: 400;
            font-size: 12px;
        }
    }
}

.final-inputs {
    display: flex;
    align-items: center;
    column-gap: 15px;
    margin-bottom: 50px;

    @media (min-width:280px) and (max-width:359.98px) {
        flex-direction: column;
        row-gap: 15px;
        margin-bottom: 20px;
    }

@media (min-width:360px) and (max-width:543.98px) {
    flex-direction: column;
    row-gap: 15px;
    margin-bottom: 20px;
}
}

.final-inputs input {

    width: 100%;
    max-width: 371px;
    height: 62px;
    display: flex;
    align-items: center;
    color: #555555;
    font-family: inherit;
    padding-left: 20px;
    font-size: 22px;
    border: none;
    border-radius: 12px;
    outline: none;
    background: #f1efef;

    @media (min-width:280px) and (max-width:359.98px) {
        height: 52px;
    }

@media (min-width:360px) and (max-width:543.98px) {
    height: 52px;
}

}

.final-inputs button {
    position: relative;
    /* padding: 22px 32px; */
    height: 62px;
    padding-left: 32px;
    padding-right: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(180.00deg, rgb(252, 229, 179), rgb(233, 191, 105) 100%);
    border-radius: 12px;
    z-index: 2;
    font-size: 22px;
    font-weight: 500;
    line-height: 26px;
    @media (min-width:280px) and (max-width:767.98px) {
        width: 100%;
        height: 52px;
    }


}

.final-agree label {
    display: flex;
    column-gap: 15px;
    margin-bottom: 30px;
}

.label-agree {
    position: relative;
    padding-left: 25px;
    @media (min-width:280px) and (max-width:767.98px) {
        padding-left: 30px;
    }

    span {
        color: #fff;
        font-size: 14px;
        font-weight: 400;
        line-height: 17.3px;
        @media (min-width:280px) and (max-width:767.98px) {
            font-size: 12px;
            line-height: 14px;
        }
    }

    a {
        color: #fff;
        font-size: 14px;
        font-weight: 400;
        line-height: 17.3px;
        text-decoration: underline;

        &::hover {
            opacity: .6;
        }

        @media (min-width:280px) and (max-width:767.98px) {
            font-size: 12px;
            line-height: 14px;
        }
    }
}

.label-agree::before {
    width: 20px;
    min-width: 20px;
    height: 20px;
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin-top: auto;
    margin-bottom: auto;
    box-sizing: border-box;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: .3s all;
    background-image: url(../img/radio_no-active.svg);
}

.final-agree input:checked+.label-agree::before {
    width: 20px;
    min-width: 20px;
    height: 20px;
    background-size: cover;
    background-image: url(../img/active.svg);
}


@keyframes progres {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 2000px 0, 0 0;
    }
}

@keyframes moveIt {
    from {
        background-position: 0 center;
    }

    to {
        background-position: 2.49rem center;
    }
}

@keyframes scale {
    from {
        transform: scale(1.3);
    }

    to {
        transform: scale(1);
    }
}

@keyframes scale2 {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

/* #wait .final-social input:checked + .label-link {
    
        opacity: 1;
        background: #212121;

} */