#footer {
    background: #333333;
    border-top: 0;
    padding: 0;
}

#footer .vp-footer {
    background: #333333;
    color: #ffffff;
    font-family: "Montserrat", Arial, sans-serif;
    padding: 44px 0 36px;
}

#footer .vp-footer .maxwidth-theme {
    background: transparent !important;
    box-shadow: none !important;
    width: 100%;
}

#footer .vp-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

#footer .vp-footer a:hover {
    opacity: 0.75;
}

#footer .vp-footer__top {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(24px, 3vw, 48px);
    width: 100%;
    align-items: start;
}

#footer .vp-footer__col {
    min-width: 0;
    width: 100%;
}

#footer .vp-footer__accordion-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: default;
    pointer-events: none;
}

#footer .vp-footer__accordion-icon {
    display: none;
}

#footer .vp-footer__title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: 22px;
    margin-bottom: 12px;
    color: #ffffff;
}

#footer .vp-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer .vp-footer__list li {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .vp-footer__list > li::before {
    content: none !important;
    display: none !important;
}

#footer .vp-footer__list li + li {
    margin-top: 5px;
}

#footer .vp-footer__list a {
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #ffffff;
}

#footer .vp-footer__col_contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

#footer .vp-footer__phone-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#footer .vp-footer__phone {
    font-size: 18px;
    font-weight: 600;
    line-height: 22px;
    color: #ffffff;
}

#footer .vp-footer__callback {
    display: inline-block;
    width: fit-content;
    margin-top: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
}

#footer .vp-footer__callback:hover {
    opacity: 0.75;
    text-decoration: underline;
}

#footer .vp-footer__email {
    display: inline-block;
    margin-top: 12px;
    font-size: 18px;
    font-weight: 600;
    line-height: 22px;
    color: #ffffff;
}

#footer .vp-footer__address {
    margin-top: 12px;
    max-width: 313px;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #ffffff;
}

#footer .vp-footer__app {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    width: fit-content;
    max-width: 100%;
}

#footer .vp-footer__app-badges {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

#footer .vp-footer__app-link {
    display: block;
    line-height: 0;
}

#footer .vp-footer__app-link img {
    display: block;
    width: 112px;
    height: auto;
    margin: 0 !important;
}

#footer .vp-footer__app-qr {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    margin: 0 !important;
}

#footer .vp-footer__app-text {
    flex-shrink: 0;
    align-self: center;
    margin: 0 !important;
    width: 145px;
    max-width: 145px;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #ffffff;
}

#footer .vp-footer__divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px 0 18px;
    min-height: 43px;
}

#footer .vp-footer__divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    margin-top: -1px;
    background: #434343;
}

#footer .vp-footer .social-block,
#footer .vp-footer .social-icons {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    line-height: 0;
    text-align: center;
}

#footer .vp-footer .social-icons ul {
    display: inline-block;
    margin: 0;
    padding: 0 16px;
    list-style: none;
    background: #333333;
}

#footer .vp-footer .social-icons li {
    margin: 0;
    padding: 0;
}

#footer .vp-footer .social-icons li::before {
    content: none !important;
    display: none !important;
}

#footer .vp-footer .social-icons li a,
#footer .vp-footer .social-icons li.vk a {
    margin: 0 !important;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: url("../images/svg/social.svg?v=1") -1px -377px no-repeat !important;
    background-color: transparent !important;
    opacity: 0.5;
}

#footer .vp-footer .social-icons li a:hover,
#footer .vp-footer .social-icons li.vk a:hover {
    opacity: 1;
    border: none;
    background-position: 0 -188px !important;
}

#footer .vp-footer__bottom {
    display: flex;
    align-items: center;
    gap: 12px 36px;
    flex-wrap: wrap;
}

#footer .vp-footer__copy {
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #858585;
}

#footer .vp-footer__bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 36px;
    flex: 1 1 auto;
}

#footer .vp-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 36px;
}

#footer .vp-footer__legal a {
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #858585;
}

