/*
    Класс show-first нужен, чтобы задать, какое подменю открывается первым!!!
    Например: <div class="menu__sub_content show-first">
*/
.show-first {
    z-index: 12;
}

/*
* align-top задает размещение элементов в 3 меню: прижимает к верхнему краю
* Без него элементы распределяются равномерно
* Например <ul class="menu__sub_content_left align-top">
*/

.align-top {
    justify-content: flex-start !important;
}

.align-top .menu__sub_content_left-item {
    height: 40px;
}

.breadcrumbs {
    margin-top: 10px;
    z-index: 2;
}

.breadcrumbs__link {
    text-decoration: none;
    color: black;
}

.breadcrumbs__link:hover {
    color: blue;
}

.breadcrumbs__link:last-of-type {
    text-decoration: red;
    text-underline-position: under;
    text-decoration-line: underline;
}

header {
    box-shadow: 4px 6px 14px 0 rgba(0, 0, 0, 0.22);
    z-index: 20;
    background-color: #fff;
}

hr {
    border-top: var(--header_underline_height) solid var(--header_underline_color);
    color: transparent;
}

.hr {
    border-bottom: 1px solid #e9e9e9;
}

.container_custom {
    max-width: 1200px;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
}

.hidden-custom {
    display: none !important;
}

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

.header__top_logo {
    height: 45px;
    width: 150px;
    transition: transform 0.3s ease;
}

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

.header__top_logo img {
    max-height: 100%;
    width: auto;
}

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

.header__top_1c {
    width: 100px;
}

.header__top_1c img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.personal-link:hover > i {
    filter: invert(30%) sepia(35%) saturate(6868%) hue-rotate(347deg) brightness(87%) contrast(76%);
}

.cart-link:hover > i {
    filter: invert(30%) sepia(35%) saturate(6868%) hue-rotate(347deg) brightness(87%) contrast(76%);
}

.header__top_contacts {
    margin-right: 51px;
    display: flex;
    flex-direction: column;
}

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

.header__top_contacts-phone {
    font-size: 20px;
    font-weight: 600;
}

.header__top_contacts-email {
    text-decoration: underline;
}

.header__top_button-phone {
    padding: 4px 16px;
    margin-right: 16px;
    height: 35px;
    background-color: #c83636;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 8px;
}

.header__top_button-phone > i {
    filter: invert();
}

.header__top_button-mail {
    padding: 4px 16px;
    margin-right: 36px;
    height: 35px;
    background-color: #565656;
    border: none;
    color: white;
    cursor: pointer;
}

.header__top_button-mail > i {
    display: none;
}

.header__top_button-mail:hover {
    -webkit-box-shadow: 0 0 4px 0 rgba(34, 60, 80, 0.7);
    -moz-box-shadow: 0 0 4px 0 rgba(34, 60, 80, 0.7);
    box-shadow: 0 0 4px 0 rgba(34, 60, 80, 0.7);
}

.header__top_button-phone:hover {
    -webkit-box-shadow: 0 0 4px 0 rgba(34, 60, 80, 0.7);
    -moz-box-shadow: 0 0 4px 0 rgba(34, 60, 80, 0.7);
    box-shadow: 0 0 4px 0 rgba(34, 60, 80, 0.7);
}


/* Стили для главного меню */
.hamburger,
#toggle {
    display: none;
}

.menu a {
    text-decoration: none;
}

.menu__main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.menu__main_item {
    display: flex;
    height: var(--main_menu_item_height);
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    border-bottom: var(--menu_line_height) solid white;
    box-sizing: unset;
}

.menu__main_item:hover {
    border-bottom: var(--menu_line_height) solid var(--menu_line_color);
}

.menu__main_item:hover .menu__sub {
    display: flex;
}

.menu__main_item a {
    color: #565656;
    font-size: 20px;
    font-weight: bold;
}

