.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    outline: 0;
}
.modal-open {
    overflow: hidden;
}
.modal-open .modal {
    overflow-x: hidden;
    overflow-y: scroll;
}
.modal-dialog {
    position: relative;
    width: auto;
    margin: 16px;
    max-width: 100%;
}
.modal-dialog-centered {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - (16px * 2));
}
.modal-dialog-centered:before {
    display: block;
    height: calc(100vh - (16px * 2));
    content: "";
}
.modal-dialog-scrollable {
    height: calc(100% - 32px);
}
.modal-dialog-scrollable .modal-scrollbar {
    flex: 1 1 auto;
}
.modal-content {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    background-clip: padding-box;
    outline: 0;
    height: 100%;
    background: var(--color-white);
    padding: 64px 24px 24px;
    overflow: hidden;
    border-radius: var(--radius);
}
.modal-title {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-black);
    margin: 0 0 24px;
}
.modal-title_with_logo {
    padding-top: 124px;
    position: relative;
}
.modal-title_with_logo:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    width: 100px;
    height: 100px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("../images/logo.svg");
}
.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: var(--color-overlay);
    display: none;
}
.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: none;
    border: none;
    color: var(--color-black);
    z-index: 200;
    cursor: pointer;
    transition: color var(--animate);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.modal-close:before {
    content: "\e907";
    font-family: var(--icons);
    font-size: 14px;
    line-height: 1;
    font-weight: normal;
    font-style: normal;
}
.modal-close:hover {}
.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}


/*.modal_inverse .modal-content {
    background: var(--color-dark-bold);
}*/

dialog {
    display: flex;
    flex-direction: column;
    padding: 64px 24px 32px;
    border: none;
    background: var(--color-white);
    gap: 24px;
    text-align: center;
}
dialog::backdrop {
    background-color: var(--color-overlay);
}

@media screen and (min-width: 768px) {
    .modal .modal-dialog {
        max-width: 590px;
        margin: 16px auto;
    }
    .modal .modal-dialog_sm {
        max-width: 385px;
    }
    .modal .modal-dialog_xl {
        max-width: 100%;
        margin: 16px;
    }
    
    .modal-content,
    dialog {
        padding: 64px 64px 48px;
    }
    .modal-dialog_sm .modal-content {
        padding: 64px 40px 45px;
    }
    dialog {
        width: 590px;
    }
    .modal-title {
        font-size: 22px;
    }
}
@media screen and (min-width: 1240px) {
    .modal .modal-dialog_xl {
        max-width: 1200px;
        margin: 16px auto;
    }
}