/* #region .hero */
.hero {
    background-color: #fff;
    padding: 20px 0 40px;
}

/* .hero__content {
    margin-bottom: 60px;
} */

.hero__head {
    margin-bottom: 24px;
}

.hero__content h1 {
    /* font-size: 48px; */
    font-size: 30px;
    font-weight: 500;
    line-height: 110%;
}

.hero__subtitle {
    margin-top: 14px;
    font-size: 20px;
}

.hero__image--mobile {
    margin-bottom: 24px;
}

.hero__image--desk {
    display: none;
}

.hero__btn-calc {
    margin-top: 16px;
}

@media (min-width: 425px) {
    .hero__content h1 {
        font-size: 36px;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 40px 0 50px;
    }

    .hero__body {
        border-radius: 40px;
        position: relative;
    }

    .hero__content {
        position: absolute;
        max-width: 440px;
        margin: 0;
        top: 55px;
        left: 16px;
    }

    .hero__content h1 {
        font-size: 32px;
    }

    .hero__content .btn {
        /* max-width: 237px; */
        max-width: 345px;
    }

    .hero__image--mobile {
        display: none;
    }

    .hero__image--desk {
        display: block;
    }

    .hero__image img {
        border-radius: 40px;
    }
}

@media (min-width: 1024px) {
    .hero__content {
        max-width: 540px;
        top: 80px;
    }

    .hero__content h1 {
        font-size: 48px;
    }

    .hero__subtitle {
        margin-top: 16px;
        font-size: 24px;
    }
}

@media (min-width: 1200px) {
    .hero__content {
        max-width: 645px;
        top: 100px;
    }

    .hero__head {
        margin-bottom: 40px;
    }

    .hero__content h1 {
        font-size: 60px;
    }
}

@media (min-width: 1300px) {
    .hero__content {
        left: 0;
    }
    .hero__image {
        margin: 0 -45px;
    }
}

@media (min-width: 1400px) {
    .hero__image {
        margin: 0 -90px;
    }
}
/* #endregion .hero */

/* #region .quiz */
.dialog--quiz .dialog__content {
    width: 100%;
    max-width: 1024px;
}

.quiz {
    background-color: #DCF9E2;
    padding: 40px 0;
    border-radius: 24px;
}

.quiz .container {
    min-width: initial;
}

.quiz__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 500px;
}

.quiz__steps {
    flex: 1;
}

.quiz__footer {
    align-items: center;
    flex: 0 0 60px;
    display: flex;
    justify-content: space-between;
}

.quiz__footer--hide {
    display: none;
}

.quiz__control {
    display: flex;
    gap: 16px;
}

.quiz-btn-prev {
    border: 1px solid #1C1B1E;
    width: 55px;
    height: 55px;
    flex: 0 0 55px;
    position: relative;
    border-radius: 50%;
}

.quiz-btn-prev:disabled {
    opacity: 0.3;
}

