html,
body {
	height: 100%;
	margin: 0;
}

body {
	background-color: var(--site-bg-color);
	font-family: var(--site-font-family);
	font-size: 20px;
	line-height: 1.3;
	font-style: normal;
	text-align: justify;
	color: var(--site-white-color);
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

body.home {
	background: url(../img/bg.webp) top center repeat-y #152348;
	background-size: cover;
}

main {
	flex-grow: 1;
}

@media (max-width: 1140px) {
	main {
		overflow-x: clip;
	}
}

@media (max-width: 767px) {
	body {
		font-size: 18px;
		line-height: 24px;
		text-align: left;
	}
}
@media (max-width: 560px) {
	body {
		font-size: 16px;
		line-height: 22px;
	}
}

/* technical styles */
.container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px;
	width: 100%;
	box-sizing: content-box;
}

@media (max-width: 1140px) {
	.container {
		box-sizing: border-box;
	}
}
@media (max-width: 560px) {
	.container {
		padding: 0 20px;
	}
}

/* Затемнение экрана */
.overlay {
	position: fixed;
	inset: 0;
	background: rgba(14, 33, 71, 0.8);
	z-index: var(--site-overlay-z-index);
	display: none;
}

.overlay.is-active {
	display: block;
}

/* Header */
.site-header {
	align-items: center;
}

/* .site-header__register-link {
	position: absolute;
	left: 90px;
} */

/* .fixed-header .site-header__register-link {
	position: absolute;
	left: 50%;
	transform: translate(-50%, 0);
} */

.header-nav-link {
	transition: var(--site-transition);
	font-size: 20px;
}
.header-nav-link:hover {
	color: var(--site-accent-color);
}

.site-header__container {
	display: flex;
	padding-top: 30px;
	padding-bottom: 30px;
}

.site-header__left-side,
.site-header__right-side {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 1 50%;
	text-transform: uppercase;
	font-size: 20px;
	font-weight: 700;
	line-height: 14px;
}

.site-header__left-side {
	gap: 50px;
}

.site-header__right-side {
	gap: 40px;
	justify-content: flex-end;
}

.site-header__burger {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 40px;
	height: 30px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: calc(var(--site-dropdown-z-index) - 1);
}

.site-header__burger.active {
	z-index: var(--site-dropdown-z-index);
}

.site-header__burger-line {
	width: 40px;
	height: 6px;
	background-color: var(--site-white-color);
	transition: var(--site-transition);
}

/* Анимация при открытии */
.site-header__burger.active .site-header__burger-line:nth-child(1) {
	transform: translateY(12px) rotate(45deg);
}

.site-header__burger.active .site-header__burger-line:nth-child(2) {
	opacity: 0;
}

.site-header__burger.active .site-header__burger-line:nth-child(3) {
	transform: translateY(-12px) rotate(-45deg);
}

/* Выпадающее меню */
.country-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	background: var(--site-white-color);
	z-index: var(--site-dropdown-z-index);
	border-radius: var(--site-border-radius);
	overflow: hidden;
	/* transform: translateY(-100%); */
	opacity: 0;
	pointer-events: none;
	transition: var(--site-transition);
	max-height: calc(100vh - 220px);
	overflow-y: auto;
}

.fixed-header .country-dropdown {
	max-height: calc(100vh - 100px);
}

.country-dropdown.is-open {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.country-dropdown__content {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
}

.country-dropdown__item {
	position: relative;
	padding: 5px 20px 5px 20px;
	font-weight: 700;
	text-decoration: none;
	display: flex;
	gap: 10px;
	width: 350px;
	align-items: center;
	justify-content: space-between;
	font-size: 20px;
	line-height: 2;
	color: var(--site-blue-color);
	transition: var(--site-transition);
}

.country-dropdown__item:hover {
	background: var(--site-accent-color);
	color: var(--site-white-color);
}

.country-dropdown__item span {
	text-transform: none;
}

.country-dropdown__item img {
	width: 38px;
	height: 25px;
	object-fit: cover;
	border: 1px solid var(--site-blue-color);
	box-sizing: content-box;
}

/* Смена языка дропдаун */

.lang-switcher__current {
	display: flex;
	gap: 15px;
	align-items: center;
	position: relative;
	z-index: calc(var(--site-dropdown-z-index) - 1);
}

.lang-switcher__current.active {
	z-index: var(--site-dropdown-z-index);
}

.lang-switcher__current svg {
	transition: var(--site-transition);
}
.lang-switcher__current.active svg {
	transform: rotate(180deg);
}

.language-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	background: var(--site-white-color);
	z-index: var(--site-dropdown-z-index);
	border-radius: var(--site-border-radius);
	overflow: hidden;
	/* transform: translateY(calc(-100% - 120px)); */
	opacity: 0;
	pointer-events: none;
	transition: var(--site-transition);
	width: max-content;
	max-height: calc(100vh - 160px);
	overflow-y: auto;
}