#footer .vp-footer__legal a:hover {
    color: #ffffff;
    opacity: 1;
}

#footer .vp-footer__payments {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

#footer .vp-footer__payments img {
    display: block;
    flex-shrink: 0;
    margin: 0 !important;
    height: 24px;
    width: auto;
    object-fit: contain;
    vertical-align: top;
}

@media (max-width: 1199px) {
    #footer .vp-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }

    #footer .vp-footer__col_contacts {
        grid-column: 1 / -1;
    }

    #footer .vp-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    #footer .vp-footer__bottom-row {
        width: 100%;
    }

    #footer .vp-footer__payments {
        margin-left: 0;
        justify-content: flex-start;
    }
}

/* Mobile: «Подвал МП (закрытый / открытый вид)» */
@media (max-width: 767px) {
    #footer .vp-footer {
        padding: 0 0 24px;
    }

    #footer .vp-footer .maxwidth-theme {
        padding-left: 0;
        padding-right: 0;
    }

    #footer .vp-footer__top {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    #footer .vp-footer__accordion {
        border-bottom: 1px solid #434343;
    }

    #footer .vp-footer__accordion-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 54px;
        padding: 13px 23px;
        cursor: pointer;
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
    }

    #footer .vp-footer__accordion-icon {
        display: block;
        flex-shrink: 0;
        width: 12px;
        height: 6px;
        margin-left: 16px;
        transition: transform 0.2s ease;
    }

    #footer .vp-footer__accordion.is-open .vp-footer__accordion-icon {
        transform: rotate(180deg);
    }

    #footer .vp-footer__title {
        margin-bottom: 0;
        font-size: 22px;
        font-weight: 600;
        line-height: 27px;
    }

    #footer .vp-footer__list {
        display: none;
        padding: 0 23px 16px;
    }

    #footer .vp-footer__accordion.is-open .vp-footer__list {
        display: block;
    }

    #footer .vp-footer__list li + li {
        margin-top: 5px;
    }

    #footer .vp-footer__list a {
        font-size: 16px;
        line-height: 20px;
    }

    #footer .vp-footer__col_contacts {
        gap: 26px;
        padding: 24px 23px 0;
    }

    #footer .vp-footer__callback {
        display: none;
    }

    #footer .vp-footer__phone {
        font-size: 20px;
        line-height: 25px;
    }

    #footer .vp-footer__email {
        margin-top: 14px;
        font-size: 20px;
        line-height: 25px;
    }

    #footer .vp-footer__address {
        margin-top: 14px;
        max-width: none;
        font-size: 18px;
        line-height: 22px;
    }

    #footer .vp-footer__app {
        gap: 9px;
        margin-top: 0;
        width: 100%;
        max-width: 354px;
    }

    #footer .vp-footer__app-badges {
        gap: 6px;
    }

    #footer .vp-footer__app-link img {
        width: 120px;
    }

    #footer .vp-footer__app-qr {
        width: 77px;
        height: 80px;
    }

    #footer .vp-footer__app-text {
        width: 142px;
        max-width: 142px;
        font-size: 15px;
        line-height: 18px;
    }

    #footer .vp-footer__divider {
        margin: 26px 0 18px;
        padding: 0 23px;
        min-height: 40px;
    }

    #footer .vp-footer__bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0 23px;
    }

    #footer .vp-footer__copy {
        width: 100%;
        font-size: 15px;
        line-height: 18px;
        color: #868686;
    }

    #footer .vp-footer__bottom-row {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
    }

    #footer .vp-footer__legal {
        flex-wrap: nowrap;
        gap: 16px;
        flex: 1 1 auto;
    }

    #footer .vp-footer__legal a {
        font-size: 14px;
        line-height: 17px;
        color: #868686;
    }

    #footer .vp-footer__payments {
        margin-left: auto;
        gap: 8px;
        height: 19px;
    }

    #footer .vp-footer__payments img {
        height: 19px;
    }
}
