/* header-v2 demo styles (compiled from _header-v2.scss) */

.header-v2 .header__top-content {
	border-bottom: 1px solid #6b6c77;
}

.header-v2__nav {
	position: relative;
	z-index: 1;
	background-color: #3b3c44;
}

.header-v2__mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 2;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.header-v2__mega-container {
	position: relative;
}

.header-v2.is-mega-open .header-v2__mega {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.header-v2-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 8px;
}

.header-v2-menu__item {
	position: relative;
	display: flex;
}

.header-v2-menu__item--dropdown.is-open .header-v2-dropdown {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.header-v2-menu__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid transparent;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.header-v2-menu__link:hover {
	color: #fdd137;
}

.header-v2-menu__link.is-active {
	color: #fdd137;
	border-bottom-color: #fdd137;
}

.header-v2-menu__link.is-active .header-v2-menu__arrow {
	transform: rotate(180deg);
}

.header-v2-menu__arrow {
	display: block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	transition: transform 0.2s ease;
}

.header-v2-dropdown {
	list-style: none;
	margin: 0;
	padding: 12px;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1030;
	min-width: 260px;
	background-color: #28282f;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.header-v2-dropdown__link {
	display: block;
	padding: 8px 12px;
	font-size: 12px;
	line-height: 1.2;
	color: #d1d2d4;
	text-decoration: none;
	border-radius: 2px;
	transition: color 0.2s ease, background-color 0.2s ease;
	white-space: normal;
}

.header-v2-dropdown__link:hover {
	color: #fdd137;
	background-color: rgba(255, 255, 255, 0.04);
}

.mega-menu-v2 {
	display: none;
	background-color: #28282f;
	padding: 24px 16px;
}

.mega-menu-v2.is-active {
	display: block;
}

.mega-menu-v2__grid {
	display: grid;
	gap: 16px;
}

.mega-menu-v2__grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mega-menu-v2__col {
	min-width: 0;
}

.mega-menu-v2__col:not(:last-child) {
	border-right: 1px solid #404148;
	padding-right: 16px;
}

.mega-menu-v2__title {
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
}

.mega-menu-v2__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.mega-menu-v2__link {
	display: block;
	padding: 8px 12px;
	font-size: 12px;
	line-height: 1.2;
	color: #d1d2d4;
	text-decoration: none;
	border-radius: 2px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.mega-menu-v2__link:hover {
	color: #fdd137;
	background-color: rgba(255, 255, 255, 0.04);
}

.mega-menu-v2__link.is-active {
	color: #fdd137;
}

.mega-menu-v2__more-link,
.mega-menu-v2__all-link {
	display: inline-block;
	margin-top: 8px;
	padding: 0 12px;
	font-size: 12px;
	line-height: 1.2;
	color: #d1d2d4;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.mega-menu-v2__more-link:hover,
.mega-menu-v2__all-link:hover {
	color: #fdd137;
}

.mega-menu-v2__all-link {
	margin-top: 16px;
	text-align: center;
	width: 100%;
}

.mega-menu-v2--routes .mega-menu-v2__routes-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

.mega-menu-v2--routes .mega-menu-v2__route-block {
	min-width: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.mega-menu-v2--routes .mega-menu-v2__route-block:not(:last-child) {
	border-right: 1px solid #404148;
	padding-right: 16px;
}

.mega-menu-v2--routes .mega-menu-v2__route-block .mega-menu-v2__more-link {
	margin-top: auto;
	padding-top: 16px;
	align-self: center;
	text-align: center;
}

.mega-menu-v2--routes .mega-menu-v2__route-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

.mega-menu-v2--products .mega-menu-v2__products-layout {
	display: grid;
	grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
	gap: 24px;
}

.mega-menu-v2--products .mega-menu-v2__sidebar {
	border-right: 1px solid #404148;
	padding-right: 16px;
}

.mega-menu-v2--products .mega-menu-v2__sidebar-group:not(:last-child) {
	margin-bottom: 16px;
}

.mega-menu-v2--products .mega-menu-v2__sidebar-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 8px;
}

.mega-menu-v2--products .mega-menu-v2__products-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 8px;
}

@media (max-width: 1399px) {
	.mega-menu-v2__grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mega-menu-v2__col:nth-child(2) {
		border-right: 0;
		padding-right: 0;
	}

	.mega-menu-v2--routes .mega-menu-v2__routes-grid {
		grid-template-columns: 1fr;
	}

	.mega-menu-v2--routes .mega-menu-v2__route-block {
		border-right: 0;
		padding-right: 0;
		padding-bottom: 16px;
		border-bottom: 1px solid #404148;
	}

	.mega-menu-v2--routes .mega-menu-v2__route-block:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.mega-menu-v2--products .mega-menu-v2__products-layout {
		grid-template-columns: 1fr;
	}

	.mega-menu-v2--products .mega-menu-v2__sidebar {
		border-right: 0;
		padding-right: 0;
		padding-bottom: 16px;
		border-bottom: 1px solid #404148;
	}

	.mega-menu-v2--products .mega-menu-v2__products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.header-v2__mega {
		display: none !important;
	}
}


.header-v2__burger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.header-v2__burger-line {
	display: block;
	width: 22px;
	height: 2px;
	background-color: #fdd137;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-v2__burger.is-active .header-v2__burger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.header-v2__burger.is-active .header-v2__burger-line:nth-child(2) {
	opacity: 0;
}

.header-v2__burger.is-active .header-v2__burger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.header-v2-mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.header-v2-mobile-overlay:not([hidden]) {
	opacity: 1;
	visibility: visible;
}

.header-v2-mobile {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 1032;
	width: min(100%, 320px);
	transform: translateX(-105%);
	transition: transform 0.3s ease;
	pointer-events: none;
}

.header-v2-mobile.is-open {
	z-index: 10000;
	transform: translateX(0);
	pointer-events: auto;
}

.header-v2-mobile__panel {
	height: 100%;
	background: #3b3c44;
	overflow: hidden;
}

.header-v2-mobile__viewport {
	position: relative;
	height: 100%;
	overflow: hidden;
}

.header-v2-mobile__level {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #3b3c44;
	transform: translateX(100%);
	transition: transform 0.28s ease;
	visibility: hidden;
}

.header-v2-mobile__level.is-active {
	transform: translateX(0);
	visibility: visible;
	z-index: 2;
}

.header-v2-mobile__level.is-left {
	transform: translateX(-30%);
	visibility: visible;
	z-index: 1;
}

.header-v2-mobile__head {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 12px 16px;
	flex-shrink: 0;
}

.header-v2-mobile__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #fdd137;
}

.header-v2-mobile__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #fdd137;
	cursor: pointer;
	text-align: left;
}