.fixed-header .language-dropdown {
	max-height: calc(100vh - 100px);
}

.language-dropdown.is-open {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.language-dropdown__content {
	display: grid;
	grid-template-columns: 1fr;
}

.language-dropdown__item {
	padding: 5px 20px;
	font-weight: 700;
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	font-size: 20px;
	line-height: 2;
	color: var(--site-blue-color);
	text-decoration: none;
	transition: var(--site-transition);
}

.language-dropdown__item:hover {
	background: var(--site-accent-color);
	color: var(--site-white-color);
}

.language-dropdown__item img {
	width: 40px;
	height: 25px;
	object-fit: cover;
	border: 1px solid var(--site-dark-accent-color);
}

.language-dropdown__item span {
	text-transform: none;
}

.main-nav__list {
	display: flex;
	align-items: center;
	gap: 40px;
}

.fixed-header .main-nav__list {
	justify-content: space-evenly;
}

.fixed-header .site-header__right-side {
	gap: 0px;
}

.fixed-header .site-header__nav {
	width: 100%;
}

.fixed-header .site-header__lang {
	min-width: 74px;
}

.mobile-dropdown-header {
	display: none;
}

.close-country-dropdown {
	position: relative;
	width: 28px;
	height: 28px;
	cursor: pointer;
}

.close-country-dropdown span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 28px;
	height: 4px;
	background-color: var(--site-light-blue-accent-color);
	transform-origin: center;
}

.close-country-dropdown span:first-child {
	transform: translate(-50%, -50%) rotate(45deg);
}

