*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	min-width: 320px;
	height: 200vh;
	font-family: "Lato", sans-serif;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: black;
	font-size: 14px;
	white-space: nowrap;
}

@font-face {
	font-family: "Lato";
	src: url(../fonts/Lato-Regular.ttf);
}

@keyframes loading {
	from {
		transform: rotate(0turn);
	}
	to {
		transform: rotate(1turn);
	}
}

#main-form.loading::before {
	content: "";
	position: absolute;
	top: 40%;
	left: 42%;
	width: 50px;
	height: 50px;
	border: 5px solid rgba(0, 0, 0, 0.1);
	border-left-color: #000;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

#main-form {
	position: relative;
}

iframe {
	width: 100%;
	height: 400px;
}

#information {
	display: none;
}

#error-message {
	visibility: hidden;
	color: red;
	font-size: 14px;
}

.header {
	position: fixed;
	top: 0;
	z-index: 10;
	padding: 8px 8px;
	background-color: white;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.phone-reference {
	text-decoration: none;
	color: black;
	font-size: 14px;
	white-space: nowrap;
	justify-self: flex-end;
	margin-left: auto;
	margin-right: 16px;
}

.loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: whitesmoke;
	z-index: 1000;
	transition: opacity 0.5s, visibility 0.5s;
}

.loader--hidden {
	opacity: 0;
	visibility: hidden;
}

.loader::after {
	content: "";
	width: 80px;
	height: 80px;
	border: 16px solid #dddddd;
	border-top-color: #079331;
	border-radius: 50%;
	animation: loading 2s ease infinite;
}

.popup-icon {
	cursor: pointer;
}

.popup-menu {
	display: none;
}

.menu-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 100px;
}

.popup-menu--visible {
	display: flex;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: white;
	z-index: 5;
	margin-top: 57px;
	align-items: center;
	justify-content: center;
	background-image: url(../img/menu-promo.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.menu-link {
	font-size: 30px;
	color: #ffffff;
}

.hero-img-section {
	height: 100vh;
	width: 100%;
	position: absolute;
	z-index: -5;
}

.hero-img {
	object-fit: cover;
	height: 100vh;
	width: 100%;
	object-position: center;
	position: absolute;
	opacity: 0;
}

.shown {
	opacity: 1;
}

.dots-nav {
	display: flex;
	gap: 12px;
	align-items: center;
	position: absolute;
	top: 90%;
}

.dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

.dot {
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background-color: #ffffff;
	display: inline-block;
}

.active-dot {
	background-color: #079331;
}

.next::after {
	content: "❯";
	cursor: pointer;
	padding: 8px;
	color: white;
	user-select: none;
}

.prev::after {
	content: "❮";
	cursor: pointer;
	padding: 8px;
	color: white;
	user-select: none;
}

.hero-section {
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 1;
	position: relative;
	padding: 50px 0;
}

.main-headline {
	color: #ffffff;
	font-size: 34px;
	line-height: 34px;
	font-weight: 600;
	margin-bottom: 54px;
}

.hero-text {
	color: #ffffff;
	line-height: 23.2px;
	font-size: 22px;
}

.form-section {
	background-image: url(../img/promo5.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	object-fit: cover;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-top: #ffffff solid 5px;
}

.who-we-are {
	line-height: 23.2px;
	font-size: 22px;
	height: 100vh;
}

.menu-switcher {
	display: block;
	border: none;
	position: absolute;
	top: 30px;
	left: 5px;
	width: 44px;
	height: 30px;
	background: url("../images/menu-switcher.png") 0 0 no-repeat;
}

.label-headline {
	color: #ffffff;
	font-size: 16px;
	line-height: 22px;
	font-weight: 500;
	margin-bottom: 2px;
}

.form-part {
	display: flex;
	flex-direction: column;
	margin-bottom: 8px;
}

.form-input {
	padding: 5px 10px;
	width: 71.875vw;
	border-radius: 6px;
	border: 0;
	font-size: 12px;
}

.sbm-btn {
	width: 70px;
	height: 30px;
	background-color: rgb(10, 100, 5);
	border: 0;
	color: #ffffff;
	border-radius: 8px;
	margin-top: 12px;
	cursor: pointer;
}

.contacts-section {
	padding: 40px 0;
}

.contacts {
	display: flex;
	flex-direction: column;
	margin-top: 16px;
}

.second-headline {
	align-self: center;
}

.contacts-list {
	margin: 16px;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	/* border-top: #009578 1px solid; */
	padding: 32px 0;
	gap: 16px;
}

@media (min-width: 400px) {
	.form-input {
		width: 267.5px;
	}

	.main-headline {
		font-size: 42px;
	}

	.hero-text {
		font-size: 24px;
	}
}

@media (min-width: 768px) {
	#error-message {
		font-size: 20px;
	}

	.logo {
		width: 220px;
	}

	.header {
		padding: 20px 30px;
		justify-content: space-between;
	}

	.popup-icon {
		display: none;
	}

	.popup-menu {
		display: inline-block;
		order: 2;
	}

	.phone-reference {
		font-size: 20px;
		order: 3;
		justify-self: unset;
		margin: 0;
	}

	.menu-list {
		display: flex;
		flex-direction: row;
		margin: 0;
		gap: 40px;
	}

	.menu-link {
		color: black;
		font-size: 20px;
		white-space: nowrap;
	}

	.main-headline {
		font-size: 60px;
	}

	.hero-text {
		font-size: 36px;
	}

	.label-headline {
		font-size: 24px;
	}

	.form-input {
		margin-top: 4px;
		width: 400px;
		font-size: 18px;
		padding: 8px 16px;
		border-radius: 12px;
	}

	.sbm-btn {
		width: 140px;
		height: 40px;
		font-size: 18px;
		margin-top: 6px;
	}

	.contacts-list {
		gap: 18px;
		margin-bottom: 30px;
		margin-left: 60px;
		margin-top: 32px;
	}

	.second-headline {
		font-size: 36px;
	}

	.third-headline {
		font-size: 24px;
	}

	.text {
		margin-top: 4px;
		font-size: 18px;
	}

	.copyright {
		font-size: 20px;
	}

	.footer-img {
		width: 100px;
	}

	.contacts {
		margin-top: 0;
	}

	#main-form.loading::before {
		content: "";
		position: absolute;
		top: 30%;
		left: 42%;
		width: 75px;
		height: 75px;
		border: 10px solid rgba(0, 0, 0, 0.1);
		border-left-color: #000;
		border-radius: 50%;
		animation: spin 1s linear infinite;
	}
}

@media (min-width: 1024px) {
	.main-headline {
		font-size: 70px;
		margin-bottom: 54px;
	}

	.hero-text {
		font-size: 40px;
	}

	iframe {
		height: 50vw;
	}

	.menu-list {
		gap: 15vw;
	}
}

@media (min-width: 1024px) {
	.contacts {
		width: 40%;
	}

	.contacts-section {
		display: flex;
		justify-content: space-between;
		margin-top: 10px;
	}

	.map-section {
		width: 50%;
	}
}
