/* G L O B A L S */
:root {
	--font-primary: 'Poppins', sans-serif;
	--font-secondary: 'Inter', sans-serif;

	--color-primary: #2d1b3a; /* Dark Purple */
	--color-accent: #8b5cf6; /* Purple */
	--color-background: #faf5ff; /* Light Purple */
	--color-white: #ffffff;
	--color-text: #333;
	--color-text-light: #555;

	--header-height: 70px;
}

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

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-secondary);
	background-color: var(--color-background);
	color: var(--color-text);
	line-height: 1.6;
}

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

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

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

ul {
	list-style: none;
}

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

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

/* H E A D E R */
.header {
	background-color: var(--color-white);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.logo__img {
	width: 32px;
	height: 32px;
}

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

.nav__link {
	font-family: var(--font-primary);
	font-weight: 500;
	color: var(--color-text);
	position: relative;
	padding-bottom: 0.25rem;
}

.nav__link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--color-accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease-in-out;
}

.nav__link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.nav__link--button {
	background-color: var(--color-accent);
	color: var(--color-white);
	padding: 0.5rem 1.5rem;
	border-radius: 50px;
	transition: background-color 0.3s ease;
}

.nav__link--button:hover {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.nav__link--button::after {
	display: none;
}

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

/* F O O T E R */
.footer {
	background-color: var(--color-primary);
	color: var(--color-background);
	padding-top: 4rem;
}

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

.footer__column--about .logo__text {
	color: var(--color-white);
}

.footer__description {
	margin-top: 1rem;
	color: #a7b0ba;
	font-size: 0.9rem;
}

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

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer__item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.footer__icon {
	width: 16px;
	height: 16px;
	color: var(--color-accent);
}

.footer__link,
.footer__item span {
	color: #a7b0ba;
	font-size: 0.9rem;
	transition: color 0.3s ease;
}

.footer__link:hover {
	color: var(--color-white);
}

.footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1.5rem 0;
	text-align: center;
	font-size: 0.85rem;
	color: #a7b0ba;
}

/* R E S P O N S I V E */
@media (max-width: 768px) {
	.nav {
		position: fixed;
		top: var(--header-height);
		left: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-white);
		transition: left 0.3s ease-in-out;
	}

	.nav.is-active {
		left: 0;
	}

	.nav__list {
		flex-direction: column;
		justify-content: center;
		height: 100%;
		gap: 2.5rem;
	}

	.nav__link {
		font-size: 1.5rem;
	}

	.header__burger {
		display: block;
	}
}

/* H E R O */
.hero {
	position: relative;
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding-top: var(--header-height);
	background-color: #1a0f2e; /* Темный фиолетовый фон для контраста с анимацией */
}

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

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

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

.hero__title {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--color-white);
	margin-bottom: 1rem;
	line-height: 1.3;
}

.hero__subtitle {
	font-size: 1.125rem;
	color: #a7b0ba;
	margin-bottom: 2rem;
	line-height: 1.7;
}

.hero__cta-button {
	display: inline-block;
	background-color: var(--color-accent);
	color: var(--color-white);
	padding: 1rem 2.5rem;
	border-radius: 50px;
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.hero__cta-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 7px 20px rgba(139, 92, 246, 0.6);
	color: var(--color-white);
}

/* Responsive for Hero */
@media (max-width: 768px) {
	.hero__title {
		font-size: 2rem;
	}
	.hero__subtitle {
		font-size: 1rem;
	}
}

/* S E C T I O N S  G L O B A L S */
.section-title {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 1rem;
}

.section-subtitle {
	font-size: 1.125rem;
	text-align: center;
	max-width: 600px;
	margin: 0 auto 3rem auto;
	color: var(--color-text-light);
}

/* F E A T U R E S */
.features {
	padding: 6rem 0;
	background-color: var(--color-white);
}

.features__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

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

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

