/* ============================================================
   MENU OVERFLOW — кнопка «ещё» и выпадающий список
   ============================================================ */

/* меню не должно переноситься на вторую строку и сжимать пункты */
.header .block_inner .menu_top > ul {
	flex-wrap: wrap;
	overflow: visible;
/* 	justify-content: flex-start; */
	    justify-content: center;
    gap: 1rem;
}

/* пункты держат натуральную ширину — иначе overflow-замер не работает */
.header .block_inner .menu_top > ul > li {
	flex: 0 0 auto;
}

.header .block_inner .menu_top > ul > li > a {
	white-space: nowrap;
}

.menu-more {
	position: relative;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin-left:0;
}

.menu-more[hidden] { display: none; }

/* красная круглая кнопка — как мобильный бургер темы */
.menu-more__btn {
	width: 50px;
	height: 50px;
	flex: 0 0 50px;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	background: #c20027 url("data:image/svg+xml,%3Csvg width='21' height='18' viewBox='0 0 21 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.222168' y='0.445312' width='13.4444' height='2.44444' fill='%23ffffff'/%3E%3Crect x='16.1113' y='0.445312' width='4.88889' height='2.44444' fill='%23ffffff'/%3E%3Crect x='5.11133' y='7.77734' width='15.8889' height='2.44444' fill='%23ffffff'/%3E%3Crect x='0.222168' y='7.77734' width='2.44444' height='2.44444' fill='%23ffffff'/%3E%3Crect x='7.55566' y='15.1133' width='13.4444' height='2.44444' fill='%23ffffff'/%3E%3Crect x='0.222168' y='15.1133' width='4.88889' height='2.44444' fill='%23ffffff'/%3E%3C/svg%3E%0A") 50%/16px no-repeat;
	transition: opacity .3s;
}

.menu-more__btn:hover { opacity: .85; }

/* выпадающий список — как сабменю темы */
.menu-more__list {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	width: 236px !important;
	margin: 0;
	padding: 15px 0;
	list-style: none;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 4px 28px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: all .25s;
	z-index: 100;
}

@media all and (max-width: 1440px) {
	.menu-more__list {
		right: 0 !important;
		left: auto !important;
	}
}


.menu-more.is-open .menu-more__list {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* мостик, чтобы дропдаун не закрывался при движении мыши */
.menu-more__list:before {
	content: "";
	position: absolute;
	top: -12px;
	left: 0;
	right: 0;
	height: 12px;
}

/* пункты внутри дропдауна — сбрасываем «таблеточный» вид */
.header .block_inner .menu_top > ul .menu-more__list li { position: static; }

.header .block_inner .menu_top > ul .menu-more__list li > a {
	display: block;
	padding: 6px 22px;
	border-radius: 0;
	font-weight: 600;
	font-size: 18px;
	line-height: 139%;
	color: #0c4665;
	background: none;
	text-decoration: none;
	transition: color .3s;
	white-space: nowrap;
}

.header .block_inner .menu_top > ul .menu-more__list li > a:hover {
	color: #c20027;
	background: none;
}

.header .block_inner .menu_top > ul .menu-more__list li > a .arrow { display: none; }

/* если в «ещё» попал пункт с сабменю — показываем вложенные пункты списком */
.header .block_inner .menu_top > ul .menu-more__list li > ul {
	position: static;
	opacity: 1;
	visibility: visible;
	width: auto;
	margin: 0;
	padding: 0 0 4px;
	border-radius: 0;
	background: none;
	backdrop-filter: none;
}

.header .block_inner .menu_top > ul .menu-more__list li > ul li a {
	padding: 4px 22px 4px 36px;
	font-size: 16px;
	font-weight: 400;
}

@media (min-width: 100rem) {
    .header .block_inner {
        gap: 1.125rem;
    }
}