/* =========== GLOBAL STYLES & SETUP =========== */
:root {
	--color-bg: #0d1b2a;
	--color-text: #e0e1dd;
	--color-text-secondary: #778da9;
	--color-primary: #00a6fb;
	--color-surface: #1b263b;

	--font-primary: 'Inter', sans-serif;
	--font-secondary: 'Exo 2', sans-serif;

	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

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

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

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

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

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

/* =========== LOGO =========== */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 24px;
}

.logo__svg {
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo:hover .logo__svg {
	transform: rotate(-15deg) scale(1.1);
}

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

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: var(--header-height);
}

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

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

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

.header__nav-link:hover {
	color: var(--color-text);
}

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

.header__nav-link--cta {
	background-color: var(--color-primary);
	color: var(--color-bg);
	padding: 8px 20px;
	border-radius: 50px;
}

.header__nav-link--cta:hover {
	color: var(--color-bg);
	background-color: #33bfff;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 166, 251, 0.4);
}
.header__nav-link--cta:hover::after {
	width: 0;
}

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

/* Header Mobile */
@media (max-width: 992px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		right: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-bg);
		transition: right 0.4s ease-in-out;
		padding: 40px;
	}

	.header__nav.is-active {
		right: 0;
	}

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

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

	.header__burger {
		display: block;
	}

	.header__burger .lucide-x {
		display: none;
	}
	.header__burger.is-active .lucide-menu {
		display: none;
	}
	.header__burger.is-active .lucide-x {
		display: block;
	}
}

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

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

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

.footer__logo {
	margin-bottom: 20px;
}

.footer__copyright {
	font-size: 14px;
	color: var(--color-text-secondary);
}

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

.footer__list li {
	margin-bottom: 12px;
}

.footer__list--contact li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer__icon {
	width: 18px;
	height: 18px;
	color: var(--color-primary);
}

.footer__link,
.footer__text {
	font-size: 14px;
	color: var(--color-text-secondary);
	transition: color 0.3s ease, padding-left 0.3s ease;
}

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

@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__list--contact li {
		justify-content: center;
	}
	.logo {
		justify-content: center;
	}
}

/* =========== BUTTONS =========== */
.btn {
	display: inline-block;
	padding: 14px 32px;
	font-family: var(--font-secondary);
	font-size: 16px;
	font-weight: 700;
	border-radius: 50px;
	border: 2px solid transparent;
	cursor: pointer;
	text-align: center;
	transition: all 0.3s ease;
}

.btn--primary {
	background-color: var(--color-primary);
	color: var(--color-bg);
}

.btn--primary:hover {
	background-color: transparent;
	border-color: var(--color-primary);
	color: var(--color-primary);
	transform: translateY(-3px);
	box-shadow: 0 5px 20px rgba(0, 166, 251, 0.3);
}

/* =========== HERO SECTION =========== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: var(--header-height);
	overflow: hidden; /* Скрывает частицы, выходящие за пределы */
}

.hero__container {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 1000px;
}

.hero__title {
	font-size: 56px;
	margin-bottom: 20px;
	letter-spacing: -1px;
}

.hero__title-line {
	display: block;
}

.hero__title-line--typed::after {
	content: '|';
	animation: blink 0.7s infinite;
	color: var(--color-primary);
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

.hero__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	max-width: 650px;
	margin: 0 auto 40px;
}

/* Particles Animation */
.hero__particles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero__particle {
	position: absolute;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		var(--color-primary) 0%,
		rgba(0, 166, 251, 0) 70%
	);
	opacity: 0.15;
	animation: float 20s infinite ease-in-out;
}

.hero__particle--1 {
	width: 300px;
	height: 300px;
	top: 10%;
	left: 5%;
	animation-duration: 25s;
}
.hero__particle--2 {
	width: 200px;
	height: 200px;
	top: 20%;
	right: 10%;
	animation-duration: 22s;
	animation-delay: -5s;
}
.hero__particle--3 {
	width: 150px;
	height: 150px;
	bottom: 15%;
	left: 20%;
	animation-duration: 18s;
	animation-delay: -10s;
}
.hero__particle--4 {
	width: 250px;
	height: 250px;
	bottom: 5%;
	right: 15%;
	animation-duration: 28s;
	animation-delay: -15s;
}

