/**
 * Стили нового шаблона основного меню.
 *
 * Шаблон - vbakalee/layout/menu.html
 * Стили адаптивности - vbakalee/www/css/20/respond.css
 * Подключение данного файла - m16/layout/css.html
 */

/**
 * Установка начального состояния элементов разметки.
 * Нужен для неадаптированных страниц. На адаптированных это состояние уже включено.
 */
#main-menu, #main-menu::before, #main-menu::after,
#main-menu *, #main-menu *::before, #main-menu *::after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/**
 * Основное меню.
 */
#main-menu {
    font-size: .8rem;
    margin-right: 10px;
    width: 100%;
    height: auto;
    padding: 0 10px;
}
#main-menu::before {
    content: '';
    background: url(/img/fon.png) 0 0;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 8;
}
#main-menu-btn {
    display: none;
}
#main-menu .menu {
    position: relative;
    display: flex;
    flex-wrap: wrap;
}
#main-menu .menu.expand {
    padding-bottom: 36px;
    background: url(/img/menu_level2.png) bottom repeat-x;
    width: 100%;
}
#main-menu .menu.expand::before,
#main-menu .menu.expand::after {
    content: '';
    width: 10px;
    height: 38px;
    position: absolute;
    display: block;
    bottom: 0;
}
#main-menu .menu.expand::before {
    left: -10px;
    background: url(/img/menu_level2_left.png) bottom no-repeat;
}
#main-menu .menu.expand::after {
    right: -10px;
    background: url(/img/menu_level2_right.png) bottom no-repeat;
}
#main-menu .menu > li {}
#main-menu .menu > li a {
    height: 44px;
    line-height: 40px;
    padding: 0 10px;
    z-index: 9;
    cursor: pointer;
    position: relative;
    display: block;
    white-space: nowrap;
}

#main-menu .menu > li.active {
    display: block;
    height: 44px;
    background: url(/img/menu_level1_expand.png) right 0 no-repeat;
    margin-left: 4px;
}
#main-menu .menu > li.active::before {
    content: '';
    display: block;
    height: 44px;
    background: url(/img/menu_level1_expand.png) left 0 no-repeat;
    position: absolute;
    width: 4px;
    margin-left: -4px;
}
#main-menu .menu > li.active > a {
    color: #fff;
    padding-left: 6px;
}

#main-menu .menu > li:not(.active):hover {
    background: url(/img/menu_level1_hover.png) right 0 no-repeat;
    margin-left: 4px;
}
#main-menu .menu > li:not(.active):hover::before {
    content: '';
    display: block;
    height: 44px;
    background: url(/img/menu_level1_hover.png) left 0 no-repeat;
    position: absolute;
    width: 4px;
    margin-left: -4px;
}
#main-menu .menu > li:not(.active):hover > a {
    padding-left: 6px;
}

#main-menu .submenu {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    height: 38px;
}

#main-menu .submenu > li {}
#main-menu .submenu > li a {
    color: #fff;
    height: 38px;
    line-height: 38px;
}
#main-menu .submenu > li.active > a {
    background: #fff;
    border-radius: 4px;
    height: 25px;
    line-height: 25px;
    margin-top: 7px;
    color: #0c0c0d;
}
