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

/* ==================== CSS VARIABLES ==================== */
:root {
	/* Colors */
	--bg-color: #ffffff;
	--text-color: #1a1a1a;
	--text-color-light: #4a4a4a;
	--primary-color: #30c59b;
	--primary-color-hover: #28a085;
	--interactive-color: #2563eb;
	--container-color: #f5f5f5;

	/* Typography */
	--body-font: 'Inter', sans-serif;
	--title-font: 'Space Grotesk', 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-mobile-nav: 110;
}

/* ==================== 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(--bg-color);
	color: var(--text-color);
	line-height: 1.6;
}

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

ul {
	list-style: none;
}

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

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

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

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

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

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

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

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

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

.header__nav-link {
	font-size: var(--normal-font-size);
	font-weight: 500;
	color: var(--text-color-light);
	transition: color 0.3s ease;
	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,
.header__nav-link.active-link {
	color: var(--text-color);
}

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

.header__toggle {
	position: relative;
	z-index: 999;
	display: none;
	font-size: 1.5rem;
	color: var(--text-color);
	background: none;
	border: none;
	cursor: pointer;
}

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

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

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

.footer__logo-img {
	width: 32px;
	height: 32px;
}

.footer__description {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
	max-width: 250px;
}

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

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

.footer__list--contacts li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.footer__icon {
	color: var(--primary-color);
	width: 20px;
	height: 20px;
}

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

.footer__link:hover {
	color: var(--primary-color);
	padding-left: 0.25rem;
}

.footer__bottom {
	padding: 1.5rem 0;
	text-align: center;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

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

/* ==================== MEDIA QUERIES ==================== */
@media screen and (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		height: 100vh;
		background-color: var(--container-color);
		z-index: var(--z-mobile-nav);
		padding: 4rem 2rem;
		transition: right 0.4s ease;
	}

	.header__nav.show-menu {
		right: 0;
	}

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

	.header__toggle {
		display: block;
	}

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

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

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

/* ==================== BUTTONS ==================== */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background-color: var(--primary-color);
	color: #ffffff;
	padding: 1rem 1.75rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-family: var(--body-font);
	border: 2px solid var(--primary-color);
	transition: background-color 0.3s ease, color 0.3s ease;
}

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

.button__icon {
	width: 20px;
	height: 20px;
	transition: transform 0.3s ease;
}

.button:hover .button__icon {
	transform: translateX(5px);
}

/* ==================== HERO ==================== */
.hero {
	padding-top: 8rem; /* Отступ от хедера */
	padding-bottom: 4rem;
	min-height: 100vh;
	display: flex;
	align-items: center;
}

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

.hero__content {
	position: relative;
}

.hero__title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	line-height: 1.2;
	min-height: 135px; /* Чтобы не было скачков высоты при печати текста */
}