/* Стили для подменю */
.menu__sub {
    display: none;
    justify-content: space-evenly;
    list-style: none;
    background-color: #f7f7f7;
    position: absolute;
    /* TODO Need to recalculate formula */
    top: calc(var(--header_top_height) + var(--main_menu_item_height) + var(--menu_line_height) + var(--header_underline_height) + 0px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 12;
}

.menu__sub_item {
    border-bottom: 2px solid #ececec;
    flex-grow: 1;
}

.menu__sub_item a {
    display: flex;
    height: var(--submenu_item_height);
    justify-content: center;
    align-items: center;
    color: #565656;
    font-size: 17px;
    font-weight: bold;
}

.menu__sub_item:hover {
    border-bottom: var(--submenu_line_height) solid var(--submenu_line_color);
    box-sizing: unset;
}

.menu__sub_item:hover .menu__sub_content {
    z-index: 13;
}

.menu__sub_item img {
    margin-right: 11px;
}


/* Стили для контентной части подменю */
.menu__sub_content {
    display: flex;
    height: var(--menu_sub_content_height);
    position: absolute;
    left: 0;
    width: 100%;
    background-color: white;
    top: calc(var(--submenu_item_height) + var(--submenu_line_height));
    box-shadow: 3px 6px 14px 0 rgba(0, 0, 0, 0.08);
}

.menu__sub_content_left {
    width: 100%;
    padding-top: 17px;
    padding-bottom: 17px;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.menu__sub_content_left-item {
    padding-left: 32px;
    font-size: 17px;
    font-weight: 600;
    color: #565656;
    display: flex;
    align-items: center;
    height: 100%;
}

.menu__sub_content_left-item:hover .sub_menu_content {
    z-index: 12;
}

.menu__sub_content_left-item:hover {
    background-color: #f7f7f7;
}

.menu__sub_content_left-item:hover span {
    color: red;
    cursor: pointer;
}

.menu__sub_content_right {
    display: flex;
    align-items: center;
    background-color: white;
    position: absolute;
    top: 0;
    left: var(--menu_sub_content_left);
    height: 100%;
    padding-left: 10px;
}

.menu__sub_content_right_tb {
    width: 50%;
}

.menu__sub_content_right_tb img {
    margin-bottom: 16px;
}

.menu__sub_content_right_tb p {
    margin-bottom: 16px;
}

.menu__sub_content_right_tb .all-solutions {
    display: flex;
    justify-content: flex-start;
    font-size: 15px;
    font-weight: bold;
    color: #565656;
    height: auto;
}

/* TODO Need to del */
.menu__sub_content_right_tb .all-solutions img {
    margin-left: 10px;
    margin-bottom: 0;
}

.menu__sub_content_right_tb .all-solutions > i {
    margin-left: 10px;
    margin-bottom: 0;
}

.menu__sub_content_right_img {
    width: 40%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 300px;
}

.menu__sub_content_right_img img {
    width: 100%;
}


/* Для временного баннера */
.temp {
    background-image: url("../img/slider2.png");
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
}

@media screen and (max-width: 1087px) {
    .is-hidden-touch {
        display: none !important;
    }
}

@media screen and (max-width: 1088px) {
    .header__top_1c {
        display: none;
    }
}

@media (max-width: 1000px) {
    :root {
        --header_top_height: var(--header_top_height_m);
        --main_menu_item_height: var(--main_menu_item_height_m);
        --submenu_item_height: var(--submenu_item_height_m);
        --menu_sub_content_height: var(--menu_sub_content_height_m);
    }

    .breadcrumbs {
        margin-left: unset;
    }

    .header__top_logo {
        width: 195px;
        height: 50px;
    }

    .header__top_contacts {
        margin-right: 16px;
    }

    .header__top_contacts-phone {
        font-size: 14px;
    }

    .header__top_button-phone i {
        display: none;
    }

    .header__top_button-mail {
        margin-right: 16px;
    }

    .menu__main_item a {
        font-size: 14px;
    }

    .menu__sub_item a img {
        display: none;
    }

    .menu__sub_content_left-item {
        font-size: 14px;
    }

    .menu__sub_content_right {
        padding-left: 10px;
        left: 200px;
    }

    .menu__sub_content_right_tb img {
        margin-bottom: 8px;
    }

    .menu__sub_content_right_tb p {
        margin-bottom: 8px;
    }

    .all-solutions img {
        display: block !important;
    }
}


@media (max-width: 860px) {
    .is-hidden-mobile {
        display: none !important;
    }

    .header__top_contacts {
        display: none;
    }

    .header__top_1c {
        margin-right: 16px;
    }

    .header__top_button-phone {
        width: 28px;
        height: 28px;
        background-color: transparent;
        font-size: 0;
        margin-right: 32px;
    }

    .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%);
    }

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

    .header__top_button-mail {
        width: 27px;
        height: 27px;
        background-color: transparent;
        font-size: 0;
        margin-right: 32px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header__top_button-mail > i {
        display: unset;
    }

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

    .menu__sub_content_right_tb {
        width: 100%;
    }

    .menu__sub_content_right_img {
        display: none;
    }
}

@media (max-width: 650px) {
    .isSticky {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        background-color: white;
        z-index: 20;
        /* TODO Need to recalculate formula */
        height: calc(var(--header_top_height) + var(--main_menu_item_height) + var(--menu_line_height) + var(--header_underline_height) + 0px);
    }

    .align-top .menu__sub_content_left-item {
        height: unset;
    }

    header {
        box-shadow: 0 -10px 20px 0 rgb(0 0 1);
    }

    .hidden-custom {
        display: flex !important;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        position: absolute;
        top: 50px;
        height: var(--main_menu_item_height);
        width: 100%;
        left: 0;
    }

    .menu__main {
        display: none;
    }

    #toggle {
        display: none;
    }

    /* Стили для Hamburger */
    .hamburger {
        display: unset;
        position: absolute;
        top: 8px;
        z-index: 15;
        cursor: pointer;
    }

    .hamburger div {
        position: relative;
        width: 30px;
        height: 5px;
        border-radius: 3px;
        background-color: rgb(0, 0, 1);
        margin-top: 5px;
        transition: all 0.3s ease-in-out;
    }

    #toggle:checked ~ .menu__main {
        display: flex;
        position: absolute;
        left: 0;
        background-color: white;
        width: 100%;
    }

    /* Анимация для Hamburger */
    #toggle:checked + .hamburger .top-bun {
        transform: rotate(-45deg);
        margin-top: 15px;
    }

    #toggle:checked + .hamburger .bottom-bun {
        opacity: 0;
        transform: rotate(45deg);
    }

    #toggle:checked + .hamburger .meat {
        transform: rotate(45deg);
        margin-top: -5px;
    }

    #toggle:checked + .hamburger + .nav {
        top: 0;
        transform: scale(1);
    }


    .header__top_logo {
        margin-left: 45px;
        margin-right: 8px;
        margin-top: 4px;
        width: 156px;
        height: 40px;
    }

    .header__top_button-mail,
    .header__top_button-phone {
        display: none;
    }

    .header__top_contacts-phone {
        font-size: 24px;
    }


    .menu__main {
        padding-top: 10px;
        padding-left: 22px;
        flex-direction: column;
        align-items: unset;
    }

    .menu__main_item {
        height: unset;
        display: unset;
        font-size: 18px;
        padding-bottom: 10px;
    }

    .menu__main_item:hover {
        border-bottom: 2px solid white;
        color: red !important;
    }

    .menu__main_item:hover a {
        color: red;
    }

    .menu__main_item a {
        font-size: 18px;
    }

    .menu__sub {
        margin-top: 5px;
        flex-direction: column;
        align-items: baseline;
        position: relative;
        padding-top: 10px;
        justify-content: space-evenly;
        background-color: #f7f7f7;
        top: unset;
        left: unset;
        transform: unset;
        width: unset;
    }

    .menu__sub_item {
        border: unset;
        padding-bottom: 10px;
    }

    .menu__sub_item:hover {
        border: unset;
    }

    .menu__sub_item a {
        display: unset;
        height: unset;
        color: #565656 !important;
    }

    .menu__sub_item:hover .menu__sub_content {
        display: unset;
    }

    .menu__sub_content {
        display: none;
        height: unset;
        width: unset;
        position: unset;
        top: unset;
    }

    .menu__sub_content_left {
        padding-bottom: unset;
    }

    .menu__sub_content_left-item {
        padding-bottom: 10px;
    }

    .menu__sub_content span {
        font-size: 16px;
    }

    .menu__sub_content_right {
        display: none;
    }
}

@media (max-width: 450px) {
    .header__top_logo {
        margin-left: 45px;
        margin-right: 8px;
        height: 40px;
    }

    .header__top_logo > a i {
        height: 20px;
        width: 141px;
    }

    /* TODO Need to del one of this */
    .header__top_logo > a i {
        height: 100%;
        width: 100%;
    }
}

@media screen and (min-width: 1088px) {
    .all_content {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .all_top {
        flex: 1 0 auto;
    }

    .footer {
        flex: 0 0 auto;
    }

    .is-hidden-desktop {
        display: none !important;
    }
}

@media screen and (min-width: 1088px) and (max-width: 1279px) {
    .is-hidden-desktop-only {
        display: none !important;
    }
}

@media screen and (min-width: 769px), print {
    .is-hidden-tablet {
        display: none !important;
    }
}

@media screen and (min-width: 769px) and (max-width: 1087px) {
    .is-hidden-tablet-only {
        display: none !important;
    }
}