.close-country-dropdown span:last-child {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Фиксировонная шапка */

.static-header-logo {
	display: block;
	width: 294px;
	min-width: 294px;
	height: 100px;
}
.fixed-header-logo {
	display: none;
}

.fixed-header {
	position: fixed;
	top: -212px;
	left: 0;
	width: 100%;
	transition: top 0.2s ease;
	z-index: 500;
	background: #0e2147f2;
	height: 80px;
	display: flex;
	align-items: center;
}

.fixed-header.visible {
	top: 0;
}

.fixed-header .static-header-logo {
	display: none;
}
.fixed-header .fixed-header-logo {
	display: block;
}

.fixed-header .site-header__container {
	padding-top: 0;
	padding-bottom: 0;
}

.fixed-header .country-dropdown,
.fixed-header .language-dropdown {
	top: calc(100% + 30px);
}

.country-dropdown__mobile-item {
	font-weight: 700;
	display: none;
	padding-top: 14px;
	padding-bottom: 14px;
}
.country-dropdown__mobile-item.button-register {
	padding: 14px 0;
	font-weight: 700;
	font-size: 16px;
	line-height: 22px;
	background-color: var(--site-accent-color);
	text-align: center;
	color: var(--site-white-color);
	display: none;
	justify-content: center;
	align-items: center;
}

.site-header__lang {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.country-dropdown__item.country-dropdown__mobile-item {
	font-weight: 700;
	padding-top: 0px;
	padding-bottom: 0px;
}

.country-dropdown__item.country-dropdown__mobile-item a {
	padding-top: 15px;
	padding-bottom: 15px;
	display: block;
	width: 100%;
	line-height: 1;
}

/* header adaptiv */

@media (max-height: 1000px) {
	.country-dropdown__content {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.country-dropdown__content {
		grid-template-columns: repeat(1, 1fr);
	}

	.country-dropdown {
		position: fixed;
		top: 0;
		width: 100vw;
		height: 100%;
		height: 100vh;
		height: 100dvh;
		max-height: none;
		overflow: auto;
		/* padding-bottom: 100px; */
	}

	.fixed-header .country-dropdown {
		max-height: none;
		top: 0;
	}

	.country-dropdown__item {
		width: 100%;
	}

	.mobile-dropdown-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 20px 10px;
	}

	.mobile-dropdown-header img {
		width: 180px;
		height: auto;
		object-fit: cover;
	}
	.mobile-dropdown-header svg {
		width: 18px;
		height: 18px;
	}
	.mobile-dropdown-header svg path {
		stroke: var(--site-dark-accent-color);
	}

	.country-dropdown__item {
		position: relative;
		padding: 5px 20px 5px 20px;
		font-weight: 700;
		text-decoration: none;
		display: flex;
		gap: 10px;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		font-size: 20px;
		line-height: 2;
		color: var(--site-blue-color);
		transition: var(--site-transition);
	}

	/* .country-dropdown__item:hover {
		background: none;
		color: var(--site-blue-color);
	} */
}

@media (max-width: 560px) {
	.country-dropdown__item {
		font-size: 16px;
		line-height: 1;
		padding: 10px 20px 10px 10px;
		width: 100%;
	}

	.language-dropdown__item {
		font-size: 16px;
		line-height: 1;
		padding: 10px 10px 10px 20px;
	}

	.fixed-header .language-dropdown {
		max-height: calc(100vh - 80px);
	}
}

@media (max-width: 1040px) {
	.header-nav-link {
		display: none;
	}

	.fixed-header .site-header__container {
		padding-top: 0;
		padding-bottom: 0;
		height: 100%;
	}

	.site-header__logo {
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.site-header__left-side,
	.site-header__right-side {
		gap: 0;
	}

	.country-dropdown__mobile-item {
		display: block;
	}

	.country-dropdown__mobile-item.button-register {
		display: flex;
		box-shadow:
			0 -2px 6px 0 rgba(255, 255, 255, 0.4),
			0 2px 6px 0 rgba(255, 255, 255, 0.4);
		z-index: 1;
	}

	.site-header__nav {
		display: none;
	}
}

@media (max-width: 560px) {
	.site-header__container {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.fixed-header {
		height: 50px;
	}

	.fixed-header-logo {
		width: 32px;
	}

	.site-header__burger {
		width: 28px;
		height: 20px;
	}

	.site-header__burger-line {
		width: 28px;
		height: 4px;
	}

	.site-header__burger.active .site-header__burger-line:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}

	.site-header__burger.active .site-header__burger-line:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	.lang-switcher__current {
		flex-direction: row-reverse;
		gap: 8px;
	}

	.lang-switcher__current img {
		width: 28px;
		height: 20px;
		min-height: 20px;
		max-width: 28px;
		object-fit: cover;
	}

	.lang-switcher__current svg {
		width: 10px;
	}

	.site-header__logo {
		width: 100%;
	}

	.static-header-logo {
		display: block;
		width: 180px;
		min-width: 180px;
		height: 60px;
	}
}

/* scrollup */

.scrollup {
	position: fixed;
	bottom: 40px;
	right: 40px;
	display: block;
	width: 60px;
	height: 60px;
	background: url(../img/scrollup.svg) center center / 60px 60px no-repeat transparent;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
	cursor: pointer;
	z-index: 999;
	transition: var(--site-transition);
}

.scrollup:hover {
	transform: scale(1.15);
}

.scrollup--visible {
	opacity: 1;
	visibility: visible;
}

@media (max-width: 767px) {
	.scrollup {
		display: none;
	}
}

/* footer */

.footer {
	padding-top: 50px;
	padding-bottom: 50px;
	font-size: 16px;
}

.footer__inner {
	display: flex;
	gap: 30px;
	justify-content: space-between;
}

@media (max-width: 767px) {
	.footer {
		padding-top: 30px;
		padding-bottom: 30px;
	}

	.footer__inner {
		flex-direction: column;
		gap: 0;
		text-align: center;
		justify-content: center;
		align-items: center;
		font-weight: 600;
		font-size: 14px;
		line-height: 20px;
	}
}

/* wpadmin */

#wpadminbar {
	z-index: 600 !important;
}
