/* GLOBAL STYLES */
:root {
	--bg-main: #0d1b2a;
	--bg-secondary: #1b263b;
	--primary-accent: #00f5d4;
	--text-light: #e0e1dd;
	--text-dark: #0d1b2a;
	--text-muted: #778da9;
	--font-primary: 'Poppins', sans-serif;
	--font-secondary: 'Roboto Mono', monospace;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	background-color: var(--bg-main);
	color: var(--text-light);
	font-size: 16px;
	line-height: 1.7;
	overflow-x: hidden;
}

.container {
	max-width: 1200px;
	width: 90%;
	margin: 0 auto;
}

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

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

ul {
	list-style: none;
}

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

h1,
h2,
h3 {
	line-height: 1.2;
	font-weight: 600;
}

/* HEADER STYLES */
.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(--bg-secondary);
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-accent);
	font-family: var(--font-secondary);
}

.logo__svg {
	stroke: var(--primary-accent);
}

.header__nav {
	display: flex;
}

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

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

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

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

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

/* FOOTER STYLES */
.footer {
	background-color: var(--bg-secondary);
	padding: 60px 0;
	border-top: 1px solid var(--text-muted);
}

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

.footer__column--about {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer__copyright {
	font-size: 0.9rem;
	color: var(--text-muted);
}

.footer__title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 20px;
	color: var(--primary-accent);
	font-family: var(--font-secondary);
}

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

.footer__link {
	color: var(--text-muted);
	font-size: 0.95rem;
}

.footer__link:hover {
	color: var(--primary-accent);
	padding-left: 5px;
}

.footer__list-item--address {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.6;
}

/* MOBILE ADAPTATION */
@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		height: 100vh;
		background-color: var(--bg-secondary);
		flex-direction: column;
		padding: 100px 30px;
		transition: right 0.4s ease-in-out;
		box-shadow: -5px 0px 15px rgba(0, 0, 0, 0.2);
	}

	.header__nav--active {
		right: 0;
	}

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

	.header__nav-link {
		font-size: 1.2rem;
	}

	.header__burger-btn {
		display: block;
		z-index: 1001; /* Поверх навигации */
	}
}

/* HERO SECTION STYLES */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-top: 80px; /* Сдвиг от фиксированного хедера */
	overflow: hidden;
}

.hero__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero__container {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero__content {
	max-width: 800px;
}

.hero__title {
	font-family: var(--font-secondary);
	font-size: clamp(2.5rem, 5vw, 4rem); /* Адаптивный размер шрифта */
	margin-bottom: 20px;
	color: var(--primary-accent);
	line-height: 1.3;
}

/* Курсор для "печатающегося" текста */
.hero__title::after {
	content: '_';
	font-weight: 400;
	animation: blink 1s infinite;
}

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

.hero__subtitle {
	font-size: 1.125rem;
	color: var(--text-muted);
	margin-bottom: 40px;
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: var(--primary-accent);
	color: var(--text-dark);
	font-weight: 600;
	font-size: 1rem;
	padding: 14px 28px;
	border-radius: 50px;
	border: 2px solid var(--primary-accent);
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.btn:hover {
	background-color: transparent;
	color: var(--primary-accent);
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(0, 245, 212, 0.1);
}

.btn i {
	transition: transform 0.3s ease;
}

.btn:hover i {
	transform: translateX(5px);
}

/* UTILITY CLASSES */
.section-header {
	text-align: center;
	margin-bottom: 60px;
}

.section-header__subtitle {
	display: inline-block;
	font-family: var(--font-secondary);
	color: var(--primary-accent);
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

.section-header__title {
	font-size: clamp(2rem, 4vw, 2.5rem);
	margin-bottom: 20px;
}

.section-header__description {
	max-width: 600px;
	margin: 0 auto;
	color: var(--text-muted);
}

/* FEATURES SECTION STYLES */
.features {
	padding: 100px 0;
	background-color: var(--bg-main);
}

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

.features__card {
	background-color: var(--bg-secondary);
	padding: 35px 30px;
	border-radius: 12px;
	border: 1px solid transparent;
	transition: all 0.3s ease;
	text-align: center;
}

.features__card:hover {
	transform: translateY(-10px);
	border-color: var(--primary-accent);
	box-shadow: 0 15px 30px rgba(0, 245, 212, 0.07);
}

.features__card-icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: rgba(0, 245, 212, 0.1);
	margin-bottom: 25px;
}

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

.features__card-title {
	font-size: 1.3rem;
	margin-bottom: 15px;
}

.features__card-text {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.8;
}

/* TECHNOLOGY SECTION STYLES */
.technology {
	padding: 100px 0;
	background-color: var(--bg-secondary);
}

.technology__content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.technology__title {
	text-align: left;
	margin-bottom: 20px;
}

.technology__description {
	color: var(--text-muted);
	margin-bottom: 30px;
}

.technology__list {
	list-style: none;
	margin-bottom: 40px;
}

.technology__list-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin-bottom: 20px;
}

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

.technology__image-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
}

.technology__image {
	width: 100%;
	max-width: 500px;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
	aspect-ratio: 1/1; /* Делаем изображение квадратным */
}

/* Адаптация для мобильных устройств */
@media (max-width: 992px) {
	.technology__content {
		grid-template-columns: 1fr;
	}
	.technology__image-wrapper {
		order: -1; /* Изображение будет сверху на мобильных */
		margin-bottom: 40px;
	}
	.technology__title {
		text-align: center;
	}
}

