/* ============================================================
   ШАПКА ВНУТРЕННИХ СТРАНИЦ (политика, 404 и подобные)
   Адаптивная: десктоп — горизонтальное меню,
   планшет/мобильный — бургер-панель.
   ============================================================ */

.inner-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(10px);
	        backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(151, 109, 211, 0.16);
	box-shadow: 0 4px 24px rgba(52, 66, 89, 0.06);
}

.inner-header__container {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
	min-height: 78px;
	display: flex;
	align-items: center;
	gap: 28px;
}

/* Логотип */
.inner-header__logo {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.inner-header__logo img {
	display: block;
	height: 52px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
}

/* Навигация */
.inner-header__nav {
	flex: 1 1 auto;
}

.inner-header__menu {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.inner-header__item {
	position: relative;
}

.inner-header__item > a {
	display: block;
	padding: 12px 14px;
	font-family: "Unbounded", sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: #344259;
	text-decoration: none;
	border-radius: 50px;
	transition: color 0.25s ease, background 0.25s ease;
}

.inner-header__item > a:hover {
	color: #976DD3;
	background: rgba(151, 109, 211, 0.08);
}

/* Пункт с подменю */
.inner-header__item--has-children > a::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 8px;
	border-right: 2px solid #976DD3;
	border-bottom: 2px solid #976DD3;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.25s ease;
	vertical-align: middle;
}

.inner-header__item--has-children:hover > a::after {
	transform: rotate(225deg) translateY(-1px);
}

.inner-header__submenu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 220px;
	list-style: none;
	margin: 0;
	padding: 10px;
	background: #fff;
	border: 1px solid rgba(151, 109, 211, 0.18);
	border-radius: 16px;
	box-shadow: 0 18px 44px rgba(52, 66, 89, 0.16);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	z-index: 110;
}

.inner-header__item--has-children:hover .inner-header__submenu,
.inner-header__item--has-children:focus-within .inner-header__submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.inner-header__submenu a {
	display: block;
	padding: 10px 14px;
	font-family: "Unbounded", sans-serif;
	font-size: 12px;
	font-weight: 300;
	line-height: 1.5;
	color: #344259;
	text-decoration: none;
	border-radius: 10px;
	transition: color 0.25s ease, background 0.25s ease;
}

.inner-header__submenu a:hover {
	color: #976DD3;
	background: rgba(151, 109, 211, 0.08);
}

/* Блок контактов и кнопка */
.inner-header__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 18px;
}

.inner-header__contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}

.inner-header__phone {
	font-family: "Unbounded", sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: #344259;
	text-decoration: none;
	transition: color 0.25s ease;
	white-space: nowrap;
}

.inner-header__phone:hover {
	color: #976DD3;
}

.inner-header__email {
	font-family: "Unbounded", sans-serif;
	font-size: 11px;
	font-weight: 300;
	color: #8A8A9A;
	text-decoration: none;
	transition: color 0.25s ease;
}

.inner-header__email:hover {
	color: #976DD3;
}

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

.inner-header__messenger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #F6F6F8;
	border: 1px solid #E6E6EA;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.inner-header__messenger:hover {
	transform: translateY(-2px);
	background: #fff;
	box-shadow: 0 8px 20px rgba(151, 109, 211, 0.22);
}

.inner-header__messenger img {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.inner-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: "Unbounded", sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #fff;
	background: linear-gradient(90deg, #976DD3 0%, #BB97FF 100%);
	border-radius: 50px;
	padding: 13px 24px;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 8px 22px rgba(151, 109, 211, 0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.inner-header__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(151, 109, 211, 0.45);
}

/* Бургер (скрыт на десктопе) */
.inner-header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	border-radius: 12px;
	background: #F6F6F8;
	cursor: pointer;
	transition: background 0.25s ease;
}

.inner-header__burger span {
	display: block;
	height: 2px;
	width: 100%;
	background: #344259;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.inner-header__burger-check {
	display: none;
}

/* Контакты внутри бургер-панели — видны только на мобильных */
.inner-header__mobile-contacts {
	display: none;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

/* Планшет: скрываем контакты/кнопку, оставляем меню + бургер */
@media (max-width: 1200px) {
	.inner-header__container {
		gap: 18px;
	}

	.inner-header__contacts,
	.inner-header__messengers {
		display: none;
	}

	.inner-header__cta {
		padding: 12px 18px;
		font-size: 12px;
	}
}

/* Планшет малый / мобильный: меню уходит в бургер-панель */
@media (max-width: 992px) {
	.inner-header__container {
		min-height: 64px;
	}

	.inner-header__nav {
		position: fixed;
		top: 64px;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(255, 255, 255, 0.98);
		-webkit-backdrop-filter: blur(10px);
		        backdrop-filter: blur(10px);
		padding: 24px 20px 40px;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
		z-index: 90;
	}

	.inner-header__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.inner-header__item > a {
		padding: 14px 16px;
		font-size: 15px;
		border-radius: 14px;
	}

	.inner-header__item--has-children > a::after {
		float: right;
		margin-top: 8px;
	}

	.inner-header__submenu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		min-width: 0;
		margin: 4px 0 8px 12px;
		padding: 6px 0 6px 12px;
		border: none;
		border-left: 2px solid rgba(151, 109, 211, 0.3);
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	.inner-header__submenu a {
		padding: 11px 12px;
		font-size: 13px;
	}

	/* Бургер-переключатель: показываем панель по клику */
	.inner-header__burger-check:checked ~ .inner-header__nav {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.inner-header__burger {
		display: flex;
		margin-left: auto;
	}

	.inner-header__burger-check:checked ~ .inner-header__burger span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.inner-header__burger-check:checked ~ .inner-header__burger span:nth-child(2) {
		opacity: 0;
	}

	.inner-header__burger-check:checked ~ .inner-header__burger span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	/* Кнопку прячем на мобильных — контакты доступны в панели меню */
	.inner-header__actions {
		display: none;
	}

	.inner-header__cta {
		display: none;
	}

	/* Контакты внутри бургер-панели */
	.inner-header__mobile-contacts {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		margin-top: 24px;
		padding-top: 20px;
		border-top: 1px solid rgba(151, 109, 211, 0.16);
	}

	.inner-header__mobile-phone {
		font-family: "Unbounded", sans-serif;
		font-size: 16px;
		font-weight: 500;
		color: #344259;
		text-decoration: none;
	}

	.inner-header__mobile-email {
		font-family: "Unbounded", sans-serif;
		font-size: 12px;
		font-weight: 300;
		color: #8A8A9A;
		text-decoration: none;
	}

	.inner-header__mobile-messengers {
		display: flex;
		align-items: center;
		gap: 10px;
		margin-top: 10px;
	}
}

/* Мобильный: компактный логотип */
@media (max-width: 576px) {
	.inner-header__container {
		padding: 0 14px;
		min-height: 58px;
	}

	.inner-header__logo img {
		height: 40px;
		max-width: 140px;
	}

	.inner-header__nav {
		top: 58px;
		padding: 20px 14px 32px;
	}

	.inner-header__mobile-contacts {
		margin-top: 18px;
		padding-top: 16px;
	}
}