.quiz-btn-prev img {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.quiz-btn-next {
    height: 55px;
    padding: 0 15px;
}

.quiz-btn-next:disabled {
    opacity: 0.7;
}

.quiz-btn-next img {
    height: 24px;
    width: 24px;
}

.quiz-step {
    flex: 1;
    display: none;
}

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

.quiz-step__title {
    font-size: 20px;
    font-weight: 500;
    line-height: 120%;
    margin-bottom: 24px;
}

.quiz-step__description {
    font-size: 16px;
    line-height: 150%;
    margin-bottom: 24px;
}

.quiz-step__block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.quiz-step__radios {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.quiz-radio {
    background-color: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    cursor: pointer;
    padding: 16px;
    display: flex;
    gap: 16px;
    flex: 0 0 100%;
    position: relative;
}

.quiz-radio:hover {
    border-color: #26BF42;
}

.quiz-radio input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.quiz-radio p {
    padding-left: 33px;
    line-height: 150%;
    font-size: 18px;
}

.quiz-radio p span {
    border: 1px solid #26BF42;
    border-radius: 8px;
    cursor: default;
    position: absolute;
    top: -1px;
    right: -1px;
    left: -1px;
    bottom: -1px;
    z-index: 10;
    display: none;
}

.quiz-radio p::before, 
.quiz-radio p::after { 
    content: '';
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.quiz-radio p::before {
    border: 2px solid #d6d6d6;
    width: 20px;
    height: 20px;
    left: 20px;
}

.quiz-radio p::after {
    background-color: #26BF42;
    width: 11px;
    height: 11px;
    left: 24.5px;
    display: none;
}

.quiz-radio:hover p::before,
.quiz-radio input:checked + p::before {
    border-color: #26BF42;
}

.quiz-radio:active p::after,
.quiz-radio input:checked + p::after {
    display: block;
}

.quiz-radio input:checked + p span {
    display: block;
}

.quiz-form {
    max-width: 768px;
    margin: 0 auto;
}

.quiz-form__head {
    margin-bottom: 24px;
}

.quiz-form__head h3 {
    font-size: 32px;
    font-weight: 500;
    line-height: 120%;
    margin-bottom: 24px;
}

.quiz-form__head p {
    font-size: 18px;
    line-height: 1.2;
}

.quiz-form__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.quiz-form__fieldset {
    display: none;
}

.quiz-form__fieldset--show {
    display: block;
}

.quiz-form__fieldset legend {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
}

.quiz-form__radio-group {
    display: flex;
    gap: 8px;
}

.quiz-form-radio-1 {
    background-color: #ffffff;
    border-radius: 8px;
    flex-grow: 1;
    flex-basis: 0;
}

.quiz-form-radio-1 input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.quiz-form-radio-1 label {
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #d6d6d6;
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 5px;
    gap: 5px;
    text-align: center;
    height: 100%;
    line-height: 1.2;
}

.quiz-form__fieldset--call-method-telegram .quiz-form-radio-1 label {
    justify-content: center;
    padding: 20px 10px;
}

.quiz-form-radio-1 img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.quiz-form-radio-1 input:checked + label {
    cursor: default;
    border-color: #26BF42;
}

.quiz-form__form {
    display: none;
}

.quiz-form__form--show {
    display: block;
}

.quiz-form__form .btn {
    margin: 24px 0 8px;
}

/* #region area inputs */
.qs-area-input {
    background-color: #ffffff;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 500;
    padding: 0 24px;
    height: 58px;
    width: 164px;
    margin-bottom: 24px;
}

.quiz-step__area {
    width: 100%;
    flex: 1;
}

.qs-area-range .noUi-target {
    height: 58px;
    background-color: #ffffff;
    border-radius: 100px;
}

.qs-area-range .noUi-base {
    border-radius: 100px;
    overflow: hidden;
}

.qs-area-range .noUi-connect {
    background-color: #26BF42;
    border-radius: 0 4px 4px 0;
}

.qs-area-range .noUi-handle {
    border: 0;
    background: none;
    box-shadow: none;
    width: 35px;
    height: 35px;
    top: 11px;
    right: -16px;
    opacity: 0.6;
}
 
.qs-area-range .noUi-touch-area {
    background: #ffffff;
    height: 100%;
    margin-left: 8px;
    width: 6px;
    border-radius: 5px;
}

.qs-area-range .noUi-handle:after,
.qs-area-range .noUi-handle:before {
    display: none;
}

.qs-area-range__footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
/* #endregion area inputs */

@media (min-width: 768px) {
    .quiz-step__block {
        align-items: flex-start;
        flex-direction: row;
    }

    .quiz-step__pic {
        flex: 0 1 50%;
        order: 2;
    }

    .quiz-step__radios--vertical {
        flex: 0 1 50%;
        width: auto;
    }

    .quiz-radio {
        flex: 0 0 calc(50% - 8px);
        align-items: center;
    }

    .quiz-step__radios--vertical .quiz-radio {
        flex: 0 0 100%;
    }

    .quiz-form-radio-1 label {
        padding: 15px 5px;
    }
}

@media (min-width: 1024px) {
    .quiz {
        padding: 40px 0 80px;
        /* background-color: #ffffff; */
    }

    .quiz__body {
        min-height: 500px;
        padding: 0 15px;
        position: relative;
    }

    /* .quiz__body::before {
        background-color: #DCF9E2;
        border-radius: 40px;
        content: '';
        position: absolute;
        top: -40px;
        right: -15px;
        bottom: -40px;
        left: -15px;
        z-index: 10;
    } */

    .quiz__steps, .quiz__footer {
        position: relative;
        z-index: 11;
    }

    .quiz-step__title {
        font-size: 24px;
    }
}

@media (min-width: 1300px) {
    /* .quiz__body::before {
        right: -45px;
        left: -45px;
    } */
}

@media (min-width: 1400px) {
    /* .quiz__body::before {
        right: -90px;
        left: -90px;
        top: -60px;
        bottom: -60px;
    } */
}
/* #endregion .quiz */

