/* Базовое вертикальное меню */
.menu {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 374px;
	background: #F5F5F5;
	position: relative;
  }
  
  .menu-item {
	padding: 15px 28px;
  }
  
  .menu-link {
	display: block;
	color: #222222;
	text-decoration: none;
	font-weight: 500;
	transition: background 0.3s;
  }
  
  /* Подменю */
  .submenu {
	display: none;
	list-style: none;
	padding: 0;
	margin: 0;
  }
  
  /* Открытое подменю (первый уровень) */
  .menu-item.active > .submenu {
	display: block;
  }
  
  /* Подменю второго уровня и глубже (справа) */
  .submenu .submenu {
	position: absolute;
	top: 0;
	left: 92%;
	min-width: 200px;
	display: none;
	z-index: 1000;
	padding-left: 25px;
	height: 100%;
  }
  
  .submenu li:hover > .submenu {
	display: block;
	overflow: auto;
  }
  
  /* Стили пунктов подменю */
  .submenu .menu-link {
	padding: 8px 0;
	color: #222222;
	/*white-space: nowrap;*/
	font-size: 16px;
	font-weight: 400;
  }

.menu-item.depth-2 {
    padding: 0;
}


.depth-3-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 825px;
    width: 100%;
}
  
li.menu-item.depth-1.active {
    padding: 14px;
    background: #EBEBEB;
    margin: 0 14px;
    border-radius: 10px;
}

ul.submenu.depth-3 {
    grid-template-columns: 1fr 1fr 1fr;
    min-width: 820px;
}

li.menu-item.depth-3 {
    width: 33.33333%;
    float: left;
}

li.menu-item.depth-1>.menu-link {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

li.menu-item.depth-1.active > .menu-link {
	margin-bottom: 26px;
}

.menu-item .arrow_menu {
    width: 24px;
    height: 24px;
    background: #0B316B;
    border-radius: 4px;
    display: flex
;
    justify-content: center;
    align-items: center;
}

li.menu-item.depth-1 .arrow_menu img {
	transition: 0.2s;
}

li.menu-item.depth-1.active .arrow_menu img {
    transform: rotate(180deg);
}

.menu-item.depth-2:hover > a.parent::after {
    content: '';
	width: 6px;
	height: 12px;
	background-image: url('/local/templates/extremeshop/components/bitrix/menu/catalog_menu_header/images/arrow_parent_menu_right.svg');
	display: block;
    background-size: cover;
} 

a.menu-link.parent {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu .title_menu {
    font-size: 32px;
    font-weight: 600;
    color: #0B316B;
    padding: 30px 14px 17px;
}

li.menu-item.depth-1>.menu-link .name_menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-catalog-search {
	margin-left: 28px;
}

ul.submenu.depth-3 .name_category {
    margin-bottom: 16px;
    font-size: 32px;
    margin-left: 28px;
    margin-top: 17px;
    font-weight: 600;
    color: #0B316B;
}

li.menu-item.depth-3 .menu-link {
    font-size: 20px;
    font-weight: 600;
    color: #0B316B;
}

.back_block {
	display: none;
}

@media (max-width: 991px) {
	.header-catalog-active .header-catalog {
		top: 100px
	}

	.menu {
		width: 100%;
	}

	ul.submenu.depth-3 {
		left: 0;
		background: #FFF;
		padding: 0;
		min-width: 100%;
	}

	.submenu li:hover > .submenu {
		display: none;
	}

	ul.submenu.depth-3.active {
		display: block;
	}

	.back_block {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	ul.submenu.depth-3 .back_block .img {
		background: #0B316B;
		width: 24px;
		height: 24px;
		display: flex	;
		align-items: center;
		justify-content: center;
		border-radius: 4px;
		transform: rotate(-90deg);
	}
}

@media (max-width: 768px) {
	li.menu-item.depth-3 {
		width: 50%;
	}
}