:root {
	--primary-color: #ffa800;
	--background-color-primary: #13131a;
	--background-color-secondary: #212124;
	--text-color: #ffffff;
	--card-color: #1c1b21;
	--shadow: 0px 10px 10px -2px rgba(255, 255, 255, 0.05);
}

* {
	box-sizing: border-box;
}

html {
	font-size: 14px;
	scroll-behavior: smooth;
}

body {
	font-family: 'Roboto', 'Arial', sans-serif;
	background-color: var(--background-color-primary);
}

h1,
h2,
h3,
h4,
h5,
h6,
span,
p {
	line-height: 1.2;
	color: var(--text-color);
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 1.6rem;
}

h3 {
	font-size: 1.3rem;
}

h4 {
	font-size: 1.2rem;
}

header {
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 2;
	padding: 16px 0;
	transition: 0.3s;
}

header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header .logo {
	height: 30px;
}

header a {
	color: var(--text-color);
	text-decoration: none;
	transition: 0.3s;
	font-size: 1rem;
}

header a:hover {
	color: var(--primary-color);
}

.menu-button {
	border: none;
	outline: none;
	cursor: pointer;
	height: 27px;
	width: 27px;
	overflow: visible;
	position: relative;
	z-index: 10;
	background: transparent;
}

.menu-button span,
.menu-button span:before,
.menu-button span:after {
	background: #fff;
	display: block;
	height: 2px;
	opacity: 1;
	position: absolute;
	transition: 0.3s ease-in-out;
}

.menu-button span:before,
.menu-button span:after {
	content: '';
}

.menu-button span:before {
	left: 0px;
	top: -10px;
	width: 27px;
}

.menu-button span {
	right: 0px;
	top: 13px;
	width: 27px;
}

.menu-button span:after {
	left: 0px;
	top: 10px;
	width: 27px;
}

.menu-button.close span:before {
	top: 0px;
	transform: rotate(90deg);
	width: 27px;
}

.menu-button.close span {
	transform: rotate(-45deg);
	top: 13px;
	width: 27px;
}

.menu-button.close span:after {
	top: 0px;
	left: 0;
	transform: rotate(90deg);
	opacity: 0;
	width: 0;
}

/* Menu styles */
.nav-mobile {
	z-index: 2;
	min-width: 100%;
	min-height: 100%;
	position: fixed;
	top: 0;
	height: 0;
	left: 0;
	visibility: hidden;
	opacity: 0;
	text-align: center;
	padding-top: 20px;
	transition: all 0.3s ease-in-out;
}

/* Overlay state for menu */
.nav-mobile.overlay {
	visibility: visible;
	opacity: 1;
	padding-top: 100px;
	background: rgba(0, 0, 0, 0.9);
}

.nav-mobile ul {
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.nav-mobile a {
	color: #fff;
	display: block;
	font-size: 32px;
	margin-bottom: 30px;
	text-decoration: none;
}

header.scrolled {
	z-index: 100;
	background-color: var(--card-color);
	box-shadow: var(--shadow);
}

footer {
	background-color: var(--background-color-secondary);
}

footer .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 2rem;
	padding-bottom: 1.5rem;
	gap: 20px;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-direction: column;
	padding: 1.2rem 1.3rem;
	width: 100%;
	gap: 1rem;
	border-radius: 25px;
	background-color: #ffffff;
}

.footer-content__links {
	display: flex;
	gap: 8px;
}

.footer__link {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #000000;
	text-decoration: none;
}

.footer__link img {
	width: 20px;
}

.footer__link--location {
	color: #ffffff;
}

nav ul {
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-transform: uppercase;
	gap: 32px;
}

.nav-desktop {
	display: none;
}

.container {
	max-width: 1600px;
	padding: 0 12px;
	margin: 0 auto;
}

.button {
	font-size: 1.2rem;
	line-height: 1;
	background-color: var(--primary-color);
	color: #161616;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}

.button--l {
	padding: 16px 36px;
}

.button--m {
	padding: 8px 22px;
}

.button--s {
	padding: 0;
}

.button--rounded {
	border-radius: 40px;
}

/* ---------------------------------------------------- Sections styles ---------------------------------------------------- */

.banner {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	height: 100vh;
	width: 100vw;
	background-image: url('../assets/images/banner.jpg');
	background-size: contain;
	background-position: center;
	text-align: center;
}

.banner::after {
	position: absolute;
	content: '';
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(3, 3, 3, 0.8);
	z-index: 0;
}

.banner .container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 32px;
	z-index: 1;
}

