/* общие стили для попапов */


.modal-up {
    width: 768px;
    max-width: none;
    border-radius: 0;
}

.modal-up_sizes {
    width: 964px;
}

.modal-up__button {
    line-height: 64px;
    width: 353px;
}

.modal-up__title {
    font-size: 18px;
    line-height: 22px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

@media only screen and (max-width: 760px) {
    .modal-up__title {
        font-size: 14px;
        line-height: 18px;
    }
}

.modal-up__content {
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 1.8px;
}

@media only screen and (max-width: 760px) {
    .modal-up__content {
        font-size: 12px;
        letter-spacing: 1.4px;
    }
}

.modal-up__table {
    text-align: center;
}

.modal-up__table-header {
    font-size: 14px;
    line-height: 16px;
    font-weight: normal;
    text-transform: uppercase;
    padding-bottom: 12px;
}

@media only screen and (max-width: 760px) {
    .modal-up__table-header {
        font-size: 12px;
    }
}

.modal-up__table-header:first-child {
    text-align: left;
}

.modal-up__table-cell {
    font-size: 14px;
    line-height: 16px;
    padding: 12px 0;
}

@media only screen and (max-width: 760px) {
    .modal-up__table-cell {
        font-size: 12px;
        padding: 8px 0;
    }
}

.modal-up__form-label {
    font-size: 14px;
    line-height: 16px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.modal-up__form-input {
    margin-top: 16px;
}

.modal-up__form-textarea {
    margin-top: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
    height: 128px;
}

.modal-up__form-acceptance {
    margin-bottom: 37px;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 1.8px;
}

.modal-up__form-acceptance a {
    color: #8a9992;
}

.modal-up__form-submit {
    width: 353px;
    height: 64px;
}

.modal-up__form-save {
    display: inline-block;
    width: 180px;
    height: 64px;
    line-height: 64px;
}

.modal-up__form-cancel {
    display: inline-block;
    width: 180px;
    height: 64px;
    line-height: 64px;
    margin-right: 20px;
}

.modal-up {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 10000;
    overflow: auto;
    display: none;
}

.modal-up__vertical {
    /*display: table-cell;*/
    vertical-align: middle;
}

.modal-up__background-close {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background: rgba(0, 0, 0, 0.4);
}

.modal-up__content {
    box-sizing: border-box;
    position: relative;
    margin: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.56);
    background-color: #ffffff;
    padding: 100px;
    width: 600px;
}

@media only screen and (max-width: 760px) {
    .modal-up__content {
        padding: 20px;
        width: 320px !important;
    }
}

.modal-up__content_medium {
    width: 768px;
}

.modal-up__content_big {
    width: 964px;
}

.modal-up__close {
    position: absolute;
    top: 26px;
    right: 41px;
    cursor: pointer;
    background: url("../img/close.svg") no-repeat 0 0;
    background-size: 25px 25px;
    width: 25px;
    height: 25px;
    display: inline-block;
}

.modal-up__close:hover {
    opacity: 0.9;
}

@media only screen and (max-width: 760px) {
    .modal-up__close {
        top: 15px;
        right: 15px;
        background: url("../img/close.svg") no-repeat 0 0;
        background-size: 25px 25px;
        width: 25px;
        height: 25px;
        display: inline-block;
    }
}

.modal-up {
    font-family: davlfont;
    z-index: 99999999; /*должен перекрывать меню и консультанта*/
}
.modal-up__content {
    /*padding: 0;*/

    line-height: 18px;
    letter-spacing: 0.05em;
}
.modal-up__content header {
    position: relative;
    padding: 24px 24px 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #CCCCCC;
}
.modal-up__content h3 {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: 0.08em;
    font-weight: normal;
    text-transform: uppercase;
}
.modal-up__close {
    top: 16px;
    right: 24px;
    width: 24px;
    height: 24px;
    background-image: url(../img/icn-close-popup_black.svg);
    background-size: auto;
}
.modal-up__container {
    padding: 0 24px 24px;
}

.modal-up-content__buttons {
    display: flex;
    justify-content: space-between;
}

.modal-up-content__button {
    display: block;
    /*width: 220px;*/
    padding: 16px 15px 14px;
    box-sizing: border-box;

    font-family: 'Optima Cyr', sans-serif;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    border-width: 1px;
    border-style: solid;
}
.modal-up-content__button {
    background-color: #8B9A93;
    border-color: #8B9A93;
    color: #ffffff;
}
.modal-up-content__button-white {
    background-color: transparent;
    border-color: #8B9A93;
    color: #8B9A93;
}
.modal-up-content__buttons .modal-up-content__button {
    margin-right: 16px;
    flex-grow: 1;
}
.modal-up-content__buttons .modal-up-content__button:last-child {
    margin-right: 0;
}
.modal-up .modal-up__vertical {
    margin-top: 20px;
}

@media only screen and (max-width: 760px) {
    .modal-up .modal-up__vertical {
        height: 100%;
        vertical-align: bottom;
    }
    .modal-up .modal-up__content {
        height: 100%;
        width: 100% !important;
        max-width: 428px;
    }
    .modal-up__container {
        padding: 0 16px 24px;
    }
    .modal-up__content header {
        margin-bottom: 16px;
        padding: 18px 16px 14px;
    }
    .modal-up__content h3 {
        font-size: 20px;
        line-height: 26px;
    }
    .modal-up__close {
        top: 30px;
        right: 30px;
        width: 16px;
        height: 16px;
        background-size: 20px;
    }

    .modal-up-content__buttons {
        flex-direction: column;
    }
    .modal-up-content__buttons .modal-up-content__button {
        margin-right: 0;
        margin-bottom: 16px;
    }
    .modal-up-content__buttons .modal-up-content__button:last-child {
        margin-bottom: 0;
    }

    .modal-up .modal-up__content {
        transform:translate3d(0,100%,0);
        transition: transform 1s;
    }
    .slideToggle__content.modal-up .modal-up__content {
        transform:translateZ(0);
    }
}

.modal-up {
    z-index: 100000;
}