/* GLOBSL STYLES */
:root {
	--primary-bg: #0d1b2a;
	--secondary-bg: #1b263b;
	--accent-color: #00f5d4;
	--text-light: #f0f1f3;
	--text-dark: #e0e1dd;
	--font-primary: 'Poppins', sans-serif;
	--font-secondary: 'Roboto', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-primary);
	color: var(--text-light);
	font-weight: 700;
}

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

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

ul {
	list-style: none;
}

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

/* HEADER */
.header {
	background-color: rgba(13, 27, 42, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--secondary-bg);
	padding: 15px 0;
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 1000;
}

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

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

.logo:hover {
	color: var(--text-light);
}

.logo__svg path {
	transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.logo:hover .logo__svg path:first-child {
	transform: rotate(90deg);
	transform-origin: center;
}

.logo:hover .logo__svg path:last-child {
	transform: scale(1.1);
	transform-origin: center;
}

.logo__text {
	line-height: 1;
}

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

.header__nav-link {
	font-family: var(--font-secondary);
	font-size: 16px;
	font-weight: 500;
	color: var(--text-dark);
	padding: 5px 0;
	position: relative;
}

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

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

.header__nav-link--button {
	background-color: var(--accent-color);
	color: var(--primary-bg);
	padding: 10px 20px;
	border-radius: 5px;
	font-weight: 700;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.header__nav-link--button:hover {
	background-color: var(--text-light);
	color: var(--primary-bg);
	transform: translateY(-2px);
}
.header__nav-link--button::after {
	display: none;
}

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

/* FOOTER */
.footer {
	background-color: var(--secondary-bg);
	padding: 60px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer__column--logo {
	grid-column: span 1;
}

.footer__copy {
	margin-top: 15px;
	font-size: 14px;
	color: rgba(224, 225, 221, 0.6);
}

.footer__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-light);
	margin-bottom: 20px;
}

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

.footer__link {
	font-size: 15px;
	color: var(--text-dark);
}

.footer__address {
	font-style: normal;
	line-height: 1.7;
	color: var(--text-dark);
}

/* MOBILE ADAPTIVE */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
		gap: 50px;
	}
}

@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: -900px;
		width: 100%;
		height: 100vh;
		background-color: var(--secondary-bg);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: right 0.4s ease-in-out;
		display: flex;
	}
	.header__nav.header__nav--active {
		top: 0;
	}

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

	.header__nav-link {
		font-size: 20px;
	}

	.header__burger {
		display: block;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--logo {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
}

/* SHARED COMPONENTS */
.button {
	display: inline-block;
	background-color: var(--accent-color);
	color: var(--primary-bg);
	padding: 15px 35px;
	border-radius: 5px;
	font-weight: 700;
	font-family: var(--font-primary);
	text-align: center;
	border: 2px solid transparent;
	transition: all 0.3s ease;
	cursor: pointer;
}

.button:hover {
	background-color: transparent;
	border-color: var(--accent-color);
	color: var(--accent-color);
	transform: translateY(-3px);
}

/* HERO SECTION */
.hero {
	position: relative;
	height: 100vh;
	min-height: 700px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	padding: 60px 0;
}

.hero__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		135deg,
		var(--primary-bg) 0%,
		#4158d0 50%,
		var(--secondary-bg) 100%
	);
	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: 2;
}

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

.hero__title {
	font-size: 56px;
	line-height: 1.2;
	margin-bottom: 20px;
	font-weight: 700;
	text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
	font-size: 20px;
	line-height: 1.6;
	margin-bottom: 40px;
	color: var(--text-dark);
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
}

/* ADAPTIVE FOR HERO */
@media (max-width: 992px) {
	.hero__title {
		font-size: 48px;
	}
	.hero__subtitle {
		font-size: 18px;
	}
}

@media (max-width: 768px) {
	.hero {
		min-height: 600px;
	}
	.hero__title {
		font-size: 36px;
	}
	.hero__subtitle {
		font-size: 16px;
	}
	.button {
		padding: 12px 28px;
	}
}

/* SHARED SECTION STYLES */
.section {
	padding: 80px 0;
}

