@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    padding: 0 10px;
}

.modal *{
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 0 auto;
    padding: 162px 4.7% 104px;
    max-width: 846px;
    width: 100%;
    background-image: url(../img/modal-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

.modal-content h3 {
    color: #001432;
    font-size: 32px;
    font-weight: 800;
    line-height: 38px;
    letter-spacing: 0;
    text-align: center;
    margin-bottom: 105px;
}

.modal-content p {
    color: #001432;
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0;
    text-align: center;
    margin-bottom: 25px;
}

.modal-content p span{
    font-weight: 800;
}

.close {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background-color: #001432;
    color: #fff;
    font-size: 30px;
    font-weight: 400;
    font-family: 'Lato', sans-serif;

    position: absolute;
    top: 20px;
    right: 20px;
}

.close:hover {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}


@media(max-width: 768px) {
    .modal-content {
        padding: 70px 20px 25px;
    }
    .modal-content h3 {
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 40px;
    }
    .modal-content p {
        font-size: 16px;
        line-height: 22px;
    }
    .close {
        top: 15px;
        right: 15px;
    }
}