/* ================== GLOBAL STYLES ================== */
:root {
	--background-color: #f8f9fa;
	--text-color: #212529;
	--primary-color: #007bff;
	--secondary-color: #6c757d;
	--border-color: #dee2e6;
	--header-height: 80px;
	--font-family-headings: 'Manrope', sans-serif;
	--font-family-base: 'Inter', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

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

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

@media (min-width: 1240px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
}

ul {
	list-style: none;
}

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

a:hover {
	color: #0056b3;
}

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

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

/* ================== HEADER ================== */
.header {
	background-color: var(--background-color);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	height: var(--header-height);
}

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

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

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

.logo svg {
	transition: transform 0.3s ease;
}

.logo:hover svg {
	transform: rotate(15deg);
}

.nav {
	display: none; /* Hidden on mobile */
}

@media (min-width: 992px) {
	.nav {
		display: block;
	}
}

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

.nav__link {
	color: var(--text-color);
	font-weight: 500;
	position: relative;
	padding: 0.5rem 0;
}

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

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

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

@media (min-width: 992px) {
	.burger {
		display: none;
	}
}

/* Mobile Menu */
@media (max-width: 991.98px) {
	.nav {
		position: fixed;
		top: var(--header-height);
		left: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--background-color);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: left 0.4s ease-in-out;
	}

	.nav.nav--active {
		left: 0;
		display: flex;
	}

	.nav__list {
		flex-direction: column;
		text-align: center;
		gap: 2.5rem;
	}

	.nav__link {
		font-size: 1.5rem;
	}

	body.no-scroll {
		overflow: hidden;
	}
}

/* ================== MAIN CONTENT PADDING ================== */
.main {
	padding-top: var(--header-height);
}

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

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

@media (min-width: 768px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.footer__container {
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 3rem;
	}
}

.footer__column--logo {
	grid-column: 1 / -1; /* Full width on mobile */
}
@media (min-width: 768px) {
	.footer__column--logo {
		grid-column: auto;
	}
}

.footer__logo {
	margin-bottom: 1rem;
}

.footer__copyright {
	font-size: 0.9rem;
}

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

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

.footer__link {
	color: var(--secondary-color);
	font-size: 0.95rem;
}
.footer__link:hover {
	color: var(--primary-color);
}
.footer__link--static {
	cursor: default;
}
.footer__link--static:hover {
	color: var(--secondary-color);
}

/* ================== HERO SECTION ================== */
.hero {
	padding: 4rem 0;
	background-color: #fff;
	min-height: 80vh;
	display: flex;
	align-items: center;
}

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

@media (min-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

.hero__content {
	text-align: center;
}

@media (min-width: 992px) {
	.hero__content {
		text-align: left;
	}
}

.hero__title {
	font-size: 2.5rem;
	line-height: 1.2;
	margin-bottom: 1.5rem;
	font-weight: 800; /* Использовал более жирное начертание для заголовка */
}

@media (min-width: 768px) {
	.hero__title {
		font-size: 3.5rem;
	}
}

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

@media (min-width: 992px) {
	.hero__subtitle {
		margin-left: 0;
		margin-right: 0;
	}
}

.hero__image-wrapper {
	max-width: 500px;
	margin: 0 auto;
}

.hero__image {
	width: 100%;
	border-radius: 8px;
}

/* ================== BUTTON ================== */
.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: #fff;
	padding: 0.875rem 2rem;
	border-radius: 5px;
	font-weight: 500;
	font-size: 1rem;
	border: 2px solid transparent;
	transition: all 0.3s ease;
}

.button:hover {
	background-color: #0069d9;
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* ================== SECTION HEADER ================== */
.section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.section-header__title {
	font-size: 2.25rem;
	margin-bottom: 1rem;
}

@media (min-width: 768px) {
	.section-header__title {
		font-size: 2.75rem;
	}
}

.section-header__subtitle {
	font-size: 1.1rem;
	color: var(--secondary-color);
	max-width: 650px;
	margin: 0 auto;
}

/* ================== STRATEGY SECTION ================== */
.strategy {
	padding: 5rem 0;
}

.strategy__grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.strategy__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* ================== CARD ================== */
.card {
	background-color: #fff;
	padding: 2.5rem 2rem;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.card__icon {
	margin-bottom: 1.5rem;
}

.card__icon .lucide {
	width: 48px;
	height: 48px;
	color: var(--primary-color);
	stroke-width: 1.5;
	margin: 0 auto;
}

.card__title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--text-color);
}

.card__description {
	color: var(--secondary-color);
	font-size: 1rem;
	line-height: 1.6;
}

/* ================== ANALYSIS SECTION ================== */
.analysis {
	padding: 5rem 0;
	background-color: #fff;
}

