/* GLOBAL STYLES (ETAP 0) */
:root {
	--color-dark-blue: #0d1b2a;
	--color-muted-blue: #415a77;
	--color-light-gray: #e0e1dd;
	--color-accent: #00c2ff;
	--font-primary: 'Roboto', sans-serif;
	--font-secondary: 'Montserrat', sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	background-color: var(--color-dark-blue);
	color: var(--color-light-gray);
	font-size: 16px;
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

a {
	color: var(--color-light-gray);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--color-accent);
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-secondary);
	font-weight: 700;
}

/* HEADER STYLES (ETAP 1) */
.header {
	padding: 20px 0;
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 1000;
	background-color: rgba(13, 27, 42, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-muted-blue);
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 24px;
	color: var(--color-light-gray);
}

.header__nav-list {
	display: flex;
	align-items: center;
	gap: 30px;
}

.header__nav-link {
	font-weight: 500;
	padding: 5px 0;
	position: relative;
}

.header__nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--color-accent);
	transition: width 0.3s ease;
}

.header__nav-link:hover::after {
	width: 100%;
}

.header__nav-link--button {
	background-color: var(--color-accent);
	color: var(--color-dark-blue);
	padding: 8px 20px;
	border-radius: 50px;
	font-weight: 700;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.header__nav-link--button:hover {
	background-color: var(--color-light-gray);
	color: var(--color-dark-blue);
}
.header__nav-link--button::after {
	display: none;
}

.header__burger-btn {
	display: none;
	background: none;
	border: none;
	color: var(--color-light-gray);
	cursor: pointer;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
	.header__nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: var(--color-dark-blue);
		padding: 20px 0;
	}

	.header__nav.active {
		display: block;
	}

	.header__nav-list {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.header__burger-btn {
		display: block;
	}
}

/* MAIN CONTENT (для отступа от хедера) */
.main {
	flex-grow: 1;
	padding-top: 85px; /* Высота хедера + отступ */
}

/* FOOTER STYLES (ETAP 2) */
.footer {
	background-color: #070e17;
	padding: 60px 0;
	border-top: 1px solid var(--color-muted-blue);
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
}

.footer__logo {
	margin-bottom: 15px;
}

.footer__copyright {
	font-size: 14px;
	color: #a9a9a9;
}

.footer__title {
	font-family: var(--font-secondary);
	font-size: 18px;
	margin-bottom: 20px;
	color: var(--color-light-gray);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer__link {
	font-size: 15px;
	color: #a9a9a9;
}

.footer__list--contacts a,
.footer__list--contacts p {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer__list--contacts i {
	color: var(--color-accent);
}

/* HERO SECTION STYLES (ETAP 3) */
.hero {
	position: relative;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	padding-top: 85px; /* Учитываем высоту хедера */
}

.hero__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		135deg,
		var(--color-dark-blue),
		#1a2f47,
		var(--color-dark-blue),
		var(--color-muted-blue)
	);
	background-size: 400% 400%;
	animation: gradientAnimation 15s ease infinite;
	z-index: -1;
}

@keyframes gradientAnimation {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.hero__container {
	position: relative;
	z-index: 1;
}

.hero__content {
	max-width: 800px;
	margin: 0 auto;
}

.hero__title {
	font-family: var(--font-secondary);
	font-size: clamp(2.5rem, 5vw, 4rem); /* Адаптивный размер шрифта */
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 20px;
	color: var(--color-light-gray);
	min-height: 100px; /* Резервируем место под текст, чтобы избежать скачков */
}

/* Эффект курсора для تایپ-анимации */
.hero__title::after {
	content: '|';
	animation: blink 0.7s infinite;
	color: var(--color-accent);
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.hero__subtitle {
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	color: var(--color-light-gray);
	margin-bottom: 40px;
	opacity: 0.9;
}

.hero__cta-button {
	display: inline-block;
	background-color: var(--color-accent);
	color: var(--color-dark-blue);
	padding: 15px 35px;
	border-radius: 50px;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 18px;
	text-transform: uppercase;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 194, 255, 0.2);
}

.hero__cta-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0, 194, 255, 0.4);
	color: var(--color-dark-blue);
}

.hero__scroll-down {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	animation: bounce 2s infinite;
}

.hero__scroll-down a {
	color: var(--color-light-gray);
}

@keyframes bounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translate(-50%, 0);
	}
	40% {
		transform: translate(-50%, -15px);
	}
	60% {
		transform: translate(-50%, -5px);
	}
}

/* SHARED SECTION STYLES */
.section {
	padding: 80px 0;
	overflow: hidden; /* Важно для корректной работы AOS */
}

.section:nth-of-type(odd) {
	background-color: #0a1625; /* Чередуем фон для визуального разделения */
}

.section__title {
	font-size: clamp(2rem, 4vw, 2.5rem);
	margin-bottom: 20px;
	color: var(--color-light-gray);
	position: relative;
	padding-bottom: 10px;
}

.section__title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 4px;
	background-color: var(--color-accent);
}

.section__description {
	font-size: 1.1rem;
	color: #b8c1ec;
	max-width: 700px;
	margin-bottom: 30px;
}

