:root {
	/* Brand Colors */
	--primary: #fe914d;
	--secondary: #fedd59;
	--gradient: linear-gradient(135deg, var(--primary), var(--secondary));

	/* Light Theme Colors */
	--bg-color: #f8fafc;
	--text-color: #1e293b;
	--text-muted: #64748b;

	/* Glassmorphism Variables */
	--glass-bg: rgba(255, 255, 255, 0.4);
	--glass-border: rgba(255, 255, 255, 0.6);
	--glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
	--glass-input-bg: rgba(255, 255, 255, 0.5);
	--glass-hover: rgba(255, 255, 255, 0.7);
}

/* Dark Theme */
[data-theme='dark'] {
	--bg-color: #0f172a;
	--text-color: #f1f5f9;
	--text-muted: #94a3b8;

	--glass-bg: rgba(15, 23, 42, 0.5);
	--glass-border: rgba(255, 255, 255, 0.08);
	--glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
	--glass-input-bg: rgba(255, 255, 255, 0.05);
	--glass-hover: rgba(30, 41, 59, 0.7);
}

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

body {
	font-family: 'Arial', sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--bg-color);
	overflow-x: hidden;
	transition:
		background-color 0.5s ease,
		color 0.5s ease;
}
html,
body {
	width: 100%;
	position: relative;
	-webkit-overflow-scrolling: touch;
}

/* ========================================= */
/* Настройки плавного скроллинга Lenis       */
/* ========================================= */
html.lenis,
html.lenis body {
	height: auto;
}
.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}
.lenis.lenis-stopped {
	overflow: hidden;
}
.lenis.lenis-scrolling iframe {
	pointer-events: none;
}

/* Background animated blobs */
/* ========================================= */
/* НОВЫЙ ФОН: Architectural Grid & Beams     */
/* ========================================= */
/* .bg-elements {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	background-color: var(--bg-color);
	transition: background-color 0.5s ease;
} */

/* ========================================= */
/* НОВЫЙ ФОН: Aurora Background              */
/* ========================================= */
.aurora-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: -1;
	background-color: var(--bg-color);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Радиальная маска для затемнения по краям (опционально) */
.aurora-bg {
	mask-image: radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%);
	-webkit-mask-image: radial-gradient(
		ellipse at 100% 0%,
		black 10%,
		transparent 70%
	);
}

.aurora-gradient {
	position: absolute;
	inset: -10px;
	opacity: 0.4; /* Настраиваем яркость */
	pointer-events: none;
	will-change: transform;

	/* Градиент полос и градиент Авроры */
	background-image:
		repeating-linear-gradient(
			100deg,
			var(--bg-color) 0%,
			var(--bg-color) 7%,
			transparent 10%,
			transparent 12%,
			var(--bg-color) 16%
		),
		repeating-linear-gradient(
			100deg,
			#3b82f6 10%,
			#a5b4fc 15%,
			#93c5fd 20%,
			#ddd6fe 25%,
			#60a5fa 30%
		);

	background-size: 200% 100%;
	background-attachment: fixed;
	mix-blend-mode: difference;
	animation: aurora-anim 60s linear infinite;
}

/* Инвертируем цвета для светлой темы */
[data-theme='light'] .aurora-gradient {
	filter: blur(10px) invert(1);
}

[data-theme='dark'] .aurora-gradient {
	filter: blur(10px);
}

@keyframes aurora-anim {
	from {
		background-position:
			50% 50%,
			50% 50%;
	}
	to {
		background-position:
			350% 50%,
			350% 50%;
	}
}

