.sf-toolbar{
    display: none !important;
}

.modals_block *{
    padding: 0;
    margin: 0;
    font-family: 'Raleway', Arial, sans-serif;
    box-sizing: border-box;
}
.modals_block *{
    
}
html{
    scroll-behavior: smooth;
}
body.modal-opened{
    overflow: hidden;
}
.wrapper{
    overflow: hidden;
}
.chat-modal{
    height: 100%;
}
.modal-back{
    position: fixed;
    inset: 0;
    background: rgba(30, 30, 30, 0.68);
    backdrop-filter: blur(8.949999809265137px);
    opacity: 0;
    visibility: hidden;
    transition: .3s all ease;
    z-index: 10888;
}
.modal-back.is-show{
    opacity: 1;
    visibility: visible;
}
.modal{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 35px;
    background: #FFF;
    max-width: 1239px;
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: .3s all ease;
    z-index: 10999;
}
.modal.is-show{
    opacity: 1;
    visibility: visible;
}
.modal-close{
    padding: 10px;
    position: absolute;
    z-index: 2;
    top: 30px;
    right: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.selection-row{
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    height: 682px;
}
.selection-right,
.selection-left{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 52px;
    cursor: pointer;
}
.selection-right{
    background-color: #FBF3F3;
    text-decoration: none;
}
.selection-title{
    font-size: 22px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    color: #1C2258;
    max-width: 355px;
    text-decoration: none;
}
.modal-open:not(.t-btn){
    display: inline-flex;
    border-radius: 15px;
    background: rgba(28, 34, 88, 0.13);
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    cursor: pointer;
    padding: 30px 78px;
}

.modal-tab{
    display: none;
}
.modal-row{
    display: flex;
    max-height: calc(100vh - 20px);
    height: 100%;
    width: 100%;
}
.chat-wrapper{
    width: 59%;
    height: auto;
    padding: 45px 11px 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 25px;
}
.chat-body{
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 80%;
    overflow-y: auto;
    padding: 0 27px 0 0;
}
.chat-body::-webkit-scrollbar-button {
    display: none;
    background-color: red;
}
.chat-body::-webkit-scrollbar-button:single-button {
    display: none;
}
.message{
    display: flex;
    align-items: flex-end;
    gap: 24px;
    min-width: 315px;
}
.message.orient-left{
    align-self: flex-start;
}
.message.orient-right{
    align-self: flex-end;
    justify-content: flex-end;
}
.avatar{
    width: 66px;
    height: 66px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.orient-left .avatar,
.orient-left .message-item{
    background-color: #F9EEEE;
}
.orient-right .avatar,
.orient-right .message-item{
    background-color: #EBEBF0;
}
.message-item{
    max-width: 325px;
    min-width: 225px;
    width: auto;
    padding: 14px 18px;
    display: inline-flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    position: relative;
}
.message-item::after{
    position: absolute;
    content: '';
    width: 17px;
    height: 15px;
    bottom: 0;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
}
.orient-left .message-item::after{
    left: -15px;
    background-image: url(img/after2.svg);
}
.orient-right .message-item::after{
    right: -15px;
    background-image: url(img/after1.svg);
}
.orient-left .message-item{
    min-width: 280px;
    border-radius: 15px 15px 15px 0;
}
.orient-right .message-item{
    border-radius: 15px 15px 0 15px;
}
.user-name{
    font-family: Montserrat;
    font-size: 12px;
    line-height: normal;
}
.orient-left .user-name{
    font-weight: 700;
    color: #AD272B;
}
.orient-right .user-name{
    color: rgba(28, 34, 88, 0.44);
    font-weight: 400;
}
.message-body{
    color: #1C2258;
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
}
.gender-choise{
    display: flex;
    align-items: center;
    gap: 30px;
}
.gender-choise label{
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    position: relative;
}
.gender-choise label input{
    position: absolute;
    opacity: 0;
    visibility: hidden;
}
.gender-choise p{
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: #1C2258;
}
.gender-choise .radio{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 9px solid #F9EEEE;
    background-color: #FFF;
    transition: .3s all ease;
}
.gender-choise label:has(input:checked) .radio{
    background-color: #AD272B;
}
.message:has(.gender-choise){
    min-width: 340px;
    justify-content: flex-end;
}
.chat-action{
    width: 100%;
}
.chat-title{
    font-family: Raleway;
    font-size: 24px;
    font-weight: 700;
    line-height: normal;
    color: #1C2258;
    margin: 0 0 12px 0;
}
.send-message{
    position: relative;
    width: 100%;
}
.send-message textarea{
    width: 100%;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #1C2258;
    padding: 28px 87px 28px 28px;
    border-radius: 15px;
    background: #EBEBF0;
    border: none;
    outline: none;
    padding-bottom: env(safe-area-inset-bottom);
}
.send-message textarea::placeholder{
    color: rgba(28, 34, 88, 0.44);
}

.send-message textarea:disabled{
    opacity: .6;
}
.send-message button{
    width: 72px;
    height: 50px;
    border-radius: 15px;
    background: #1C2258;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    border: none;
    outline: none;
}
.send-message button svg{
    transition: .3s all ease;
}
.send-message button:active svg{
    transform: translate(10px, 0);
}

.send-message button:disabled{
    opacity: 0.6;
}
.recommendation{
    width: 41%;
    background-color: #EBEBF0;
    border-radius: 0 35px 35px 0;
    padding: 40px 40px 50px 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}
.rec-title{
    font-family: Raleway;
    font-size: 32px;
    font-weight: 700;
    line-height: normal;
    color: #1C2258;
    margin: 0 0 24px 0  ;
}
.desc{
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: #1C2258;
}
.recommendation .desc{
    max-width: 330px;
}
.rec-actions{
    width: 100%;
}
.modal .btn{
    font-family: Raleway;
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    width: 100%;
    text-decoration: none;
    border-radius: 15px;
}
.btn-consul{
    background: rgba(28, 34, 88, 0.13);
    color: #1C2258;
}
.btn-order{
    background: #AD272B;
    color: #F9EEEE  ;
}
.rec-actions .btn + .btn{
    margin: 17px 0 0 0;
}


.data-select{
    margin: 32px 0 0 0;
}
.date-time-picker,
.programs{
    display: flex;
    gap: 32px;
    justify-content: center;
    margin: 0 0 0 88px;
}
.date-time-picker .line{
    display: flex;
    width: 1px;
    height: auto;
    background-color: #C9CAD7;
}
.block-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: Raleway;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    color: #AD272B;
    margin: 0 0 13px 0;
}
.date-inputs {
    display: flex;
    gap: 5px;
    align-items: flex-start;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}
.field label {
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: #1C2258;
}
.field input {
    width: 43px;
    height: 41px;
    text-align: center;
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 800;
    line-height: normal;
    border: 1px solid #AD272B;
    border-radius: 10px;
    color: #AD272B;
    outline: none;
}
.field.year input{
    width: 58px;
    border: none;
    color: #1C2258;
    background: #EBEBF0;
}
.data-select input::-webkit-outer-spin-button,
.data-select input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input-wrap{
    display: flex;
    align-items: center;
    gap: 3px;
}
.spin-arrows{
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
}
.spin-arrows img{
    cursor: pointer;
}
.services{
    display: flex;
    flex-direction: column;
    gap: 17px;
}
.service-item{
    display: flex;
    position: relative;
    padding: 30px 28px;
    border-radius: 15px;
    overflow: hidden;

    font-family: Montserrat;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    color: #AD272B;
    text-decoration: none;
    z-index: 1;
    background-color: #F8F9FF;
}
.service-item img{
    position: absolute;
    z-index: -1;
    right: 0;
    top: 0;
}
.services2 .service-item{
    padding: 12px 0;
    border-bottom: 1px solid #C9CAD7;
    border-radius: 0;
    background-color: transparent;
}
.services2 .service-item:first-child{
    padding: 0 0 12px 0;
}
.services2 .service-item:last-child{
    padding: 12px 0 0 0;
    border-bottom: none;
}
.data-info{
    display: flex;
    align-items: center;
    justify-content: space-between;

    font-family: Montserrat;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    color: #1C2258;
    margin: 0 0 30px 0;
}
.data-info p{
    display: flex;
    align-items: center;
    gap: 16px;
}
.data-info span{
    font-family: Raleway;
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
    display: flex;
    align-items: center;
    gap: 8px;
}
.programs{
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}
.programs label{
    position: relative;
    padding: 17px 21px;
    border-radius: 34px;
    background: #fff;
    border: 2px solid #AD272B;
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    color: #AD272B;
}
.programs label.checked{
    background: #AD272B;
    color: #F9EEEE;
}
.programs label input{
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

.alert{
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.alert svg,
.alert img{
    flex: 0 0 auto;
}
.alert .desc{
    max-width: 100%;
    color: #FF5F64;
}

.success-modal{
    height: 682px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 17px;
}
.success-modal .desc{
    text-align: center;
}
.success-modal .btn{
    max-width: 561px;
}
.success-modal .desc{
    margin: 0 0 34px 0;
}
.modal-title{
    font-size: 64px;
    font-weight: 700;
    line-height: normal;
    color: #1C2258;
}
.chat-intro{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 0 0 50px 0;
    text-align: center;
}
.intro-title{
    font-size: 32px;
    font-weight: 600;
    line-height: normal;
    color: #1C2258;
}
.intro-desc{
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    color: #1C2258;
}
.intro-img{
    width: 90px;
    height: 90px;
}

.dt-continue{
    font-family: Raleway;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.schedule-picker .tabs{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.schedule-picker .sp-dates{
    border-bottom: 1px solid #1c2258;
    padding-bottom: 10px;
}

.schedule-picker .sp-head{
    margin-bottom: 5px;
}

.schedule-picker .tabs .tab{
    padding: 5px 8px;
    border-radius: 4px;
    border: none;
    background: rgba(28, 34, 88, 0.13);
    color: #1C2258;
    cursor: pointer;
}
.schedule-picker .tabs .tab.active{
    background: rgba(28, 34, 88, 1);
    color: #fff;
}

.schedule-picker .sp-continue{
    width: auto;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 5px;
}

.schedule-picker .muted{
    font-size: 14px;
    padding: 10px;
    background: #f56363;
    color: #fff;
    border-radius: 5px;
    font-weight: 500;
}

.sp-mobile-book-now{
    font-family: Raleway;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    width: 100%;
    text-decoration: none;
    border-radius: 8px;
    border: none;
}

.doctor-buttons,
.goal-buttons,
.gender-buttons,
.checkup-buttons{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.modal .goal-btn,
.modal .gender-btn,
.modal .doctor-btn,
.modal .checkup-btn{
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(28, 34, 88, 0.13);
    color: #1C2258;
    border: none;
    width: auto;
}

@media(max-width: 1200px){
    .chat-wrapper{
        padding: 10px 11px 25px 25px;
        gap: 15px;
    }
    .recommendation{
        padding: 25px 25px;
    }
}
@media(max-width: 992px){
    .selection-row{
        height: 100%;
        grid-template-columns: repeat(1, 1fr);
    }
    .modal{
        border-radius: 0;
        max-height: 100vh;
        height: 100%;
        max-width: 100%;
        width: 100%;
    }
    .chat-modal{
        width: 100%;
        max-width: 100%;
        transition: .3s all ease;
    }
    .chat-wrapper{
        width: 100%;
        flex: 0 0 auto;
        transition: .3s all ease;
    }
    .modal-row{
        max-height: calc(100dvh - 170px);
    }
    .modal-row.is-active .chat-wrapper{
        margin: 0 0 0 -100%;
    }
    .recommendation {
        width: 100%;
        flex: 0 0 auto;
        background-color: transparent;
    }
    .modal-tab{
        display: flex;
        margin: 80px 20px 33px 20px;
        border-radius: 15px;
        border: 1px solid #1C2258;
        position: relative;
        z-index: 1;
        cursor: pointer;
    }
    .modal-tab::after{
        position: absolute;
        content: '';
        left: calc(0% - 1px);
        top: -1px;
        width: calc(50% + 2px);
        height: calc(100% + 2px);
        border-radius: 15px;
        background-color: #AD272B;
        transition: .3s all ease;
        z-index: -1;
    }
    .modal-tab.is-active::after{
        left: 50%;
    }
    .modal-tab-btn{
        width: 50%;
        font-size: 14px;
        font-weight: 600;
        line-height: normal;
        padding: 18px 0;
        text-align: center;
        color: #1C2258;
        transition: .3s all ease;
    }
    .modal-tab-btn:first-child{
        color: #FFF;
    }
    .modal-tab.is-active .modal-tab-btn:first-child{
        color: #1C2258;
    }
    .modal-tab.is-active .modal-tab-btn:last-child{
        color: #FFF;
    }
    .modal-title{
        font-size: 48px;
    }
}
@media(max-width: 768px){
    .selection-icon{
        width: 90px;
        height: 90px;
    }
    .selection-icon svg{
        width: 100%;
        height: auto;
    }
    .selection-right, .selection-left{
        gap: 27px;
        padding: 0 20px;
    }
    .selection-title {
        font-size: 20px;
    }
    .modal-close{
        right: 10px;
        top: 20px;
    }
    .rec-title{
        font-size: 20px;
        margin: 0 0 14px 0;
    }
    .services{
        gap: 12px;
    }
    .service-item{
        font-size: 14px;
        padding: 23px 28px;
    }
    .data-info{
        font-size: 14px;
        gap: 30px;
        justify-content: flex-start;
    }
    .data-info span{
        font-size: 14px;
    }
    .data-info svg{
        width: 14px;
        height: auto;
    }
    .data-info p{
        gap: 7px;
    }
    .modal .btn{
        font-size: 15px;
        padding: 22px 10px;
    }
    .rec-actions .btn + .btn {
        margin: 14px 0 0 0;
    }
    .recommendation{
        padding: 20px 20px;
    }
    .avatar{
        width: 38px;
        height: 38px;
        padding: 8px;
    }
    .avatar img{
        max-width: 100%;
    }
    .chat-body{
        padding: 0;
        overflow-x: hidden;
    }
    .chat-wrapper{
        padding: 0 20px 20px;
    }
    .message-item{
        padding: 13px;
    }
    .message-body{
        font-size: 12px;
    }
    .programs{
        gap: 7px;
    }
    .programs label{
        font-size: 10px;
        padding: 12px;
    }
    .date-time-picker, .programs{
        margin: 0 0 0 50px;
    }
    .user-name{
        font-size: 10px;
    }
    .chat-title{
        font-size: 16px;
        margin: 0 0 12px 0;
    }
    .send-message input{
        font-size: 14px;
        padding: 22px 87px 22px 16px;
    }
    .send-message button{
        width: 55px;
        height: 40px;
        right: 11px;
        top: 11px;
    }
    .date-time-picker{
        flex-direction: column;
        gap: 16px;
    }
    .date-time-picker .line:first-child,
    .date-time-picker .line:last-child{
        display: none;
    }
    .date-time-picker .line{
        width: 100%;
        height: 1px;
    }
    .message{
        min-width: 300px;
        gap: 18px;
    }
    .orient-left .message-item {
        min-width: 250px;
    }
    .message:has(.gender-choise) {
        min-width: 280px;
    }
    .desc{
        font-size: 12px;
    }
    .modal-title{
        font-size: 36px;
    }
    .success-modal .btn{
        max-width: calc(100% - 40px);
    }
    .chat-intro{
        gap: 16px;
        margin: 0 0 30px 0;
        padding: 0 30px;
    }
    .intro-img{
        width: 66px;
        height: 66px;
    }
    .intro-title{
        font-size: 18px;
    }
    .intro-desc{
        font-size: 12px;
    }
}
@media(max-width: 576px){
    .chat-intro{
        padding: 0 15px;
    }
    .chat-modal{
        transform: none;
        left: 0;
        top: 0;
        max-height: 100dvh;
    }
}