@keyframes float {
	0% {
		transform: translateY(0px) translateX(0px) rotate(0deg);
	}
	25% {
		transform: translateY(20px) translateX(-30px) rotate(45deg);
	}
	50% {
		transform: translateY(-20px) translateX(20px) rotate(90deg);
	}
	75% {
		transform: translateY(30px) translateX(10px) rotate(135deg);
	}
	100% {
		transform: translateY(0px) translateX(0px) rotate(180deg);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.hero__title {
		font-size: 42px;
	}
	.hero__subtitle {
		font-size: 16px;
	}
	.hero__particle--1 {
		width: 200px;
		height: 200px;
	}
	.hero__particle--2 {
		width: 150px;
		height: 150px;
	}
	.hero__particle--3 {
		display: none;
	}
	.hero__particle--4 {
		width: 180px;
		height: 180px;
	}
}

/* =========== SECTION STYLES (REUSABLE) =========== */
.section {
    padding: 100px 0;
}

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

.section__subtitle {
    display: inline-block;
    margin-bottom: 12px;
    font-family: var(--font-secondary);
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section__title {
    font-size: 42px;
    margin-bottom: 16px;
}

.section__description {
    font-size: 18px;
    color: var(--color-text-secondary);
}

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

.platform-card {
    background-color: var(--color-surface);
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 166, 251, 0.1);
}

.platform-card__icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background-color: rgba(0, 166, 251, 0.1);
    border-radius: 50%;
    margin-bottom: 24px;
}

