.header-menu {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 40px;
	padding: 0;
	margin: 0;
	list-style-type: none;
	height: 100%;
}

.header-menu li {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	height: 51px;
}

.header-menu .nav-link__header._selected {
	color: var(--color-red);
}

.header-menu__item {
	position: relative;
}

.header-menu__hover {
	position: absolute;
	overflow: auto;
	max-height: 350px;
	width: 312px;
	top: 51px;
	left: -100px;
	opacity: 0;
	visibility: hidden;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;

	-webkit-transition: opacity .2s ease-in-out, visibility .2s ease-in-out, -webkit-backdrop-filter .2s ease-in-out;
	-o-transition: opacity .2s ease-in-out, visibility .2s ease-in-out, backdrop-filter .2s ease-in-out;
	transition: opacity .2s ease-in-out, visibility .2s ease-in-out, backdrop-filter .2s ease-in-out, -webkit-backdrop-filter .2s ease-in-out;
}

.site-header.header--index .header-menu__hover {
	-webkit-backdrop-filter: blur(0px);
	backdrop-filter: blur(0px);
}

.site-header.sticky .header-menu__hover {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	top: 61px;
}

/* На псевдо-элементах, что б не ломался simplebar */
.header-menu__hover::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 1px;
	/* background-color: rgba(51, 51, 51, 0.1); */
}

.header-menu__hover::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: rgba(51, 51, 51, 0.1);
}

.site-header:is(.header--index, .sticky, .burger-active) .header-menu__hover::after {
	background-color: rgba(240, 242, 244, 0.2);
}

.menu-services__list {
	height: 100%;
	width: 100%;
}

.menu-services__list-item {
	padding: 14px 0 14px 20px;
	width: 100%;
	color: rgba(51, 51, 51, 0.5);
	background-color: white;
	border-top: 1px solid rgba(51, 51, 51, 0.1);
	border-right: 1px solid rgba(51, 51, 51, 0.1);
	border-bottom: 1px solid transparent;
	border-left: 1px solid rgba(51, 51, 51, 0.1);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	height: 100%;
	text-transform: uppercase;
	font-family: 'Intro';
	text-decoration: none;

	-webkit-transition: all .2s ease-in-out;
	-o-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;
}

.site-header.header--index .menu-services__list-item {
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.2);
	border-bottom-color: transparent;
	color: white;
}

.site-header:is(.sticky, .burger-active) .menu-services__list-item {
	background-color: white;
	border-top: 1px solid rgba(51, 51, 51, 0.1);
	border-right: 1px solid rgba(51, 51, 51, 0.1);
	border-bottom: 1px solid transparent;
	border-left: 1px solid rgba(51, 51, 51, 0.1);
	color: rgba(51, 51, 51, 0.5);
}

.menu-services__list-item._selected {
	border-color: transparent;
	color: white;
	background-color: var(--color-red);
}

.site-header.header--index .menu-services__list-item._selected {
	border-color: transparent;
	background-color: var(--color-red);
}

.site-header.sticky .menu-services__list-item._selected {
	border-color: transparent;
	color: white;
	background-color: var(--color-red);
}

/* ------ SimpleBar ------ */

.header-menu__hover .simplebar-track.simplebar-vertical {
	width: 8px;
	background: transparent;
	pointer-events: auto;
	cursor: pointer;
	visibility: hidden !important;
}

.header-menu__item.has-sub:hover .header-menu__hover .simplebar-track.simplebar-vertical {
	visibility: visible !important;
}

.header-menu__hover .simplebar-scrollbar:before {
	content: "";
	display: block;
	width: 2px;
	min-height: 24px;
	background: var(--color-red);
	margin-left: 4px;
	opacity: 1;
}

.header-menu__hover .simplebar-track.simplebar-horizontal {
	display: none;
}

.header-menu__hover .simplebar-content-wrapper {
	overscroll-behavior: contain;
}

