:root {
	--index: calc(1vw + 1vh);
	--wrapper-padding: 40px;
}

body {
	font-family: 'Montserrat', sans-serif;
	font-style: normal;
	color: #fff;
	background-image: url('./assets/bg_desktop.webp');
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

/* Entities */

a {
	color: #fff;
	text-decoration: underline;
}

.footer a {
	color: #666666;
}
/* Mains */
.wrapper {
	overflow: hidden;
}
.main,
.footer__wrapper {
	padding: 0 var(--wrapper-padding);
	max-width: 1680px;
	margin: 0 auto;
	box-sizing: content-box;
}
.main {
	display: flex;
	flex-direction: column;
}

.footer {
	width: 100%;
	background-color: rgba(0, 0, 0, 0.3);
}

/* Sections */

.hero {
	padding-top: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	min-height: 100vh;
}
.hero__bg {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -10;
	max-width: unset;
	height: 100%;
	object-fit: cover;
	width: 100%;
}
.hero .title {
	font-size: 36px;
	font-size: clamp(24px, calc(var(--index) * 1.7), 36px);
	font-weight: 800;
	text-transform: uppercase;
	text-align: center;
	margin-bottom: 10px;
}
.avia_form_container {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.hero__desktop {
	overflow: hidden;
	z-index: -5;
	bottom: 0;
}
.hero__image {
	position: absolute;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.hero__right,
.hero__left {
	position: absolute;
	bottom: -30px;
	width: calc(1vw * 40);
	max-width: 650px;
}
.hero__left {
	left: -110px;
	top: 42%;
}
.hero__right {
	right: -110px;
}
.hero__mobile {
	display: none;
	position: relative;
	height: 250px;
	left: 0;
	z-index: -1;
}
.hero__mobile img {
	position: absolute;
	bottom: -220px;
	left: -200px;
	max-width: unset;
}
.scroll {
	width: 100px;
}

/* form */

.hero .form {
	max-width: 670px;
	width: 100%;
	padding: 40px;
	position: relative;
	border-radius: 24px;
	background: rgba(0, 0, 0, 0.6);
	background: linear-gradient(
		156deg,
		rgba(242, 242, 242, 0.07) 6.85%,
		rgba(100, 100, 100, 0.07) 116.26%
	);
	z-index: 1;
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	border: 2px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.form_inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.form_inner .select,
.form_inner input,
.form_inner .btn,
.dropdown-container .dropdown-menu li {
	height: 46px;
	width: 100%;
}

.form .row {
	display: flex;
	gap: 10px;
	flex-wrap: nowrap;
	width: 100%;
}

.form .select {
	display: flex;
	flex-direction: row;
	padding: 12px;
	justify-content: center;
	align-items: center;
	gap: 4px;
	color: #fff;
	text-align: center;
	font-size: 16px;
	font-weight: 500;
	line-height: 100%;
	border-radius: 6px;
	border: 1px solid #fff;
}

.form .select:hover {
	cursor: pointer;
}

.form .select.active {
	border: none;
	background: #e22d3c;
}

/* dropdown selector */
.dropdown-container {
	position: relative;
	max-width: 100%;
	width: 100%;
	margin: 0 auto;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-khtml-user-select: none;
	-ms-user-select: none;
}

.dropdown-container .dropdown-toggle {
	color: #000000;
	background-color: #ffffff;
	font-size: 17px;
	padding: 10px 24px;
	box-shadow: 0px 0px 4px -2px rgba(0, 0, 0, 0.5);
	border-radius: 10px;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	transition: all ease-in-out 0.1s;
	color: #3e3e3e;
	font-size: 16px;
	font-weight: 500;
	line-height: 100%;
}

.dropdown-container .dropdown-toggle:hover,
.dropdown-container .dropdown-toggle:active,
.dropdown-container .dropdown-toggle:focus {
	background: #e4e4e4;
	color: #4d4d4d;
}

.dropdown-container .dropdown-menu {
	width: 100%;
	max-height: 200px;
	border-radius: 10px;
	box-shadow: 0px 0px 4px -2px rgba(0, 0, 0, 0.5);
	margin-top: 10px;
	position: absolute;
	left: 0;
	top: 100%;
	display: none;
	background-color: #cecece;
	z-index: 10;
	overflow-y: auto;
}

.dropdown-container .dropdown-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
	overflow: hidden;
	border-radius: 10px;
	z-index: 10;
}

.dropdown-container .dropdown-menu li {
	text-decoration: none;
	display: flex;
	align-items: center;
	color: #000000;
	padding: 10px 24px;
	font-weight: 600;
	box-shadow: 0px 0px 4px -2px rgba(0, 0, 0, 0.5);
	transition: all 250ms ease-in-out;
	font-size: 16px;
	font-weight: 500;
	line-height: 100%;
	background-color: rgba(0, 0, 0, 0);
}

.dropdown-container .dropdown-menu li:hover,
.dropdown-container .dropdown-menu li:active,
.dropdown-container .dropdown-menu li:focus {
	background-color: rgba(0, 0, 0, 0.5);
	color: #ffffff;
	cursor: pointer;
}

.dropdown-menu,
.dropdown-toggle {
	position: relative;
}

.dropdown-menu {
	z-index: 10;
	position: relative;
}

.dropdown-open .dropdown-menu.dropdown-active {
	display: block;
}

.dropdown-container.dropdown-open .dropdown-toggle {
	background: #fff;
	color: #898989;
}

.dropdown-container.dropdown-open .dropdown-toggle:before {
	transform: rotate(-135deg);
}

.form input {
	border-radius: 6px;
	background: #fff;
	padding-left: 20px;
	color: #898989;
	font-size: 16px;
	font-weight: 500;
	line-height: 100%;
}
.form input.error {
	animation: error-anim 1500ms ease-in-out;
}

@keyframes error-anim {
	0% {
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
	}
	50% {
		box-shadow: 0 0 10px 20px #ff4040;
	}
	to {
		box-shadow: 0 0 10px 5px #e00000;
	}
}

.password-container,
.email-container {
	display: flex;
	position: relative;
	width: 100%;
}
.password-container .validation {
	border-color: var(--result-color, #cecece);
	position: absolute;
	left: 0;
	width: 100%;
	top: calc(100% + 5px);
	background: linear-gradient(
		180deg,
		rgb(0 0 0 / 80%) 6.85%,
		rgb(0, 0, 0) 116.26%
	);
	border: 1px solid #898989;
	border-radius: 12px;
	padding: 10px;
	opacity: 0;
	z-index: -1;
	transition: opacity 250ms ease-in-out;
}
.password-container .validation.active {
	opacity: 1;
	z-index: 5;
}
.password-container .toggle-btn {
	position: absolute;
	right: 10px;
	top: 8px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.8);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
}
.password-container .toggle-btn::before {
	content: '\f06e';
	font-family: fontAwesome;
}
.password-container .toggle-btn.watch::before {
	content: '\f070';
}
.password-container .validation.error {
	--result-color: #ff4040;
	animation: error-anim 1500ms;
}
.password-container .validation.success {
	--result-color: #6aff18;
}
.validation .validation__item {
	transition: 0.5s;
}
.validation .validation__item:not(:last-child) {
	margin-bottom: 10px;
}
.validation .validation__item::before {
	content: '\f192';
	font-family: fontAwesome;
	width: 15px;
	height: 15px;
	display: inline-flex;
}
.validation .validation__item.valid {
	opacity: 0.5;
}
.validation .validation__item.valid::before {
	color: #6aff18;
	content: '\f00c';
}

.promocode__wrap {
	display: flex;
	flex-direction: column;
	align-items: start;
	justify-content: start;
	width: 100%;
}

.form .promocode {
	background: #ffbec3;
	width: 100%;
	cursor: auto;
}

.promocode__label {
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 100%;
	margin-bottom: 8px;
}
.form .form_confirm_registration.disabled {
	opacity: 0.6;
	pointer-events: none;
}

.form .form_btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	background: #e01323;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 100%;
	transition: 0.1s ease-in-out;
}

.already {
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 100%;
	border-bottom: 1px solid #fff;
	margin-bottom: 10px;
	transition: 0.1s ease-in-out;
	text-align: center;
	text-decoration: none;
}

.already:hover {
	color: #b0d5ff;
	border-bottom: 1px solid #b0d5ff;
}

.form input.phone {
	display: none;
}
.form input.password {
	padding-right: 45px;
}
.form .form_btn:hover {
	cursor: pointer;
	background: #91020e;
}

.form .form_btn:active {
	background: #fff;
	color: #e01324;
}

.email-error {
	color: #ff0b0b;
	font-weight: 700;
	max-height: 0px;
	opacity: 0;
	transition: all 200ms ease;
}
.email-container {
	flex-direction: column;
}
.email-error.active {
	opacity: 1;
	max-height: 35px;
	animation: blinking 3s infinite;
}
@keyframes blinking {
	from {
		opacity: 0.3;
	}
	50% {
		opacity: 1;
	}
	to {
		opacity: 0.3;
	}
}

.payments {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5px 15px;
	width: 100%;
}

.payments img {
	max-height: 42px;
	width: 30%;
}
.flag_image {
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
}
/* Info Title */
.info__title {
	position: relative;
	margin-bottom: 75px;
}
.info__title::before {
	content: '';
	position: absolute;
	width: 200vw;
	height: 100%;
	top: 0;
	left: -50vw;
	background: linear-gradient(
		92deg,
		#d70015 17.1%,
		rgba(0, 0, 0, 0) 51.62%,
		#d70015 86.14%
	);
	mix-blend-mode: screen;
	z-index: -1;
	backdrop-filter: blur(10px);
}
.info__title h2 {
	color: #fff;
	font-size: 40px;
	font-weight: 700;
	line-height: 130%;
	text-transform: uppercase;
	padding: 19px 0;
	text-align: center;
}

/* Instruction */

.instruction {
	gap: 30px;
	display: grid;
	grid-template-columns: 1fr 65px 1fr 65px 1fr;
	align-items: center;
}

.instruction__item {
	display: flex;
	align-items: center;
	gap: 30px;
}

.instruction .instruction__item img {
	animation: slidein 3s infinite;
}
.instruction .instruction__item:nth-of-type(2) img {
	animation-delay: 500ms;
}
.instruction .instruction__item:nth-of-type(3) img {
	animation-delay: 1s;
}
.instruction .arrow {
	transition: transform 250ms ease;
}

@keyframes slidein {
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.2);
	}

	100% {
		transform: scale(1);
	}
}