.platform-card__icon i {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.platform-card__title {
    font-size: 22px;
    margin-bottom: 12px;
}

.platform-card__text {
    font-size: 16px;
    color: var(--color-text-secondary);
}


/* =========== ANIMATIONS =========== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========== RESPONSIVE for PLATFORM SECTION =========== */
@media (max-width: 992px) {
    .platform__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
    .section__title {
        font-size: 36px;
    }
    .section__description {
        font-size: 16px;
    }
}

/* =========== FEATURES SECTION =========== */
.features__wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

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

.features__item-img {
    background-color: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    /* Aspect ratio for placeholder */
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

.features__item-img:hover {
    transform: scale(1.03);
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(0, 166, 251, 0.15);
}

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

.features__item-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.features__item-text {
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.features__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.features__list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.features__list-item i {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    margin-top: 2px;
}

/* Reversed layout modifier */
.features__item--reversed .features__item-img {
    order: 2;
}
.features__item--reversed .features__item-content {
    order: 1;
}

/* Responsive for Features Section */
@media (max-width: 992px) {
    .features__item {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .features__item--reversed .features__item-img,
    .features__item--reversed .features__item-content {
        order: initial; /* Reset order for mobile */
    }
    .features__item-title {
        font-size: 28px;
    }
}

/* =========== HOW IT WORKS SECTION =========== */
.how-it-works {
    background-color: var(--color-surface);
}

.how-it-works__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.how-it-works__step {
    text-align: center;
    padding: 20px;
    z-index: 2;
}

.how-it-works__step-icon-wrapper {
    position: relative;
    margin: 0 auto 30px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-it-works__step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-bg);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.how-it-works__step:hover .how-it-works__step-icon {
    transform: scale(1.1) rotate(10deg);
    background-color: var(--color-primary);
}

.how-it-works__step:hover .how-it-works__step-icon i {
    color: var(--color-bg);
}

.how-it-works__step-icon i {
    width: 36px;
    height: 36px;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.how-it-works__step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--color-text);
    color: var(--color-bg);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--color-surface);
}

.how-it-works__step-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.how-it-works__step-text {
    color: var(--color-text-secondary);
}

/* Dashed line connector */
.how-it-works__steps::before {
    content: '';
    position: absolute;
    top: 50px; /* Aligns with the center of the icons */
    left: 15%;
    right: 15%;
    height: 2px;
    background-image: linear-gradient(to right, var(--color-text-secondary) 50%, transparent 50%);
    background-size: 20px 2px;
    background-repeat: repeat-x;
    z-index: 1;
}

/* Responsive for How It Works Section */
@media (max-width: 992px) {
    .how-it-works__steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .how-it-works__steps::before {
        display: none; /* Hide horizontal line on mobile */
    }

    /* Create vertical line instead */
    .how-it-works__step:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -35px; /* Position between cards */
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 40px;
        background-image: linear-gradient(to bottom, var(--color-text-secondary) 50%, transparent 50%);
        background-size: 2px 20px;
    }
}

/* =========== FAQ SECTION =========== */
.faq__container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq__item {
    background-color: var(--color-surface);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.faq__item.is-active {
    border-color: var(--color-primary);
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--color-text);
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

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

.faq__item.is-active .faq__icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq__answer {
    display: grid;
    grid-template-rows: 0fr; /* Initially collapsed */
    transition: grid-template-rows 0.4s ease-in-out;
}

.faq__answer > p {
    overflow: hidden;
}

.faq__item.is-active .faq__answer {
    grid-template-rows: 1fr; /* Expanded */
}

.faq__answer p {
    padding: 0 24px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* =========== CONTACT SECTION =========== */
.contact {
    padding-bottom: 120px;
}
.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact__info .section__description {
    margin-bottom: 30px;
}

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

.contact__detail-item {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: var(--color-text-secondary);
    font-size: 16px;
    transition: color 0.3s ease;
}

.contact__detail-item:hover {
    color: var(--color-primary);
}

.contact__detail-item i {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
}

/* Form Styles */
.contact__form-container {
    background-color: var(--color-surface);
    padding: 40px;
    border-radius: 16px;
}

.form__group {
    position: relative;
    margin-bottom: 24px;
}

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

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 166, 251, 0.2);
}

.form__label {
    position: absolute;
    top: 14px;
    left: 16px;
    color: var(--color-text-secondary);
    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: 12px;
    color: var(--color-primary);
    background-color: var(--color-surface);
    padding: 0 4px;
}

/* Custom Checkbox */
.form__group--checkbox {
    margin-top: 16px;
}

.form__checkbox-input {
    display: none; /* Hide default checkbox */
}

.form__checkbox-label {
    display: inline-block;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-secondary);
}

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

.form__checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-text-secondary);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}

.form__checkbox-input:checked + .form__checkbox-label .form__checkbox-custom {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form__checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--color-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s;
}

.form__checkbox-input:checked + .form__checkbox-label .form__checkbox-custom::after {
    opacity: 1;
}

.contact__form-btn {
    width: 100%;
    margin-top: 24px;
}

/* Success Message */
.form__success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 40px;
}

.form__success-message i {
    width: 60px;
    height: 60px;
    color: #28a745; /* Success green */
    margin-bottom: 20px;
}

.form__success-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Responsive for Contact Section */
@media (max-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .contact__info {
        text-align: center;
    }
    .contact__details {
        justify-content: center;
        flex-direction: row;
        gap: 30px;
    }
}
@media (max-width: 576px) {
    .contact__details {
        flex-direction: column;
        gap: 15px;
    }
    .contact__form-container {
        padding: 25px;
    }
}

/* =========== COOKIE POPUP =========== */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    padding: 20px;
    z-index: 200;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    transition: bottom 0.5s ease-in-out;
    border-top: 1px solid var(--color-text-secondary);
}

.cookie-popup.is-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(--color-text-secondary);
}

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

.cookie-popup__btn {
    padding: 10px 25px;
    white-space: nowrap; /* Prevent button text from wrapping */
}

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


/* =========== STYLES FOR POLICY PAGES (privacy.html, etc.) =========== */
.pages {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: 80vh;
}

.pages h1 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--color-primary);
}

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

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

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

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

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

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