@media (hover: hover) {
	.header-menu__item.has-sub:hover .header-menu__hover {
		opacity: 1;
		visibility: visible;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.site-header.header--index .header-menu__item.has-sub:hover .header-menu__hover {
		-webkit-backdrop-filter: blur(25px);
		backdrop-filter: blur(25px);
	}

	.site-header.sticky .header-menu__item.has-sub:hover .header-menu__hover {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.menu-services__list-item:hover {
		border-color: transparent;
		color: white;
		background-color: var(--color-red);
	}

	.site-header.header--index .menu-services__list-item:hover {
		border-color: transparent;
		background-color: var(--color-red);
	}

	.site-header.sticky .menu-services__list-item:hover {
		border-color: transparent;
		color: white;
		background-color: var(--color-red);
	}
}

@media (max-width: 1800px) {
	.header-menu {
		gap: 30px;
	}
}

@media (max-width: 1700px) {
	.header-menu {
		gap: 20px;
	}
}

@media (max-width: 1400px) {
	.header-menu .nav-link__header {
		font-size: 14px;
	}
}

@media (max-width: 1300px) {
	.header-menu .nav-link__header {
		font-size: 13px;
	}
}

@media (max-width: 1250px) {
	.header-menu .nav-link__header {
		font-size: 12px;
	}
}

@media (max-width: 1199px) {
	.header-menu {
		gap: 40px;
	}
}

@media (max-width: 959px) {
	.header-menu {
		gap: 30px;
	}
}

/* ------ Products menu ------ */

.menu-products__blur-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	backdrop-filter: blur(25px);
	opacity: 0;

	-webkit-transition: opacity .2s ease-in-out;
	-o-transition: opacity .2s ease-in-out;
	transition: opacity .2s ease-in-out;

	will-change: opacity;
	transform: translateZ(0);
	pointer-events: none;
}

.site-menu__hover-menu {
	position: absolute;
	width: 375px;
	left: -41px;
	top: 51px;
	opacity: 0;
	visibility: hidden;
	-webkit-transition: opacity .2s ease-in-out, visibility .2s ease-in-out;
	-o-transition: opacity .2s ease-in-out, visibility .2s ease-in-out;
	transition: opacity .2s ease-in-out, visibility .2s ease-in-out;
}

.site-header.sticky .site-menu__hover-menu {
	top: 61px;
}

.site-header.sticky .menu-products__list {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.site-menu__hover-menu[data-id="menu-products"]::after {
	content: '';
	display: block;
	position: absolute;
	height: 100%;
	width: 100px;
	top: 0;
	right: -100px;
	z-index: -1;
}

.menu-products__section-item {
	position: relative;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	padding-left: 40px;
	height: 90px;
	background-color: var(--color-white);
	border-top: 1px solid rgba(51, 51, 51, 0.06);
	border-left: 1px solid rgba(51, 51, 51, 0.06);
	-webkit-transition: all .2s ease-in-out;
	-o-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;
}

.site-header.header--index .menu-products__section-item {
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.2);
}

.site-header:is(.sticky, .burger-active) .menu-products__section-item {
	background-color: var(--color-white);
	border-color: rgba(51, 51, 51, 0.06);
}

.menu-products__title {
	font-family: 'Intro';
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(51, 51, 51, 1);
	max-width: 190px;

	-webkit-transition: color .2s ease-in-out;
	-o-transition: color .2s ease-in-out;
	transition: color .2s ease-in-out;
}

.site-header.header--index .menu-products__title {
	color: white;
}

.site-header:is(.sticky, .burger-active) .menu-products__title {
	color: rgba(51, 51, 51, 1);
}

.menu-products__title::after {
	content: '';
	-webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='11' height='9' viewBox='0 0 11 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0 4.35352H9.33333M9.33333 4.35352L5.33333 0.353516M9.33333 4.35352L5.33333 8.35352' stroke='white'/%3e%3c/svg%3e ");
	mask-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='11' height='9' viewBox='0 0 11 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0 4.35352H9.33333M9.33333 4.35352L5.33333 0.353516M9.33333 4.35352L5.33333 8.35352' stroke='white'/%3e%3c/svg%3e ");
	width: 11px;
	height: 9px;
	display: inline-block;
	margin-left: 0;
	background-color: white;

	-webkit-transition: margin-left .2s ease-in-out, background-color .2s ease-in-out;
	-o-transition: margin-left .2s ease-in-out, background-color .2s ease-in-out;
	transition: margin-left .2s ease-in-out, background-color .2s ease-in-out;
}

.site-header.header--index .menu-products__title::after {
	background-color: transparent;
}

.site-header:is(.sticky, .burger-active) .menu-products__title::after {
	background-color: white;
}

.menu-products__section-item:last-child {
	border-bottom: 1px solid rgba(51, 51, 51, 0.06);
}

.menu-products__element-list {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	position: absolute;
	top: -1px;
	left: 100%;
	opacity: 0;
	visibility: hidden;
	width: 278px;

	background-color: white;
	border-bottom: 1px solid rgba(51, 51, 51, 0.06);
	-webkit-transition: opacity .2s ease-in-out, visibility .2s ease-in-out;
	-o-transition: opacity .2s ease-in-out, visibility .2s ease-in-out;
	transition: opacity .2s ease-in-out, visibility .2s ease-in-out;
}

.menu-products__element-list._from-bottom {
	top: auto;
	bottom: -1px;
}

.site-header.header--index .menu-products__element-list {
	background-color: transparent;
	-webkit-backdrop-filter: blur(25px);
	backdrop-filter: blur(25px);
}

.site-header:is(.sticky, .burger-active) .menu-products__element-list {
	background-color: white;
}

.menu-products__element {
	font-family: 'Intro';
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(51, 51, 51, 1);

	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	height: 90px;
	width: 100%;
	padding: 0 40px;

	border-top: 1px solid rgba(51, 51, 51, 0.06);
	border-right: 1px solid rgba(51, 51, 51, 0.06);
	border-left: 1px solid rgba(51, 51, 51, 0.06);
	-webkit-transition: all .2s ease-in-out;
	-o-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;
}

.site-header.header--index .menu-products__element {
	color: white;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	border-right: 1px solid rgba(255, 255, 255, 0.2);
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header.sticky .menu-products__element {
	color: rgba(51, 51, 51, 1);
	border-top: 1px solid rgba(51, 51, 51, 0.06);
	border-right: 1px solid rgba(51, 51, 51, 0.06);
	border-left: 1px solid rgba(51, 51, 51, 0.06);
}

.menu-products__image-wrapper {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	top: 0;
	right: 0;
	height: 100%;
	width: 100%;
	position: absolute;
	overflow: hidden;
}

.menu-products__image-wrapper img {
	position: absolute;
	right: -10px;
	max-height: 90px;
	pointer-events: none;
	-webkit-filter: drop-shadow(-1px 14px 20px rgba(0, 0, 0, 0.15));
	filter: drop-shadow(-1px 14px 20px rgba(0, 0, 0, 0.15));
}

.menu-products__link {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: 1;
}

@media (hover: hover) {

	.header-menu__item:hover .site-menu__hover-menu {
		opacity: 1;
		visibility: visible;
	}

	.header-menu__item:hover .menu-products__blur-bg::before {
		opacity: 1;
	}

	.site-header .menu-products__section-item:hover {
		border-color: var(--color-red);
		background-color: var(--color-red);
		border-right-color: transparent;
	}

	.menu-products__element:hover {
		border-color: rgba(51, 51, 51, 0.06);
		background-color: rgba(51, 51, 51, 0.06);
		border-right-color: transparent;
	}

	.site-header.header--index .menu-products__element:hover {
		border-color: rgba(255, 255, 255, 0.2);
		background-color: rgba(255, 255, 255, 0.2);
		border-right-color: transparent;
	}

	.site-header.sticky .menu-products__element:hover {
		border-color: rgba(51, 51, 51, 0.06);
		background-color: rgba(51, 51, 51, 0.06);
		border-right-color: transparent;
	}

	.menu-products__section-item:hover .menu-products__title {
		color: var(--color-white);
	}

	.menu-products__section-item:hover>.menu-products__element-list {
		opacity: 1;
		visibility: visible;
	}

	.menu-products__section-item:hover .menu-products__title::after {
		margin-left: 10px;
		background-color: white;
	}

}