/* ==========================================================
   CSS Cable — компактная шапка обычных страниц и записей
   ========================================================== */

.cssc-inner-header .site-header {
	position: relative;
	z-index: 50;
	width: 100%;
	min-height: 64px;
	color: #fff;
	background: #0d203f;
}

/* Убираем большое фоновое изображение и видео */

.cssc-inner-header .site-header__media,
.cssc-inner-header .video-play {
	display: none;
}

/* Верхняя строка */

.cssc-inner-header .topbar {
	position: relative;
	z-index: 4;
	height: 64px;
	margin: 0;
	background: #0d203f;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cssc-inner-header .topbar__in {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: none;
	height: 64px;
	margin: 0;
	padding: 0 86px 0 34px;
	gap: 0;
}

.cssc-inner-header .topbar__logo {
	display: flex;
	align-items: center;
	flex: 0 0 78px;
	height: 64px;
}

.cssc-inner-header .topbar__logo img {
	display: block;
	width: auto;
	max-width: 60px;
	height: auto;
	max-height: 38px;
}

.cssc-inner-header .topbar__tagline {
	display: none;
}

.cssc-inner-header .topbar__contacts {
	display: flex;
	align-items: stretch;
	gap: 0;
	height: 64px;
	margin-left: auto;
}

.cssc-inner-header .topbar__item {
	display: flex;
	align-items: center;
	gap: 9px;
	height: 64px;
	padding: 0 clamp(13px, 1.6vw, 25px);
	color: rgba(255, 255, 255, 0.8);
	font-size: 9px;
	font-weight: 400;
	line-height: 1.3;
	border-left: 1px solid rgba(255, 255, 255, 0.06);
	transition:
		color 180ms ease,
		background-color 180ms ease;
}

.cssc-inner-header .topbar__item:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.035);
}

.cssc-inner-header .topbar__item .round-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 23px;
	width: 23px;
	height: 23px;
	color: #fff;
	background: var(--c-accent);
	border-radius: 50%;
}

.cssc-inner-header .topbar__item .round-ico .ico {
	width: 11px;
	height: 11px;
}

/* Кнопка мобильного меню */

.cssc-inner-header .topbar__burger {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	padding: 0;
	color: #fff;
	background: var(--c-accent);
	border: 0;
	border-radius: 0 0 0 15px;
	transition: background-color 180ms ease;
}

.cssc-inner-header .topbar__burger:hover {
	background: #a83d47;
	filter: none;
}

.cssc-inner-header .topbar__burger .ico {
	width: 27px;
	height: 20px;
}

/* Главное меню в одной строке с логотипом */

.cssc-inner-header .site-header__bar,
.cssc-inner-header .site-header__bar.is-sticky,
.cssc-inner-header .site-header__bar.is-hidden {
	position: absolute;
	z-index: 6;
	top: 0;
	right: auto;
	bottom: auto;
	left: 112px;
	width: auto;
	height: 64px;
	margin: 0;
	padding: 0;
	background: transparent;
	transform: none;
}

.cssc-inner-header .main-nav {
	display: flex;
	align-items: center;
	width: auto;
	min-width: 0;
	max-width: none;
	height: 64px;
	min-height: 64px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transform: none;
}

.cssc-inner-header .main-nav__menu {
	height: 64px;
}

.cssc-inner-header .main-nav__menu > ul,
.cssc-inner-header .main-nav__menu .menu {
	display: flex;
	align-items: stretch;
	gap: clamp(20px, 2.4vw, 38px);
	height: 64px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cssc-inner-header .main-nav__menu li {
	position: relative;
	display: flex;
	align-items: stretch;
	margin: 0;
	padding: 0;
	opacity: 1;
	transform: none;
}

.cssc-inner-header .main-nav__menu a {
	position: relative;
	display: flex;
	align-items: center;
	height: 64px;
	padding: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
	transition: color 180ms ease;
}

.cssc-inner-header .main-nav__menu a:hover,
.cssc-inner-header .main-nav__menu .current-menu-item > a,
.cssc-inner-header .main-nav__menu .current-menu-parent > a,
.cssc-inner-header .main-nav__menu .current-menu-ancestor > a {
	color: #fff;
}

.cssc-inner-header .main-nav__menu a::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: var(--c-accent);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 180ms ease;
	content: "";
}

.cssc-inner-header .main-nav__menu a:hover::after,
.cssc-inner-header .main-nav__menu .current-menu-item > a::after,
.cssc-inner-header .main-nav__menu .current-menu-parent > a::after,
.cssc-inner-header .main-nav__menu .current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.cssc-inner-header .main-nav__tools {
	display: none;
}

