.header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.header-top {
    display: flex;
    align-items: center;
    background-color: var(--dark);
    height: 5.4rem;
}

.header-top__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6.6rem;
}

.header-top__list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.4rem;
}

.header-top__link {
    font-size: 1.4rem;
    line-height: 120%;
    color: var(--white);
    transition: all .3s ease;
}

.header-top__link:hover {
    color: var(--primary);
}

.header-top__actions {
    display: flex;
    flex-direction: row;
    gap: 2.4rem;
}

.header-top__action {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
}

.header-top__action svg {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.header-top__action span {
    font-size: 1.2rem;
    line-height: 120%;
    color: var(--white);
    text-align: left;
    transition: all .3s ease;
}

.header-top__action:hover span {
    color: var(--primary);
}

.header-mid__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-mid__left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3.2rem;
}

.header-mid__right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.4rem;
}

.header__logo {
    width: 20.6rem;
    height: 5.5rem;
    flex: 0 0 auto;
}

.header__logo img {
    object-fit: contain;
}

.header__logo svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header__search {
    width: 27.8rem;
}

.header__address {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 28.6rem;
}

.header__address svg {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.header__address span {
    font-size: 1.4rem;
    line-height: 120%;
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 21.7rem;
}

.header__phone svg {
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.header__phone-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.header__phone-text a {
    font-size: 2rem;
    font-weight: 500;
    line-height: 120%;
    transition: all .3s ease;
}
.header__phone-text a:hover{
    color: var(--primary);
}
.header__phone-text span {
    font-size: 1.2rem;
    line-height: 120%;
}

.header-bottom {
    border-top: 1px solid var(--grey2);
    padding: 2rem 0;
}

.header-menu__list {
    display: flex;
    flex-direction: row;
    gap: 2.4rem;
    position: relative;
}

.header-menu__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
}

.header-menu__link {
    font-size: 1.4rem;
    line-height: 120%;
    font-weight: 500;
    transition: all .3s ease;
}

.header-menu__arrow {
    width: 0.9rem;
    height: 1.4rem;
    flex: 0 0 auto;
}

.header-menu__item:hover .header-menu__link {
    color: var(--primary);
}

.header-menu__arrow svg {
    object-fit: contain;
}

.header-menu__arrow svg path {
    transition: all .3s ease;
}

.header-menu__item:hover .header-menu__arrow svg path {
    fill: var(--primary);
}

.header-menu__item:has(.header-submenu) {
    /*position: relative;*/
}

.header-submenu {
    width: 128rem;
    /*overflow-y: auto;*/
    position: absolute;
    left: 0;
    top: calc(100% + 2rem);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 101;
    /*transition: opacity .15s ease, max-height .15s ease, visibility 0s linear .15s;*/
}

.header-menu__item:has(.header-submenu):hover .header-submenu {
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease, max-height .5s ease, visibility 0s;
    background-color: var(--primary);
}

.header-submenu__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.header-submenu__list .header-menu__item {
    display: flex;
    align-items: center;
    background-color: var(--primary);
    padding: 1.6rem 2rem;
    border-bottom: 1px solid #FFFFFF33;
    min-height: 7rem;
    transition: all .3s ease;
}

.header-submenu__list .header-menu__link {
    font-size: 1.6rem;
    line-height: 120%;
    font-weight: 400 !important;
    color: var(--white) !important;
    text-align: left;
    transition: all .3s ease;
}

.header-submenu:before {
    content: '';
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    top: -2rem;
    height: 2rem;
    background-color: transparent;
}

.header-submenu__list .header-menu__item:hover {
    background-color: var(--secondary);
}


@media (min-width: 1281px) {
    .header__toggle {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1280px) {

}

@media (max-width: 1280px) {
    .header {
        padding: 0 0 1.6rem;
        box-shadow: 3px 5px 8px rgba(0, 0, 0, .15);
        z-index: 101;
        position: relative;
    }

    .header-top {

    }
    .header-top__inner{
        gap: .6rem;
    }

    .header-top__menu,
    .header-bottom,
    .header__search,
    .header__address,
    .header__phone,
    .header__btn {
        display: none;
    }

    .header-mid__inner {
        justify-content: space-between;
    }

    .header__logo {
        width: 16.1rem;
        height: 4.4rem;
    }

    .header__toggle {
        width: 4rem;
        cursor: pointer;
        height: 4rem;
    }

    .header__toggle svg {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}
@media (max-width: 767px){
    .header-top__action span {
        font-size: 1rem;
    }
}


.maxwidth-theme {
    z-index: 99999999999999999;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1008px;
    position: relative;
    width: 60rem;
}

.bx_searche {
    background: none repeat scroll 0 0 #ffffff;
    border: medium none;
    border-top: 1px solid #e0e7ec;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
}
.bx_searche .bx_item_block {
    position: relative;
    display: block;
    text-decoration: none;
    color: #2f383d;
}
.bx_searche .bx_img_element {
    width: 5.5rem !important;
    height: 3.6rem !important;
    padding: .25rem !important;
}
.bx_searche .bx_img_element .bx_image{
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
}
.bx_searche .bx_img_element {
    background: #fafafa;
    float: left;
    padding: 5px 10px;
    position: absolute;
}

.bx_searche .bx_item_element {
    padding-left: 15px;
    margin-left: 45px;
    border-top: 1px solid transparent;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.bx_searche .bx_item_block {
    min-height: 35px;
    line-height: 35px;
}
.bx_searche .bx_item_block {
    position: relative;
    display: block;
    text-decoration: none;
    color: #2f383d;
}

.bx_searche .bx_img_element {
    width: 45px;
    height: 36px;
}

.bx_searche .bx_item_element {
    padding-left: 15px;
    margin-left: 45px;
    border-top: 1px solid transparent;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}