﻿/*** ESSENTIAL STYLES ***/
.sf-menu, .sf-menu *
{
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 9999999 !important;
    position: relative;
}
.sf-menu
{
    line-height: 1.0;
}
.sf-menu ul
{
    position: absolute;
    top: -999em;
    width: 6em; /* left offset of submenus need to match (see below) */
}
.sf-menu ul li
{
    width: 100%;
}
.sf-menu li:hover
{
    visibility: inherit;/*  fixes IE7 'sticky bug' */
}
.sf-menu li
{
    float: left;
    position: relative;
}
.sf-menu a, .sf-menu span
{
    display: block;
    position: relative;
}
.sf-menu li:hover ul, .sf-menu li.sfHover ul
{
    left: 0;
    top: 3em; /* match top ul list item height */
    z-index: 99;
}
ul.sf-menu li:hover li ul, ul.sf-menu li.sfHover li ul
{
    top: -999em;
}
ul.sf-menu li li:hover ul, ul.sf-menu li li.sfHover ul
{
    left: 14em; /* match ul width */
    top: 0;
}
ul.sf-menu li li:hover li ul, ul.sf-menu li li.sfHover li ul
{
    top: -999em;
}
ul.sf-menu li li li:hover ul, ul.sf-menu li li li.sfHover ul
{
    left: 14em; /* match ul width */
    top: 0;
}

/*** DEMO SKIN ***/
.sf-menu
{
    float: left;
}
.sf-menu .locmenu
{
    padding: 12px 0px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}
.sf-menu a
{
    padding: 14px 0px 14px 0px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}
.sf-menu span
{
    padding: 14px 0px 0px 0px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}
.children a
{
    padding: 12px 0px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}
.sf-menu a, .sf-menu a:visited
{
    /* visited pseudo selector so IE6 applies text colour*/
    color: #000000;
    text-decoration: none;
}

.sf-menu li ul
{
    background: #fff;
    border: 1px solid #e1e1e1;
    /*
        border-left: 0px solid #ddd;
        border-right: 0px solid #ddd;
        */
}

.children li
{
    background-color: #fff;
    background-image: url(menuimages/bgItem.png);
    background-repeat: repeat;
}

.children li:hover, .children li.sfHover, .children li a:focus, .children li a:hover, .children li a:active
{
    color: #000;
    outline: 0;
    text-decoration: none;
    background-color: #fff;
    background-image: url(menuimages/bgSelectedItem.png);
    background-repeat: repeat;
}


.sf-menu li:hover, .sf-menu li.sfHover, .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active
{
    color: #000;
    outline: 0;
    text-decoration: none;
    font-weight: bold;
}

/*** currentpage **/
.sf-menu .current_page_item a, .sf-menu .current-cat a:visited
{
    /* visited backgrounds for the current page status */
    color: #000;
    text-decoration: none;
}

