/* --- Header --- */
.sl-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
	backdrop-filter: saturate(120%) blur(8px);
	transition: background-color .2s ease, border-color .2s ease;
}

body.admin-bar .sl-site-header {
	top: 32px;
}

.sl-site-header--hero {
	background: rgba(5, 10, 45, 0.96);
	border-bottom: 1px solid rgba(255,255,255,.06);
	color: var(--sl-white);
}

.sl-site-header--default {
	background: rgba(247,247,248,0.92);
	border-bottom: 1px solid rgba(18,21,33,.08);
	color: var(--sl-text-dark);
}

.sl-site-header__inner {
	min-height: var(--sl-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.sl-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.sl-logo__img {
	display: block;
	height: 44px;
	width: auto;
	max-width: 320px;
}

.sl-site-header--default .sl-logo__img {
	/* filter: invert(1); */
}

.sl-primary-nav {
	margin-left: auto;
}

.sl-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
}

.sl-menu > li > a {
	position: relative;
	display: inline-block;
	padding: 8px 0;
	font-size: 15px;
	font-weight: 500;
	color: rgba(255,255,255,.92);
	transition: color .2s ease;
}

.sl-site-header--default .sl-menu > li > a {
	color: rgba(18,21,33,.90);
}

.sl-menu > li > a:hover {
	color: var(--sl-white);
}

.sl-site-header--default .sl-menu > li > a:hover {
	color: var(--sl-text-dark);
}

.sl-menu > li.current-menu-item > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	border-radius: 2px;
	background: var(--sl-orange);
}

/* --- Header contacts (десктоп) --- */
.sl-header-contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	flex-shrink: 0;
	/* Сдвиг вверх: телефон выравнивается по вертикали с пунктами меню.
	   Блок центрируется родителем по всей высоте, но телефон — верхняя
	   строка из двух, поэтому нужно компенсировать смещение. */
	transform: translateY(8px);
}

.sl-header-phone {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	color: rgba(255,255,255,.95);
	text-decoration: none;
	transition: color .2s ease;
}

.sl-header-phone:hover {
	color: var(--sl-orange);
}

.sl-site-header--default .sl-header-phone {
	color: rgba(18,21,33,.90);
}

.sl-site-header--default .sl-header-phone:hover {
	color: var(--sl-orange);
}

.sl-header-hours {
	font-size: 11px;
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
	color: rgba(255,255,255,.50);
}

.sl-site-header--default .sl-header-hours {
	color: rgba(18,21,33,.45);
}

/* --- Phone FAB (мобильный, скрыт на десктопе) --- */
.sl-phone-fab {
	display: none;
}

/* --- Бургер --- */
.sl-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255,255,255,.14);
	background: rgba(255,255,255,.04);
	border-radius: 12px;
	padding: 0;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
}

.sl-site-header--default .sl-menu-toggle {
	border-color: rgba(18,21,33,.12);
	background: rgba(18,21,33,.03);
}

.sl-menu-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .2s ease, opacity .2s ease;
}

/* --- Responsive / mobile --- */
@media (max-width: 991px) {
	.sl-menu-toggle {
		display: inline-flex;
		color: inherit;
	}

	.sl-logo__img {
		height: 58px;
		max-width: 260px;
	}

	/* Контакты в шапке — скрываем, на мобиле работает FAB */
	.sl-header-contacts {
		display: none;
	}

	/* FAB — телефон в правом нижнем углу */
	.sl-phone-fab {
		display: flex;
		align-items: center;
		justify-content: center;
		position: fixed;
		right: 20px;
		bottom: calc(24px + env(safe-area-inset-bottom, 0px));
		width: 52px;
		height: 52px;
		border-radius: 50%;
		background: var(--sl-orange);
		color: #fff;
		box-shadow: 0 4px 20px rgba(0,0,0,.28);
		z-index: 900;
		text-decoration: none;
		transition: transform .15s ease, box-shadow .15s ease;
	}

	.sl-phone-fab:active {
		transform: scale(0.94);
		box-shadow: 0 2px 10px rgba(0,0,0,.22);
	}

	.sl-primary-nav {
		position: fixed;
		left: 16px;
		right: 16px;
		top: calc(var(--sl-header-h) + 12px + env(safe-area-inset-top, 0px));
		background: rgba(7, 11, 32, .98);
		border: 1px solid rgba(255,255,255,.08);
		border-radius: 14px;
		padding: 14px;
		box-shadow: 0 20px 40px rgba(0,0,0,.35);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: .18s ease;
		margin-left: 0;
	}

	.sl-site-header--default .sl-primary-nav {
		background: rgba(250,250,251,.98);
		border-color: rgba(18,21,33,.08);
	}

	.sl-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.sl-menu > li > a {
		padding: 10px 6px;
		font-size: 15px;
	}

	body.sl-menu-open .sl-primary-nav {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	body.sl-menu-open .sl-menu-toggle span:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}
	body.sl-menu-open .sl-menu-toggle span:nth-child(2) {
		opacity: 0;
	}
	body.sl-menu-open .sl-menu-toggle span:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}
}

@media (max-width: 767px) {
	body.admin-bar .sl-site-header {
		top: 46px;
	}

	.sl-logo__img {
		height: 30px;
		max-width: 220px;
	}
}