/* ==================== GLOBAL STYLES & VARIABLES ==================== */
:root {
	/* Colors */
	--bg-dark: #0b0c1b;
	--bg-light: #1a1b2f;
	--primary-text: #f0f2f5;
	--secondary-text: #a3a6b4;
	--accent: #00f5d4;
	--border-color: rgba(255, 255, 255, 0.1);

	/* Typography */
	--font-headings: 'Space Grotesk', sans-serif;
	--font-body: 'Inter', sans-serif;

	/* Spacing */
	--header-height: 5rem;
}

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

html {
	scroll-behavior: smooth;
}

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

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

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

h1,
h2,
h3 {
	font-family: var(--font-headings);
	font-weight: 700;
	color: var(--primary-text);
}

/* Utility classes */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

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

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

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

.header__nav-list {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.header__nav-link {
	font-weight: 500;
	transition: color 0.3s ease;
}

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

.header__nav-link--button {
	background-color: var(--accent);
	color: var(--bg-dark);
	padding: 0.5rem 1.25rem;
	border-radius: 5px;
	transition: background-color 0.3s, color 0.3s;
}

.header__nav-link--button:hover {
	background-color: var(--primary-text);
	color: var(--bg-dark);
}

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

/* ==================== FOOTER ==================== */
.footer {
	background-color: var(--bg-light);
	padding-top: 4rem;
	border-top: 1px solid var(--border-color);
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem;
	padding-bottom: 3rem;
}

.footer__column--about .logo {
	margin-bottom: 1rem;
}

.footer__description {
	color: var(--secondary-text);
	font-size: 0.9rem;
}

.footer__title {
	font-family: var(--font-headings);
	font-size: 1.1rem;
	margin-bottom: 1rem;
	color: var(--primary-text);
}

.footer__list li {
	margin-bottom: 0.75rem;
}

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

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

.footer__list--contacts li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--secondary-text);
}

.footer__list--contacts .lucide {
	color: var(--accent);
	flex-shrink: 0;
}

.footer__bottom {
	border-top: 1px solid var(--border-color);
	padding: 1.5rem 0;
	text-align: center;
	font-size: 0.9rem;
	color: var(--secondary-text);
}

/* ==================== RESPONSIVE (MOBILE-FIRST) ==================== */
@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		right: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--bg-dark);
		transition: right 0.4s ease-in-out;
	}

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

	.header__nav-list {
		flex-direction: column;
		padding-top: 3rem;
		gap: 2.5rem;
		align-items: center;
	}

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

	.header__burger {
		display: block;
	}

	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__list--contacts li {
		justify-content: center;
	}
}

/* assets/css/style.css */

/* ==================== BUTTONS ==================== */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 2rem;
	border-radius: 5px;
	font-family: var(--font-headings);
	font-weight: 600;
	font-size: 1rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
}

.button--primary {
	background-color: var(--accent);
	color: var(--bg-dark);
}

.button--primary:hover {
	background-color: transparent;
	border-color: var(--accent);
	color: var(--accent);
}

/* ==================== HERO ==================== */
.hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	padding-top: var(--header-height);
}

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

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

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

.hero__title {
	font-size: 3.5rem;
	line-height: 1.2;
	margin-bottom: 1rem;
	font-weight: 700;
}

.hero__title--highlight {
	color: var(--accent);
}

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

.hero__button {
	padding: 1rem 2.5rem;
	font-size: 1.1rem;
}

.hero__note {
	margin-top: 1.5rem;
	font-size: 0.9rem;
	color: var(--secondary-text);
	opacity: 0.8;
}

/* ==================== RESPONSIVE (Hero) ==================== */
@media (max-width: 768px) {
	.hero {
		min-height: 700px;
	}

	.hero__title {
		font-size: 2.5rem;
	}

	.hero__subtitle {
		font-size: 1rem;
	}

	.hero__button {
		padding: 0.8rem 2rem;
		font-size: 1rem;
	}
}

/* assets/css/style.css */

/* ==================== REUSABLE SECTION STYLES ==================== */
.section {
	padding: 6rem 0;
}

