/* Стили для шапки до меню */
.footer__top {
    height: var(--header_top_height);
    display: flex;
    align-items: center;
}

.footer__top_logo {
    height: 35px;
    width: 137px;
    transition: transform 0.3s ease;
}

.footer__top_logo:hover {
    transform: scale(1.05);
}

.footer__top_right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1;
}

.footer__top_right button:last-child {
    margin-right: unset;
}

.footer__pay {
    display: flex;
    margin-right: 20px;
    align-items: center;
}

.footer__pay span {
    margin-right: 10px;
}

.footer__pay a {
    height: 22px;
}

.pay-item > i {
    height: 22px;
    margin-right: 5px;
}

.email {
    color: red !important;
    text-decoration: underline !important;
}

.contacts-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.copyright {
    line-height: normal;
    font-size: 14px;
    margin-top: 20px;
}

.all-links {
    display: flex;
    align-items: center;
    text-decoration: underline !important;
}

.all-links > i {
    filter: grayscale(100%) opacity(0.5);
    margin-left: 5px;
}

footer {
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #FFFFFF;
    padding: 20px 0;
}

.footer__top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.footer__nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nav__block {
    margin-bottom: 20px;
}

.nav__block_box {
    display: flex;
    flex-wrap: wrap;
}

.nav__block_box ul {
    margin-right: 20px;
}

.nav__block_title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 20px;
}

.nav__block_list {
    list-style: none;
}

.nav__block_list li {
    font-weight: 400;
    line-height: 1.8;
}

.nav__block_list a {
    text-decoration: none;
    color: black;
}

.nav__block_list a:hover {
    color: red;
}

.footer__contacts {
    min-width: 270px;
    text-align: right;
    display: flex;
    flex-direction: column;
    font-size: 18px;
    line-height: 1.8;
    font-style: normal;
}

.footer__contacts a {
    color: black;
    text-decoration: none;
}

.footer__contacts a:hover {
    color: red;
}


@media (max-width: 950px) {
    .footer__pay {
        margin-right: 20px;
    }

    .footer__top_button-phone {
        width: 150px;
    }

    .footer__top_button-mail {
        width: 150px;
    }

    .footer__top_right > .header__top_button-phone {
        width: 30px;
        height: 30px;
        background-color: transparent;
        font-size: 0;
        margin-right: 20px;
        cursor: pointer;
    }

    .footer__top_right > .header__top_button-phone:hover {
        box-shadow: unset;
    }

    .footer__top_right > .header__top_button-phone i {
        display: unset;
        width: 36px;
        height: 36px;
        filter: invert(30%) sepia(35%) saturate(6868%) hue-rotate(347deg) brightness(87%) contrast(76%);
    }

    .footer__top_right > .header__top_button-mail {
        width: 27px;
        height: 27px;
        background-color: transparent;
        font-size: 0;
        margin-right: 32px;
        cursor: pointer;
    }

    .footer__top_right > .header__top_button-mail:hover {
        box-shadow: unset;
    }

    .footer__top_right > .header__top_button-mail i {
        display: flex;
    }

    .footer__nav {
        justify-content: center;
    }

    .nav__block {
        width: 50%;
    }

    .footer__contacts {
        width: 50%;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .footer__bottom {
        flex-direction: column;
    }
}


@media (max-width: 650px) {
    .footer__pay span {
        display: none;
    }

    .footer__top_right > button {
        display: flex;
    }

    .nav__block_box {
        flex-wrap: unset;
        flex-direction: column;
    }
}

@media (max-width: 590px) {
    .footer__pay span {
        display: none;
    }

    .footer__top_button-phone {
        margin-right: 16px;
    }

    .footer__top_button-mail {
        margin-right: 0;
    }

    .footer__nav {
        flex-direction: column;
        align-items: center;
    }

    .nav__block {
        width: unset;
        min-width: 270px;
    }

    .footer__contacts {
        width: unset;
        min-width: 270px;
    }
}

@media (max-width: 520px) {
    .footer__top_logo {
        display: none;
    }

    .footer__top_right {
        justify-content: center;
    }
}
