/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Manrope:wght@600;700&display=swap');

/* ==================== VARIABLES ==================== */
:root {
	/* Colors */
	--background-color: #0d1117;
	--container-color: #161b22;
	--primary-color: #3b82f6;
	--primary-color-alt: #60a5fa;
	--title-color: #f0f6fc;
	--text-color: #c9d1d9;
	--text-color-light: #8b949e;
	--border-color: #30363d;

	/* Fonts */
	--body-font: 'Inter', sans-serif;
	--title-font: 'Manrope', sans-serif;

	--h1-font-size: 2.5rem;
	--h2-font-size: 1.5rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* z-index */
	--z-header: 100;
	--z-modal: 1000;
}

@media screen and (min-width: 992px) {
	:root {
		--h1-font-size: 3.5rem;
		--h2-font-size: 2rem;
		--h3-font-size: 1.5rem;
		--normal-font-size: 1.125rem;
		--small-font-size: 0.938rem;
	}
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--background-color);
	color: var(--text-color);
}

h1,
h2,
h3,
h4 {
	color: var(--title-color);
	font-family: var(--title-font);
	font-weight: 600;
}

ul {
	list-style: none;
}

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

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

/* ==================== REUSABLE CSS CLASSES ==================== */
.container {
	max-width: 1120px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

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

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

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

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

.header__toggle {
	position: relative;

	display: inline-flex;
	font-size: 1.5rem;
	color: var(--title-color);
	cursor: pointer;
	background: none;
	border: none;
}

@media screen and (max-width: 767px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100vh;
		background-color: var(--background-color);
		padding: 6rem 2rem 4rem;
		transition: right 0.4s;
	}
}

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

.header__nav-link {
	font-family: var(--title-font);
	font-weight: 600;
	color: var(--title-color);
	transition: color 0.3s;
	position: relative;
	padding-bottom: 0.25rem;
}

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

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

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

.header__nav-link--button {
	background-color: var(--primary-color);
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	color: #fff;
}

.header__nav-link--button:hover {
	background-color: var(--primary-color-alt);
	color: #fff;
}
.header__nav-link--button:hover::after {
	width: 0;
}

/* Show menu */
.show-menu {
	right: 0;
}

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

.footer__container {
	display: grid;
	gap: 3rem;
}

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-weight: 700;
	color: var(--title-color);
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.footer__copyright {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
}

.footer__title {
	font-size: var(--h3-font-size);
	margin-bottom: 1.5rem;
}

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

.footer__link {
	color: var(--text-color-light);
	transition: color 0.3s;
}

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

.footer__list--contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	color: var(--text-color-light);
}

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

/* ==================== MEDIA QUERIES ==================== */
/* For medium devices */
@media screen and (min-width: 576px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 767px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
	.header__toggle {
		display: none;
	}
	.header__nav-list {
		flex-direction: row;
		gap: 2rem;
	}
	.header__nav-link {
		font-weight: 500;
		font-family: var(--body-font);
	}
}

/* For large devices */
@media screen and (min-width: 992px) {
	.footer__container {
		grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
		gap: 2rem;
	}
}

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

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

.button--primary:hover {
	background-color: var(--primary-color-alt);
	transform: translateY(-2px);
}

.button--secondary {
	background-color: transparent;
	color: var(--title-color);
	border: 2px solid var(--border-color);
}

.button--secondary:hover {
	background-color: var(--container-color);
	border-color: var(--container-color);
	transform: translateY(-2px);
}

.button--secondary i {
	width: 1.25rem;
	height: 1.25rem;
	transition: transform 0.3s ease;
}

.button--secondary:hover i {
	transform: translateX(4px);
}

/* ==================== HERO ==================== */
.hero {
	padding-top: 8rem;
	padding-bottom: 4rem;
	overflow: hidden; /* Для корректной работы AOS */
}

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

.hero__title {
	font-size: var(--h1-font-size);
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

.hero__subtitle {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--text-color-light);
	max-width: 550px;
	margin-bottom: 2.5rem;
}

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

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

.hero__img {
	width: 100%;
	height: auto;
	border-radius: 1rem;
	background-color: var(--container-color); /* Фон для плейсхолдера */
}

