/* Мобильное меню - видно только на мобильных */
.mobile-menu-container {
    width: 100%;
}

.mobile-menu {
    width: 100%;
    background: white;
    overflow: hidden;
}

/* Стили для меню */
.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    position: relative;
    border-bottom: 1px solid #eee;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mobile-menu a.active {
    /*background-color: #e3f2fd;
    color: #1565c0;
    
    border-left: 4px solid #1565c0;*/
	font-weight: 500;
}
.mobile_visible>div{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}
.x-headMenu_new__close{
	position: unset;
}
/* Иконки стрелок */
.menu-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
}

.arrow-right {
    right: 0px;
    left: auto;
}
 
.arrow-right::after {
    content: url('/img/down.svg'); 
    font-size: 12px;
    color: #239AD8;
}

.arrow-up {
    left: auto;
    right: 0px;
    display: none;
}

.arrow-up::after {
    content: url('/img/up.svg');
    color: #666;
}

/* Первый уровень меню */
.mobile-menu > ul > li > a {
    text-align: left;
}

.mobile-menu > ul > li.has-children > a .arrow-right {
    display: flex;
}

.mobile-menu > ul > li.has-children.open > a .arrow-right {
    display: none;
}

.mobile-menu > ul > li.has-children.open > a .arrow-up {
    display: flex;
}

/* Второй уровень меню */
.mobile-menu ul ul li a {
    padding-left: 20px;
}

.mobile-menu ul ul .arrow-up {
    left: 40px;
}

.mobile-menu ul ul li.has-children > a .arrow-right {
    display: flex;
}

.mobile-menu ul ul li.has-children.open > a .arrow-right {
    display: none;
}

.mobile-menu ul ul li.has-children.open > a .arrow-up {
    display: flex;
}

/* Третий уровень меню */
.mobile-menu ul ul ul li a {
    padding-left: 90px;
}

.mobile-menu ul ul ul .arrow-up {
    left: 60px;
}

.mobile-menu ul ul ul li.has-children > a .arrow-right {
    display: flex;
}

.mobile-menu ul ul ul li.has-children.open > a .arrow-right {
    display: none;
}

.mobile-menu ul ul ul li.has-children.open > a .arrow-up {
    display: flex;
}

/* Вложенные меню */
.mobile-menu ul ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    
}

.has-children.open > ul {
    max-height: 1000px;
}

/* Индикатор текущего уровня */
.mobile-menu .current > a {
    /*background-color: #e8f5e9;*/
    color: #f07c00;
}

/* Изображения в меню */
.mobile-menu .menu-image {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu .menu-image img {
    max-width: 100%;
    max-height: 100%;
}

.mobile-menu ul ul .menu-image {
    left: 40px;
}

.mobile-menu ul ul ul .menu-image {
    left: 60px;
}
.x-bodyLeftMenu .menu-separator{
	display: none;
}
.mobile-menu>ul>li>a:hover{
	color: #239ad8; 
}
.mobile-menu>ul>li>a{
	padding: 0px;
}
.mobile_visible>.header_mobile_messengers {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-direction: row;
}

/* Мобильные стили (до 768px) - меню видно */
@media screen and (max-width: 768px) {
	.logo_header>.x-headSlogan{
		display:none;
	}
	.menu-wrap-mobile{
		padding: 16px 20px 20px;
	}

    .mobile-menu-container {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    /* Увеличиваем область касания для мобильных */
    .menu-icon {
        width: 40px;
        height: 40px;
    }
    
    .arrow-right::after,
    .arrow-up::after {
        font-size: 16px;
    }
    
    .mobile-menu a {
        padding: 18px 20px;
        font-size: 16px;
    }
}

/* Десктоп стили (от 769px) - меню скрыто */
@media screen and (min-width: 769px) {
    .mobile-menu-container {
        display: none !important;
    }
	
}