/* ABOUT SECTION STYLES (ETAP 3) */
.about__container {
	display: flex;
	align-items: center;
	gap: 60px;
}

.about__image-wrapper {
	flex: 1;
	min-width: 300px;
}

.about__image {
	width: 100%;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about__content {
	flex: 1.2; /* Делаем текстовый блок чуть больше */
}

.about__features-list {
	margin-top: 40px;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.about__feature-item {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.about__feature-item i {
	color: var(--color-accent);
	flex-shrink: 0; /* Чтобы иконка не сжималась */
	margin-top: 5px;
}

.about__feature-title {
	font-family: var(--font-secondary);
	font-size: 1.2rem;
	margin-bottom: 5px;
	color: var(--color-light-gray);
}

.about__feature-item p {
	color: #b8c1ec;
}

/* Адаптивность для секции "About" */
@media (max-width: 768px) {
	.about__container {
		flex-direction: column;
		text-align: center;
	}

	.section__title::after {
		left: 50%;
		transform: translateX(-50%);
	}
}

/* FEATURES SECTION STYLES (ETAP 3) */
.section__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px;
}

/* Переопределяем стиль для заголовка в центре */
.section__header .section__title::after {
	left: 50%;
	transform: translateX(-50%);
}

.features__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 30px;
}

.features__card {
	background-color: var(--color-muted-blue);
	padding: 35px 25px;
	border-radius: 10px;
	border: 1px solid transparent;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
	text-align: center;
}

.features__card:hover {
	transform: translateY(-8px);
	border-color: var(--color-accent);
	box-shadow: 0 10px 30px rgba(0, 194, 255, 0.1);
}

.features__card-icon {
	margin: 0 auto 20px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: rgba(0, 194, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
}

.features__card-icon i {
	width: 32px;
	height: 32px;
	color: var(--color-accent);
}

.features__card-title {
	font-family: var(--font-secondary);
	font-size: 1.3rem;
	color: var(--color-light-gray);
	margin-bottom: 10px;
}

.features__card-text {
	font-size: 1rem;
	color: #b8c1ec;
	line-height: 1.6;
}
/* HOW IT WORKS SECTION STYLES (ETAP 3) */
.how-it-works {
	background-color: #0a1625; /* Чередуем фон */
}

.how-it-works__steps-container {
	display: flex;
	justify-content: space-between;
	gap: 40px;
	position: relative;
}

/* Соединительные линии для десктопа */
.how-it-works__steps-container::before {
	content: '';
	position: absolute;
	top: 60px; /* На уровне иконок */
	left: 15%;
	right: 15%;
	height: 2px;
	background-image: linear-gradient(
		to right,
		var(--color-muted-blue) 50%,
		transparent 50%
	);
	background-size: 20px 2px;
	background-repeat: repeat-x;
	z-index: 0;
}

.how-it-works__step {
	background-color: var(--color-dark-blue);
	padding: 30px;
	border-radius: 10px;
	text-align: center;
	flex: 1;
	position: relative;
	z-index: 1;
	border: 1px solid var(--color-muted-blue);
}

.how-it-works__step-number {
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--color-accent);
	color: var(--color-dark-blue);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 1.1rem;
	border: 3px solid #0a1625;
}

.how-it-works__step-icon {
	margin-bottom: 20px;
}

.how-it-works__step-icon i {
	width: 48px;
	height: 48px;
	color: var(--color-accent);
}

.how-it-works__step-title {
	font-family: var(--font-secondary);
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: var(--color-light-gray);
}

.how-it-works__step-text {
	color: #b8c1ec;
}

/* Адаптивность */
@media (max-width: 992px) {
	.how-it-works__steps-container::before {
		left: 10%;
		right: 10%;
	}
}

@media (max-width: 768px) {
	.how-it-works__steps-container {
		flex-direction: column;
	}

	/* Убираем горизонтальные линии и рисуем вертикальные */
	.how-it-works__steps-container::before {
		display: none;
	}

	.how-it-works__step:not(:last-child)::after {
		content: '';
		position: absolute;
		bottom: -30px; /* Отступ между блоками */
		left: 50%;
		transform: translateX(-50%);
		width: 2px;
		height: 30px; /* Длина линии */
		background-image: linear-gradient(
			to bottom,
			var(--color-muted-blue) 50%,
			transparent 50%
		);
		background-size: 2px 10px;
	}
}

/* FAQ SECTION STYLES (ETAP 3) */
.faq__accordion {
	max-width: 800px;
	margin: 0 auto;
	border: 1px solid var(--color-muted-blue);
	border-radius: 10px;
	overflow: hidden;
}

.faq__item {
	border-bottom: 1px solid var(--color-muted-blue);
}

.faq__item:last-child {
	border-bottom: none;
}

.faq__question {
	width: 100%;
	background-color: transparent;
	border: none;
	padding: 20px 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	text-align: left;
}

.faq__question span {
	font-family: var(--font-secondary);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--color-light-gray);
	flex-grow: 1;
}

.faq__icon {
	color: var(--color-accent);
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 20px;
}