/* ==================== MEDIA QUERIES (Hero) ==================== */
@media screen and (min-width: 992px) {
	.hero {
		padding-top: 10rem;
		padding-bottom: 6rem;
	}

	.hero__container {
		grid-template-columns: 1.2fr 1fr;
		align-items: center;
		gap: 2rem;
	}

	.hero__title {
		margin-bottom: 2rem;
	}

	.hero__subtitle {
		margin-bottom: 3rem;
	}
}

/* ==================== REUSABLE SECTION STYLES ==================== */
.section {
	padding-top: 5rem;
	padding-bottom: 4rem;
}

.section__header {
	text-align: center;
	margin-bottom: 3rem;
}

.section__title {
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.section__subtitle {
	font-size: var(--normal-font-size);
	color: var(--text-color-light);
	max-width: 600px;
	margin: 0 auto;
}

/* ==================== FEATURES ==================== */
.features__grid {
	display: grid;
	gap: 1.5rem;
}

.features__card {
	background-color: var(--container-color);
	padding: 2rem;
	border-radius: 0.75rem;
	border: 1px solid var(--border-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.features__card-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(59, 130, 246, 0.1);
	border-radius: 0.5rem;
	margin-bottom: 1.5rem;
}

.features__card-icon i {
	width: 24px;
	height: 24px;
	color: var(--primary-color);
}

.features__card-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.75rem;
}

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

/* ==================== MEDIA QUERIES (Features) ==================== */
@media screen and (min-width: 768px) {
	.section {
		padding-top: 7rem;
		padding-bottom: 6rem;
	}
	.features__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.features__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ==================== PROCESS ==================== */
.process__timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	padding-top: 2rem;
	padding-bottom: 2rem;
}

/* Central line */
.process__timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: var(--border-color);
	top: 0;
	bottom: 0;
	left: 20px;
}

.process__item {
	padding-left: 50px;
	position: relative;
	margin-bottom: 2.5rem;
}

.process__item:last-child {
	margin-bottom: 0;
}

/* Circle on the timeline */
.process__item::before {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 3px solid var(--border-color);
	background-color: var(--background-color);
	left: 12px;
	top: 0px;
	z-index: 1;
	transition: background-color 0.3s, border-color 0.3s;
}