.benefits {
	padding: 28px 0;
}

.benefits-list {
	margin-top: 3rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.benefits-list__item {
	padding: 6px;
	flex-basis: 100%;
}

.benefits-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	height: 100%;
	padding: 28px;
	background: var(--card-color);
	border-radius: 4px;
	transition: 0.4s;
	text-align: center;
}

.benefits-list__item:hover .benefits-item {
	margin-top: -15px;
	box-shadow: var(--shadow);
}

.benefits-item h3 {
	font-size: 30px;
	color: transparent;
}

.benefits-item__icon {
	height: 70px;
}

.faq {
	padding: 3rem 0;
}

.faq-list {
	margin: 3rem auto 0 auto;
	position: relative;
	display: flex;
	flex-wrap: wrap;
	max-width: 1200px;
}

.faq-list:before {
	position: absolute;
	content: '';
	width: 3px;
	height: 100%;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--card-color);
}

.faq-item {
	position: relative;
	flex-basis: 100%;
	padding-top: 8px;
	padding-bottom: 8px;
}

.faq-item::after {
	position: absolute;
	content: '';
	height: 3px;
	width: 30px;
	background-color: var(--card-color);
}

.faq-item:nth-child(odd)::after {
	top: 25%;
	right: 0;
}

.faq-item:nth-child(even)::after {
	top: 75%;
	left: 0;
}

.faq-item__content {
	padding: 20px;
	display: flex;
	gap: 20px;
	flex-direction: column;
	align-items: flex-start;
	background: var(--card-color);
	border-radius: 4px;
	transition: 0.4s;

	height: 100%;
}

.testimonials {
	padding: 28px 0;
}

.testimonials-swiper {
	margin-top: 3rem;
}

.testimonials-slide {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 30px;
	border-radius: 2px;
	border: 1px solid rgb(39, 39, 39);
	background: rgb(20, 19, 24);
}

.testimonials-slide__author {
	font-size: 1.4rem;
}

.testimonials-slide__rating {
	display: flex;
	gap: 8px;
}

.testimonials-slide__star {
	width: 16px;
}

.gallery-swiper {
	margin-top: 3rem;
}

.gallery-slide {
	height: 300px;
}

.gallery-slide img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.contacts .container {
	display: flex;
	justify-content: space-between;
}

.contacts__part {
	flex-basis: 48%;
}

@media (min-width: 500px) {
	.footer-content {
		width: 70%;
	}
}

@media (min-width: 550px) {
	.faq-item {
		flex-basis: 50%;
	}

	.faq-item__content {
		padding: 40px;
	}

	.faq-item:nth-child(odd) {
		padding-right: 30px;
	}

	.faq-item:nth-child(even) {
		padding-left: 30px;
	}
}

@media (min-width: 550px) and (max-width: 900px) {
	.faq-item__content {
		padding: 20px;
	}

	.faq-item:nth-child(odd) {
		padding-right: 15px;
	}

	.faq-item:nth-child(even) {
		padding-left: 15px;
	}
}

@media (min-width: 901px) {
	.faq-item__content {
		padding: 40px;
	}

	.faq-item:nth-child(odd) {
		padding-right: 30px;
	}

	.faq-item:nth-child(even) {
		padding-left: 30px;
	}
}

@media (min-width: 650px) {
	.nav-desktop {
		display: block;
	}

	.nav-mobile-wrapper {
		display: none;
	}
}

@media (min-width: 700px) {
	.footer-content {
		flex-direction: row;
	}
}

@media (min-width: 768px) {
	h1 {
		font-size: 5rem;
	}

	h2 {
		font-size: 2rem;
	}

	h3 {
		font-size: 1.6rem;
	}

	h4 {
		font-size: 1.4rem;
	}

	.container {
		padding: 0 20px;
	}

	.benefits-list__item {
		padding: 12px;
	}
}

@media (min-width: 600px) and (max-width: 999px) {
	header .logo {
		height: 45px;
	}

	nav ul {
		gap: 16px;
	}

	.benefits-list__item {
		flex-basis: 50%;
	}
}

@media (min-width: 1000px) {
	header .logo {
		height: 60px;
	}

	header a {
		font-size: 1.2rem;
	}

	nav ul {
		gap: 32px;
	}

	.benefits-list__item {
		padding: 12px;
		flex-basis: 33.333333333333%;
	}
}
