/* Футер — мобильная вёрстка (весь сайт, max-width: 768px) */

@media (max-width: 768px) {
    footer {
        max-width: 100%;
        width: 100%;
        padding: 0 0 24px;
        box-sizing: border-box;
        overflow: visible;
    }

    .footer_head {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 20px 16px 12px;
        margin: 0;
    }

    .footer_logo {
        flex: 0 0 auto;
    }

    .footer_logo .logo,
    .footer_logo .logo_image {
        margin: 0;
    }

    .footer_logo .logo_image img,
    .footer_logo img {
        width: auto !important;
        height: 80px !important;
        max-height: 80px;
    }

    .footer_contacts {
        flex: 0 0 auto;
        width: auto;
        margin-left: auto;
        text-align: right;
    }

    .footer_phone,
    .footer_email {
        margin: 0;
    }

    .footer_phone a,
    .footer_email a {
        text-align: right;
        display: block;
    }

    .footer_phone a {
        font-size: 16px;
        line-height: 1.3;
    }

    .footer_email a {
        font-size: 14px;
        line-height: 1.3;
        margin-top: 4px;
    }

    .footer_center {
        max-width: 100%;
        margin: 0;
        padding: 0 16px;
        overflow: visible;
    }

    .footer_center nav {
        overflow: visible;
        width: 100%;
    }

    ul.bottomMenu {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        padding: 0;
        margin: 12px 0 16px;
        box-sizing: border-box;
    }

    ul.bottomMenu > li {
        width: 100% !important;
        max-width: 100%;
        margin: 0 0 20px !important;
        padding: 0;
        box-sizing: border-box;
    }

    ul.end_column {
        width: 100% !important;
        margin: 0 !important;
        padding: 0;
    }

    ul.submenu {
        margin: 6px 0 0;
        padding: 0;
    }

    ul.submenu li a {
        line-height: 1.45;
    }

    a.bottom_menu_item.submenu_link,
    .bottomMenu > li > a,
    .bottomMenu .end_column li a {
        display: block;
        margin-top: 0;
        margin-bottom: 6px;
    }

    .footer_end {
        padding: 8px 16px 0;
    }

    .footer_docs {
        padding: 0 16px;
        margin-bottom: 12px;
    }

    .footer_docs_list {
        flex-direction: column;
        gap: 8px;
    }

    footer hr.delimiter {
        margin: 12px 16px;
        width: auto;
    }
}