.process__item:hover::before {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.process__item-content {
	background-color: var(--container-color);
	padding: 1.5rem;
	border-radius: 0.5rem;
	border: 1px solid var(--border-color);
}

.process__item-step {
	display: inline-block;
	font-size: var(--small-font-size);
	color: var(--primary-color);
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.process__item-title {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}

.process__item-description {
	font-size: 0.938rem;
	line-height: 1.6;
	color: var(--text-color-light);
}

/* ==================== MEDIA QUERIES (Process) ==================== */
@media screen and (min-width: 768px) {
	.process__timeline::after {
		left: 50%;
		margin-left: -1.5px;
	}

	.process__item {
		padding-left: 0;
		width: 50%;
	}

	/* Alternating items */
	.process__item:nth-child(odd) {
		left: 0;
		padding-right: 40px;
		text-align: right;
	}

	.process__item:nth-child(even) {
		left: 50%;
		padding-left: 40px;
	}

	.process__item::before {
		left: 50%;
		margin-left: -9px;
	}
}

/* ==================== SOLUTIONS ==================== */
.solutions__tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 3rem;
	background-color: var(--container-color);
	padding: 0.5rem;
	border-radius: 0.75rem;
	border: 1px solid var(--border-color);
}

.solutions__tab {
	padding: 0.75rem 1.5rem;
	border: none;
	background-color: transparent;
	color: var(--text-color);
	font-family: var(--title-font);
	font-weight: 600;
	font-size: var(--normal-font-size);
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}

.solutions__tab:hover {
	color: var(--title-color);
}

.solutions__tab--active {
	background-color: var(--primary-color);
	color: #fff;
}
.solutions__tab--active:hover {
	color: #fff;
}

.solutions__content-wrapper {
	position: relative;
}

.solutions__content {
	display: none; /* Hidden by default */
	grid-template-columns: 1fr;
	align-items: center;
	gap: 2rem;
	animation: fadeIn 0.5s;
}

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

.solutions__content--active {
	display: grid; /* Shown when active */
}

.solutions__content-title {
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.solutions__content-description {
	line-height: 1.7;
	color: var(--text-color-light);
	margin-bottom: 2rem;
}

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

.solutions__content-list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.solutions__content-list i {
	color: var(--primary-color);
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.solutions__content-visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.solutions__content-img {
	width: 100%;
	max-width: 400px;
	height: auto;
	border-radius: 0.75rem;
	background-color: var(--container-color);
}

/* ==================== MEDIA QUERIES (Solutions) ==================== */
@media screen and (min-width: 768px) {
	.solutions__content {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
	}

	.solutions__content-text {
		order: 1;
	}

	/* Alternate image position */
	.solutions__content:nth-child(even) .solutions__content-text {
		order: 2;
	}
}

/* ==================== CONTACT ==================== */
.contact__container {
	display: grid;
	gap: 3rem;
}

.contact__info-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.75rem;
}

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

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

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

.contact__info-icon {
	width: 24px;
	height: 24px;
	color: var(--primary-color);
	flex-shrink: 0;
	margin-top: 5px;
}

.contact__info-list h4 {
	font-size: var(--normal-font-size);
	margin-bottom: 0.25rem;
	color: var(--title-color);
}

.contact__info-list a,
.contact__info-list span {
	color: var(--text-color-light);
	font-size: var(--normal-font-size);
}
.contact__info-list a:hover {
	color: var(--primary-color);
}

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

.contact__form-group {
	display: flex;
	flex-direction: column;
}

.contact__form-label {
	margin-bottom: 0.5rem;
	font-weight: 500;
	font-size: var(--small-font-size);
	color: var(--text-color);
}

.contact__form-input {
	width: 100%;
	padding: 0.875rem 1rem;
	border-radius: 0.5rem;
	border: 1px solid var(--border-color);
	background-color: var(--container-color);
	color: var(--text-color);
	font-size: var(--normal-font-size);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.contact__form-group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
}

.contact__form-checkbox {
	margin-top: 3px;
	width: 1rem;
	height: 1rem;
	accent-color: var(--primary-color);
}

.contact__form-checkbox-label {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
}

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

.contact__form-button {
	width: 100%;
}

.contact__form-message {
	font-size: var(--small-font-size);
	text-align: center;
}

/* ==================== MEDIA QUERIES (Contact) ==================== */
@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1.2fr;
		gap: 5rem;
	}
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--container-color);
	border-top: 1px solid var(--border-color);
	padding: 1.5rem;
	z-index: var(--z-modal);
	transform: translateY(100%);
	transition: transform 0.3s ease;
	backdrop-filter: blur(10px);
}

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

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

.cookie-popup__text {
	flex: 1;
	min-width: 250px;
}

.cookie-popup__text p {
	margin: 0;
	font-size: var(--normal-font-size);
	color: var(--text-color);
	line-height: 1.5;
}

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

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

.cookie-popup__button {
	background-color: var(--primary-color);
	color: #fff;
	border: none;
	border-radius: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-family: var(--title-font);
	font-weight: 600;
	font-size: var(--normal-font-size);
	cursor: pointer;
	transition: background-color 0.3s, transform 0.3s;
	white-space: nowrap;
}

.cookie-popup__button:hover {
	background-color: var(--primary-color-alt);
	transform: translateY(-1px);
}

.cookie-popup__button:active {
	transform: translateY(0);
}

/* ==================== MEDIA QUERIES (Cookie Popup) ==================== */
@media screen and (max-width: 576px) {
	.cookie-popup {
		padding: 1rem;
	}

	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.cookie-popup__button {
		width: 100%;
	}
}

/*--------------------
 POLICY & GENERIC PAGES
--------------------*/
.pages {
	padding: 120px 0;
}

.pages .container {
	max-width: 800px; /* Делаем контентную область уже для лучшей читаемости */
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
}

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

.pages p,
.pages li {
	font-size: 16px;
	line-height: 1.8;
	color: #e6e6e6;
	margin-bottom: 20px;
}

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

.pages a {
	text-decoration: underline;
}

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

.pages strong {
	font-weight: 700;
}
