div.mastcontainer {
    text-align: right;
    padding-top: 30px;
    height: 340px;
}

a {
    text-decoration: none;
    color: inherit;
}

table.compagny_contacts,
table.compagny_presentation {
    display: inline-table;
    border-collapse: collapse;
    text-align: center;
}

table.compagny_contacts {
    width: 320px;
    float: left;
}

table.compagny_presentation {
    width: 680px;
}

table.compagny_contacts thead,
table.compagny_presentation thead {
    background-color: #303030;
    height: 30px;
    margin-bottom: 30px;
}

table.compagny_contacts thead th,
table.compagny_presentation thead th {
    padding: 0;
    color: #EAEAEA;
    line-height: 30px;
    font-size: 18px;
    text-align: center;
    font-weight: 500;
}

/* CONTACT */

table.compagny_contacts tbody th {
    padding: 0 30px;
    text-align: left;
    line-height: 30px;
    font-size: 16px;
    font-weight: 200;
    color: #3084D0;
}

table.compagny_contacts tbody tr:first-child th {
    padding-top: 20px;
}

table.compagny_contacts tbody td {
    padding: 0 30px;
    text-align: right;
    line-height: 20px;
    padding-bottom: 10px;
    font-size: 16px;
}

table.compagny_contacts tfoot th {
    padding: 30px 30px 5px 30px;
    text-align: left;
    font-size: 16px;
    color: #303030;
    font-weight: 500;
}

table.compagny_contacts tfoot td {
    padding: 0 30px;
    text-align: left;
    font-size: 14px;
}

/* PRESENTATION */

table.compagny_presentation tbody th {
    padding: 0 30px;
    text-align: left;
    font-size: 24px;
    line-height: 100px;
    font-weight: 200;
    color: #3084D0;
}

table.compagny_presentation tbody td {
    padding: 0 30px;
    text-align: justify;
}

@media (min-width: 860px) and (max-width: 1140px) {
    table.compagny_contacts {
        width: 240px;
    }

    table.compagny_presentation {
        width: 530px;
    }
    
    table.compagny_contacts tbody th,
    table.compagny_contacts tbody td,
    table.compagny_contacts tfoot td,
    table.compagny_presentation tbody th,
    table.compagny_presentation tbody td {
        padding: 0 10px;
    }
    
    table.compagny_contacts tfoot th {
        padding: 30px 10px 5px 10px;
    }
    
    table.compagny_presentation tbody th {
        line-height: 80px;
    }
}

@media (max-width: 860px) {
    div.mastcontainer {
        height: auto;   
    }
    
    table.compagny_contacts,
    table.compagny_presentation {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }
    
    table.compagny_presentation tbody th {
        font-size: 20px;
    }
}