/* ==================== GLOBAL STYLES ==================== */
:root {
	--background-color: #0b0f19;
	--surface-color: #1a202c;
	--primary-text-color: #f9fafb;
	--secondary-text-color: #a0aec0;
	--accent-color: #38bdf8;
	--accent-hover-color: #0ea5e9;

	--header-height: 5rem;
	--font-family: 'Inter', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

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

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

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: var(--primary-text-color);
}

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

.container {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1.5rem;
}

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

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--primary-text-color);
	transition: color 0.3s;
}

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

.header__logo img {
	width: 32px;
	height: 32px;
}

.nav__list {
	display: flex;
	gap: 2.5rem;
}

.nav__link {
	font-weight: 600;
	position: relative;
	transition: color 0.3s;
}

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

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

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

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

.header__burger .lucide-x {
	display: none;
}

/* ==================== FOOTER ==================== */
.footer {
	background-color: var(--surface-color);
	padding-top: 4rem;
	margin-top: 5rem;
}

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

.footer__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.footer__logo img {
	width: 32px;
}

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

.footer__title {
	font-size: 1.1rem;
	margin-bottom: 1rem;
	font-weight: 600;
}

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

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

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

.footer__contacts p {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--secondary-text-color);
	font-size: 0.9rem;
	margin-bottom: 0.75rem;
	font-style: normal;
}

.footer__contacts .lucide {
	color: var(--accent-color);
	width: 20px;
}

.footer__bottom {
	border-top: 1px solid var(--background-color);
	padding: 1.5rem 0;
}

.footer__copy {
	text-align: center;
	font-size: 0.85rem;
	color: var(--secondary-text-color);
}

/* ==================== BREAKPOINTS / RESPONSIVE ==================== */
@media screen and (max-width: 768px) {
	.nav {
		position: fixed;
		top: var(--header-height);
		right: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--background-color);
		padding: 2rem;
		transition: right 0.4s ease-in-out;
	}

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

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

	.nav__link {
		font-size: 1.2rem;
	}

	.header__burger {
		display: block;
	}

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

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

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

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