.instruction__text {
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	line-height: 130%;
	text-transform: uppercase;
}
.info {
	border-top: 0;
	border-left: 0;
	border-right: 0;
	border-bottom: 2px;
	border-image: radial-gradient(#fff 20% 45%, transparent 98%);
	border-style: solid;
	border-image-slice: 1;
	padding-bottom: 40px;
	margin-bottom: 80px;
}

.advertisements {
	margin-bottom: 90px;
}
.adv__list {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 60px 200px;
}
.adv__item {
	border-radius: 14px;
	overflow: hidden;
	padding: 40px;
	gap: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 30%;
	max-width: 373px;
}

.adv__item::before {
	content: '';
	position: absolute;
	top: -10%;
	left: -10%;
	width: 120%;
	height: 120%;
	background-color: #d9d9d9;
	mix-blend-mode: overlay;
	backdrop-filter: blur(5px);
	z-index: -2;
}
.adv__item::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	box-shadow: inset 0 0 10px #444444;
	border-radius: inherit;
	mix-blend-mode: screen;
	z-index: -1;
}
.adv__text {
	font-size: 24px;
	font-weight: 700;
	line-height: 120%;
	text-transform: uppercase;
	text-align: center;
}

/* Footer */

.footer {
	padding-block: 60px;
}

