/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal {
    height: 99vh;
    overflow: auto;
}


.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 710px;
    padding: 106px;
    padding-top: 60px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 11px;
    right: 19px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

.modal-title {
    margin-bottom: 37px;
    color: #0f0f0f;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
}

.modal-content {
    margin-bottom: 25px;
}

.modal-list {
    list-style-type: none;
    margin: 20px 0;

}

.modal-list li {
    padding: 10px 0;
    align-items: center;
}

.modal-list li:last-child {
    border-bottom: none;
}

.modal-list li  {
    font-size: 20px;
    display: flex;
}
.modal-list li span:first-child {
    background: #9E0505;
    width: 38px;
    display: inline-flex
;
    justify-content: center;
    align-items: center;
    height: 38px;
    border-radius: 30px;
    color: #fff;
    font-size: 20px;
    margin-right: 16px;
}
.modal_contact {
    background: #9E0505;
    color: #fff;
    height: 39px;
    display: flex
;
    width: 264px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 50px;
}
.div_modal_contact {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .modal {
        width: 100%;
        border-radius: 0;
    }
    .modal {
        height: 100vh;
        overflow: auto;
        padding: 30px
    }
    .modal-title {
        font-size: 20px;
        margin-bottom: 15px;

    }
    .modal-list li {
        font-size: 16px;

    }
    .modal-list li span:first-child {

        font-size: 16px;
    }
    .modal_contact {
        
        margin-top: 30px;
    }

}