/* adjust menu item images */
.cat-item-0
{
    background-color: transparent;
    background-image: url(menuimages/0.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 48px;
    height: 40px;
}

.cat-item-0:hover
{
    background-color: transparent;
    background-image: url(menuimages/hover0.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 48px;
    height: 40px;
}

.cat-item-0.current-cat
{
    background-color: transparent;
    background-image: url(menuimages/big0.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 48px;
    height: 47px;
    font-weight: bold;
}

.cat-item-1
{
    background-color: transparent;
    background-image: url(menuimages/1.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 100px;
    height: 40px;
}

.cat-item-1:hover
{
    background-color: transparent;
    background-image: url(menuimages/hover1.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 100px;
    height: 40px;
}

.cat-item-1.current-cat
{
    background-color: transparent;
    background-image: url(menuimages/big1.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 100px;
    height: 47px;
    font-weight: bold;
}

.cat-item-2
{
    background-color: transparent;
    background-image: url(menuimages/2.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 115px;
    height: 40px;
}
.cat-item-2:hover
{
    background-color: transparent;
    background-image: url(menuimages/hover2.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 115px;
    height: 40px;
}

.cat-item-2.current-cat
{
    background-color: transparent;
    background-image: url(menuimages/big2.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 114px;
    height: 47px;
    font-weight: bold;
}

.cat-item-3
{
    background-color: transparent;
    background-image: url(menuimages/3.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 107px;
    height: 40px;
}

.cat-item-3:hover
{
    background-color: transparent;
    background-image: url(menuimages/hover3.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 107px;
    height: 40px;
}

.cat-item-3.current-cat
{
    background-color: transparent;
    background-image: url(menuimages/big3.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 107px;
    height: 47px;
    font-weight: bold;
}

.cat-item-4
{
    background-color: transparent;
    background-image: url(menuimages/4.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 105px;
    height: 40px;
}

.cat-item-4:hover
{
    background-color: transparent;
    background-image: url(menuimages/hover4.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 105px;
    height: 40px;
}

.cat-item-4.current-cat
{
    background-color: transparent;
    background-image: url(menuimages/big4.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 105px;
    height: 47px;
    font-weight: bold;
}

.cat-item-5
{
    background-color: transparent;
    background-image: url(menuimages/5.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 101px;
    height: 40px;
}

.cat-item-5:hover
{
    background-color: transparent;
    background-image: url(menuimages/hover5.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 101px;
    height: 40px;
}

.cat-item-5.current-cat
{
    background-color: transparent;
    background-image: url(menuimages/big5.png);
    background-repeat: no-repeat;
    background-position: 0px 3px;
    width: 101px;
    height: 47px;
    font-weight: bold;
}

.cat-item-6
{
    background-color: transparent;
    background-image: url(menuimages/6.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 126px;
    height: 40px;
}

.cat-item-6:hover
{
    background-color: transparent;
    background-image: url(menuimages/hover6.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    width: 126px;
    height: 40px;
}

.cat-item-6.current-cat
{
    background-color: transparent;
    background-image: url(menuimages/big6.png);
    background-repeat: no-repeat;
    background-position: 0px 5px;
    width: 126px;
    height: 47px;
    font-weight: bold;
}
/* Явно расширяем выпадающую плашку подменю предложений */
.sf-menu ul {
    width: 180px !important; /* Увеличьте это число (например, до 200px), если слова будут еще длиннее */
}

    .sf-menu ul li {
        width: 100% !important;
    }

        .sf-menu ul li a, .sf-menu ul li span {
            width: 100% !important;
            box-sizing: border-box;
            white-space: nowrap; /* Запрещаем перенос слов на новую строку внутри плашки */
        }

/* 1. ОТМЕНЯЕМ массовое изменение цвета текста подпунктов при наведении на родительский LI */
.sf-menu li:hover ul li a,
.sf-menu li:hover ul li span {
    color: #333333 !important; /* Дефолтный цвет текста подпунктов в спокойном состоянии */
    background: none !important; /* Гарантируем отсутствие заливки бэкграунда */
}

/* 2. ОТМЕНЯЕМ заливку фона для самих элементов LI выпадающего списка */
.sf-menu li:hover ul li {
    background: #ffffff !important; /* Или transparent / ваш дефолтный цвет плашки */
}

/* 3. ТОЧЕЧНЫЙ HOVER: Меняем цвет шрифта строго у того подпункта, на который наведен курсор */
.sf-menu ul li a:hover,
.sf-menu ul li span:hover,
.sf-menu ul li:hover > a,
.sf-menu ul li:hover > span {
    color: #346DAD !important; /* Ваш фирменный синий цвет для текста при наведении */
    background: none !important; /* Никакой заливки фона */
}

/* 4. СТИЛЬ ДЛЯ РЕАЛЬНО АКТИВНОГО РАЗДЕЛА (current-cat): 
      Выделяем пункт страницы, на которой сейчас находится пользователь */
.sf-menu ul li.current-cat a,
.sf-menu ul li.current-cat span {
    color: #346DAD !important; /* Текст активного пункта подсвечен синим постоянно */
    font-weight: bold !important;
}