/* Эффект курсора для анимации печати */
.hero__title::after {
	content: '_';
	animation: blink 0.7s infinite;
	font-weight: normal;
	color: var(--primary-color);
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

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

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

.hero__image {
	width: 100%;
	border-radius: 1rem;
	filter: saturate(0.9) brightness(1.1);
}

/* ==================== MEDIA QUERIES (дополнения) ==================== */
@media screen and (max-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero__content {
		order: 2; /* Текст будет под картинкой */
	}

	.hero__image-wrapper {
		order: 1;
		margin-bottom: 3rem;
	}

	.hero__description {
		margin-left: auto;
		margin-right: auto;
	}
}

@media screen and (max-width: 576px) {
	:root {
		--h1-font-size: 2.25rem;
	}

	.hero {
		padding-top: 6rem;
	}

	.hero__title {
		font-size: 1.5rem;
		min-height: 110px;
	}
}

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

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

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

.section__subtitle {
	font-size: 1.125rem;
	color: var(--text-color-light);
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* ==================== PLATFORMS ==================== */
.platforms__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

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

.platforms__card:hover {
	transform: translateY(-5px);
	border-color: var(--primary-color);
}

.platforms__card-icon {
	width: 40px;
	height: 40px;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

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

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

/* ==================== MEDIA QUERIES (дополнения) ==================== */
@media screen and (max-width: 576px) {
	.section {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	.section__title {
		font-size: 1.375rem;
	}

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

/* ==================== INTEGRATIONS ==================== */
.integrations {
	background-color: var(--container-color);
}

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

.integrations__image {
	border-radius: 0.75rem;
	filter: saturate(0.9) brightness(1.1);
}

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

.integrations__list-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background-color: var(--bg-color);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 0.5rem;
	font-weight: 500;
	transition: border-color 0.3s ease, background-color 0.3s ease;
}

.integrations__list-item:hover {
	border-color: var(--primary-color);
	background-color: rgba(48, 197, 155, 0.1);
}

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

/* ==================== MEDIA QUERIES (дополнения) ==================== */
@media screen and (max-width: 992px) {
	.integrations__container {
		grid-template-columns: 1fr;
	}

	.integrations__content {
		text-align: center;
	}

	.integrations__image-wrapper {
		max-width: 450px;
		margin: 0 auto 2rem auto;
	}

	.section__header[style*='text-align: left'] {
		text-align: center !important;
	}
	.section__subtitle[style*='margin-left: 0'] {
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* ==================== CASES ==================== */
.cases__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
}

.cases__card {
	background-color: var(--container-color);
	border-radius: 0.75rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid transparent;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.cases__card:hover {
	transform: translateY(-5px);
	border-color: var(--primary-color);
}

.cases__card-image {
	height: 200px;
	overflow: hidden;
}

.cases__card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.9) brightness(1.1);
}

.cases__card-content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.cases__card-tag {
	display: inline-block;
	background-color: rgba(48, 197, 155, 0.1);
	color: var(--primary-color);
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	font-size: var(--small-font-size);
	font-weight: 600;
	margin-bottom: 1rem;
	align-self: flex-start;
}

.cases__card-title {
	font-size: 1.375rem;
	margin-bottom: 0.5rem;
}

.cases__card-description {
	color: var(--text-color-light);
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.cases__card-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	padding-top: 1rem;
}

.tech-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background-color: rgba(0, 0, 0, 0.05);
	padding: 0.25rem 0.6rem;
	border-radius: 0.25rem;
	font-size: var(--small-font-size);
	color: var(--text-color-light);
}

.tech-tag .lucide {
	width: 14px;
	height: 14px;
}

/* ==================== PROCESS ==================== */
.process {
	background-color: var(--container-color);
}

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

.process__step {
	padding: 2rem;
	background-color: var(--bg-color);
	border-radius: 0.75rem;
	position: relative;
	overflow: hidden;
	border: 1px solid transparent;
	transition: border-color 0.3s ease;
}

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

.process__step-number {
	position: absolute;
	top: -0.5rem;
	right: 1rem;
	font-size: 4rem;
	font-weight: 700;
	font-family: var(--title-font);
	color: rgba(0, 0, 0, 0.05);
	z-index: 0;
	line-height: 1;
}

.process__step-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.75rem;
	position: relative;
	z-index: 1;
}

.process__step-description {
	color: var(--text-color-light);
	position: relative;
	z-index: 1;
}

/* ==================== CONTACT ==================== */
.contact__container {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 3rem;
	align-items: center;
}

.contact__content .section__title,
.contact__content .section__subtitle {
	text-align: left;
	margin-left: 0;
}

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

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

.contact__info-icon {
	width: 32px;
	height: 32px;
	color: var(--primary-color);
}

.contact__info-title {
	font-size: var(--normal-font-size);
	color: var(--text-color-light);
	font-weight: 500;
}

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

.form__group {
	display: flex;
	flex-direction: column;
}

.form__label {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
	margin-bottom: 0.5rem;
	display: none; /* Скрываем для чистоты, но оставляем для доступности */
}

.form__input {
	width: 100%;
	padding: 1rem;
	background-color: var(--bg-color);
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 0.5rem;
	color: var(--text-color);
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input::placeholder {
	color: var(--text-color-light);
}

.form__input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(48, 197, 155, 0.2);
}

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

.form__checkbox-input {
	min-width: 1em;
	height: 1em;
	margin-top: 0.25em;
	accent-color: var(--primary-color);
}

.form__checkbox-label {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
	line-height: 1.5;
}

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

.button--full {
	width: 100%;
}

.contact__success-message {
	text-align: center;
	padding: 2rem;
	background-color: var(--container-color);
	border-radius: 0.75rem;
	border: 1px solid var(--primary-color);
}

.contact__success-icon {
	width: 48px;
	height: 48px;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.contact__success-title {
	font-size: var(--h3-font-size);
}

.is-hidden {
	display: none;
}

/* ==================== MEDIA QUERIES (дополнения) ==================== */
@media screen and (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
	}
	.contact__content {
		text-align: center;
	}
	.contact__content .section__title,
	.contact__content .section__subtitle {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}
	.contact__info {
		align-items: center;
	}
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	max-width: 500px;
	background-color: var(--bg-color);
	padding: 1rem 1.5rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	z-index: 200;
	transform: translateY(200%);
	transition: transform 0.5s ease-in-out;
}

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

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

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

.button--cookie {
	padding: 0.6rem 1rem;
	flex-shrink: 0; /* Чтобы кнопка не сжималась */
}

/* ==================== STYLES FOR POLICY PAGES ==================== */
.pages {
	padding: 8rem 0 5rem; /* Отступ сверху для хедера, снизу - обычный */
}

.pages h1,
.pages h2 {
	font-family: var(--title-font);
	color: var(--text-color);
	margin-bottom: 1rem;
}

.pages h1 {
	font-size: 1.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding-bottom: 1rem;
	margin-bottom: 2rem;
}

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

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

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

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

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

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

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

/* ==================== MEDIA QUERIES (дополнения) ==================== */
@media screen and (max-width: 576px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
		bottom: 1rem;
		left: 1rem;
		right: 1rem;
	}
}
