.header, .header-mobile-buttons {
    z-index: 110;
    position: relative
}

#form-search input, .first-level-list li, .header, .header-basket__btn, .header-mobile-buttons, .search-wrap {
    position: relative
}

#form-search .search-button svg, #form-search input {
    background-color: #fff
}

.header-black {
    background-color: #272b31;
    color: var(--header-links-color);
    font-family: NotoSans;
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
    padding: 5px 0
}

.header-client-in {
    flex-direction: column
}

.header-client-in .header-entered__link {
    margin-bottom: 5px
}

.first-level, .footer-logo, .footer-logo .footer-copyright, .header-adress, .header-client__mail, .header-navigation-list, .header-sub__phone, a[href="/?logout"].header-entered__link {
    display: none
}

.header-sub__phone.white-text-hover span {
    margin-left: 10px
}

.white-text-hover span {
    display: inline-block;
    margin-left: 5px
}

.white-text-hover svg {
    vertical-align: bottom
}

.header-main {
    padding: 20px 0
}

.header-logo {
    display: block;
    width: 115px
}

.header-mobile-buttons {
    min-width: 135px;
    width: 35%;
    max-width: 160px
}

.header-search__btn svg {
    width: 22px;
    height: 22px
}

.header-basket__btn svg {
    width: 22px;
    height: 22px;
    margin-left: 50%;
    margin-top: 50%;
    transform: translate(-50%, -50%)
}

.header-menu__btn {
    background-image: url('/images/icons/header-menu.svg')
}

.header-basket__total {
    display: none;
    position: absolute;
    top: 12px;
    right: -9px;
    color: #e4401c;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: .02em;
    font-weight: 700
}

.first-level.open {
    display: flex;
    padding: 30px 0 50px;
    max-height: 420px
}

.first-level-item.extra-arrow .vn_p li:last-child {
    margin-bottom: 0
}

.first-level-list {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex-grow: 1;
    height: calc(100% - 20px)
}

.first-level-block {
    min-width: 50%
}

.first-level-block .top-menu__name {
    font-family: Scada;
    font-weight: 700;
    font-size: 15px;
    line-height: 19px;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block
}

.first-level-list li {
    max-width: 180px;
    min-width: 160px;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: .02em;
    color: #444a48;
    margin-bottom: 10px;
    text-transform: uppercase;
    display: flex
}

.first-level-list li .vn_p {
    display: none;
    position: absolute;
    background-color: #f7f7f9;
    padding: 10px 15px;
    top: 0;
    transform: translateX(100%);
    z-index: 100
}

.first-level-item.extra-arrow:hover > .vn_p {
    display: block
}

#form-search {
    position: fixed;
    width: 300px;
    height: 40px;
    z-index: 100;
    transition: .4s ease-in-out;
    display: flex;
    align-items: center;
    transform: translateX(0);
    opacity: 0;
    box-shadow: -3px 10px 15px rgba(0, 0, 0, .1)
}

#form-search.open {
    transform: translateX(-100%);
    opacity: 1
}

#form-search input {
    width: 100%;
    height: 40px;
    border: 1px solid #e7e4e0;
    border-radius: 1px;
    padding: 5px 8px;
    text-transform: uppercase
}

#form-search .search-button {
    position: absolute;
    background-color: transparent;
    width: 17px;
    height: 17px;
    border: none;
    right: 8px
}

.ui-menu.ui-widget.ui-widget-content {
    min-height: 400px;
    max-width: 400px;
    width: 300px !important;
    z-index: 200;
    position: relative;
    background-color: #fff;
    overflow: scroll;
    border: 1px solid #e7e4e0
}

.top_search_item.ui-menu-item {
    display: flex;
    width: 100%;
    padding: 6px 10px;
    align-items: center;
    border-bottom: 1px solid #e7e4e0;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: .005em;
    color: #444a48
}

.top_search_item.ui-menu-item:hover {
    background-color: #212121;
    color: #fff
}

.ui-state-active {
    border-color: transparent !important;
    background-color: transparent !important
}

figure.ui-menu-item-wrapper {
    min-width: 85px;
    max-width: 85px;
    min-height: 85px;
    margin-right: 15px
}

figure.ui-menu-item-wrapper img {
    object-fit: cover
}