.section:nth-of-type(even) {
	/* Нечетные секции в main */
	background-color: var(--secondary-bg);
}

.section__header {
	text-align: center;
	max-width: 750px;
	margin: 0 auto 60px;
}

.section__title {
	font-size: 36px;
	margin-bottom: 15px;
}

.section__subtitle {
	font-size: 18px;
	color: var(--text-dark);
	line-height: 1.7;
}

/* ABOUT SECTION */
.about__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.about__card {
	background-color: var(--primary-bg);
	padding: 35px 30px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about__card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 30px rgba(0, 245, 212, 0.1);
}

.about__card-icon {
	margin: 0 auto 25px;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--secondary-bg), var(--primary-bg));
	border-radius: 50%;
	color: var(--accent-color);
	border: 1px solid var(--accent-color);
}

.about__card-icon i {
	width: 32px;
	height: 32px;
}

.about__card-title {
	font-size: 22px;
	margin-bottom: 15px;
	color: var(--text-light);
}

.about__card-text {
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-dark);
}

/* ADAPTIVE FOR SECTIONS */
@media (max-width: 992px) {
	.about__grid {
		grid-template-columns: 1fr;
		max-width: 500px;
		margin: 0 auto;
	}
}

@media (max-width: 768px) {
	.section {
		padding: 60px 0;
	}
	.section__header {
		margin-bottom: 40px;
	}
	.section__title {
		font-size: 30px;
	}
	.section__subtitle {
		font-size: 16px;
	}
}

/* FEATURES SECTION */
.features__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
	gap: 60px;
}

.features__image-wrapper {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
	border: 1px solid var(--secondary-bg);
}

.features__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.features__content .section__title,
.features__content .section__subtitle {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.features__content .section__subtitle {
	margin-bottom: 30px;
}

.features__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 40px;
}

.features__list-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	font-size: 17px;
}

.features__list-icon {
	flex-shrink: 0;
	color: var(--accent-color);
	margin-top: 3px;
	width: 22px;
	height: 22px;
}

/* ADAPTIVE FOR FEATURES */
@media (max-width: 992px) {
	.features__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.features__image-wrapper {
		order: -1; /* Image will be on top on mobile */
		max-width: 500px;
		margin: 0 auto;
	}
	.features__content {
		text-align: center;
	}
	.features__content .section__title,
	.features__content .section__subtitle {
		text-align: center;
	}
	.features__list-item {
		text-align: left;
	}
}

/* STEPS SECTION */
.steps {
	position: relative;
	overflow: hidden;
}

.steps__timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	padding: 20px 0;
}

.steps__timeline::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	height: 100%;
	background-color: white;
}

.steps__item {
	position: relative;
	width: 50%;
	padding: 10px 40px;
	margin-bottom: 40px;
}

.steps__item:nth-child(odd) {
	left: 0;
}

.steps__item:nth-child(even) {
	left: 50%;
}

.steps__item::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	top: 28px;
	background-color: var(--primary-bg);
	border: 3px solid var(--accent-color);
	border-radius: 50%;
	z-index: 1;
}

.steps__item:nth-child(odd)::after {
	right: -10px;
}

.steps__item:nth-child(even)::after {
	left: -10px;
}

.steps__content {
	padding: 20px 30px;
	background-color: var(--secondary-bg);
	border-radius: 8px;
	position: relative;
}

.steps__number {
	position: absolute;
	top: -20px;
	font-size: 50px;
	font-weight: 700;
	font-family: var(--font-primary);
	color: rgba(255, 255, 255, 0.1);
	z-index: 0;
}

.steps__item:nth-child(odd) .steps__number {
	right: 20px;
}

.steps__item:nth-child(even) .steps__number {
	left: 20px;
}

.steps__title {
	font-size: 22px;
	margin-bottom: 10px;
	position: relative;
	z-index: 1;
}

.steps__text {
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-dark);
	position: relative;
	z-index: 1;
}

.steps__cta {
	text-align: center;
	margin-top: 20px;
}

/* ADAPTIVE FOR STEPS */
@media (max-width: 768px) {
	.steps__timeline::before {
		left: 20px;
	}

	.steps__item {
		width: 100%;
		padding-left: 60px;
		padding-right: 15px;
	}

	.steps__item:nth-child(even) {
		left: 0;
	}

	.steps__item::after {
		left: 10px;
	}
}