/* Строгая миллиметровая сетка */
.bg-grid {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image:
		linear-gradient(rgba(150, 150, 150, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(150, 150, 150, 0.07) 1px, transparent 1px);
	background-size: 40px 40px;
	z-index: 1;
}

/* Элегантные скошенные лучи света */
.light-beam {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	z-index: 0;
	opacity: 0.4;
	animation: pulseLight 12s ease-in-out infinite alternate;
}

/* Оранжевый луч слева-сверху */
.light-beam-1 {
	top: -30%;
	left: -10%;
	width: 80vw;
	height: 40vw;
	background: radial-gradient(
		ellipse at center,
		var(--primary) 0%,
		transparent 70%
	);
	transform: rotate(-30deg);
}

/* Желтый луч справа-снизу */
.light-beam-2 {
	bottom: -30%;
	right: -10%;
	width: 90vw;
	height: 50vw;
	background: radial-gradient(
		ellipse at center,
		var(--secondary) 0%,
		transparent 70%
	);
	transform: rotate(-25deg);
	animation-delay: -6s;
}

/* В темной теме лучи чуть ярче и сетка тоньше */
[data-theme='dark'] .bg-grid {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}
[data-theme='dark'] .light-beam {
	opacity: 0.15;
}

@keyframes pulseLight {
	0% {
		transform: rotate(-30deg) scale(1) translate(0, 0);
		opacity: 0.3;
	}
	100% {
		transform: rotate(-25deg) scale(1.1) translate(5%, 5%);
		opacity: 0.5;
	}
}
.text-gradient {
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
/* Glassmorphism Core */
.glass-panel {
	background: var(--glass-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--glass-border);
	box-shadow: var(--glass-shadow);
	transition:
		background 0.3s ease,
		transform 0.3s ease;
}

/* Icons styling (Gradient text for icons) */
.services__card-icon i,
.advantages__icon i,
.step__icon i,
.stats__icon,
.contact__icon i,
.faq__toggle i {
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}
.wrap {
	overflow-x: hidden;
	width: 100%;
	position: relative;
}
/* Header */
.header {
	padding: 1rem 0;
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	border-top: none;
}
.header__container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 2rem;
}
.header__logo {
	max-width: 150px;
	z-index: 1000;
}
.header__logo img {
	width: 100%;
	height: auto;
}
/* Белый логотип для темной темы */
.logo-dark,
[data-theme='dark'] .logo-light {
	display: none;
}
[data-theme='dark'] .logo-dark {
	display: block;
}

.header__nav {
	display: flex;
	list-style: none;
	gap: 2rem;
}
.header__nav-link {
	color: var(--text-color);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
}
.header__nav-link:hover {
	color: var(--primary);
}

.theme-controls {
	display: flex;
	align-items: center;
	gap: 15px;
}

/* Theme Button */
.glass-button {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--text-color);
	font-size: 1.2rem;
	transition: 0.3s;
}
.glass-button:hover {
	background: var(--glass-hover);
}
[data-theme='dark'] .icon-sun {
	display: none;
}
[data-theme='light'] .icon-moon {
	display: none;
}

.header__burger {
	display: none;
	flex-direction: column;
	justify-content: space-between; /* Распределяем линии равномерно */
	width: 30px;
	height: 20px; /* Фиксированная высота для ровного крестика */
	cursor: pointer;
	z-index: 1001;
}

.header__burger-line {
	width: 100%;
	height: 2px; /* Делаем линии чуть тоньше для элегантности */
	background: var(--text-color);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Плавная анимация */
	border-radius: 2px;
	margin: 0;
}

/* Формируем идеальный ровный крестик при открытии */
.header__burger.active .header__burger-line:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}
.header__burger.active .header__burger-line:nth-child(2) {
	opacity: 0;
	transform: scale(0); /* Красиво исчезает центральная линия */
}
.header__burger.active .header__burger-line:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

/* Sections Structure */
.section-title {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 3rem;
	color: var(--text-color);
}
.text-left {
	text-align: left;
}
.services,
.about,
.advantages,
.faq,
.contact,
.how-it-works,
.stats {
	padding: 80px 0;
}
.services__container,
.about__container,
.advantages__container,
.faq__container,
.contact__container,
.how-it-works__container,
.stats__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* Hero */
.hero {
	display: flex;
	align-items: center;
	min-height: 100vh;
	padding: 120px 0 60px;
	overflow: hidden;
}
.hero__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

/* Левая часть Hero (Текст) */
.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 30px;
	font-weight: bold;
	font-size: 0.9rem;
	margin-bottom: 2rem;
	color: var(--text-color);
}
.hero__title {
	font-size: 3.8rem;
	line-height: 1.1;
	margin-bottom: 1.5rem;
	color: var(--text-color);
}
.hero__subtitle {
	font-size: 1.2rem;
	margin-bottom: 2.5rem;
	color: var(--text-muted);
	max-width: 500px;
}
.hero__buttons {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.hero__button {
	display: inline-block;
	background: var(--gradient);
	color: #fff;
	padding: 15px 40px;
	text-decoration: none;
	border-radius: 30px;
	font-weight: bold;
	border: none;
	cursor: pointer;
	transition: 0.3s;
	box-shadow: 0 4px 15px rgba(254, 145, 77, 0.4);
	text-align: center;
}
.hero__button:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(254, 145, 77, 0.6);
}
.hero__button--outline {
	background: transparent;
	color: var(--text-color);
	border: 2px solid var(--glass-border);
	box-shadow: none;
}
.hero__button--outline:hover {
	background: var(--glass-bg);
	box-shadow: none;
}