.header-v2-mobile__back-icon {
	display: block;
	width: 10px;
	height: 10px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	flex-shrink: 0;
}

.header-v2-mobile__list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
}

.header-v2-mobile__item {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-v2-mobile__text {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	min-width: 0;
	padding: 14px 12px 14px 16px;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.3;
	color: #fff;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.header-v2-mobile__text--link {
	width: 100%;
	padding-right: 16px;
}

.header-v2-mobile__text:hover {
	color: #fdd137;
}

.header-v2-mobile__go {
	position: relative;
	flex: 0 0 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.header-v2-mobile__go:before {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-top: 2px solid #fdd137;
	border-right: 2px solid #fdd137;
	transform: rotate(45deg);
}

.header-v2-mobile__go.is-empty-page {
	opacity: 0.45;
	cursor: default;
}

.header-v2-mobile__phones {
	margin-top: auto;
	padding: 8px 0 24px;
}

.header-v2-mobile__phones-title {
	padding: 16px 16px 8px;
	font-size: 16px;
	font-weight: 700;
	color: #fdd137;
}

.header-v2-mobile__phones-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.header-v2-mobile__phone {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 14px;
	color: #fff;
	text-decoration: none;
}

.header-v2-mobile__phone img {
	display: block;
	width: 24px;
	height: auto;
	flex-shrink: 0;
}

.header-v2-mobile__phone:hover {
	color: #fdd137;
}

body.is-header-v2-mobile-open {
	overflow: hidden;
}

@media (min-width: 992px) {
	.header-v2__burger,
	.header-v2-mobile,
	.header-v2-mobile-overlay {
		display: none !important;
	}
}
