:root{
    --menu-hover: #F58220;
    --menu-active: #f582219c;
}

header nav#mobile {
    display: none;
}

@media screen and (max-width: 990px){
    header nav#mobile{
        display:block;
        position: relative;
        background-color: #fff;
        margin: 22px 16px 0px 16px;
        width: calc(100% - 32px);
        border-radius: 4px;
        list-style: none;
        padding: 0;
        justify-content: space-around;
        font-family: 'OpenSansBold', sans-serif;
    }

    header nav#mobile .item{
        clear: both;
        border-radius: inherit;
        background: #fff;
        border: none;
        text-align: left;
        height: auto;
        line-height: 42px;
        position: relative;
        font-size: 16px;
        width: 100%;
        display: block;
        align-items: center;
        justify-content: center;
        text-transform: uppercase;
        font-weight: bold;
        color: #fff;
    }

    header nav#mobile .item > a{
        background: #79848E;
        border-radius: 2px;
        padding: 12px;
        margin-bottom: 4px;
        width: auto;
        border: none;
        font-family: RobotoCustom;
        font-style: normal;
        font-weight: 500;
        font-size: 14px;
        line-height: 120%;
        color: #FFFFFF;
        height: 100%;
        display: block;
    }
    header nav#mobile .item .children{
        box-sizing: border-box;
        clear: both;
        float: left;
        padding: 0;
        background-color: transparent;
        z-index: 1000;
        width: 100%;
        position: static;
    }

    header nav#mobile .item .children .child{
        display: none;
        text-align: left;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 15px;
        position: relative;
    }

    header nav#mobile .item .children .child a{
        outline: none;
        width: auto;
        display: block;
        text-decoration: none;
        text-transform: none;
        padding: 12px;
        border-radius: 2px;
        margin-bottom: 4px;
        background: #F6F6F6;
        border: none;
        font-family: RobotoCustom;
        font-style: normal;
        font-weight: 500;
        font-size: 14px;
        line-height: 120%;
        color: #79848E;
    }

    header nav#mobile .item .children .child a svg{
        float:right;
    }

    header nav#mobile .item .children .child .grandsons .grandson{
        display:none;
    }

    header nav#mobile .item .children .child a{
        padding-left: 20px;
    }

    header nav#mobile .item .children .child .grandsons{
        padding-left: 20px;
    }

    header nav#mobile .item.active .children > .child,
    header nav#mobile .item.active .children > .child.active > .grandsons .grandson{
        display: block !important;
    }

    header nav#mobile .item.active > a,
    header nav#mobile .item .child.active > a,
    header nav#mobile .item .child.active .grandson.active a{
        color: #bbbbbb !important;
    }
}

@media screen and (min-width: 1100px){
    header nav#desktop{
        width: 100%;
        padding-left: 20px;
    }
}


header nav#desktop{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

header nav#desktop .item {
    position: relative;
    margin-right: 7px;
}

header nav#desktop .item a.name{
    background: #F6F6F6;
    height: 40px;
    padding: 0 20px;
    /* line-height: 80px; */
    font-size: 16px;
    color: #2A2F33;
    text-decoration: none;
    /* margin-right: 15px; */
    border-radius: 4px;
}

header nav#desktop .item:hover a.name{
    /*color: var(--menu-hover);*/
    color:white;
    background: #79848E;
}

header nav#desktop .item .children {
    display: none;
    position: absolute;
    z-index: 11;
    top: 100%;
    left: 4px;
    width: 320px;
    -webkit-box-shadow: 0 4px 15px rgba(34, 31, 31, 0.06), 0 4px 32px rgba(151, 173, 232, 0.15);
    box-shadow: 0 4px 15px rgba(34, 31, 31, 0.06), 0 4px 32px rgba(151, 173, 232, 0.15);
    background: #fff;
}

header nav#desktop .item:hover .children {
    display: block;
}

header nav#desktop .item a{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    //width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    color: #2A2F33;
    text-decoration: none;
    border-bottom: 1px solid #E8EAEC;
}

header nav#desktop .item.active > a,
header nav#desktop .item .child.active > a,
header nav#desktop .item .child.active .grandson.active a{
    color: var(--menu-active);
}

header nav#desktop .item a:hover {
    color: var(--menu-hover);
}

header nav#desktop .item a:hover svg path {
    fill: var(--menu-hover);
}

header nav#desktop .item .children .child{
    position: relative;
}

header nav#desktop .item .children .child > a{
    box-sizing: border-box;
}

header nav#desktop .item .children .child:hover > a{
    color: var(--menu-hover);
}

header nav#desktop .item .children .grandsons {
    display: none;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 100%;
    width: 320px;
    -webkit-box-shadow: 0 4px 15px rgba(34, 31, 31, 0.06), 0 4px 32px rgba(151, 173, 232, 0.15);
    box-shadow: 0 4px 15px rgba(34, 31, 31, 0.06), 0 4px 32px rgba(151, 173, 232, 0.15);
    background: #fff;
}

header nav#desktop .item .children .child:hover .grandsons{
    display: block;
}

header nav#desktop .item [data-uid='catalog_ruchki_sale'] a{
    color: var(--menu-hover);
}

/*header nav#desktop .item[data-uid='catalog_mebelnye_napolneniya']>a*/


header nav#desktop .item[data-uid='catalog_mebelnye_korpusa']>a,
header nav#desktop .item[data-uid='catalog_hkIfbm_sale']>a
{
    background-color: #FFF4E5;
    color: #F58220;
}