.section__header {
	text-align: center;
	margin-bottom: 4rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.section__subtitle {
	display: inline-block;
	margin-bottom: 0.5rem;
	color: var(--accent);
	font-family: var(--font-headings);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.section__title {
	font-size: 2.5rem;
	line-height: 1.3;
	margin-bottom: 1rem;
}

.section__description {
	color: var(--secondary-text);
	font-size: 1.1rem;
}

/* ==================== FEATURES ==================== */
.features {
	background-color: var(
		--bg-dark
	); /* Можно чередовать с var(--bg-light) для контраста */
}

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

.features__card {
	background-color: var(--bg-light);
	padding: 2.5rem 2rem;
	border-radius: 10px;
	border: 1px solid var(--border-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-align: center;
}

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

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

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

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

.features__card-text {
	color: var(--secondary-text);
	font-size: 0.95rem;
}

/* ==================== RESPONSIVE (Sections & Features) ==================== */
@media (max-width: 768px) {
	.section {
		padding: 4rem 0;
	}

	.section__title {
		font-size: 2rem;
	}

	.section__description {
		font-size: 1rem;
	}
}

/* assets/css/style.css */

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
	background-color: var(--bg-light);
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}

.how-it-works__steps {
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

.how-it-works__step {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 3rem;
}

/* Модификатор для "зеркального" отображения блока */
.how-it-works__step--reverse {
	direction: rtl; /* меняет порядок дочерних элементов */
}

.how-it-works__step--reverse > * {
	direction: ltr; /* возвращает нормальное направление текста для контента */
}

.how-it-works__content {
	position: relative;
}

.how-it-works__number {
	position: absolute;
	top: -3rem;
	left: -2rem;
	font-size: 6rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.05);
	z-index: 1;
	font-family: var(--font-headings);
}

.how-it-works__step--reverse .how-it-works__number {
	left: auto;
	right: -2rem;
}

.how-it-works__title {
	font-size: 1.8rem;
	margin-bottom: 1rem;
	position: relative;
	z-index: 2;
}

.how-it-works__text {
	color: var(--secondary-text);
	position: relative;
	z-index: 2;
	max-width: 450px;
}

.how-it-works__image img {
	border-radius: 10px;
	border: 1px solid var(--border-color);
	background-color: var(--bg-dark);
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/* ==================== RESPONSIVE (How it works) ==================== */
@media (max-width: 768px) {
	.how-it-works__step,
	.how-it-works__step--reverse {
		grid-template-columns: 1fr;
		direction: ltr; /* Сбрасываем направление для мобильных */
		text-align: center;
	}

	.how-it-works__step--reverse .how-it-works__image {
		order: -1; /* Ставим картинку сверху для "зеркального" блока */
	}

	.how-it-works__text {
		margin: 0 auto;
	}

	.how-it-works__number {
		font-size: 4rem;
		top: -1.5rem;
		left: 50%;
		transform: translateX(-50%);
		right: auto;
	}

	.how-it-works__step--reverse .how-it-works__number {
		left: 50%;
		right: auto;
	}
}

/* assets/css/style.css */

/* ==================== INCOME CALCULATOR ==================== */
.income {
	background-color: var(--bg-dark);
}

.income__calculator {
	max-width: 800px;
	margin: 0 auto;
	background-color: var(--bg-light);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	padding: 2.5rem 3rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.income__calculator-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

.income__input-group {
	width: 100%;
	text-align: center;
}

.income__input-group label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--secondary-text);
	font-size: 1rem;
}

.income__investment-value {
	font-size: 2.5rem;
	font-weight: 700;
	font-family: var(--font-headings);
	color: var(--accent);
}

.income__slider {
	margin-bottom: 2.5rem;
}

/* Custom Slider Styles */
input[type='range'] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 8px;
	background: var(--bg-dark);
	border-radius: 5px;
	outline: none;
	cursor: pointer;
}

input[type='range']::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	background: var(--accent);
	border-radius: 50%;
	border: 3px solid var(--bg-light);
	box-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
	transition: transform 0.2s ease;
}

input[type='range']::-moz-range-thumb {
	width: 24px;
	height: 24px;
	background: var(--accent);
	border-radius: 50%;
	border: 3px solid var(--bg-light);
	box-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
	transition: transform 0.2s ease;
}

input[type='range']:active::-webkit-slider-thumb {
	transform: scale(1.2);
}

input[type='range']:active::-moz-range-thumb {
	transform: scale(1.2);
}

