.footer {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 10px 0;
}
.footer > div:nth-child(6),
.footer > div:nth-child(7),
.footer > a {
    grid-row: 3;
}
.footer > div:nth-child(7) {
    grid-column: span 2;    
}
@media(max-width: 1185px) {
    .footer {
        grid-template-columns: repeat(3, auto);
    }
    .footer > div:nth-child(7) {
        grid-column: unset;
    }
    .footer > div:nth-child(5),
    .footer > div:nth-child(6),
    .footer > div:nth-child(7),
    .footer > a {
        grid-row: span 1;
        grid-column: 3;
        margin-left: 25px;
    }
    .footer__menu.footer__menu_last {
        grid-row: span 4;
    }
}
@media (max-width: 993px) {
    .footer__contacts {
        grid-row: span 4;
    }
    .footer {
        gap: 5px 0;
    }
}
@media (max-width: 500px) {
    .footer {
        grid-template-columns: repeat(1, 1fr);
    }

    .footer > div:nth-child(5), .footer > div:nth-child(6), .footer > div:nth-child(7), .footer > a {
        grid-column: 1;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-left: unset;
    }

    .footer__soc {
        align-items: center;
        justify-content: center;
    }
}