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

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 {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 3vw;
    box-sizing: border-box;
}

.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: #231F20;
    padding: 3.75vw 1.9vw;
    box-sizing: border-box;
    margin: auto;
}

.modal__center .modal__close {
    position: absolute;
    top: 25px;
    right: 25px;
}

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

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

.modal__title {
    font-family: 'Golos Text', sans-serif;
    font-weight: 900;
    font-size: 1.5vw;
    line-height: 1.8vw;
    text-transform: uppercase;
    color: #EEEEEE;
    margin-bottom: 1.4vw;
}

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

.modal__subtitle {
    font-weight: 500;
    font-size: 0.9vw;
    line-height: 1.05vw;
    text-align: center;
    margin-bottom: 1.4vw;
}

.modal__form label {
    font-weight: 500;
    font-size: 0.9vw;
    line-height: 1.05vw;
}

.modal__form label:not(:last-child) {
    margin-bottom: 1.4vw;
}

.modal__form label:last-child {
    margin-bottom: 1.4vw;
}

.modal__form input {
    width: 100%;
    padding: 1vw;
    background: inherit;
    border: 1px solid #404042;
    font-weight: 500;
    font-size: 1vw;
    box-sizing: border-box;
    line-height: 1.2vw;
    color: white;
    margin-top: 1vw;
}

.modal__form textarea {
    width: 100%;
    max-width: 100%;
    padding: 1vw;
    background: inherit;
    border: 1px solid #404042;
    font-weight: 500;
    font-size: 1vw;
    line-height: 1.2vw;
    box-sizing: border-box;
    min-height: 7.5vw;
    margin-top: 1vw;
    color: white;
}

.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%;
}



/* 
    Загрузка
*/
.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__form {
        width: 100%;
    }

    .modal__subtitle {
        font-weight: 500;
        font-size: 3.7vw;
        line-height: 4.5vw;
        text-align: center;
        margin-bottom: 5.8vw;
    }

    .modal__form input {
        width: 100%;
        padding: 4.2vw;
        background: inherit;
        border: 1px solid #404042;
        font-weight: 500;
        font-size: 4.2vw;
        box-sizing: border-box;
        line-height: 5vw;
        margin-top: 4.2vw;
    }

    .modal__form label {
        font-weight: 500;
        font-size: 3.7vw;
        line-height: 4.5vw;
    }

    .modal__form label:not(:last-child) {
        margin-bottom: 5.8vw;
    }

    .modal__center .modal__close svg {
        width: 6.4vw;
        height: 6.4vw;
    }

    .modal__thanks {
        width: 100%;
    }

    .modal__thanks_icon {
        width: 30vw;
        margin: 0 auto;
        margin-bottom: 5.8vw;
    }

    .modal__thanks_text {
        font-weight: 500;
        font-size: 4.3vw;
        line-height: 5vw;
        text-align: center;
        margin-bottom: 5.8vw;
    }

    .modal__left .modal__footer {
        width: 82.2vw;
    }
}