.button--primary:hover {
	background-color: var(--accent-hover-color);
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

.button--secondary {
	background-color: transparent;
	color: var(--primary-text-color);
	border-color: var(--surface-color);
}

.button--secondary:hover {
	background-color: var(--surface-color);
	border-color: var(--surface-color);
}

/* ==================== HERO ==================== */
.hero {
	padding: calc(var(--header-height) + 4rem) 0 4rem;
	overflow: hidden; /* Для красивого эффекта анимации */
}

.hero__container {
	display: grid;
	align-items: center;
	gap: 4rem;
}

.hero__title {
	font-size: 2.5rem;
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

.hero__subtitle {
	font-size: 1.125rem;
	color: var(--secondary-text-color);
	margin-bottom: 2.5rem;
	max-width: 55ch;
}

.hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.hero__visual {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero__visual-blob {
	position: absolute;
	width: 100%;
	height: 100%;
	max-width: 400px;
	max-height: 400px;
	background: linear-gradient(
		135deg,
		var(--accent-color) 0%,
		rgba(11, 15, 25, 0) 70%
	);
	filter: blur(80px);
	border-radius: 50%;
	z-index: -1;
	animation: blob-pulse 10s infinite alternate;
}

@keyframes blob-pulse {
	0% {
		transform: scale(0.9) translate(-10px, 10px);
	}
	100% {
		transform: scale(1.1) translate(10px, -10px);
	}
}

.hero__image {
	width: 100%;

	border-radius: 20px;
	object-fit: cover;
	border: 1px solid var(--surface-color);
}

/* ==================== BREAKPOINTS (HERO) ==================== */
@media screen and (min-width: 768px) {
	.hero__container {
		grid-template-columns: 1fr 1fr;
	}
}

@media screen and (max-width: 992px) {
	.hero__title {
		font-size: 1.5rem;
	}
	.hero__subtitle {
		font-size: 1rem;
	}
}

@media screen and (max-width: 767px) {
	.hero {
		padding: calc(var(--header-height) + 2rem) 0 2rem;
	}
	.hero__container {
		gap: 2rem;
		text-align: center;
	}
	.hero__title {
		max-width: none;
	}
	.hero__subtitle {
		max-width: none;
	}
	.hero__buttons {
		justify-content: center;
	}
}

/* ==================== REUSABLE COMPONENTS ==================== */
.section__header {
	text-align: center;
	margin-bottom: 3.5rem;
}

.section__title {
	font-size: 2.5rem;
	margin-bottom: 0.75rem;
}

.section__subtitle {
	font-size: 1.1rem;
	color: var(--secondary-text-color);
	max-width: 60ch;
	margin: 0 auto;
}

/* ==================== POSSIBILITIES ==================== */
.possibilities {
	padding: 5rem 0;
}

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

.possibilities__card {
	background-color: var(--surface-color);
	padding: 2rem;
	border-radius: 12px;
	border: 1px solid transparent;
	transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
	text-align: center;
}

.possibilities__card:hover {
	transform: translateY(-8px);
	border-color: var(--accent-color);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.possibilities__card-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 1.5rem;
	border-radius: 50%;
	background-color: rgba(56, 189, 248, 0.1);
	display: flex;
	justify-content: center;
	align-items: center;
}

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

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

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

/* ==================== BREAKPOINTS (SECTIONS) ==================== */
@media screen and (max-width: 768px) {
	.section__title {
		font-size: 2rem;
	}
	.section__subtitle {
		font-size: 1rem;
	}
	.possibilities {
		padding: 3rem 0;
	}
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
	padding: 5rem 0;
	background-color: var(--surface-color);
	overflow: hidden;
}

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

.how-it-works__step {
	display: grid;
	align-items: center;
	gap: 4rem;
}

.how-it-works__image-wrapper {
	position: relative;
}

.how-it-works__image {
	border-radius: 12px;
	border: 1px solid rgba(160, 174, 192, 0.2);
}

.how-it-works__step-number {
	position: absolute;
	top: -2rem;
	left: -2rem;
	font-size: 6rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.05);
	z-index: 0;
	line-height: 1;
}

.how-it-works__step--reversed .how-it-works__step-number {
	left: auto;
	right: -2rem;
}

.how-it-works__title {
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

.how-it-works__description {
	color: var(--secondary-text-color);
	margin-bottom: 2rem;
	max-width: 50ch;
}

/* ==================== BREAKPOINTS (HOW IT WORKS) ==================== */
@media screen and (min-width: 768px) {
	.how-it-works__step {
		grid-template-columns: 1fr 1fr;
	}
	.how-it-works__step--reversed {
		grid-template-areas: 'content image';
	}
	.how-it-works__step--reversed .how-it-works__image-wrapper {
		grid-area: image;
	}
	.how-it-works__step--reversed .how-it-works__content {
		grid-area: content;
	}
}

@media screen and (max-width: 767px) {
	.how-it-works {
		padding: 3rem 0;
	}
	.how-it-works__steps {
		gap: 3rem;
	}
	.how-it-works__step {
		gap: 2rem;
		text-align: center;
	}
	.how-it-works__title {
		font-size: 1.5rem;
	}
	.how-it-works__description {
		margin-left: auto;
		margin-right: auto;
	}
	.how-it-works__step-number {
		font-size: 4rem;
		top: -1rem;
		left: -1rem;
	}
	.how-it-works__step--reversed .how-it-works__step-number {
		right: -1rem;
	}
}

/* ==================== EXAMPLES ==================== */
.examples {
	padding: 5rem 0;
}

.examples__tabs {
	background-color: var(--surface-color);
	border-radius: 12px;
	padding: 2rem;
}

.examples__tabs-header {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--background-color);
}

.examples__tab-button {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1.5rem;
	border: none;
	background-color: transparent;
	color: var(--secondary-text-color);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	border-radius: 8px 8px 0 0;
	transition: color 0.3s, background-color 0.3s;
	position: relative;
	bottom: -1px;
}

.examples__tab-button:hover {
	color: var(--primary-text-color);
}

.examples__tab-button.is-active {
	color: var(--accent-color);
	border-bottom: 2px solid var(--accent-color);
}

.examples__tab-content {
	display: none;
	align-items: center;
	gap: 3rem;
	animation: fadeIn 0.5s;
}

.examples__tab-content.is-active {
	display: grid;
}

.examples__content-title {
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

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

.examples__content-image img {
	border-radius: 12px;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==================== BREAKPOINTS (EXAMPLES) ==================== */
@media screen and (min-width: 768px) {
	.examples__tab-content.is-active {
		grid-template-columns: 1fr 1fr;
	}
}

@media screen and (max-width: 767px) {
	.examples__tabs-header {
		justify-content: center;
	}
	.examples__tab-content {
		text-align: center;
	}
	.examples__content-image {
		order: -1; /* Image on top on mobile */
	}
}

/* ==================== PRICING ==================== */
.pricing {
	padding: 5rem 0;
	background-color: var(--surface-color);
}

.pricing__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	align-items: center;
}

.pricing__card {
	background-color: var(--background-color);
	border-radius: 12px;
	padding: 2.5rem 2rem;
	border: 1px solid var(--surface-color);
	transition: transform 0.3s, box-shadow 0.3s;
	position: relative;
	overflow: hidden;
}

.pricing__card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing__card--popular {
	border: 2px solid var(--accent-color);
	transform: scale(1.05);
}
.pricing__card--popular:hover {
	transform: scale(1.05) translateY(-10px);
}

.pricing__card-badge {
	position: absolute;
	top: 1.5rem;
	right: -45px;
	transform: rotate(45deg);
	background-color: var(--accent-color);
	color: var(--background-color);
	padding: 0.25rem 3rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-align: center;
}

.pricing__card-header {
	text-align: center;
	border-bottom: 1px solid var(--surface-color);
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
}

.pricing__card-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.pricing__card-price {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--accent-color);
}

.pricing__card-price span {
	font-size: 1rem;
	font-weight: 400;
	color: var(--secondary-text-color);
}

.pricing__card-features {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 2rem;
}

.pricing__card-features li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.pricing__card-features .lucide-check {
	color: var(--accent-color);
}

.pricing__card-features .lucide-x {
	color: var(--secondary-text-color);
	opacity: 0.5;
}

.pricing__card-footer {
	text-align: center;
}

.pricing__card-footer .button {
	width: 100%;
}

/* ==================== BREAKPOINTS (PRICING) ==================== */
@media screen and (max-width: 992px) {
	.pricing__card--popular {
		transform: scale(
			1
		); /* Disable scaling on smaller screens to prevent layout issues */
	}
}
@media screen and (max-width: 400px) {
	.pricing__grid {
		grid-template-columns: 1fr;
	}
}

/* ==================== CONTACT ==================== */
.contact {
	padding: 5rem 0;
}

.contact__container {
	display: grid;
	gap: 4rem;
}

@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1.2fr;
		align-items: center;
	}
}

