/* =====================================================
   SERVICES MEGA MENU — общие элементы
   ===================================================== */

.sMenu button {
	font: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: inherit;
	text-align: left;
}

.sMenu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sMenu__cat {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
}

/* стрелка › у категорий и аккордеонов */
.sMenu__cat::after,
.sMenu__groupHead::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid #8a96a6;
	border-bottom: 2px solid #8a96a6;
	transform: rotate(-45deg);
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

/* =====================================================
   DESKTOP — выпадающее меню в шапке
   ===================================================== */

.header .wrap {
	position: relative;
}

.header .wrap .menu li.dropdown.has-mega {
	position: static;
}

.header .wrap .menu li.dropdown.has-mega:hover > a,
.header .wrap .menu li.dropdown.has-mega:focus-within > a {
	color: #194fb9;
}

.header .menu .sMenu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 30;
}

/* «мостик» под пунктом «Услуги», чтобы меню не закрывалось,
   пока мышь идёт от пункта к выпадающей панели */
.header .wrap .menu li.dropdown.has-mega > a {
	position: relative;
}

.header .wrap .menu li.dropdown.has-mega > a::after {
	content: "";
	position: absolute;
	left: -20px;
	right: -20px;
	top: 100%;
	height: 40px;
}

.header .menu li.has-mega:hover .sMenu,
.header .menu li.has-mega:focus-within .sMenu {
	display: block;
}

.header .menu .sMenu__inner {
	display: grid;
	grid-template-columns: 280px 1fr;
	background: #ffffff;
	border-radius: 0 0 16px 16px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(4, 26, 70, 0.18);
	max-height: calc(100vh - 180px);
}

/* левая колонка */
.header .menu .sMenu__side {
	background: #f2f8ff;
	border-right: 1px solid #e3eefb;
	padding: 14px 0;
	overflow-y: auto;
}

.header .menu .sMenu__rootTitle {
	display: none;
}

.header .menu .sMenu .sMenu__cat {
	padding: 11px 22px 11px 19px;
	border-left: 3px solid transparent;
	font-size: 16px;
	line-height: 1.3;
	color: #041a46;
	transition: background 0.2s ease, color 0.2s ease;
}

.header .menu .sMenu .sMenu__cat:hover {
	color: #194fb9;
}

.header .menu .sMenu .sMenu__cat.is-active {
	background: #ffffff;
	border-left-color: #00de5d;
	font-weight: 600;
}

.header .menu .sMenu__sep {
	height: 1px;
	background: #d6e4f5;
	margin: 8px 22px;
}

/* правая часть */
.header .menu .sMenu__panels {
	overflow-y: auto;
}

.header .menu .sMenu__panel {
	display: none;
	padding: 26px 32px 30px;
}

.header .menu .sMenu__panel.is-active {
	display: block;
}

.header .menu .sMenu__back,
.header .menu .sMenu__panelTitle {
	display: none;
}

.header .wrap .menu .sMenu a.sMenu__all {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 13px 22px;
	border-radius: 12px;
	background: #194fb9;
	color: #ffffff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.header .wrap .menu .sMenu a.sMenu__all i {
	font-style: normal;
	transition: transform 0.2s ease;
}

.header .wrap .menu .sMenu a.sMenu__all:hover {
	background: #0b3993;
	color: #ffffff;
}

.header .wrap .menu .sMenu a.sMenu__all:hover i {
	transform: translateX(3px);
}