.income__results {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	text-align: center;
	border-top: 1px solid var(--border-color);
	padding-top: 2rem;
}

.income__result-label {
	display: block;
	color: var(--secondary-text);
	margin-bottom: 0.5rem;
}

.income__result-value {
	font-size: 1.8rem;
	font-weight: 600;
	font-family: var(--font-headings);
	color: var(--primary-text);
}

.income__cta {
	text-align: center;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border-color);
}

/* ==================== RESPONSIVE (Income) ==================== */
@media (max-width: 768px) {
	.income__calculator {
		padding: 2rem 1.5rem;
	}

	.income__investment-value {
		font-size: 2rem;
	}

	.income__results {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.income__result-value {
		font-size: 1.5rem;
	}
}

/* assets/css/style.css */

/* ==================== FAQ ==================== */
.faq {
	background-color: var(--bg-light);
	border-top: 1px solid var(--border-color);
}

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

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

.faq__item:first-child {
	border-top: 1px solid var(--border-color);
}

.faq__question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 0;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	color: var(--primary-text);
	font-family: var(--font-headings);
	font-size: 1.2rem;
	font-weight: 600;
}

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

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

.faq__answer p {
	color: var(--secondary-text);
	padding-right: 2rem; /* Отступ справа, чтобы текст не прилипал к краю */
	line-height: 1.7;
}

/* Active state for accordion */
.faq__item.faq__item--active .faq__icon {
	transform: rotate(180deg);
}

.faq__item.faq__item--active .faq__answer {
	padding-bottom: 1.5rem; /* Появляется вместе с высотой */
}

/* assets/css/style.css */

/* ==================== CONTACT ==================== */
.contact {
	background: var(--bg-dark);
	padding-bottom: 8rem;
}

.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	background-color: var(--bg-light);
	border-radius: 15px;
	overflow: hidden;
	border: 1px solid var(--border-color);
}

.contact__info {
	padding: 3rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.contact__title {
	font-size: 2.2rem;
	line-height: 1.3;
	margin-bottom: 1rem;
}

.contact__description {
	color: var(--secondary-text);
	margin-bottom: 2rem;
}

.contact__details {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact__details li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--primary-text);
}

.contact__details .lucide {
	color: var(--accent);
}

.contact__form-container {
	background-color: var(--bg-dark);
	padding: 3rem;
	position: relative;
}

.contact__form-title {
	font-size: 1.8rem;
	text-align: center;
	margin-bottom: 2rem;
}

.form__group {
	margin-bottom: 1.5rem;
}

.form__label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	color: var(--secondary-text);
}

.form__input {
	width: 100%;
	padding: 0.8rem 1rem;
	background-color: var(--bg-light);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	color: var(--primary-text);
	font-size: 1rem;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.form__input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.2);
}

.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.form__checkbox {
	margin-top: 4px;
	accent-color: var(--accent); /* Modern way to style checkboxes */
}

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

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

.form__button {
	width: 100%;
	padding: 1rem;
	font-size: 1.1rem;
}

.contact__success-message {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--bg-dark);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s, visibility 0.4s;
}

.contact__success-message.active {
	opacity: 1;
	visibility: visible;
}

.contact__success-message .lucide {
	color: var(--accent);
	width: 50px;
	height: 50px;
	margin-bottom: 1rem;
}

.contact__success-message h4 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

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

@media (max-width: 768px) {
	.contact__info,
	.contact__form-container {
		padding: 2rem;
	}
	.contact__title {
		font-size: 1.8rem;
	}
}

/* assets/css/style.css */

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

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

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

.cookie-popup__text {
	color: var(--secondary-text);
}

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

.cookie-popup__button {
	padding: 0.6rem 1.5rem;
	flex-shrink: 0; /* Prevents the button from shrinking */
}

/* ==================== RESPONSIVE (Cookie Pop-up) ==================== */
@media (max-width: 768px) {
	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
	}
}

/* assets/css/style.css */

/* ==================== GENERIC PAGES (Privacy, Terms, etc.) ==================== */
.pages {
	padding: calc(var(--header-height) + 4rem) 0 4rem 0;
	background-color: var(--bg-light);
	min-height: 100vh;
}

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

.pages h1 {
	font-size: 1.5rem;
	color: var(--accent);
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 1rem;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

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

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

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

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

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