.hidden {
    display:block;
}
.visible {
    display:none;
}

.menuToggle {
    display:none;
}

.overflow-table tr td {
    color: #282828;
}

.overflow-table tr:nth-child(1) td {
    color: unset;
}

@media(max-width:768px){

.hidden {
    display:none;
}
.visible {
    display:block;
}

.container {
    width: 100%;
    padding: 0 15px;
}
#top-info {
    display: none;
}

#content-sidebar {
    width: 100%;
}

.wrap {
    width: 100%;
}

header #header .logo {
    width: 90%;
}

.container .slide, .container .top-widget, .container .heading-custom, .container header, .container footer {
    margin-left: -15px;
    margin-right: -15px;
}

footer .footer-widget-area {
    padding: 0 15px 20px;
}

.credit {
    padding: 0 15px;
}

.cols {
    margin-left: 0;
    margin-right: 0;
}

.col-6, .col-8, .col-12 {
    width: 100%;
    margin: 0;
}

img.logo_standard {
    width: 60%;
    padding-left: 15px;
}

#header-widget .contact-widget {
    display: none;
}

/* Скрываем обычное меню */
#site-menu-secondary .sf-menu {
    display: block; /* убираем flex, если был */
}

/* --- Кнопка-гамбургер --- */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 18px;
    top: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Анимация гамбургера в крестик (при открытом меню) */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Затемнение фона (оверлей) --- */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* --- Выезжающая панель --- */
.mobile-menu-wrapper {
    position: fixed;
    top: 0;
    left: -320px; /* Прячем за экран */
    width: 300px;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    z-index: 1000;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.mobile-menu-wrapper.open {
    left: 0; /* Выезжает */
}

.mobile-menu-wrapper {
    left: auto;
    right: -320px; /* вместо left: -320px */
}
.mobile-menu-wrapper.open {
    left: auto;
    right: 0; /* вместо left: 0 */
}
/* --- Адаптация самого меню внутри панели --- */
.mobile-menu-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0;
}

.mobile-menu-wrapper ul li {
    border-bottom: 1px solid #eee;
    border-right: none !important;
    width: 100%;
}

.mobile-menu-wrapper ul li a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

/* Подменю (вложенные списки) */
.mobile-menu-wrapper ul ul {
    padding-left: 20px;
    display: none; /* Скрыты по умолчанию */
}

.mobile-menu-wrapper ul ul.open {
    display: block; /* Показываем при клике */
}

.mobile-menu-wrapper ul ul li:last-child {
    border-bottom: none;
}

/* Скрываем десктопное меню */
#site-menu-secondary {
    background: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
}

.caroufredsel_wrapper {
    overflow: auto !important;
}

#header .button:hover, 
#header .button:focus, 
#header button:hover, 
#header button:focus  {
    background: #fff;
    background: -webkit-linear-gradient(top, #fbfbfb 0%, #f3f3f3 100%);
    background: transparent;
    border: none;
}

.sf-with-ul {
    width: 100%;
    text-align: left !important;
    padding: 20px 5px !important;
    margin-left: 0 !important;
}

header #header #full-menu ul li a {
    padding: 20px 5px;
    width: 100%;
    text-align: left !important;
}

header #header .site-menu .sf-menu ul {
    width: 80%;
}

.overflow-table {
    overflow: auto;
}

.overflow-table table {
    width: 520px !important;
}

caption, th, td {
    text-align: left;
}

.overflow-table tr td {
    color: #282828;
    border: 1px solid #dedede !important;
    font-size: .8rem;
}

.overflow-table tr td:nth-child(1) {
    width: 70px !important;
}

.overflow-table tr td:nth-child(2) {
    width: 250px !important;
}

.overflow-table tr td:nth-child(3) {
    width: 100px !important;
}

.overflow-table tr td:nth-child(4) {
    width: 200px !important;
}

.overflow-table table td[colspan] {
    width: 520px !important;
}

#mega-menu-wrap-header .mega-menu-toggle {
        background-color: #67082a;
    }

#mega-menu-wrap-header .mega-menu-toggle + #mega-menu-header {
        background-color: #ffffff;
    }
#mega-menu-wrap-header #mega-menu-header > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link, #mega-menu-wrap-header #mega-menu-header > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link, #mega-menu-wrap-header #mega-menu-header > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link {
        color: #282828;
        background-color: #fff;
    }
    
#mega-menu-wrap-header #mega-menu-header > li.mega-menu-item > a.mega-menu-link {
        color: #282828;
    }  
    
#mega-menu-wrap-header #mega-menu-header > li.mega-menu-item.mega-toggle-on > a.mega-menu-link {
    color: #ffffff;
    background-color: #67082a;
}    

#mega-menu-wrap-header #mega-menu-header > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
    background-color: #67082a;
    color: #fff;
}
    
}

