/* 
    Модальные окна
*/

body.modalOpen {
    overflow: hidden;
    touch-action: none;
    -ms-touch-action: none;

}

body.fixed {
    position: fixed;
}

body.modalOpen .wrapper {
    position: relative;
    overflow: hidden;
}

.modal__wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: none;
}

.modal__container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 3vw;
    box-sizing: border-box;
    min-height: 100%;
}

.modal {
    display: none;
}

.modal__close {
    cursor: pointer;
    user-select: none;
}

.modal__left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.modal__left .modal__body {
    width: 19.5vw;
    background-color: #231F20;
    min-height: 100vh;
    height: 100%;
    box-sizing: border-box;
    padding: 15px 28px;
}


.modal__left .modal__close {
    position: fixed;
    top: 1.1vw;
    left: 21vw;
}


.modal__center {
    position: relative;
    background-color: white;
    padding: 2.7vw;
    box-sizing: border-box;
    margin: auto;
    border-radius: 16px;
}

.modal__center .modal__close {
    position: absolute;
    top: 1vw;
    right: 1vw;
}

.modal__center .modal__close svg {
    min-width: 1.5vw;
    width: 1.5vw;
    height: 1.5vw;
}

.modal__form {
    display: flex;
    flex-direction: column;
    width: 20vw;
}

.modal__title {
    font-size: 1.4vw;
    line-height: 130%;
    color: #111;
    margin-bottom: 1.5vw;
    font-weight: 600;
}

.modal__title.center {
    text-align: center;
}

.modal__thanks {
    display: flex;
    flex-direction: column;
    width: 22.75vw;
    box-sizing: border-box;
}

.modal__thanks_icon {
    width: 6.9vw;
    margin: 0 auto;
    margin-bottom: 1.4vw;
}

.modal__thanks_icon img {
    width: 100%;
    object-fit: contain;
}

.modal__left .modal__footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 19.5vw;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    background: #231f20;
    border-top: 1px solid #404042;
}


.modal__thanks_text {
    font-weight: 500;
    font-size: 1vw;
    line-height: 1.15vw;
    text-align: center;
    margin-bottom: 1.4vw;
}

.modal__thanks button {
    width: 100%;
}

.modal--order.modal__center {
    width: 52vw;
    max-width: 920px;
    background: #4F6B55;
    border-radius: 40px;
    padding: 2.5vw;
}

.modal--order .modal__close svg path {
    fill: #fff;
}

.modal--order .modal__form {
    width: 100%;
    margin-top: 0;
}

.modal--order .modal__order-title {
    max-width: 34vw;
    margin-bottom: 1.25vw;
    font-size: 2.5vw;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
}

.modal--order .modal__order-text {
    max-width: 40vw;
    margin-bottom: 2vw;
    font-size: 1vw;
    font-weight: 400;
    line-height: 1.5;
    color: #E5EDE6;
}

.modal--order .consult__form_top {
    margin-bottom: 0.75vw;
}

.modal--order .consult__form_top label {
    display: block;
    margin-bottom: 0;
    gap: 0;
}

.modal--order .consult__form input[type="text"],
.modal--order .consult__form input[type="tel"] {
    width: 100%;
    padding: 0.8vw 0.625vw;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.9vw;
    color: #fff;
    box-shadow: none;
}

.modal--order .consult__form input[type="text"]::placeholder,
.modal--order .consult__form input[type="tel"]::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.modal--order .consult__form_policy {
    width: 100%;
    font-size: 0.75vw;
    line-height: 1.45;
    color: #fff;
}

.modal--order .consult__form_policy label {
    display: flex;
    align-items: center;
    gap: 0.6vw;
    margin-bottom: 0;
    cursor: pointer;
    flex-direction: row;
}

.modal--order .consult__form_policy span {
    white-space: normal;
}

.modal--order .consult__form_policy a {
    color: #fff;
    text-decoration: underline;
}

.modal--order .consult__form_policy input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 1vw;
    height: 1vw;
    min-width: 1vw;
    margin: 0;
    border: 1px solid #fff;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
}

.modal--order .consult__form_policy input[type="checkbox"]:checked {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5L4.8 9.2L10 3' stroke='%234F6B55' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
}

.modal--order .consult__submit {
    color: #4F6B55;
}



/* 
    Загрузка
*/
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.loader__wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(35, 31, 32, 0.7);
    backdrop-filter: blur(20px);
}

.loader.active svg {
    animation-name: load;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}


@keyframes load {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



@media(max-width: 767px) {
    .modal__left .modal__body {
        width: 83.2vw;
    }

    .modal__title {
        font-size: 6.4vw;
        line-height: 7.7vw;
        text-transform: uppercase;
        color: #EEEEEE;
        margin-bottom: 5.8vw;
    }

    .modal__left .modal__close {
        left: auto;
        right: 29px;
        top: 22px;
    }

    .modal__center {
        width: 100%;
        padding: 16vw 8vw;
    }

    .modal--order.modal__center {
        width: 100%;
        padding: 8vw 5vw;
        border-radius: 6vw;
    }

    .modal--order .modal__order-title {
        max-width: 100%;
        margin-bottom: 4vw;
        font-size: 7vw;
    }

    .modal--order .modal__order-text {
        max-width: 100%;
        margin-bottom: 6vw;
        font-size: 4vw;
    }

    .modal--order .consult__form input[type="text"],
    .modal--order .consult__form input[type="tel"] {
        padding: 3.5vw 4vw;
        font-size: 4vw;
        border-radius: 3vw;
    }

    .modal--order .consult__form_policy {
        font-size: 3.2vw;
    }

    .modal--order .consult__form_policy label {
        align-items: flex-start;
        gap: 3vw;
    }

    .modal--order .consult__form_policy input[type="checkbox"] {
        width: 4.5vw;
        height: 4.5vw;
        min-width: 4.5vw;
        margin-top: 0.3vw;
        border-radius: 1vw;
    }


}