@media screen and (min-width: 992px) {
	.footer__adv {
		display: none;
	}
}

.footer__wrapper {
	display: flex;
	flex-direction: column;
}
.footer__info {
	display: flex;
	flex-direction: column;
	margin-block: 40px;
}
.footer__conf {
	margin-top: 20px;
	display: grid;
	align-items: center;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	justify-content: space-between;
}
.footer__conf p {
	font-weight: 500;
	line-height: 130%;
}
.footer__conf .cookies {
	max-width: 710px;
}
.footer__conf .responsible {
	display: flex;
	align-items: center;
	gap: 50px;
	justify-self: flex-end;
}

.footer__conf .responsible__container {
	display: flex;
	align-items: center;
	gap: 12px;
}

.footer .awards_container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

/* /footer */

/* popup */
.popup {
	display: flex;
	position: fixed;
	height: 100dvh;
	width: 100dvw;
	z-index: -100;
	align-items: center;
	justify-content: center;
	left: -150%;
	visibility: hidden;
	opacity: 0;
}
.popup.active {
	z-index: 999999;
	visibility: visible;
	opacity: 1;
	left: 0;
	top: 0;
}
.popup__bg {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 200ms ease-in-out;
}
.popup__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: clamp(300px, 30vw, 380px);
	padding: 30px;
	border-radius: 14px;
	border: 1px solid #989898;
	background: linear-gradient(
		0deg,
		rgba(23, 23, 23, 0.6) -11.47%,
		rgba(67, 67, 67, 0.85) 109.96%
	);
	overflow: hidden;
	opacity: 0;
	transition: all 0.5s ease-in-out;
}