@media screen and (max-width: 1023px) {
    .first-level.mobile-open .first-level-block .top-menu__name::before, .first-level.mobile-open .first-level-block.close-brand .top-menu__name::before {
        content: '';
        background-image: url('/images/icons/mobile-menu-arrow-d.svg');
        background-position: center right;
        background-repeat: no-repeat;
        right: 0;
        width: 19px;
        height: 19px
    }

    .cat-first-level-list li .vn_p li:last-child, .first-level-block .top-menu__name {
        margin-bottom: 0
    }

    #form-search {
        top: 110px;
        height: 46px
    }

    #form-search.open {
        transform: translateX(-136px)
    }

    #form-search input {
        border: none;
        border-bottom: 1px solid #e7e4e0;
        height: 46px
    }

    .header-navigation {
        position: fixed;
        z-index: 110;
        top: 110px;
        transform: translateX(100%);
        right: 0;
        transition: .4s ease-in-out
    }

    .header-navigation.open {
        transform: translateX(0)
    }

    .first-level {
        position: relative;
        display: block;
        border-bottom: 1px solid #e7e4e0
    }

    .first-level__arrow {
        position: absolute;
        width: 30px;
        height: 30px;
        right: 15px;
        top: 6px;
        background-color: transparent;
        border: none;
        padding: .3em
    }

    .first-level__arrow.reverse {
        right: auto;
        left: 15px;
        transform: rotate(180deg);
        top: 7px
    }

    .first-level-block {
        display: none;
        min-width: 0
    }

    #top_menu {
        width: 320px;
        height: calc(100vh - 110px);
        background-color: #fff;
        border-top: 1px solid #e7e4e0
    }

    #top {
        padding: 0
    }

    .mobile-navigation__link {
        display: block;
        padding: 12px 15px;
        text-transform: uppercase;
        font-size: 15px;
        line-height: 19px;
        letter-spacing: .03em;
        color: #212121;
        font-weight: 700
    }

    .first-level.mobile-open {
        height: 100%;
        position: absolute;
        z-index: 100;
        background-color: #fff;
        width: 100%;
        top: 1px;
        overflow-y: scroll;
        overflow-x: hidden
    }

    .cat-first-level-list .mobile-header-menu__btn, .first-level-block-arrow__btn {
        width: 30px;
        position: absolute;
        transform: rotate(90deg);
        border: none;
        background-color: transparent
    }

    .first-level.mobile-open .first-level-block {
        display: block;
        padding: 10px 15px;
        border-bottom: 1px solid #e7e4e0;
        transition: .3s ease-in-out;
        position: relative
    }

    .first-level.mobile-open .mobile-navigation__link {
        text-align: end;
        border-bottom: 1px solid #e7e4e0
    }

    .first-level-block-arrow__btn {
        top: 5px;
        right: 5px;
        height: 30px;
        padding: .3em;
        z-index: -1
    }

    .first-level .first-level-list {
        display: none;
        opacity: 0;
        height: 0;
        transition: .4s ease-in-out
    }

    .first-level .first-level-list.open-list {
        display: block;
        opacity: 1;
        height: 100%;
        transition: .4s ease-in-out;
        margin-top: 10px;
        margin-left: 15px
    }

    .first-level.mobile-open .first-level-block .top-menu__name {
        margin: 0;
        position: relative
    }

    .first-level.mobile-open .first-level-block .top-menu__name::before {
        position: absolute;
        display: block;
        transform: rotate(-180deg);
        transition: .4s ease-in-out
    }

    .first-level.mobile-open .first-level-block.close-brand .top-menu__name::before {
        position: absolute;
        display: block;
        transform: rotate(0);
        transition: .4s ease-in-out
    }

    .cat-first-level-list .mobile-header-menu__btn {
        display: flex;
        right: -5px;
        top: -3px;
        height: 30px;
        align-items: center;
        justify-content: center
    }

    .cat-first-level-list li {
        margin-bottom: 15px;
        display: block
    }

    .cat-first-level-list li a, .cat-first-level-list li.open-cat-list .vn_p {
        display: block
    }

    .cat-first-level-list li .vn_p {
        position: static;
        transform: translateX(0);
        margin: 10px -30px 0;
        padding: 10px 45px
    }

    .first-level-list li {
        max-width: none
    }

    .cat-first-level-list li.open-cat-list .mobile-header-menu__btn {
        transform: rotate(-90deg)
    }
}

@media screen and (max-width: 768px) {
    #form-search.open {
        transform: translateX(-151px)
    }
}

.footer {
    background-color: var(--title-color);
    font-size: 14px;
    font-family: NotoSans;
    font-weight: 400;
    line-height: 19px;
    color: var(--header-links-color);
    padding: 60px 0 20px
}

.footer__title {
    font-weight: 700;
    display: block;
    font-family: Scada;
    font-size: 12px;
    line-height: 15px;
    letter-spacing: .02em;
    color: var(--footer-titles-color);
    margin-bottom: 25px
}

.footer-catalog, .footer-info {
    margin-bottom: 50px
}

.footer-contacts {
    width: 100%
}

.footer-catalog .menu_item_class:not(:last-child), .footer-list__item:not(:last-child) {
    margin-bottom: 10px
}

.footer-copyright {
    width: 100%;
    margin-top: 80px
}

.footer-list__social {
    margin-top: 20px;
    width: 165px;
    justify-content: flex-start
}

.footer-list__social .footer-list__item, .footer-list__social .footer-list__item a {
    display: block;
    width: 30px;
    height: 30px;
    margin-bottom: 0;
    margin-right: 15px
}

.facebook-icon, .instagram-icon, .twitter-icon, .vk-icon {
    background-position: center;
    background-repeat: no-repeat;
    background-size: 30px 30px
}

.wifi-warning {
    background: tomato;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    max-width: 100%;
}

