.footer {
    position: relative;
    overflow: hidden;
    background: none;
    padding: 36px 0 23px 0;
    color: #525252;
    font-family: "MuseoSansCyrl", Helvetica, sans-serif;
}


/* Модалка футтера */


/* --------------------------------------------- */
.footer-modal__field-close {
    position: absolute;
    width: 100%;
    height: 100%;
}

.footer__modal {
    display: none;
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .3);
    z-index: 1000;
}

.footer__modal:target {
    display: block;
}


.footer__modal-content {
    width: 100%;
    background: #FFFFFF;
    border-radius: 24px 24px 0px 0px;
    padding: 24px 24px;
    position: absolute;
    bottom: 0;
}

.footer__modal-content h2 {
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    margin: 0 0 24px 0;
}

.footer__modal-content ul {
    font-family: "MuseoSansCyrl", Helvetica, sans-serif;
    font-size: 16px;
    line-height: 18px;
    padding: 0;
    margin: 0 0 0 12px;
    max-height: calc(100vh - 120px);
    overflow: scroll;
}



.footer__modal-content ul li {
    list-style: none;
    padding-bottom: 20px;
}

.footer__modal-content ul li a {
    color: #525252;
}

.footer-modal__header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer__wrapper-messengers .icon {
    margin-left: 0;
}
/* --------------------------------------------- */


.footer__back-1,
.footer__back-2 {
    position: absolute;
    z-index: 1;
    bottom: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom;
}

.footer__back-1 {
    left: 0;
    width: 846px;
    height: 464px;
    background-image: url("/local/html/images/svg/footer-background-1.svg");
}
.footer__back-2 {
    right: 0;
    width: 846px;
    height: 464px;
    background-image: url("/local/html/images/svg/footer-background-2.svg");
}

.footer h2 {
    margin: 0 0 21px 0;
}

.footer__container {
    position: relative;
    z-index: 2;
    display: flex;
    max-width: 1140px;
    height: 100%;
    margin: 0 auto;
    padding: 0 19px;
}

.footer__column-2 .font_h2,
.footer__column-3 .font_h2,
.footer__column-4 h2 {
    text-transform: uppercase;
}

.footer__column-2 h2,
.footer__column-3 h2,
.footer__column-4 h2 {
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
}

.footer__column-2 ul,
.footer__column-3 ul,
.footer__column-4 ul {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.footer__column-1 {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    margin-right: 72px;
}


.footer__copyright {
    font-size: 12px;
    line-height: 18px;
    color: #717070;
    font-family: "Roboto", Helvetica, sans-serif;
    margin: 0;
}

.footer__column-1 ul {
    display: none;
}

.footer__column-1 ul li:not(:last-of-type) {
    margin-bottom: 9px;
}


.footer__column-1 a:hover {
    color: inherit;
}

.footer__column-1 a:active {
    color: #D91920;
}


.footer__column-2 {
    margin-right: 92px;
    max-width: 163px;
}

.footer__column-3 {
    margin-right: 82px;
}

.footer__column-1 ul,
.footer__column-2 ul,
.footer__column-3 ul {
    padding: 0;
    margin: 0;
    list-style: none;
}


.footer__column-2 ul li:not(:last-of-type),
.footer__column-3 ul li:not(:last-of-type) {
    margin-bottom: 10px;
}

.footer__column-1 a,
.footer__column-2 a,
.footer__column-3 a {
    color: inherit;
}

.footer__column-2 a:hover,
.footer__column-3 a:hover {
    color: #D91920;
}

.footer__logo {
    width: 159px;
    height: 66px;
    margin: 0;
    display: block;
    background-image: url("/local/html/images/svg/logo-footer.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

.footer__wrapper-messengers {
    display: flex;
    flex-flow: wrap;
    gap: 12px;
    max-width: 168px;
}

.footer__messenger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #F4F6F8;
    border-radius: 8px;
    cursor: pointer;
}

.footer__messenger:hover {
    background: #FFFFFF;
    box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.1);
}

.header__icon-messenger {
    width: 26px;
    height: 26px;
    fill: #000000;
}

.footer__messenger:hover .header__icon-messenger {
    fill: #D91920;
}

.menu-item--tablets-visible {
    display: none;
}

@media(max-width: 1620px) {
    .footer__back-1 {
        left: calc(100% - 1620px);
    }
    .footer__back-2 {
        right: calc(100% - 1620px);
    } 
}
@media(max-width: 1340px) {
    .footer__back-1 {
        left: calc(100% - 1540px);
    }
    .footer__back-2 {
        right: calc(100% - 1540px);
    } 
}


@media (max-width: 1024px) {
    .footer {
        padding: 47px 0 18px 0;
    }

    .footer__back-1 {
        left: 0;
        width: 373px;
        background-image: url("/local/html/images/svg/footer-background-1-pl.svg");
    }

    .footer__back-2 {
        right: 0;
        width: 321px;
        background-image: url("/local/html/images/svg/footer-background-2-pl.svg");
    }

    .footer__column-1 {
        margin-right: 102px;
    }

    .footer__column-2 {
        margin-right: 112px;
    }

    .footer__column-3 {
        margin-right: 0;
    }

    .footer__column-4 {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer__column-1 {
        margin-right: 52px;
    }

    .footer__column-2 {
        margin-right: 72px;
    }
}

@media (max-width: 641px) {
    .footer__back-1 {
        width: 260px;
    }
    .footer__back-2 {
        width: 151px;
        background-image: url("/local/html/images/svg/footer-background-2-mb.svg");
    }

    .footer__container {
        gap: 0 22px;
    }

    .footer__logo {
        width: 178px;
        height: 29px;
        background-image: url("/local/html/images/svg/logo.svg");
    }

    .footer__column-1 {
        margin-right: 62px;
    }

    .footer__copyright {
        width: 190px;
    }

    .footer__column-2 {
        margin-right: 0;
        max-width: 245px;
    }

    .footer__column-3 {
        display: none;
    }

    .menu-item--tablets-visible {
        display: block;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 32px 0 40px 0;
    }
    .footer__column-1 {
        margin-right: 32px;
    }

    /* .footer__column-1 ul  {
        display: block;
    } */

}

@media (max-width: 420px) {
    .footer__logo {
        margin-bottom: 32px;
    }

    .footer__column-1 {
        margin: 0;
    }

    .footer__column-1 ul {
        display: block;
        font-size: 16px;
        line-height: 24px;
        margin: 0 0 30px 28px;
    }

    .footer__copyright {
        margin-left: 28px;
    }

    .footer__column-2 {
        display: none;
    }

    .menu-item--tablets-visible {
        display: none;
    }
}