.header .menu .sMenu__kinds {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.header .menu .sMenu__kindsLabel {
	font-size: 13px;
	color: #7a879b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-right: 4px;
}

.header .wrap .menu .sMenu a.sMenu__chip {
	padding: 7px 16px;
	border-radius: 30px;
	background: #e4f3ff;
	color: #194fb9;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
}

.header .wrap .menu .sMenu a.sMenu__chip:hover {
	background: #cae4fb;
	color: #194fb9;
}

.header .menu .sMenu__groups {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px 32px;
	margin-top: 24px;
}

.header .menu .sMenu__group.is-wide {
	grid-column: span 2;
}

.header .menu .sMenu__group.is-wide .sMenu__links {
	columns: 2;
	column-gap: 32px;
}

.header .menu .sMenu .sMenu__groupHead {
	display: block;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #7a879b;
	pointer-events: none;
	cursor: default;
}

.header .menu .sMenu .sMenu__groupHead::after {
	display: none;
}

.header .menu .sMenu__links li {
	break-inside: avoid;
}

.header .wrap .menu .sMenu .sMenu__links a {
	display: block;
	padding: 5px 0;
	font-size: 15px;
	line-height: 1.35;
	color: #041a46;
}

.header .wrap .menu .sMenu .sMenu__links a:hover {
	color: #194fb9;
}

@media (max-width: 1100px) {
	.header .menu .sMenu__inner {
		grid-template-columns: 240px 1fr;
	}

	.header .menu .sMenu__panel {
		padding: 22px 24px 26px;
	}

	.header .menu .sMenu__groups {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* =====================================================
   MOBILE — меню в бургере
   ===================================================== */

.mMenu__panel {
	width: 100%;
	box-shadow: none;
}

.mMenu__panel .mMenu__nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	margin-right: -18px;
	padding-right: 18px;
}

.mMenu .sMenu__rootTitle {
	font-size: 20px;
	font-weight: 600;
	color: #041a46;
	margin-bottom: 6px;
}

.mMenu .sMenu .sMenu__cat {
	padding: 14px 2px;
	border-bottom: 1px solid #edf1f7;
	font-size: 17px;
	color: #041a46;
}

.mMenu .sMenu__sep {
	display: none;
}

.mMenu .sMenu__panel {
	display: none;
}

/* открыт раздел: прячем список, показываем панель */
.mMenu .sMenu.is-sub .sMenu__side {
	display: none;
}

.mMenu .sMenu.is-sub .sMenu__panel.is-active {
	display: block;
}

.mMenu__nav.is-sub .mMenu__extra {
	display: none;
}

.mMenu .sMenu .sMenu__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
	font-size: 15px;
	font-weight: 500;
	color: #194fb9;
}

.mMenu .sMenu .sMenu__back::before {
	content: "";
	width: 7px;
	height: 7px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.mMenu .sMenu__panelTitle {
	font-size: 20px;
	font-weight: 600;
	color: #041a46;
	margin-bottom: 14px;
}

.mMenu .sMenu__all {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-radius: 12px;
	background: #194fb9;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.mMenu .sMenu__all i {
	font-style: normal;
}

.mMenu .sMenu__kinds {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.mMenu .sMenu__kindsLabel {
	display: none;
}

.mMenu .sMenu__chip {
	padding: 7px 14px;
	border-radius: 30px;
	background: #e4f3ff;
	color: #194fb9;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.mMenu .sMenu__groups {
	margin-top: 16px;
}

.mMenu .sMenu__group {
	border-bottom: 1px solid #edf1f7;
}

.mMenu .sMenu .sMenu__groupHead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 2px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #7a879b;
}

/* стрелка вниз / вверх */
.mMenu .sMenu .sMenu__groupHead::after {
	transform: rotate(45deg);
	margin-top: -4px;
}

.mMenu .sMenu .sMenu__group.is-open .sMenu__groupHead::after {
	transform: rotate(-135deg);
	margin-top: 4px;
}

.mMenu .sMenu__links {
	display: none;
	padding: 0 2px 12px;
}

.mMenu .sMenu__group.is-open .sMenu__links {
	display: block;
}

.mMenu .sMenu__links a {
	display: block;
	padding: 7px 0;
	font-size: 16px;
	color: #041a46;
	text-decoration: none;
}

.mMenu .mMenu__extra {
	list-style: none;
	margin-top: 14px;
	display: grid;
	gap: 6px;
}