/* Правая часть Hero (Парящие карточки) */
.hero__visual {
	position: relative;
	height: 500px;
	display: flex;
	justify-content: center;
	align-items: center;
	perspective: 1000px;
}
.hero__card {
	position: absolute;
	border-radius: 20px;
	padding: 1.5rem;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Карточка 1: Баланс */
.hero__card--1 {
	width: 300px;
	top: 10%;
	right: 10%;
	z-index: 3;
	animation: floatObj 6s ease-in-out infinite;
}
.card-label {
	font-size: 0.9rem;
	color: var(--text-muted);
	margin-bottom: 5px;
}
.card-balance {
	font-size: 2rem;
	color: var(--text-color);
	margin-bottom: 15px;
}
.mock-chart {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	height: 50px;
}
.mock-bar {
	flex: 1;
	background: var(--gradient);
	border-radius: 4px 4px 0 0;
	opacity: 0.8;
}

/* Карточка 2: Крипта */
.hero__card--2 {
	width: 250px;
	bottom: 15%;
	left: 0;
	z-index: 2;
	animation: floatObj 7s ease-in-out infinite 1s;
}
.card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
	font-weight: bold;
	color: var(--text-color);
}
.icon-bg {
	width: 35px;
	height: 35px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
}
.card-price {
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--text-color);
	margin-bottom: 5px;
}
.card-change.positive {
	color: #22c55e;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 5px;
	font-weight: bold;
}

/* Карточка 3: Акции */
.hero__card--3 {
	width: 220px;
	top: 40%;
	right: -5%;
	z-index: 1;
	animation: floatObj 8s ease-in-out infinite 2.5s;
	filter: blur(1px);
	opacity: 0.9;
}
.stock-info {
	display: flex;
	flex-direction: column;
}
.stock-name {
	font-size: 0.8rem;
	color: var(--text-muted);
}
.stock-ticker {
	font-weight: bold;
	font-size: 1rem;
	color: var(--text-color);
}

/* Анимация парения для карточек */
@keyframes floatObj {
	0%,
	100% {
		transform: translateY(0) rotate(0deg);
	}
	50% {
		transform: translateY(-15px) rotate(1deg);
	}
}
/* Stats Section */
.stats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem;
	text-align: center;
}
.stats__item {
	padding: 2rem;
	border-radius: 20px;
}
.stats__icon {
	font-size: 2.5rem;
	margin-bottom: 10px;
}
.stats__number {
	font-size: 3rem;
	font-weight: bold;
	color: var(--text-color);
	margin-bottom: 5px;
}
.stats__label {
	color: var(--text-muted);
	font-size: 1.1rem;
}

/* Steps / How it works */
.steps__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	position: relative;
}
.step__card {
	padding: 3rem 2rem;
	border-radius: 20px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.step__number {
	position: absolute;
	top: -10px;
	right: -10px;
	font-size: 6rem;
	font-weight: 900;
	opacity: 0.05;
	color: var(--text-color);
}
.step__icon {
	font-size: 3.5rem;
	margin-bottom: 1.5rem;
}
.step__title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--text-color);
}
.step__text {
	color: var(--text-muted);
}

/* Grids (Services & Advantages) */
.services__grid,
.advantages__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}
.services__card,
.advantages__item {
	padding: 2.5rem 2rem;
	border-radius: 20px;
	text-align: center;
}
.services__card:hover,
.advantages__item:hover {
	transform: translateY(-10px);
	background: var(--glass-hover);
}
.services__card-icon,
.advantages__icon {
	font-size: 3.5rem;
	margin-bottom: 1.5rem;
}
.services__card-title,
.advantages__item-title {
	font-size: 1.4rem;
	margin-bottom: 1rem;
	color: var(--text-color);
}
.services__card-description,
.advantages__item-text {
	color: var(--text-muted);
}

/* About */
.about__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}
.about__content {
	padding: 3rem;
	border-radius: 20px;
}
.about__text {
	color: var(--text-muted);
	margin-bottom: 1rem;
	font-size: 1.1rem;
}
.about__image {
	width: 100%;
	height: 450px;
	object-fit: cover;
	border-radius: 20px;
}

/* FAQ */
.faq__container {
	max-width: 800px;
}
.faq__accordion {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.faq__item {
	border-radius: 15px;
	overflow: hidden;
	border: 1px solid var(--glass-border);
}
.faq__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 2rem;
	cursor: pointer;
}
.faq__question h3 {
	color: var(--text-color);
	font-size: 1.1rem;
	margin: 0;
}
.faq__toggle {
	font-size: 1.5rem;
	transition: 0.3s;
}
.faq__item.active .faq__toggle {
	transform: rotate(45deg);
}
.faq__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}
.faq__item.active .faq__answer {
	max-height: 200px;
}
.faq__answer p {
	padding: 0 2rem 1.5rem;
	color: var(--text-muted);
}

