ul#main {
    height: 42px;
}

ul#main li {
    height: 38px;
    float: left;
    list-style: none;
    padding: 0;
    padding-left: 15px;
    padding-right: 15px;
    background: url(/themes/default/images/menu_spll.png) no-repeat left;
}

ul#main li a {
    float: left;
    height: 38px;
    padding-top: 10px;
    font-size: 14px;
    color: #FFF;
    text-transform: uppercase;
    text-decoration: none;
}

ul#main li.pos_0 {
    background: none;
    /*background: url(/themes/default/images/menu_splr.png) no-repeat right;*/
}

ul#main li ul {
    display: none;
}


ul#bottom {
    height: 20px;
    float: right;
    margin-top: 10px;
    right: 0;
    margin-right: -20px;
}

ul#bottom li {
    height: 20px;
    float: left;
    list-style: none;
    padding: 0;
    padding-left: 15px;
    padding-right: 15px;
}

ul#bottom li a {
    float: left;
    height: 20px;
    font-size: 12px;
    padding-top: 3px;
    font-weight: bold;
    color: #FFF;
    text-transform: uppercase;
    text-decoration: none;
}

ul#bottom li {
    border-left: solid #FFF 2px;
}
ul#bottom li.pos_0 {
    border: none;
}



#catalog, #services {
    width: 230px;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    float: left;
}
#services {
    /*background: url(/themes/default/images/blok_bg.png) no-repeat top left;*/
    width: 241px;
}

#catalog li,
#services li {
    width: 200px;
    *width: 240px;
    float: left;
    border: solid #D6D6D6 1px;
    border-left: none;
    border-right: none;
    padding: 5px;
    padding-left: 35px;
    /*background: #ECE9E9;*/
    background: url(/themes/default/images/cat_i.png) no-repeat center left;
    background-position: 10px;
}

#catalog li a,
#services li a {
    font-size: 12px;
    /*text-transform: lowercase;*/
    text-decoration: none;
    color: #000;
}

#catalog li ul {
    display: none;
}

#catalog ul, 
#catalog ul ul, 
#catalog ul ul ul, 
#catalog ul ul ul ul {
    display: none;
    position: absolute;
    /*top: 0;
    bottom: 0;*/
    margin-top: -23px;
    *margin-top: -7px;
    left: 240px;
    background: #ECE9E9;/*#C0C0C0;*/
    border-left: dotted 1px #FFF;
    border-right: dotted 1px #FFF;
}

#catalog li:hover ul ul,
#catalog li:hover ul ul ul,
#catalog li:hover ul ul ul ul,
#catalog li.iehover ul ul,
#catalog li.iehover ul ul ul,
#catalog li.iehover ul ul ul ul
 {
    display: none;
}

#catalog ul li,
#catalog ul li ul li,
#catalog ul li ul li ul li {
    list-style: none;
}

#catalog li:hover ul, 
#catalog ul li:hover ul, 
#catalog ul ul li:hover ul,
#catalog ul ul ul li:hover ul {
    display: block;
}

#services ul, 
#services ul ul, 
#services ul ul ul, 
#services ul ul ul ul {
    display: none;
    position: absolute;
    list-style: none;
    /*top: 0;*/
    margin-top: -20px;
    left: 240px;
    background: #ECE9E9;/*#C0C0C0;*/
    border-left: dotted 1px #FFF;
    border-right: dotted 1px #FFF;
}

#services li:hover ul ul,
#services li:hover ul ul ul,
#services li:hover ul ul ul ul,
#services li.iehover ul ul,
#services li.iehover ul ul ul,
#services li.iehover ul ul ul ul {
    display: none;
}

#services li:hover ul, 
#services ul li:hover ul, 
#services ul ul li:hover ul,
#services ul ul ul li:hover ul {
    display: block;
}
/* ============================================
   Мобильная версия для рыбного сайта
   ============================================ */
@media screen and (max-width: 768px) {

    /* Скрываем гамбургер и чекбокс на ПК (на всякий случай) */
    .menu-toggle-checkbox,
    .menu-toggle-btn {
        display: none !important;
    }

    /* Скрываем обычное горизонтальное меню на мобильных */
    ul#main {
        display: none !important; 
    }

    /* Показываем кнопку-гамбургер */
    .menu-toggle-btn {
        display: block !important;
        position: fixed !important;
        top: 70px !important; /* Сдвинули вниз, чтобы не перекрывать шапку */
        right: 15px !important;
        z-index: 9999 !important;
        width: 46px !important;
        height: 46px !important;
        background: linear-gradient(180deg, #FF9D4D 0%, #E87A2A 100%) !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        padding: 11px !important;
        box-sizing: border-box !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    }

    .menu-toggle-btn span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background: #FFF !important;
        margin: 4px 0 !important;
        border-radius: 2px !important;
        transition: 0.3s !important;
    }

    .menu-toggle-checkbox:checked + .menu-toggle-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }
    .menu-toggle-checkbox:checked + .menu-toggle-btn span:nth-child(2) {
        opacity: 0 !important;
    }
    .menu-toggle-checkbox:checked + .menu-toggle-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }

    /* Выпадающее меню */
    .menu-content {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 9998 !important;
        background: #222222 !important; /* Темный фон, как на сайте физики */
        padding-top: 80px !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    .menu-toggle-checkbox:checked ~ .menu-content {
        display: block !important;
    }

    /* Стили для пунктов меню (переопределяем десктопные ul#main li) */
    .menu-content ul#main {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        float: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .menu-content ul#main li {
        float: none !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        border-bottom: 1px solid #444444 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        list-style: none !important;
    }
    
    .menu-content ul#main li a {
        float: none !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        padding: 15px 20px !important;
        color: #FFF !important;
        background: transparent !important;
        font-size: 16px !important;
        font-weight: bold !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    .menu-content ul#main li a:active {
        background: #333333 !important;
    }
}