/* На телефонах списки занимают ширину подвала, а не четверть строки из десктопной сетки. */
@media (max-width: 767px) {
    footer.footer {
        padding: 24px 0 20px;
    }

    footer.footer > .container-fluid {
        padding-right: 16px;
        padding-left: 16px;
    }

    footer.footer .mainrow {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin: 0;
    }

    footer.footer .logo,
    footer.footer .menu,
    footer.footer .contact {
        flex: none;
        width: auto;
        max-width: none;
        min-width: 0;
        padding: 0;
    }

    footer.footer .logo {
        display: block;
    }

    footer.footer .mainrow_logo {
        margin: 0;
        padding: 0;
    }

    footer.footer .header_logotype {
        margin: 0;
        padding: 0;
    }

    footer.footer .header_logotype img {
        height: 48px !important;
        width: auto;
        max-width: 100%;
    }

    footer.footer .menu-title {
        margin: 0 0 12px;
        padding-left: 20px;
        font-size: 18px;
        line-height: 1.4;
    }

    footer.footer .menu-title::before {
        left: 0;
        top: 7px;
        width: 10px;
        height: 10px;
    }

    footer.footer .menu-foot > .row,
    footer.footer .contact-foot > .row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin: 0;
    }

    footer.footer ul,
    footer.footer ul:first-child {
        min-width: 0;
        max-width: none;
        margin: 0;
        padding: 0;
        text-align: left;
        list-style: none;
    }

    footer.footer li {
        margin: 0;
    }

    footer.footer .menu-foot a {
        display: inline-block;
        padding: 5px 0;
        line-height: 1.4;
    }

    footer.footer .contact-foot li + li {
        margin-top: 8px;
    }

    footer.footer .contact-foot .style-text2 {
        overflow-wrap: anywhere;
        font-size: 14px;
        line-height: 1.5;
    }

    footer.footer .timetable,
    footer.footer .spacing {
        font-size: 12px;
        line-height: 1.5;
    }

    footer.footer .copyright-mobile {
        margin-top: 24px;
        font-size: 12px;
        line-height: 1.5;
    }
}
