/* Подключение шрифтов Gilroy */
@font-face {
	font-family: 'Gilroy';
	src: url('../fonts/Gilroy-Light.otf') format('opentype');
	font-weight: 300; /* Light */
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Gilroy';
	src: url('../fonts/Gilroy-ExtraBold.otf') format('opentype');
	font-weight: 800; /* ExtraBold */
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'BebasNeuePro-Bold';
	src: url('https://db.onlinewebfonts.com/t/2f82d6d318e624089b99e7754feb1465.eot');
	src: url('https://db.onlinewebfonts.com/t/2f82d6d318e624089b99e7754feb1465.eot?#iefix')
			format('embedded-opentype'),
		url('https://db.onlinewebfonts.com/t/2f82d6d318e624089b99e7754feb1465.woff2')
			format('woff2'),
		url('https://db.onlinewebfonts.com/t/2f82d6d318e624089b99e7754feb1465.woff')
			format('woff'),
		url('https://db.onlinewebfonts.com/t/2f82d6d318e624089b99e7754feb1465.ttf')
			format('truetype'),
		url('https://db.onlinewebfonts.com/t/2f82d6d318e624089b99e7754feb1465.svg#BebasNeuePro-Bold')
			format('svg');
}

/* Базовые стили */
html {
	background: #0a1014;
	color: #fff;
	font-family: 'Gilroy', Arial, sans-serif;
}

body {
	padding: 0;
	margin: 0;
}

h1,
h2 {
	font-family: 'Oswald', sans-serif;
}
p {
	color: #6788a8;
}
form button {
	cursor: pointer;
}
a {
	text-decoration: none;
}
h2 {
	font-size: 30px;
	text-transform: uppercase;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px;
}

