/**********************************************************************/
/**********************************************************************/
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 50px;
	margin: auto 0;
	background-color: #FFFFFF;
	z-index: 150;
}
body.dark .header {
	background-color: #1C1D21;
}
body.admin-bar .header {
	top: 32px;
}
.header:after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	height: 1px;
	background-color: #F2F2F2;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}
body.dark .header:after {
	background-color: #000000;
}
.header.scrolled:after {
	opacity: 1;
}
.header__content {
	display: flex;
	margin-top: auto;
	margin-bottom: auto;
}

/**********************************************************************/
.header__logo {
	margin: auto auto -10px;
	transition: opacity 0.3s;
	z-index: 130;
}
.header__logo:hover {
	opacity: 0.6;
}
.header__logo img {
	height: 50px;
}
body:not(.dark) .header__logo img.dark,
body.dark .header__logo img.light {
	display: none;
}

/**********************************************************************/
.header__col {
	display: flex;
	flex-wrap: wrap;
	width: calc(50% - 80px);
	margin: auto 0;
}
.header__col_l {
	justify-content: flex-start;
}
.header__col_r {
	justify-content: flex-end;
}

/**********************************************************************/
.header__menu {
	margin: auto 0;
}
.header__menu .menu__list {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
	list-style: none;
}
.header__col_l .header__menu .menu__list .menu__item {
	margin-right: 50px;
}
.header__col_l .header__menu .menu__list .menu__item:last-child {
	margin-right: 0;
}
.header__col_r .header__menu .menu__list .menu__item {
	margin-left: 50px;
}
.header__col_r .header__menu .menu__list .menu__item:first-child {
	margin-left: 0;
}
.header__menu .menu__list .menu__link {
	position: relative;
	display: flex;
	padding: 15px 0;
	font-family: "Oswald", sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: #000000;
	transition: opacity 0.3s;
}
body.dark .header__menu .menu__list .menu__link {
	color: #FFFFFF;
}
.header__menu .menu__list .menu__item.menu__parent {
	cursor: pointer;
}
.header__menu .menu__list .menu__item.menu__parent .menu__link {
	pointer-events: none;
}
.header__menu .menu__list .menu__item .menu__link:after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	pointer-events: none;
	background-color: #007EFF;
	opacity: 0;
	transition: opacity 0.3s;
	z-index: 10;
}
.header__menu .menu__list .menu__item:hover .menu__link:after,
.header__menu .menu__list .menu__item.active .menu__link:after {
	opacity: 1;
}
.header__menu .menu__list .menu__parent .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	width: 1300px;
	max-width: calc(100vw - 10px);
	padding: 40px 0 60px;
	border-bottom: 1px solid #F2F2F2;
	list-style: none;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
	cursor: initial;
	z-index: 120;
}
body.dark .header__menu .menu__list .menu__parent .sub-menu {
	border-color: #000000;
}
.header__menu .menu__list .menu__parent:hover .sub-menu {
	opacity: 1;
	pointer-events: initial;
}
.header__menu .menu__list .menu__parent .sub-menu:before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	background-color: #FFFFFF;
	z-index: -1;
}
body.dark .header__menu .menu__list .menu__parent .sub-menu:before {
	background-color: #1C1D21;
}
.header__menu .menu__list .menu__parent .sub-menu__item {
	width: calc(25% - 30px);
	margin: 0 15px;
}
.header__menu .menu__list .menu__parent .sub-menu__link {
	display: flex;
	flex-direction: column;
	transition: opacity 0.3s;
}
.header__menu .menu__list .menu__parent .sub-menu__link:hover {
	opacity: 0.6;
}
.header__menu .menu__list .menu__parent .sub-menu__item img {
	margin: 0 auto;
}
.header__menu .menu__list .menu__parent .sub-menu__item p {
	max-width: 100%;
	margin: 0 auto;
	padding: 2px 30px 3px;
	transform: translateY(-50%);
	background-color: rgb(0, 126, 255);
	font: normal 500 16px / 30px "Oswald", sans-serif;
    color: #FFFFFF;
	text-align: center;
}