/* Contact */
.contact__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
}
.contact__info,
.contact__form {
	padding: 3rem;
	border-radius: 20px;
}
.contact__item {
	display: flex;
	align-items: center;
	margin-bottom: 1.5rem;
}
.contact__icon {
	font-size: 1.8rem;
	margin-right: 1rem;
}
.contact__text {
	color: var(--text-color);
	font-size: 1.1rem;
}
.contact__form-group {
	margin-bottom: 1.5rem;
}
.contact__form-label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--text-color);
	font-weight: bold;
}
.glass-input {
	width: 100%;
	padding: 15px;
	background: var(--glass-input-bg);
	border: 1px solid var(--glass-border);
	border-radius: 10px;
	font-size: 1rem;
	color: var(--text-color);
	outline: none;
	transition: 0.3s;
}
.glass-input::placeholder {
	color: var(--text-muted);
	opacity: 0.7;
}
.glass-input:focus {
	border-color: var(--primary);
	background: var(--glass-bg);
}
.contact__form-textarea {
	resize: vertical;
	min-height: 120px;
}

/* Footer - ИСПРАВЛЕННЫЙ ВАРИАНТ */
.footer {
	width: 100%; /* Фикс смещения */
	padding: 4rem 0 1rem;
	border-radius: 30px 30px 0 0;
	border-bottom: none;
	border-left: none;
	border-right: none;
	margin-top: 40px;
}
.footer__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	width: 100%;
}
.footer__content {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr; /* Логотип занимает больше места */
	gap: 2rem;
	margin-bottom: 3rem;
}
.footer-logo-img {
	width: 180px;
	margin-bottom: 1rem;
}
.footer__section-title {
	font-size: 1.3rem;
	margin-bottom: 1.5rem;
	color: var(--text-color);
	font-weight: bold;
}
.footer__text {
	color: var(--text-muted);
	line-height: 1.8;
}
.footer__link {
	color: var(--text-muted);
	text-decoration: none;
	transition: 0.3s;
	display: inline-block;
	margin-bottom: 0.5rem;
}
.footer__link:hover {
	color: var(--primary);
	transform: translateX(5px);
}
.footer__bottom {
	border-top: 1px solid var(--glass-border);
	padding-top: 2rem;
	text-align: center;
	color: var(--text-muted);
}
/* Mobile Adaptations */
@media (max-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 2rem;
	}
	.hero__subtitle {
		margin: 0 auto 2.5rem;
	}
	.hero__buttons {
		justify-content: center;
	}
	.hero__visual {
		height: 400px;
		transform: scale(0.9);
	}
	.hero__card--1 {
		right: 20%;
	}
	.hero__card--2 {
		left: 10%;
	}
	.hero__card--3 {
		right: 5%;
	}
}
@media (max-width: 768px) {
	.header__burger {
		display: flex;
	}
	.theme-controls {
		gap: 20px;
	} /* Чуть больше отступ от кнопки темы до бургера */

	/* Полноэкранное мобильное меню (Glassmorphism) */
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%; /* Прячем за правым краем экрана */
		width: 100%;
		height: 100vh;
		background: var(--bg-color);
		flex-direction: column;
		justify-content: center;
		align-items: center; /* Центрируем по горизонтали */
		gap: 2.5rem; /* Увеличиваем расстояние между ссылками */
		transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Плавный выезд */
		margin: 0;
		padding: 0;
	}

	.header__nav.active {
		right: 0;
	}

	/* Стили для ссылок в мобильном меню */
	.header__nav-link {
		font-size: 1.5rem; /* Делаем шрифт крупнее для пальца */
		text-align: center;
		display: inline-block;
		width: 100%;
	}

	/* Остальной адаптив (оставляем как было) */
	.about__container,
	.contact__container,
	.footer__content {
		grid-template-columns: 1fr;
	}
	.hero__title {
		font-size: 2.5rem;
	}
	.hero__subtitle {
		font-size: 1.1rem;
	}
	.stats__grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 480px) {
	.stats__grid {
		grid-template-columns: 1fr;
	}
	.hero__title {
		font-size: 2.8rem;
	}
	.hero__visual {
		display: none; /* Прячем 3D-карточки на совсем маленьких экранах, чтобы не ломать верстку */
	}
	.hero {
		min-height: auto;
		padding: 150px 0 60px;
	}
}

.contact__form-extra {
	position: absolute;
	left: -9999px;
	top: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
	overflow: hidden;
	z-index: -1;
	pointer-events: none;
}