.features__icon-wrapper {
	width: 64px;
	height: 64px;
	margin: 0 auto 1.5rem auto;
	background: linear-gradient(135deg, var(--color-accent) 0%, #a78bfa 100%);
	color: var(--color-white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.features__icon-wrapper i {
	width: 32px;
	height: 32px;
}

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

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

/* Responsive for Features */
@media (max-width: 992px) {
	.features__grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

@media (max-width: 768px) {
	.section-title {
		font-size: 2rem;
	}
	.features {
		padding: 4rem 0;
	}
}

/* T E C H N O L O G Y */
.technology {
	padding: 6rem 0;
	background-color: var(--color-background);
}

.technology__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 4rem;
}

/* Align section titles to the left for this block */
.section-title--left,
.section-subtitle--left {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.technology__steps {
	margin-top: 2.5rem;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.technology__step {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
}

.technology__step-number {
	font-family: var(--font-primary);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-accent);
	background-color: var(--color-white);
	border-radius: 50%;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.technology__step-title {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
}

.technology__step-text {
	font-size: 0.95rem;
	color: var(--color-text-light);
}

.technology__image-wrapper {
	text-align: center;
}

.technology__image {
	max-width: 100%;
	border-radius: 12px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive for Technology */
@media (max-width: 992px) {
	.technology__container {
		grid-template-columns: 1fr;
	}
	.technology__image-wrapper {
		order: -1; /* Image will be on top on mobile */
		margin-bottom: 3rem;
	}
	.section-title--left,
	.section-subtitle--left {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 768px) {
	.technology {
		padding: 4rem 0;
	}
	.technology__container {
		gap: 2rem;
	}
}

/* F A Q */
.faq {
	padding: 6rem 0;
	background-color: var(--color-white);
}

.faq__accordion {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.faq__item {
	background-color: var(--color-background);
	border: 1px solid #e9d5ff;
	border-radius: 8px;
	overflow: hidden;
}

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

.faq__question span {
	padding-right: 1rem;
}

.faq__icon {
	width: 24px;
	height: 24px;
	color: var(--color-accent);
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

/* State when accordion item is open */
.faq__item.is-open .faq__icon {
	transform: rotate(180deg);
}

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

.faq__answer p {
	padding: 0 1.5rem 1.5rem 1.5rem;
	font-size: 0.95rem;
	color: var(--color-text-light);
	line-height: 1.7;
}

/* Responsive for FAQ */
@media (max-width: 768px) {
	.faq {
		padding: 4rem 0;
	}
	.faq__question {
		font-size: 1rem;
		padding: 1.25rem;
	}
}

/* C O N T A C T */
.contact {
	padding: 6rem 0;
	background-color: var(--color-background);
}

.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	background-color: var(--color-white);
	padding: 4rem;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
}

.contact__info .section-subtitle--left {
	margin-bottom: 2rem;
}

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

.contact__detail-item {
	display: flex;
	align-items: center;
	gap: 1rem;
}

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

.contact__detail-text h4 {
	font-size: 1.1rem;
	color: var(--color-primary);
	margin-bottom: 0.25rem;
}

.contact__detail-text a {
	color: var(--color-text-light);
}

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

/* Form Styles */
.contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.form__group {
	position: relative;
}

.form__input {
	width: 100%;
	padding: 1rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 1rem;
	font-family: var(--font-secondary);
	transition: border-color 0.3s ease;
}

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

.form__input.error {
	border-color: #ef4444;
}

.form__input.error:focus {
	border-color: #ef4444;
}

.form__error-message {
	display: none;
	color: #ef4444;
	font-size: 0.85rem;
	margin-top: 0.5rem;
	padding-left: 0.25rem;
}

.form__group.has-error .form__error-message {
	display: block;
}

.form__group.has-error .form__input {
	border-color: #ef4444;
}

.form__group.has-error .form__label {
	color: #ef4444;
}

.form__label {
	position: absolute;
	top: 50%;
	left: 1rem;
	transform: translateY(-50%);
	background-color: var(--color-white);
	padding: 0 0.25rem;
	color: #999;
	transition: all 0.2s ease;
	pointer-events: none;
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
	top: 0;
	left: 0.75rem;
	font-size: 0.85rem;
	color: var(--color-accent);
}

.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--color-text-light);
}

.form__group--checkbox input[type='checkbox'] {
	margin-top: 0.25em;
}

.form__button {
	width: 100%;
	padding: 1rem;
	background-color: var(--color-accent);
	color: var(--color-white);
	border: none;
	border-radius: 6px;
	font-family: var(--font-primary);
	font-size: 1.1rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.form__button:hover {
	background-color: var(--color-primary);
}

.success-message {
	display: none; /* Initially hidden */
	text-align: center;
	padding: 2rem;
	border: 1px solid #cce5da;
	background-color: #d4edda;
	color: #155724;
	border-radius: 8px;
}
.success-message i {
	width: 48px;
	height: 48px;
	margin-bottom: 1rem;
}

/* Responsive for Contact */
@media (max-width: 992px) {
	.contact__wrapper {
		grid-template-columns: 1fr;
		padding: 2rem;
	}
}
@media (max-width: 768px) {
	.contact {
		padding: 4rem 0;
	}
}

/* C O O K I E   P O P - U P */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--color-primary);
	color: var(--color-white);
	padding: 1.5rem 0;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	transform: translateY(150%);
	transition: transform 0.5s ease-in-out;
	z-index: 1100;
}

.cookie-popup.is-visible {
	transform: translateY(0);
}

.cookie-popup__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
}

.cookie-popup__text {
	font-size: 0.9rem;
}

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

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

.cookie-popup__button {
	background-color: var(--color-accent);
	color: var(--color-white);
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 50px;
	cursor: pointer;
	font-family: var(--font-primary);
	font-weight: 500;
	white-space: nowrap; /* Prevent button text from wrapping */
	transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
	background-color: #7c3aed;
}

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

/* P A G E S (Privacy, Terms, etc.) */
.pages {
	padding: 6rem 0;
	background-color: var(--color-white);
	min-height: calc(
		100vh - var(--header-height) - 280px
	); /* 280px is an approx footer height */
}

.pages .container {
	max-width: 800px; /* Narrower container for better readability */
}

.pages h1 {
	font-size: 2.8rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid #eee;
	padding-bottom: 1rem;
}

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

.pages p {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--color-text-light);
	margin-bottom: 1.5rem;
}

.pages ul {
	list-style: disc;
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.pages li {
	margin-bottom: 0.75rem;
	line-height: 1.8;
	color: var(--color-text-light);
}

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

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

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

@media (max-width: 768px) {
	.pages h1 {
		font-size: 2.2rem;
	}
	.pages h2 {
		font-size: 1.5rem;
	}
}
