
.modal-windows {
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 11;
    overflow: auto;
}

.modal-windows__wrapper {
    width: calc(100% - 36px);
    background: var(--white-color);
    border-radius: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 32px 22px;
    overscroll-behavior: contain;
}

.modal-windows__wrapper::-webkit-scrollbar {
    width: 6px;
    background: var(--white-color);
    border-radius: 12px;
}

.modal-windows__wrapper::-webkit-scrollbar-thumb {
    background: rgba(55, 59, 60, .4);
    border-radius: 12px;
}

@media (-webkit-min-device-pixel-ratio: 1.2), (min-resolution: 120dpi) {
    .modal-windows__wrapper {
        height: 96vh;
        overflow: auto;
        border-right: 8px solid var(--white-color);
        border-top: 8px solid var(--white-color);
        border-bottom: 8px solid var(--white-color);
    }
}

@media screen and (min-width: 577px) {
    .modal-windows__wrapper {
        max-width: 760px;
        padding: 60px;
    }
}

.modal-windows__close-icon {
    width: 28px;
    height: 28px;
    display: block;
    cursor: pointer;
    position: absolute;
    right: 18px;
    top: 18px;
}

@media screen and (min-width: 577px) {
    .modal-windows__close-icon {
        right: 32px;
        top: 32px;
    }
}

.modal-windows__close-icon::after,
.modal-windows__close-icon::before {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background: #373B3C;
    position: absolute;
    top: 13px;
    left: 2px;
    border-radius: 12px;
}

.modal-windows__close-icon::before {
    transform: rotate(45deg);
}

.modal-windows__close-icon::after {
    transform: rotate(-45deg);
}