/**********************************************************************/
.header__tel {
	margin: auto 40px;
	transition: opacity 0.3s;
	z-index: 10;
}
.header__tel:hover {
	opacity: 0.6;
}
.header__tel img {
	display: none;
}
.header__tel p {
	font: normal 700 14px / 25px "Oswald", sans-serif;
    color: #000000;
}
body.dark .header__tel p {
	color: #FFFFFF;
}

/**********************************************************************/
.header__btn {
	margin: auto 0;
	line-height: 25px;
}

/**********************************************************************/
.header__burger {
	position: relative;
	display: none;
	flex-direction: column;
	justify-content: center;
	width: 70px;
	height: 40px;
	margin: auto 0 -10px;
	border: 1px solid #F2F2F2;
	background-color: #FFFFFF;
	cursor: pointer;
	z-index: 10;
}
body.dark .header__burger {
	background-color: #1C1D21;
	border-color: #000000;
}
.header__burger span {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 35px;
	height: 3px;
	background-color: #007EFF;
}
.header__burger span:nth-child(1) {
	width: 31px;
	transform: translate(calc(-50% - 2px), calc(-50% - 8px));
}
.header__burger span:nth-child(3) {
	width: 31px;
	transform: translate(calc(-50% - 2px), calc(-50% + 8px));
}



/**********************************************************************/
/*********************         RESPONSIVE         *********************/
/**********************************************************************/
@media screen and (max-width: 1200px) {
	/******************************************************************/
	/******************************************************************/
	.header__col_l .header__menu .menu__list .menu__item {
		margin-right: 20px;
	}
	.header__col_r .header__menu .menu__list .menu__item {
		margin-left: 20px;
	}

	/******************************************************************/
	.header__tel {
		margin: auto 20px;
	}
}


@media screen and (max-width: 1024px) {
	/******************************************************************/
	/******************************************************************/
	.header__logo {
		margin-bottom: auto;
	}
	.header__logo img {
		height: 35px;
	}

	/******************************************************************/
	.header__col {
		width: calc(50% - 60px);
	}

	/******************************************************************/
	.header__menu .menu__list .menu__link {
		font-size: 12px;
	}
	.header__menu .menu__list .menu__parent .sub-menu {
		max-width: calc(100vw - 20px);
		padding: 20px 0 40px;
	}
	.header__menu .menu__list .menu__parent .sub-menu__item {
		width: calc(25% - 20px);
		margin: 0 10px;
	}
	.header__menu .menu__list .menu__parent .sub-menu__item p {
		padding: 2px 10px 3px;
		font-size: 12px;
		line-height: 20px;
	}

	/******************************************************************/
	.header__tel {
		display: flex;
		flex-direction: column;
		width: 35px;
		height: 30px;
		margin-right: 10px;
		background-color: rgb(0, 126, 255);
	}
	.header__tel img {
		display: block;
		width: 16px;
		margin: auto;
	}
	.header__tel p {
		display: none;
	}

	/******************************************************************/
	.header__btn {
		padding: 2px 10px 3px;
		font-size: 14px;
		line-height: 25px;
	}
}


@media screen and (max-width: 782px) {
	/******************************************************************/
	/******************************************************************/
	body.admin-bar .header {
		top: 46px;
	}
}


@media screen and (max-width: 767px) {
	/******************************************************************/
	/******************************************************************/
	.header {
		height: 40px;
	}

	/******************************************************************/
	.header__logo {
		margin: 0 auto -10px 0;
	}
	.header__logo img {
		height: 40px;
	}

	/******************************************************************/
	.header__col {
		width: auto;
	}
	.header__col_l {
		display: none;
	}

	/******************************************************************/
	.header__menu {
		display: none;
	}

	/******************************************************************/
	.header__tel {
		width: 60px;
		height: 40px;
		margin: auto 30px -10px 0;
	}
	.header__tel img {
		width: 25px;
	}

	/******************************************************************/
	.header__btn {
		padding: 2px 10px 3px;
		font-size: 14px;
		line-height: 25px;
	}

	/******************************************************************/
	.header__btn {
		display: none;
	}

	/******************************************************************/
	.header__burger {
		display: flex;
	}
}


@media screen and (max-width: 400px) {
	/******************************************************************/
	/******************************************************************/
	.header__tel {
		margin-right: 20px;
	}
}