.contacts_content {
    box-sizing: border-box;
    flex: 1 0 auto;
    width: 100%;
    padding: 37px;
    background-color: #fff;
}

.contacts_content a {
    color: #000;
    text-decoration: none;
}

.contacts_content a:hover {
    color: #6e6e6e !important;
}

.contacts_content .close_button {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 15;
    background-image: url('../images/icons/close_button.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.contacts_content_flex {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 800px));
    align-items: start;
    font-size: 30px;
    line-height: 36px;
    gap: 150px;
}

body.contacts_page footer {
    flex: 0 0 auto;
    position: static;
    width: auto;
    height: auto;
    padding: 0 37px 37px;
}

@media (max-width: 1920px) {
    .contacts_content_flex {
        font-size: 24px;
        line-height: 28.8px;
        gap: 30px;
    }
}

@media (max-width: 1680px) {
    .contacts_content {
        padding: 30px;
    }

    body.contacts_page footer {
        padding: 0 30px 30px;
    }
}

@media (max-width: 1440px) {
    .contacts_content_flex {
        gap: 40px;
        font-size: 22px;
        line-height: 26.4px;
        grid-template-columns: minmax(0, 1fr);
    }

    .contacts_content_flex .first,
    .contacts_content_flex .third {
        max-width: 865px;
    }
}

@media (max-width: 1024px) {
    .contacts_content_flex .first,
    .contacts_content_flex .third {
        max-width: 835px;
    }
}

@media (max-width: 800px) {
    .contacts_content {
        width: 100%;
        padding: 20px;
    }

    .contacts_content_flex {
        gap: 20px;
        font-size: 20px;
        line-height: 22px;
        max-width: 70%;
    }

    .contacts_content_flex .first,
    .contacts_content_flex .third {
        max-width: 100%;
    }

    body.contacts_page footer {
        padding: 0 20px 20px;
        font-size: 20px;
        line-height: 22px;
    }
}