/* FAQ SECTION */
.faq__container {
	max-width: 800px;
	margin: 0 auto;
	border: 1px solid var(--secondary-bg);
	border-radius: 8px;
	overflow: hidden;
}

.faq__item {
	border-bottom: 1px solid var(--secondary-bg);
}
.faq__item:last-child {
	border-bottom: none;
}

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

.faq__question:hover {
	background-color: var(--secondary-bg);
}

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

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

.faq__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out;
	background-color: var(--primary-bg);
}

.faq__answer p {
	padding: 0 25px 20px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--text-dark);
}

@media (max-width: 768px) {
	.faq__question {
		font-size: 16px;
		padding: 15px 20px;
	}
}

/* CONTACT SECTION */
.contact__container {
	max-width: 600px;
	margin: 0 auto;
	background-color: var(--secondary-bg);
	padding: 40px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.contact__form-input {
	width: 100%;
	padding: 15px;
	background-color: var(--primary-bg);
	border: 1px solid var(--secondary-bg);
	border-radius: 5px;
	color: var(--text-light);
	font-size: 16px;
	font-family: var(--font-secondary);
	transition: border-color 0.3s ease;
}

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

.contact__form-label {
	position: absolute;
	top: 15px;
	left: 15px;
	color: var(--text-dark);
	font-size: 16px;
	pointer-events: none;
	transition: all 0.3s ease;
}

.contact__form-input:focus ~ .contact__form-label,
.contact__form-input:not(:placeholder-shown) ~ .contact__form-label {
	top: -10px;
	left: 10px;
	font-size: 12px;
	color: var(--accent-color);
	background-color: var(--secondary-bg);
	padding: 0 5px;
}

/* Checkbox styles */
.contact__form-group--checkbox {
	display: flex;
	align-items: flex-start;
	margin-bottom: 30px;
}

.contact__form-checkbox {
	flex-shrink: 0;
	appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid var(--accent-color);
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	top: 2px;
	transition: background-color 0.3s ease;
}

.contact__form-checkbox:checked {
	background-color: var(--accent-color);
}

.contact__form-checkbox::before {
	content: '✔';
	font-size: 14px;
	color: var(--primary-bg);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0.2s ease;
}

.contact__form-checkbox:checked::before {
	transform: translate(-50%, -50%) scale(1);
}

.contact__form-checkbox-label {
	margin-left: 12px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--text-dark);
}

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

.contact__form-button {
	width: 100%;
}

.form-message {
	text-align: center;
	padding: 15px;
	margin-top: 20px;
	border-radius: 5px;
	background-color: #00f5d42a;
	color: var(--accent-color);
	border: 1px solid var(--accent-color);
	display: none; /* Initially hidden */
}

.form-message.form-message--visible {
	display: block;
}

/* COOKIE POP-UP */
.cookie-popup {
	position: fixed;
	bottom: -100%;
	left: 0;
	width: 100%;
	background-color: var(--secondary-bg);
	border-top: 1px solid var(--accent-color);
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
	padding: 20px;
	z-index: 2000;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.cookie-popup--visible {
	bottom: 0;
}

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

.cookie-popup__text {
	color: var(--text-dark);
	font-size: 15px;
}

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

.cookie-popup__button {
	padding: 10px 25px;
	flex-shrink: 0;
}

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

/* POLICY PAGES STYLES */
.pages {
	padding: 60px 0;
	min-height: 60vh;
}

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

.pages h1,
.pages h2 {
	font-family: var(--font-primary);
	color: var(--text-light);
	margin-bottom: 20px;
}

.pages h1 {
	font-size: 1.5rem;
	border-bottom: 1px solid var(--secondary-bg);
	padding-bottom: 20px;
	margin-bottom: 30px;
}

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

.pages p {
	font-family: var(--font-secondary);
	font-size: 16px;
	line-height: 1.8;
	color: var(--text-dark);
	margin-bottom: 20px;
}

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

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

.pages ul {
	list-style: disc;
	padding-left: 25px;
	margin-bottom: 20px;
}

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