.popup.active .popup__inner,
.popup.active .popup__bg {
	opacity: 1;
}

.popup__desc {
	display: flex;
	flex-direction: column;
	place-content: center;
	text-align: center;
	gap: 10px;
	margin-block-start: 20px;
}
.popup__desc h3 {
	font-size: clamp(18px, 3vw, 24px);
	text-transform: uppercase;
	font-weight: 700;
	line-height: 140%;
}
.popup__desc p {
	font-size: 16px;
	line-height: 140%;
}
.popup__close {
	position: absolute;
	right: 10px;
	top: 10px;
	background: transparent;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 10px;
	transition: all 150ms ease-in-out;
}
.popup__close:hover,
.popup__close:active {
	scale: 0.95;
}

#lang-change.popup {
	align-items: flex-start;
	justify-content: flex-start;
	padding: 20px;
	height: auto;
	width: auto;
}
#lang-change.popup .popup__inner {
	width: clamp(0px, 100%, 380px);
}
#lang-change.popup .lang__buttons {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-evenly;
}
#lang-change.popup .lang__buttons::before {
	content: '';
	position: absolute;
	background-color: #fff;
	width: 1px;
	height: 60%;
}
.lang__buttons .lang__btn {
	display: inline-flex;
	place-content: center;
	padding: 5px;
}
.lang__buttons .lang__btn img {
	width: clamp(40px, 10vw, 60px);
	height: clamp(40px, 10vw, 60px);
	transition: transform 200ms ease-in-out;
}
.lang__buttons .lang__btn:hover img {
	transform: scale(0.95);
}
/* /popup */

@media (min-width: 1920px) {
	body {
		background-position-y: 42%;
	}
}

@media (min-height: 1100px) and (min-width: 1600px) {
	.hero .form {
		padding: 60px;
	}
}

@media (max-width: 1600px) {
	.adv__list {
		gap: 60px;
	}
	.hero__left {
		left: -180px;
		top: 42%;
	}
}

@media (max-width: 1440px) {
	.instruction {
		gap: 0;
	}
	.instruction__item {
		gap: 15px;
	}
	.instruction__text {
		font-size: 20px;
	}
	.instruction__item img {
		width: clamp(100px, calc(var(--index) * 5), 150px);
	}
	.adv__list {
		gap: 20px;
	}
}