.more {
	width: max-content;
	margin: 0 auto;
	z-index: 999;
	position: relative;
}
.first {
	background-image: linear-gradient(to top, #0a1014, transparent 30%),
		url('../img/bg-main.jpg');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	min-height: 650px;
	overflow: hidden;
	& .mob {
		display: none;
	}

	& .first-flex {
		display: flex;
	}
	& .first-content {
		flex: 0 0 50%;
	}
	& .first-image {
		position: relative;
		& img {
			width: 650px;
			transform: translate(-100px, -130px);
			position: absolute;
			mask-image: linear-gradient(to bottom, black 85%, transparent 95%);
		}
		& .absolute-text {
			display: none;
		}
	}

	& h1 {
		font-size: 55px;
		margin: 0;
		text-transform: uppercase;
	}
	& p {
		font-size: 18px;
		color: #fff;
	}
	& .logo {
		margin-top: 20px;
		margin-bottom: 50px;
		z-index: 999;
		position: relative;
	}
	& .link {
		display: inline-block;
		padding: 20px 30px;
		background: #3dafac;
		color: white;
		text-decoration: none;
		border-radius: 5px;
		font-size: 14px;
	}
}

.about {
	display: flex;
	margin-bottom: 30px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-image: linear-gradient(to top, #0a1014, transparent 30%),
		linear-gradient(to bottom, #0a1014, transparent 30%),
		linear-gradient(to left, #0a1014, transparent 30%),
		linear-gradient(to right, #0a1014, transparent 30%),
		url('../img/bg-sec2.png');
}

.about-header h1 {
	font-size: 36px;
	margin: 0;
	font-weight: 400;
}

.about-content {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.8);
}

.about-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
}

/* Стили для десктопа (по умолчанию) */
.about-header {
	width: 30%;
	padding-right: 300px;
}

.about-content {
	width: 70%;
}

/* Стили для секции "С ЧЕМ Я МОГУ ПОМОЧЬ" */
.services {
	margin-top: 100px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-image: linear-gradient(to top, #0a1014, transparent 30%),
		linear-gradient(to bottom, #0a1014, transparent 30%),
		linear-gradient(to left, #0a1014, transparent 30%),
		linear-gradient(to right, #0a1014, transparent 30%),
		url('../img/bg-sec2.png');
}

.services-header {
	text-align: center;
	margin-bottom: 40px;
}

.services-header h2 {
	font-size: 36px;
	margin: 0;
	font-weight: bold;
}

.services-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.service-card {
	flex: 1 1 calc(25% - 20px);
	min-width: 250px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	position: relative;
	height: 400px;
	flex-direction: column;
}

.service-image {
	width: 100%;
	position: absolute;
}

.service-image img {
	width: 100%;
	height: auto;
	display: block;
}

.service-title {
	padding: 15px;
	z-index: 1;
	margin-top: auto;
}

.service-title h3 {
	font-size: 18px;
	margin: 0;
	font-weight: bold;
}

.service-action {
	margin: 15px;
	z-index: 1;
}

.consultation-btn {
	display: block;
	width: 100%;
	padding: 12px;
	text-align: center;
	background: #3dafac;
	color: white;
	text-decoration: none;
	border-radius: 5px;
	font-size: 14px;
	transition: background-color 0.3s;
	box-sizing: border-box;
}

.consultation-btn:hover {
	background: #2d8a88;
}

/* Стили для секции "ПОЧЕМУ СТОИТ ОБРАТИТЬСЯ КО МНЕ?" */
.why-choose {
	margin-top: 100px;
	display: flex;
	gap: 30px;
}

.why-choose-image {
	flex: 0 0 45%;
}

.why-choose-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
}

.why-choose-content {
	flex: 0 0 55%;
	display: flex;
	flex-direction: column;
}

.why-choose-header {
	margin-bottom: 30px;
}

.why-choose-header h2 {
	font-size: 36px;
	margin: 0;
	font-weight: bold;
}

.highlight {
	color: #3dafac;
}

.advantages-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

.advantage-item h3 {
	font-size: 18px;
	color: #3dafac;
	margin: 0 0 10px 0;
}

.advantage-item p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.why-choose-action {
	margin-top: auto;
}

.submit-btn {
	display: inline-block;
	padding: 20px 30px;
	background: #3dafac;
	color: white;
	text-decoration: none;
	border-radius: 5px;
	font-size: 14px;
	box-shadow: 0 0 60px #3dafac;
	transition: background-color 0.3s;
}

.submit-btn:hover {
	background: #2d8a88;
}

/* Стили для секции "НАГРАДЫ" */
.awards {
	margin-top: 100px;
	background-repeat: no-repeat;
	background-size: cover;
	background-image: linear-gradient(to top, #0a1014, transparent 30%),
		linear-gradient(to bottom, #0a1014, transparent 30%),
		linear-gradient(to left, #0a1014, transparent 30%),
		linear-gradient(to right, #0a1014, transparent 30%),
		url('../img/bg-sec2.png');
}

.awards-header {
	margin-bottom: 30px;
}

.awards-text h2 {
	font-size: 36px;
	font-weight: bold;
}

.awards-content {
	display: flex;
	gap: 30px;
	align-items: center;
	& .mob {
		display: none;
	}
}

.awards-text {
	flex: 0 0 50%;
}

.awards-text p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
}

.awards-image {
	flex: 0 0 50%;
	text-align: center;
}

.awards-image img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}
.section-six {
	margin-top: 100px;
	background-image: url('../img/bg-sec-6.jpg');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 20px;
	& .section-six-flex {
		display: flex;
		gap: 20px;
		justify-content: space-between;
		& * {
			flex: 0 1 30%;
		}
		& .form-mobile {
			display: none;
		}
		& img {
			object-fit: cover;
			mask-image: linear-gradient(to bottom, black 0%, transparent 95%);
		}

		& form {
			background-color: #fff;
			height: max-content;
			padding: 15px 30px;
			box-sizing: border-box;
			border-radius: 10px;
			& h3 {
				font-size: 25px;
				margin: 0 0 30px 0;
				color: #1d1d1d;
				font-weight: 100;
			}
			& input {
				color: #1d1d1d;
				padding: 15px 20px;
				background-color: #ededed;
				border-radius: 10px;
				box-sizing: border-box;
				border: none;
				width: 100%;
				margin: 0 0 7px 0;
			}
			& button {
				width: 100%;
				background-color: #00b3af;
				color: #fff;
				padding: 15px 5px;
				text-align: center;
				border: none;
				border-radius: 10px;
				font-size: 16px;
			}
		}
	}
}
.section-seven {
	margin-top: 100px;
	& h2,
	& p {
		margin: 0;
	}
	& .container {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}
}

.section-eight {
	padding: 60px;
	background-image: url('../img/bg-sec8.jpg');
	background-position: center;
	background-size: cover;
	justify-content: space-between;
	background-repeat: no-repeat;
	border-radius: 10px;
	display: flex;
	gap: 30px;
	& * {
		flex: 0 0 45%;
	}

	& img {
		border-radius: 10px;
		width: 100%;
	}
	& h3 {
		color: #00b3af;
		font-size: 30px;
		margin: 15px 0;
	}
	& p {
		font-size: 18px;
		color: #fff;
	}
	& .btn {
		display: inline-block;
		padding: 20px 30px;
		background: #3dafac;
		color: white;
		text-decoration: none;
		border-radius: 5px;
		font-size: 14px;
		box-shadow: 0 0 60px #3dafac;
		transition: background-color 0.3s;
	}
	& .mobile {
		display: none;
	}
}

/* Стили для секции "ОТЗЫВЫ МОИХ КЛИЕНТОВ" */
.testimonials {
	margin-top: 100px;
}

.testimonials-content {
	display: flex;
	gap: 50px;
}

.testimonials-text {
	flex: 0 0 40%;
}

.testimonials-text h2 {
	font-size: 36px;
	font-weight: bold;
	margin-bottom: 25px;
}

.testimonials-text p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
}

.testimonials-slider {
	flex: 0 0 55%;
	position: relative;
	overflow: hidden;
}

.slider-container {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.testimonial-card {
	background-color: #082a38;
	border-radius: 10px;
	padding: 25px 25px 60px; /* Увеличенный нижний padding для кнопок навигации */
	display: none;
	text-align: center;
	position: relative;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	height: 400px; /* Фиксированная высота для всех карточек */
	box-sizing: border-box;
}

.testimonial-card.active {
	display: block;
}

.avatar {
	width: 60px;
	height: 60px;
	background-color: #f0f0f0;
	border-radius: 50%;
	margin: 0 auto 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.avatar span {
	font-size: 20px;
	font-weight: bold;
	color: #082a38;
}

.client-name {
	color: #00b3af;
	font-size: 18px;
	margin: 15px 0;
}

.testimonial-text {
	line-height: 1.6;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.testimonial-text::-webkit-scrollbar {
	width: 5px;
}

.testimonial-text::-webkit-scrollbar-track {
	background: transparent;
}

.testimonial-text::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
}

.slider-nav {
	position: absolute;
	bottom: 15px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding: 0 20px;
}

.prev-btn,
.next-btn {
	background: none;
	border: none;
	font-size: 20px;
	color: #fff;
	cursor: pointer;
	padding: 5px;
}

.slider-dots {
	display: flex;
	gap: 5px;
}

.dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.3);
	cursor: pointer;
}

.dot.active {
	background-color: #fff;
}

/* Show first testimonial by default */
#slide-1 {
	display: block;
}

.footer {
	background-image: url('../img/footer-bg.jpg');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	padding-top: 100px;
}
.footer-form {
	display: flex;
	justify-content: space-between;
	& > * {
		flex: 0 1 50%;
	}
	& h2,
	& p {
		margin: 0;
	}
	& .footer-form__content {
		display: flex;
		justify-content: space-between;
		flex-direction: column;
		gap: 20px;
	}
	& .footer-form__form {
		max-width: 430px;
		background-color: rgba(255, 255, 255, 0.1);
		padding: 17px;
		border-radius: 10px;
		& .form-three {
			background-color: rgba(255, 255, 255, 0.61);
			padding: 22px 38px 15px;
			border-radius: 10px;
			& h3 {
				color: #070707;
				font-size: 25px;
				margin: 0;
				text-align: center;
				font-weight: 100;
			}
			& p {
				margin: 12px 0;
				color: #000;
				text-align: center;
			}
			& input {
				background-color: #d9d9d9;
				padding: 21px 24px;
				border: none;
				border-radius: 10px;
				margin-bottom: 10px;
				width: 100%;
				box-sizing: border-box;
			}
			& button {
				width: 100%;
				background-color: #00b3af;
				color: #fff;
				padding: 15px 5px;
				text-align: center;
				border: none;
				border-radius: 10px;
				font-size: 16px;
			}
		}
	}
}
.footer-form__mobile-content {
	display: none;
}

.under__footer {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: center;
	margin-top: 70px;
	& a {
		color: #fff;
	}
}

/* Стили для планшетов */
@media (max-width: 992px) {
	.first {
		& h1 {
			font-size: 40px;
		}
	}
	.about-header {
		width: 40%;
		padding-right: 10px;
	}
	.section-six {
		& .section-six-flex {
			& * {
				flex: 0 1 50%;
			}

			& .form-mobile {
				display: block;
			}
			& .form-desc {
				display: none;
			}
		}
	}

	.about-content {
		width: 70%;
	}

	.services-grid {
		justify-content: center;
	}

	.service-card {
		flex: 1 1 calc(50% - 20px);
		height: 300px;
		background-image: linear-gradient(
			to top,
			rgba(0, 0, 0, 0.7),
			transparent 30%
		);
	}

	.awards-content {
		flex-direction: column;
		& .desc {
			display: none;
		}
		& .mob {
			display: block;
		}
	}
	.advantages-grid {
		grid-template-columns: 1fr;
	}

	.awards-text,
	.awards-image {
		flex: 0 0 100%;
	}
	.section-eight {
		flex-direction: column;
		padding: 20px;
		& .btn {
			width: max-content;
			margin: 50px auto;
		}

		& img {
			max-height: 500px;
			object-fit: cover;
		}
		& .mobile {
			display: block;
		}
		& .desc {
			display: none;
		}
	}
	.section-eight-conent-flex {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	/* Responsive styles */
	.testimonials-content {
		flex-direction: column;
	}

	.testimonials-text,
	.testimonials-slider {
		flex: 0 0 100%;
	}
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
	.first {
		position: relative;
		overflow: hidden;
		& .first-image {
			& .mob {
				display: block;
				width: 100%;
				left: 0;
				transform: translateY(-200px);
			}
			& .absolute-text {
				display: block;
				position: absolute;
				padding: 15px 20px;
				border-radius: 15px;
				font-size: 12px;
				text-align: center;
				pointer-events: none;
				border-bottom: 2px solid #00b4af;
				background-image: linear-gradient(to top, #0b3446, #105757);
			}
			& .text-1 {
				right: 30px;
			}
			& .text-2 {
				top: 350px;
			}
			& .text-3 {
				top: 430px;
				right: 0;
			}
		}

		& h1 {
			font-size: 30px;
		}

		& .desc {
			display: none;
		}
		& .first-flex {
			flex-direction: column;
		}
		& .link {
			width: 100%;
			box-sizing: border-box;
			text-align: center;
		}
		& .first-content {
			order: 1;
			z-index: 10;
		}
		& .first-image {
			position: static;
			height: 350px;
			& img {
				transform: none;
			}
		}
	}
	.container {
		padding: 20px 15px;
	}
	.why-choose {
		margin-top: 50px;
		flex-direction: column;
	}

	.why-choose-image,
	.why-choose-content {
		flex: 0 0 100%;
	}
	.about {
		flex-direction: column;
	}
	h2 {
		font-size: 20px;
	}
	.section-six {
		margin-top: 50px;
		h2 {
			text-align: center;
			margin: 0 0 20px 0;
		}
		& .section-six-flex {
			& * {
				flex: 1 1 100%;
			}
			& form {
				padding: 10px 15px;
				& h3 {
					font-size: 18px;
					margin: 0 0 10px 0;
				}
			}

			& img {
				display: none;
			}
		}
	}

	.about-header {
		width: 100%;
		padding-right: 0;
		margin-bottom: 20px;
	}

	.about-content {
		width: 100%;
	}

	.service-card {
		flex: 1 1 100%;
		margin-bottom: 20px;
	}

	.services-header h2 {
		font-size: 30px;
	}

	.advantages-grid {
		grid-template-columns: 1fr;
	}

	.why-choose-header h2,
	.awards-header h2 {
		font-size: 30px;
	}
	.section-seven {
		& .container {
			grid-template-columns: 1fr;
			gap: 15px;
		}
	}
	.section-eight {
		padding: 10px;

		& .btn {
			width: 100%;
			box-sizing: border-box;
			text-align: center;
		}
		& h3 {
			font-size: 20px;
		}
		& p {
			font-size: 16px;
		}
	}
	.section-eight-conent-flex {
		display: grid;
		grid-template-columns: 1fr;
	}

	.testimonials {
		margin-top: 60px;
	}

	.testimonials-text h2 {
		font-size: 28px;
	}

	.testimonial-card {
		padding: 20px 15px 60px;
		height: auto; /* Увеличенная высота для мобильных устройств */
	}

	.testimonial-text {
		font-size: 14px;
		height: 280px; /* Увеличенная высота для текста на мобильных устройствах */
	}

	.avatar {
		width: 50px;
		height: 50px;
	}
	.footer {
		padding-top: 20px;
		& .desc {
			display: none;
		}
	}
	.footer-form {
		flex-direction: column;
		gap: 40px;
		& .footer-form__form {
			margin: 0 auto;
			& .form-three {
				padding: 18px 25px 11px;
				& p {
					font-size: 13px;
				}
			}
		}
	}
	.footer-form__mobile-content {
		display: flex;
		gap: 10px;
		& > * {
			flex: 0 1 50%;
		}
		& .big {
			font-size: 14px;
		}
		& .small {
			font-size: 10px;
		}
	}
	.under__footer {
		& a {
			text-align: right;
		}
	}
	.submit-btn {
		width: 100%;
		text-align: center;
		box-sizing: border-box;
	}
}

/* Modal Styles - Add this to your style.css file */

/* The Modal (background) */
.modal {
	display: none; /* Hidden by default */
	position: fixed;
	z-index: 9999; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* Modal shows with animation */
.modal.show-modal {
	opacity: 1;
}

/* Modal Content */
.modal-content {
	background-color: #0a1014;
	margin: 15% auto; /* 15% from the top and centered */
	padding: 25px;
	border: 1px solid #00b3af;
	border-radius: 10px;
	width: 90%;
	max-width: 450px;
	box-shadow: 0 0 30px rgba(0, 179, 175, 0.4);
	position: relative;
	animation: modalAppear 0.5s ease;
}

/* Animation for modal appearing */
@keyframes modalAppear {
	from {
		transform: translateY(-30px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* The Close Button */
.close-modal {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	line-height: 20px;
	cursor: pointer;
	transition: color 0.2s;
	position: absolute;
	right: 20px;
	top: 15px;
}

.close-modal:hover,
.close-modal:focus {
	color: #00b3af;
	text-decoration: none;
}

/* Modal Form Styles */
.modal-content h3 {
	color: #fff;
	font-size: 24px;
	margin: 0 0 15px 0;
	text-align: center;
	font-weight: normal;
	padding-right: 30px;
}

.modal-content p {
	color: #6788a8;
	text-align: center;
	margin-bottom: 20px;
	font-size: 14px;
}

.modal-form input {
	background-color: rgba(255, 255, 255, 0.1);
	padding: 15px 20px;
	border: none;
	border-radius: 8px;
	margin-bottom: 10px;
	width: 100%;
	box-sizing: border-box;
	color: #fff;
}

.modal-form input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.modal-form button {
	width: 100%;
	background-color: #00b3af;
	color: #fff;
	padding: 15px 5px;
	text-align: center;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s;
	margin-top: 5px;
}

.modal-form button:hover {
	background-color: #009a96;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
	.modal-content {
		margin: 30% auto;
		padding: 20px;
		width: 85%;
	}

	.modal-content h3 {
		font-size: 20px;
	}

	.modal-form input {
		padding: 12px 15px;
	}

	.close-modal {
		right: 15px;
		top: 12px;
	}
}