.contact__info {
	margin-top: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact__info-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.contact__info-item .lucide {
	color: var(--accent-color);
	width: 32px;
	flex-shrink: 0;
	margin-top: 5px;
}

.contact__form-wrapper {
	background-color: var(--surface-color);
	padding: 2.5rem;
	border-radius: 12px;
	position: relative;
}

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

.contact__form-group {
	position: relative;
}

.contact__form-input {
	width: 100%;
	padding: 0.8rem 1rem;
	background-color: var(--background-color);
	border: 2px solid var(--surface-color);
	border-radius: 8px;
	color: var(--primary-text-color);
	font-size: 1rem;
	transition: border-color 0.3s;
}

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

.contact__form-label {
	position: absolute;
	top: 0.9rem;
	left: 1rem;
	color: var(--secondary-text-color);
	pointer-events: none;
	transition: all 0.3s;
}

.contact__form-input:focus + .contact__form-label,
.contact__form-input:not(:placeholder-shown) + .contact__form-label {
	top: -0.7rem;
	left: 0.75rem;
	font-size: 0.8rem;
	background-color: var(--surface-color);
	padding: 0 0.25rem;
	color: var(--accent-color);
}

.contact__form-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.contact__form-checkbox label {
	font-size: 0.85rem;
	color: var(--secondary-text-color);
}

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

.contact__form-button {
	width: 100%;
	padding: 1rem;
}

.contact__success-message {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--surface-color);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 2rem;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.95);
	transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
}

.contact__success-message.is-active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

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

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

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

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

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

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

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

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

/* ==================== POLICY PAGES STYLES ==================== */
.pages {
	padding: calc(var(--header-height) + 4rem) 0 4rem;
}

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

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

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

.pages p {
	color: var(--secondary-text-color);
	margin-bottom: 1.5rem;
	line-height: 1.7;
}

.pages ul {
	list-style: disc;
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
	color: var(--secondary-text-color);
}

.pages ul li {
	margin-bottom: 0.75rem;
}

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

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

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