/* Стили для header */
body>div {
	opacity: 0;
	transition: opacity 0.3s ease-out;
}

body.page-loaded>div {
	opacity: 1;
}

.page-template {
	.header {
		position: absolute;
		top: 16px;
		left: 50%;
		direction: ltr;

		z-index: var(--z-header);

		width: 100%;
		max-width: 1340px;
		height: 88px;
		padding: 24px 40px;

		background-color: transparent;
		backdrop-filter: blur(17px);
		box-shadow: 0 4px 30px 0 rgba(14, 49, 127, 0.15);
		border-radius: 10rem;

		transform: translateX(-50%);

		&.header-white {
			background-color: #0e317f;
		}
	}

	.loaded .header {
		transition: transform 1s var(--ease-out-expo);
		transform: translateX(-50%) translateY(0);
	}

	.header__inner {
		display: flex;
		align-items: center;
		padding: 0;
		width: 100%;
		height: 100%;
		background-color: transparent;
		border: none;
	}

	.header__logos {
		display: flex;
		gap: 24px;
		padding-left: 0;
		align-items: center;
		margin-right: auto;
	}

	.header__logo-link {
		width: auto;
		height: 40px;
	}

	.header__logo-link_quiz {
		height: 48px;
	}

	.header__logo {
		width: auto;
		height: auto;
		max-height: 100%;
		object-fit: contain;
	}

	.header__selects {
		display: flex;
		align-items: center;

		gap: 1.45rem;
		margin-right: 1.5rem;
	}

	.header__select {
		position: relative;
	}

	.header__participate {
		height: 40px;
		max-width: 165px;
		font-weight: 500;
		font-size: 16px;
		line-height: 120%;
		text-align: center;
	}

	.header__select__head {
		padding: 0.8rem 1rem;

		display: flex;
		align-items: center;
		gap: 0.95rem;

		cursor: default;
	}

	.header__select_language .header__select__head {
		border: 2px solid var(--color-background-gray-100);
		border-radius: 100px;
		padding: 8px 20px;
		width: 90px;
		height: 40px;
	}

	.header-white .header__select_language .header__select__head {
		border: 2px solid var(--color-white);
	}

	.header__select__head__name {
		color: var(--color-background-gray-100);
		text-transform: uppercase;
	}

	.header__select__head__icon {
		width: 1.2rem;
		height: 1.2rem;

		fill: var(--color-background-gray-100);
	}

	.header__select__head__name,
	.header__select__head__icon {
		transition: color 0.2s, fill 0.2s;
	}

	.header__select__head.opened .header__select__head__name {
		color: var(--color-primary-blue-hover);
	}

	.header__select__head.opened .header__select__head__icon {
		fill: var(--color-primary-blue-hover);
	}

	.header-white .header__select__head__name {
		color: var(--color-white);
	}

	.header-white .header__select__head__icon {
		fill: var(--color-white);
	}

	.header__select__body {
		position: absolute;
		top: 100%;
		left: 0;

		width: 100%;
		padding: 1rem;

		display: none;
		height: auto;
		max-height: 414px;
		overflow-y: auto;

		transition: opacity 0.2s;
	}

	.header__select__body.show,
	.header__select__body.active {
		display: flex !important;
		flex-direction: column;
		gap: 1rem;
		background-color: var(--color-white);
		border-bottom-left-radius: 1rem;
		border-bottom-right-radius: 1rem;
	}

	.header__select__body.triggered.opened {
		display: flex !important;
		flex-direction: column;
		gap: 1rem;
		background-color: var(--color-white);
		border-bottom-left-radius: 1rem;
		border-bottom-right-radius: 1rem;
	}

	.header__select__link {
		transition: color 0.2s;
		color: var(--color-background-gray-100);
	}

	.header__select__link.active {
		color: var(--color-primary-blue);
		font-weight: 600;
	}

	.header .header__participate {
		padding: 0 3.6rem;
	}

	.header__logo_mobile {
		display: none;
	}

	@media (min-width: 1025px) {
		.header__select__head:hover .header__select__head__name {
			color: var(--color-primary-blue-hover);
		}

		.header__select__head:hover .header__select__head__icon {
			fill: var(--color-primary-blue-hover);
		}

		.header__select__link:hover {
			color: var(--color-primary-blue-hover);
		}
	}

	@media (max-width: 768px) {
		.header {
			position: fixed;
			top: 0.8rem;
			left: 50%;

			z-index: var(--z-header);

			width: 34.4rem;
			height: 5.6rem;
			padding: 0.3rem;

			border-radius: 2.8rem;
		}

		.header__inner {
			padding: 0.3rem;

			border-radius: 2.6rem;
		}

		.header__logos {
			gap: 0.5rem;
		}

		.header__selects {
			gap: 5px;
			margin-right: 0;
			padding-right: 1rem;
		}

		.header__select__head {
			padding: 0.8rem;
		}

		.header__select__body {
			top: 125%;
			padding: 0.8rem;
			border-radius: 1rem;
		}

		.header .header__participate {
			display: none;
		}
	}

	@media (max-width: 450px) {
		.header {
			width: 100%;
			max-width: calc(100% - 40px);
			padding: 0;
		}

		.header__inner {
			padding: 10px 20px;
			gap: 9px;
		}

		.header__logos {
			gap: 8px;
			display: flex;
			align-items: center;
			justify-content: space-between;
			flex: 1;
		}

		.header__logo {
			display: none;
		}

		.header__logo_mobile {
			display: block;
		}

		.header__logo_mobile-eof {
			display: none;
		}

		.header__logo-link {
			height: 20px;
		}

		.header__logo-link_quiz {
			height: 34px;
			display: flex;
			align-items: center;
			justify-content: center;
			border-radius: 50%;
			overflow: hidden;
		}

		.header.header-white {
			.header__logo-link {
				height: 20px;
			}

			.header__logo-link:last-child {
				margin-right: auto;
			}

			.header__logo-link_quiz {
				height: 34px;
				margin-right: auto;
				display: flex;
				align-items: center;
				justify-content: center;
				border-radius: 50%;
				overflow: hidden;
			}

			.header__logo_mobile-eof {
				display: flex;
			}

		}

		.header__selects {
			padding: 0;
		}

		.header__select_language .header__select__head {
			padding: 8px 4px;
			width: 60px;
			height: 34px;
			gap: 5px;
			display: flex;
			justify-content: center;
		}

		.header__select__head {
			padding: 2px;
		}

		.header__select__head__icon {
			width: 12px;
			height: 12px;
		}
	}
}

@media (max-width: 450px) {
	.page-template .header__select__body {
		top: 150px;
		max-height: 200px;
	}
}

@media (max-width: 380px) {
	.header__select_language .header__select__head {
		padding: 8px 4px;
		width: 60px;
		margin-left: 0;
	}
}