@media (max-width: 1200px) {
	.hero__desktop {
		display: none;
	}
	.avia_form_container {
		flex-direction: column-reverse;
		position: relative;
	}
	.hero__mobile {
		display: block;
	}
	.info__title {
		margin-bottom: 40px;
	}
	.info__title h2 {
		font-size: 36px;
	}
	.instruction {
		grid-template-columns: 1fr;
		justify-items: center;
	}
	.instruction .arrow {
		transform: rotateZ(90deg);
	}
	.adv__text {
		font-size: clamp(18px, calc(var(--index) * 0.85), 24px);
	}
	.footer .awards_container {
		gap: 15px;
		justify-content: center;
	}
}

@media (max-width: 991px) {
	.hero .logo {
		width: 180px;
		width: clamp(180px, calc(var(--index) * 12), 260px);
	}
	.info,
	.advertisements {
		margin-bottom: 40px;
	}
	.main,
	.footer__wrapper {
		--wrapper-padding: 25px;
	}
	.adv__item {
		max-width: unset;
		flex-grow: 1;
	}
	.info__title h2 {
		font-size: clamp(18px, calc(1vw * 3.6), 36px);
	}
	.responsible__idk {
		display: none;
	}
	.footer__logo-wrap {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.footer__info {
		font-size: 15px;
	}
}

@media (max-width: 768px) {
	body {
		background-image: url('./assets/bg_mobile.webp');
		background-position: left top;
	}
	.hero {
		height: auto;
		min-height: unset;
		margin-bottom: 40px;
	}
	.hero .title {
		margin-top: 10px;
	}
	.hero__bg,
	.scroll {
		display: none;
	}
	.instruction__item img {
		width: 80px;
	}
	.adv__item {
		width: 100%;
	}
	.footer__conf {
		grid-template-columns: 1fr;
		justify-items: center;
	}
	.footer__conf .responsible {
		justify-self: unset;
	}
	.footer__info {
		margin-block: 30px;
		text-align: center;
		font-size: 13px;
	}
	.footer__conf .responsible__container {
		flex-direction: column;
	}
	.footer {
		padding-block: 30px;
	}
	.footer .award__item {
		width: 20%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.footer .award__item:nth-child(5) {
		width: 33%;
	}
}

@media (max-width: 680px) {
	.payments img {
		width: 20%;
	}
	.instruction {
		justify-items: flex-start;
	}
	.instruction {
		gap: 10px;
	}
	.instruction .arrow {
		display: none;
	}
}

@media (max-width: 480px) {
	.main,
	.footer__wrapper {
		--wrapper-padding: 18px;
	}
	.hero .logo {
		width: 180px;
	}
	.hero__mobile img {
		left: -270px;
	}
	.hero .form {
		border-radius: 16px;
		padding: 25px;
	}
	.form .select {
		font-size: 14px;
		padding: 5px;
	}
	.promocode__label {
		font-size: 14px;
	}
	.already {
		font-size: 15px;
	}
	.adv__item {
		padding: 20px;
	}
	.adv__item img {
		width: 40px;
	}
	.adv__text {
		font-size: 16px;
	}
	.info__title h2 {
		font-size: 14px;
	}
	.footer {
		backdrop-filter: blur(10px);
	}
	.footer__conf .cookies {
		display: flex;
		flex-direction: column;
	}
	.responsible__18 {
		width: 40px;
	}
	.footer__conf {
		margin-top: 16px;
	}
	.footer__conf .responsible__container {
		gap: 6px;
	}
	.payments img {
		width: 30%;
	}
}

@media (max-width: 360px) {
	.form .select,
	.form input {
		font-size: 12px;
	}
	.form input,
	.dropdown-container .dropdown-toggle {
		padding: 10px;
	}
	.flag_image {
		right: 10px;
	}
	.form .select img {
		width: 18px;
	}
	.hero__mobile img {
		left: -300px;
	}
	.instruction__text {
		font-size: 16px;
	}
	.hero .title {
		font-size: 18px;
	}
}