/* Выпадающее меню */

.cssc-inner-header .main-nav__menu .sub-menu {
	position: absolute;
	top: 64px;
	left: -18px;
	display: block;
	min-width: 220px;
	height: auto;
	margin: 0;
	padding: 9px;
	visibility: hidden;
	background: #fff;
	border-radius: 0;
	box-shadow: 0 18px 40px rgba(7, 17, 32, 0.18);
	opacity: 0;
	transform: translateY(8px);
	transition:
		opacity 180ms ease,
		transform 180ms ease,
		visibility 180ms ease;
}

.cssc-inner-header .main-nav__menu li:hover > .sub-menu,
.cssc-inner-header .main-nav__menu li:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

.cssc-inner-header .main-nav__menu .sub-menu li,
.cssc-inner-header .main-nav__menu .sub-menu a {
	display: block;
	height: auto;
}

.cssc-inner-header .main-nav__menu .sub-menu a {
	padding: 10px 12px;
	color: #172033;
}

.cssc-inner-header .main-nav__menu .sub-menu a:hover {
	color: var(--c-accent);
}

.cssc-inner-header .main-nav__menu .sub-menu a::after {
	display: none;
}

/* ==========================================================
   Нижняя строка быстрых ссылок
   ========================================================== */

.inner-header-tools {
	position: relative;
	z-index: 3;
	width: 100%;
	color: #fff;
	background: #101a2c;
	border-top: 1px solid rgba(255, 255, 255, 0.035);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.inner-header-tools__inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	width: 100%;
	max-width: 1360px;
	min-height: 46px;
	margin: 0 auto;
	padding: 0 34px;
}

.inner-header-tools__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-width: 0;
	min-height: 46px;
	padding: 0 clamp(16px, 2vw, 28px);
	color: rgba(255, 255, 255, 0.68);
	background: transparent;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 0;
	font-family: inherit;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.2;
	text-align: left;
	white-space: nowrap;
	transition:
		color 180ms ease,
		background-color 180ms ease;
}

.inner-header-tools__link:last-child {
	border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.inner-header-tools__link:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.045);
}

.inner-header-tools__link--request {
	color: #fff;
	background: var(--c-accent);
	border-left-color: var(--c-accent);
}

.inner-header-tools__link--request:hover {
	color: #fff;
	background: #a83d47;
}

.inner-header-tools__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto;
	height: auto;
	font-size: 15px;
	line-height: 1;
	transition: transform 180ms ease;
}

.inner-header-tools__link:hover .inner-header-tools__arrow {
	transform: translate(2px, -2px);
}

/* Содержимое начинается сразу после шапки */

.cssc-inner-header .site-main {
	position: relative;
	z-index: 1;
}

/* ==========================================================
   Адаптив
   ========================================================== */

@media (max-width: 1100px) {
	.cssc-inner-header .topbar__item--address {
		display: none;
	}

	.cssc-inner-header .topbar__item {
		padding-right: 13px;
		padding-left: 13px;
	}

	.cssc-inner-header .site-header__bar,
	.cssc-inner-header .site-header__bar.is-sticky,
	.cssc-inner-header .site-header__bar.is-hidden {
		left: 105px;
	}

	.cssc-inner-header .main-nav__menu > ul,
	.cssc-inner-header .main-nav__menu .menu {
		gap: 20px;
	}
}

@media (max-width: 860px) {
	.cssc-inner-header .site-header,
	.cssc-inner-header .topbar,
	.cssc-inner-header .topbar__in {
		min-height: 62px;
	}

	.cssc-inner-header .topbar {
		height: 62px;
	}

	.cssc-inner-header .topbar__in {
		height: 62px;
		padding-right: 70px;
		padding-left: 20px;
	}

	.cssc-inner-header .site-header__bar,
	.cssc-inner-header .topbar__contacts {
		display: none;
	}

	.cssc-inner-header .topbar__burger {
		width: 62px;
		height: 62px;
	}

	.cssc-inner-header .topbar__logo {
		height: 62px;
	}

	.inner-header-tools {
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.inner-header-tools::-webkit-scrollbar {
		display: none;
	}

	.inner-header-tools__inner {
		display: flex;
		width: max-content;
		min-width: 100%;
		min-height: 44px;
		padding: 0;
	}

	.inner-header-tools__link {
		flex: 0 0 auto;
		min-height: 44px;
		padding: 0 20px;
	}
}

@media (max-width: 520px) {
	.inner-header-tools__link {
		font-size: 9px;
		padding-right: 16px;
		padding-left: 16px;
	}

	.inner-header-tools__arrow {
		font-size: 13px;
	}
}