.faq__question.active .faq__icon {
	transform: rotate(180deg);
}

.faq__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq__answer p {
	padding: 0 25px 20px;
	color: #b8c1ec;
	line-height: 1.7;
}

/* CONTACT SECTION STYLES (ETAP 4) */
.contact {
	background-color: #0a1625;
}

.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 60px;
	background-color: var(--color-dark-blue);
	padding: 50px;
	border-radius: 10px;
	border: 1px solid var(--color-muted-blue);
}

.contact__info h3 {
	font-family: var(--font-secondary);
	font-size: 1.8rem;
	margin-bottom: 15px;
}

.contact__info p {
	color: #b8c1ec;
	margin-bottom: 30px;
}

.contact__info-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.contact__info-list li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.contact__info-list i {
	color: var(--color-accent);
}

.contact__form-group {
	position: relative;
	margin-bottom: 25px;
}

.contact__form-group input[type='text'],
.contact__form-group input[type='email'],
.contact__form-group input[type='tel'] {
	width: 100%;
	background: transparent;
	border: 1px solid var(--color-muted-blue);
	padding: 15px;
	border-radius: 5px;
	color: var(--color-light-gray);
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.contact__form-group input:focus {
	outline: none;
	border-color: var(--color-accent);
}

.contact__form-group label {
	position: absolute;
	top: 15px;
	left: 15px;
	color: #b8c1ec;
	pointer-events: none;
	transition: all 0.3s ease;
}

.contact__form-group input:focus ~ label,
.contact__form-group input:not(:placeholder-shown) ~ label {
	top: -10px;
	left: 10px;
	font-size: 0.85rem;
	background-color: var(--color-dark-blue);
	padding: 0 5px;
	color: var(--color-accent);
}

.contact__form-group--checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 25px;
}

.contact__form-group--checkbox label {
	font-size: 0.9rem;
	color: #b8c1ec;
}

.contact__form-group--checkbox a {
	color: var(--color-accent);
	text-decoration: underline;
}

.contact__submit-btn {
	width: 100%;
	padding: 15px;
	background-color: var(--color-accent);
	color: var(--color-dark-blue);
	border: none;
	border-radius: 5px;
	font-size: 1.2rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact__submit-btn:hover {
	background-color: #33d1ff;
	transform: translateY(-2px);
}

.contact__success-message {
	display: none; /* Скрыто по умолчанию */
	margin-top: 20px;
	padding: 15px;
	background-color: rgba(0, 194, 255, 0.1);
	border: 1px solid var(--color-accent);
	border-radius: 5px;
	color: var(--color-light-gray);
	text-align: center;
	align-items: center;
	gap: 10px;
}

.contact__success-message.visible {
	display: flex; /* Показываем при успехе */
}

@media (max-width: 992px) {
	.contact__wrapper {
		grid-template-columns: 1fr;
	}
}

/* COOKIE POP-UP STYLES (ETAP 5) */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Изначально скрыт под экраном */
	left: 0;
	width: 100%;
	background-color: var(--color-dark-blue);
	border-top: 1px solid var(--color-muted-blue);
	padding: 20px;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
	z-index: 1100;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.visible {
	bottom: 0; /* Показываем плавно */
}

.cookie-popup__content {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.cookie-popup p {
	color: var(--color-light-gray);
	margin: 0;
}

.cookie-popup a {
	color: var(--color-accent);
	text-decoration: underline;
}

.cookie-popup__btn {
	background-color: var(--color-accent);
	color: var(--color-dark-blue);
	border: none;
	padding: 10px 25px;
	border-radius: 50px;
	cursor: pointer;
	font-weight: 700;
	flex-shrink: 0;
	transition: background-color 0.3s ease;
}

.cookie-popup__btn:hover {
	background-color: #33d1ff;
}

/* Адаптивность для попапа */
@media (max-width: 768px) {
	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
	}
}

/* ETAP 5: POLICY PAGES STYLES */
.pages {
	padding: 60px 0;
	background-color: #0a1625;
}

.pages .container {
	max-width: 800px; /* Ограничиваем ширину для лучшей читабельности */
	background-color: var(--color-dark-blue);
	padding: 40px;
	border-radius: 10px;
	border: 1px solid var(--color-muted-blue);
}

.pages h1 {
	font-family: var(--font-secondary);
	font-size: 1.5rem;
	color: var(--color-light-gray);
	margin-bottom: 25px;
	border-bottom: 2px solid var(--color-accent);
	padding-bottom: 15px;
}

.pages h2 {
	font-family: var(--font-secondary);
	font-size: 1.5rem;
	color: var(--color-light-gray);
	margin-top: 40px;
	margin-bottom: 15px;
}

.pages p {
	color: #b8c1ec;
	line-height: 1.8;
	margin-bottom: 20px;
}

.pages ul {
	list-style: disc;
	padding-left: 25px;
	color: #b8c1ec;
}

.pages li {
	margin-bottom: 10px;
}

.pages a {
	color: var(--color-accent);
	text-decoration: underline;
}

.pages a:hover {
	text-decoration: none;
}

.pages strong {
	color: var(--color-light-gray);
	font-weight: 600;
}