/* PROCESS SECTION STYLES */
.process {
	padding: 100px 0;
	background-color: var(--bg-main);
}

.process__timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* Вертикальная линия таймлайна */
.process__timeline::after {
	content: '';
	position: absolute;
	width: 2px;
	background-color: var(--bg-secondary);
	top: 20px;
	bottom: 20px;
	left: 20px;
}

.process__item {
	position: relative;
	padding-left: 60px; /* Отступ от линии */
}

.process__dot {
	position: absolute;
	left: 8px; /* Центрирование точки на линии */
	top: 10px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: var(--bg-secondary);
	border: 4px solid var(--primary-accent);
	z-index: 1;
	transition: background-color 0.3s ease;
}

.process__item:hover .process__dot {
	background-color: var(--primary-accent);
}

.process__content {
	background-color: var(--bg-secondary);
	padding: 25px 30px;
	border-radius: 10px;
	position: relative;
}

.process__step-number {
	position: absolute;
	right: 25px;
	top: 15px;
	font-family: var(--font-secondary);
	font-size: 3rem;
	font-weight: 700;
	color: rgba(224, 225, 221, 0.05);
}

.process__step-title {
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: var(--text-light);
}

.process__step-description {
	color: var(--text-muted);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
	.process__timeline::after {
		left: 10px;
	}
	.process__item {
		padding-left: 40px;
	}
	.process__dot {
		left: -2px;
	}
}

/* FAQ SECTION STYLES */
.faq {
	padding: 100px 0;
	background-color: var(--bg-secondary);
}

.faq__list {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.faq__item {
	background-color: var(--bg-main);
	border-radius: 10px;
	border: 1px solid var(--bg-secondary);
	overflow: hidden;
	transition: all 0.3s ease;
}

.faq__item:hover {
	border-color: var(--primary-accent);
}

.faq__question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 25px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: var(--font-primary);
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--text-light);
}

.faq__icon {
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

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

.faq__answer p {
	padding: 0 25px 20px 25px;
	color: var(--text-muted);
	line-height: 1.8;
}

/* Активний стан акордеона */
.faq__item--active .faq__icon {
	transform: rotate(180deg);
}

.faq__item--active .faq__answer {
	max-height: 300px; /* Або більше, якщо текст довгий */
	transition: max-height 0.5s ease-in;
}

/* CONTACT SECTION STYLES */
.contact {
	padding: 100px 0;
	background-color: var(--bg-main);
}

.contact__form-wrapper {
	max-width: 600px;
	margin: 0 auto;
	background-color: var(--bg-secondary);
	padding: 40px;
	border-radius: 12px;
}

.contact__form {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.form__group {
	position: relative;
}

.form__input {
	width: 100%;
	padding: 14px 16px;
	background-color: var(--bg-main);
	border: 1px solid var(--text-muted);
	border-radius: 8px;
	color: var(--text-light);
	font-size: 1rem;
	font-family: var(--font-primary);
	transition: border-color 0.3s ease;
}

.form__input:focus {
	outline: none;
	border-color: var(--primary-accent);
}

.form__label {
	position: absolute;
	top: 15px;
	left: 16px;
	color: var(--text-muted);
	pointer-events: none;
	transition: all 0.3s ease;
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
	top: -10px;
	left: 12px;
	font-size: 0.8rem;
	background-color: var(--bg-secondary);
	padding: 0 5px;
	color: var(--primary-accent);
}

.form__group--checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
}

.form__checkbox {
	width: 18px;
	height: 18px;
}

.form__checkbox-label {
	font-size: 0.9rem;
	color: var(--text-muted);
}

.form__checkbox-label a {
	color: var(--primary-accent);
	text-decoration: underline;
}

.contact__btn {
	width: 100%;
	justify-content: center;
	padding: 16px;
	font-size: 1.1rem;
}

.contact__success-message {
	display: none; /* Изначально скрыто */
	text-align: center;
	padding: 40px;
}

.contact__success-message i {
	color: var(--primary-accent);
	width: 60px;
	height: 60px;
	margin-bottom: 20px;
}

.contact__success-message h3 {
	font-size: 1.8rem;
	margin-bottom: 10px;
}

.contact__success-message p {
	color: var(--text-muted);
}

/* COOKIE POP-UP STYLES */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Изначально скрыт */
	left: 0;
	width: 100%;
	background-color: var(--bg-secondary);
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
	padding: 20px;
	z-index: 1100;
	transition: bottom 0.5s ease-in-out;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

.cookie-popup--show {
	bottom: 0; /* Показать */
}

.cookie-popup__text {
	color: var(--text-muted);
	font-size: 0.9rem;
	text-align: center;
}

.cookie-popup__link {
	color: var(--primary-accent);
	text-decoration: underline;
}

.cookie-popup__btn {
	padding: 10px 25px;
	font-size: 0.9rem;
	flex-shrink: 0; /* Не сжиматься */
}

@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
	}
}

/* POLICY PAGES STYLES */
.pages {
	padding: 120px 0 100px 0;
}

.pages .container {
	max-width: 800px;
}

.pages h1 {
	font-size: clamp(1.5rem, 5vw, 3rem);
	color: var(--primary-accent);
	margin-bottom: 30px;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 40px;
	margin-bottom: 20px;
}

.pages p {
	color: var(--text-muted);
	margin-bottom: 20px;
	line-height: 1.8;
}

.pages ul {
	list-style: disc;
	padding-left: 25px;
	margin-bottom: 20px;
	color: var(--text-muted);
}

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

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

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