.analysis__container {
	display: grid;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 992px) {
	.analysis__container {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

.analysis__image-wrapper {
	max-width: 500px;
	margin: 0 auto;
}

.analysis__image {
	width: 100%;
	border-radius: 8px;
}

.analysis__title {
	font-size: 2.25rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
	.analysis__title {
		font-size: 2.75rem;
	}
}

.analysis__description {
	color: var(--secondary-color);
	margin-bottom: 2rem;
	line-height: 1.7;
}

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

.analysis__feature-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.05rem;
}

.analysis__feature-item .lucide {
	color: var(--primary-color);
	width: 22px;
	height: 22px;
	flex-shrink: 0; /* Чтобы иконка не сжималась */
}

/* ================== CASES SECTION (TABS) ================== */
.cases {
	padding: 5rem 0;
}

.tabs {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

.tabs__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--border-color);
}

.tabs__button {
	padding: 1rem 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	background-color: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	color: var(--secondary-color);
	transition: all 0.3s ease;
	margin-bottom: -1px; /* To align with the bottom border */
}

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

.tabs__button--active {
	color: var(--primary-color);
	border-bottom-color: var(--primary-color);
}

.tabs__pane {
	display: none;
	animation: fadeIn 0.5s ease;
}

.tabs__pane--active {
	display: block;
}

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

.case-study {
	display: grid;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 768px) {
	.case-study {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
	}
}

.case-study__image {
	width: 100%;
	border-radius: 8px;
}

.case-study__title {
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

.case-study__description {
	color: var(--secondary-color);
	margin-bottom: 2rem;
}

.case-study__results {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.case-study__results li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 500;
}

.case-study__results .lucide {
	width: 20px;
	height: 20px;
	color: var(--primary-color);
}

/* ================== PROCESS SECTION ================== */
.process {
	padding: 5rem 0;
	background-color: #fff;
}

.process__timeline {
	display: grid;
	gap: 2rem;
}

@media (min-width: 768px) {
	.process__timeline {
		grid-template-columns: repeat(2, 1fr);
		gap: 3rem;
	}
}

@media (min-width: 1024px) {
	.process__timeline {
		grid-template-columns: repeat(4, 1fr);
		gap: 2rem;
	}
}

.process__step {
	text-align: center;
	position: relative;
}

/* Connecting lines for desktop */
@media (min-width: 1024px) {
	.process__step:not(:last-child)::after {
		content: '';
		position: absolute;
		top: 40px; /* Vertically center with the icon */
		right: -1rem; /* Half of the gap */
		transform: translateX(50%);
		width: 100%;
		height: 2px;
		background-image: linear-gradient(
			to right,
			var(--border-color) 50%,
			transparent 50%
		);
		background-size: 10px 2px;
		background-repeat: repeat-x;
	}
}

.process__icon-wrapper {
	width: 80px;
	height: 80px;
	margin: 0 auto 1.5rem auto;
	background-color: var(--background-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	border: 1px solid var(--border-color);
}

.process__icon-wrapper .lucide {
	width: 36px;
	height: 36px;
	color: var(--primary-color);
}

.process__step-number {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 30px;
	height: 30px;
	background-color: var(--primary-color);
	color: #fff;
	border-radius: 50%;
	font-size: 0.875rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
}

.process__step-title {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.process__step-description {
	color: var(--secondary-color);
}

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

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

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

.contact__title {
	font-size: 2.25rem;
	margin-bottom: 1rem;
}

@media (min-width: 768px) {
	.contact__title {
		font-size: 2.75rem;
	}
}

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

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

.contact__detail-item {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--text-color);
	font-weight: 500;
}

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

.contact__detail-item .lucide {
	width: 22px;
	height: 22px;
	color: var(--primary-color);
}

/* ================== FORM ================== */
.form {
	background-color: #fff;
	padding: 2.5rem;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form__group {
	margin-bottom: 1.5rem;
}

.form__label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.form__input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	font-size: 1rem;
	font-family: var(--font-family-base);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.form__checkbox {
	margin-top: 4px;
	flex-shrink: 0;
}

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

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

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

.form__success-message {
	text-align: center;
	margin-top: 1.5rem;
	color: #155724;
	background-color: #d4edda;
	padding: 0.75rem;
	border-radius: 5px;
}

/* ================== COOKIE POPUP ================== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: #343a40;
	color: #f8f9fa;
	padding: 1.5rem;
	box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
	z-index: 1100;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 1rem;
	transition: bottom 0.5s ease-in-out;
}

@media (min-width: 768px) {
	.cookie-popup {
		flex-direction: row;
		justify-content: space-between;
		padding: 1rem 2rem;
		text-align: left;
	}
}

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

.cookie-popup__text {
	margin: 0;
}

.cookie-popup__text a {
	color: #fff;
	text-decoration: underline;
	font-weight: 500;
}

.cookie-popup__button {
	padding: 0.5rem 1.5rem;
	background-color: var(--primary-color);
	flex-shrink: 0;
}

/* ================== GENERIC PAGES (Privacy, Terms, etc.) ================== */
.pages {
	padding: 7rem 0;
	background-color: #fff;
}

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

.pages h1 {
	font-size: 1.5rem;
	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 {
	margin-bottom: 1rem;
	line-height: 1.7;
	color: var(--secondary-color);
}

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

.pages li {
	margin-bottom: 0.75rem;
	color: var(--secondary-color);
}

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

.pages a {
	text-decoration: underline;
}

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