/* ==========================================================================
   1. Global Styles & Variables
   ========================================================================== */
:root {
	--color-background: #f5f5f7;
	--color-text: #1d1d1f;
	--color-accent: #007a7a;
	--color-border: #eaeaea;
	--color-white: #ffffff;

	--font-primary: 'Inter', sans-serif;
	--font-secondary: 'Manrope', sans-serif;

	--header-height: 7rem;
}

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

html {
	font-size: 62.5%; /* 1rem = 10px */
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	font-size: 1.6rem;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-background);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
	list-style: none;
}

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

/* ==========================================================================
   2. Header
   ========================================================================== */
.header {
	background-color: var(--color-background);
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	height: var(--header-height);
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--color-text);
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 2rem;
}

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

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

.header__nav {
	display: flex;
}

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

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

.header__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;
}

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

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

/* ==========================================================================
   3. Footer
   ========================================================================== */
.footer {
	background-color: var(--color-text);
	color: var(--color-background);
	padding: 6rem 0;
	margin-top: 8rem; /* Отступ от последнего блока контента */
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4rem;
}

.footer__column--main {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.footer__copyright {
	font-size: 1.3rem;
	color: rgba(255, 255, 255, 0.6);
	margin-top: auto; /* Прижимает текст к низу */
}

.footer__heading {
	font-family: var(--font-secondary);
	font-size: 1.8rem;
	margin-bottom: 2rem;
	color: var(--color-white);
}

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

.footer__link {
	font-size: 1.5rem;
	color: rgba(255, 255, 255, 0.8);
	transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer__link:hover {
	color: var(--color-white);
	padding-left: 0.5rem;
}

.footer__list--contacts {
	font-style: normal;
}

.footer__address {
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   4. Responsive (Mobile-First)
   ========================================================================== */

/* Tablet */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile */
@media (max-width: 768px) {
	.header__nav {
		display: none; /* Скрываем навигацию */

		/* Стили для мобильного меню, которое будет показано через JS */
		position: fixed;
		top: var(--header-height);
		left: 0;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-background);
		flex-direction: column;
		padding: 4rem 2rem;
		transform: translateX(100%);
		transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
	}

	.header__nav.is-active {
		display: flex;
		transform: translateX(0);
	}

	.header__nav-list {
		flex-direction: column;
		gap: 3rem;
		align-items: center;
		width: 100%;
	}

	.header__nav-link {
		font-size: 2.2rem;
	}

	.header__burger {
		display: block; /* Показываем бургер */
	}

	.body--menu-open {
		overflow: hidden;
	}

	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--main {
		align-items: center;
		gap: 2rem;
	}

	.footer__copyright {
		margin-top: 2rem;
	}

	.footer__link:hover {
		padding-left: 0;
	}
}

/* ==========================================================================
   5. Button (Global)
   ========================================================================== */
.button {
	display: inline-block;
	padding: 1.4rem 3.2rem;
	font-family: var(--font-secondary);
	font-size: 1.6rem;
	font-weight: 600;
	color: var(--color-white);
	background-color: var(--color-accent);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	text-align: center;
	transition: transform 0.3s ease, filter 0.3s ease;
}

.button:hover {
	color: var(--color-white);
	transform: translateY(-3px);
	filter: brightness(1.1);
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */
.hero {
	padding: 8rem 0;
	min-height: calc(90vh - var(--header-height));
	display: flex;
	align-items: center;
}

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

.hero__title {
	font-family: var(--font-secondary);
	font-size: 5.2rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 2rem;
	/* --- Animation --- */
	opacity: 0;
	animation: fadeInUp 0.8s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero__subtitle {
	font-size: 1.8rem;
	line-height: 1.7;
	margin-bottom: 4rem;
	max-width: 50ch;
	/* --- Animation --- */
	opacity: 0;
	animation: fadeInUp 0.8s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero__cta {
	/* --- Animation --- */
	opacity: 0;
	animation: fadeInUp 0.8s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

.hero__image {
	border-radius: 12px;
	width: 100%;
	max-width: 500px;
	height: auto;
	object-fit: cover;
	opacity: 0;
	animation: fadeIn 1s 0.8s ease-in-out forwards;
}

/* --- Keyframes for animations --- */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* --- Responsive for Hero --- */
@media (max-width: 992px) {
	.hero__title {
		font-size: 4.4rem;
	}
}

@media (max-width: 768px) {
	.hero {
		padding: 6rem 0;
		text-align: center;
	}
	.hero__container {
		grid-template-columns: 1fr;
		gap: 4rem;
	}
	.hero__content {
		order: 2; /* Text goes below the image on mobile */
	}
	.hero__visual {
		order: 1;
	}
	.hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}
}

/* ==========================================================================
   7. Section Header (Global)
   ========================================================================== */
.section-header {
	text-align: center;
	margin-bottom: 6rem;
}

.section-header__title {
	font-family: var(--font-secondary);
	font-size: 3.6rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 1.5rem;
}

.section-header__subtitle {
	font-size: 1.8rem;
	max-width: 65ch;
	margin-left: auto;
	margin-right: auto;
	color: #6e6e73; /* Немного приглушенный цвет для подзаголовка */
}

/* ==========================================================================
   8. Analytics Section
   ========================================================================== */
.analytics {
	padding: 8rem 0;
	background-color: var(--color-white); /* Белый фон для контраста */
}

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

.analytics__card {
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 3rem;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analytics__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.analytics__card-icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #ecf5f5; /* Светлый оттенок акцентного цвета */
	margin-bottom: 2.5rem;
}

.analytics__card-icon i {
	color: var(--color-accent);
	width: 32px;
	height: 32px;
}

.analytics__card-title {
	font-family: var(--font-secondary);
	font-size: 2.2rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.analytics__card-description {
	font-size: 1.5rem;
	line-height: 1.6;
	color: #6e6e73;
}

/* --- Responsive for Analytics --- */
@media (max-width: 992px) {
	.analytics__grid {
		grid-template-columns: 1fr;
	}
}

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

/* ==========================================================================
   9. Strategies Section
   ========================================================================== */
.strategies {
	padding: 8rem 0;
}

.strategies__list {
	display: flex;
	flex-direction: column;
	gap: 8rem; /* Большой отступ между шагами */
}

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

/* Модификатор для "зеркального" блока */
.strategies__item--reverse .strategies__item-image {
	order: 2;
}
.strategies__item--reverse .strategies__item-content {
	order: 1;
}

.strategies__item-image img {
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.strategies__item-step {
	display: block;
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--color-accent);
	margin-bottom: 1rem;
	text-transform: uppercase;
}

.strategies__item-title {
	font-family: var(--font-secondary);
	font-size: 2.8rem;
	margin-bottom: 1.5rem;
}

.strategies__item-description {
	font-size: 1.6rem;
	line-height: 1.7;
	color: #6e6e73;
}

/* --- Responsive for Strategies --- */
@media (max-width: 992px) {
	.strategies__item {
		gap: 3rem;
	}
	.strategies__item-title {
		font-size: 2.4rem;
	}
}

@media (max-width: 768px) {
	.strategies__list {
		gap: 6rem;
	}
	.strategies__item,
	.strategies__item--reverse {
		grid-template-columns: 1fr;
	}
	.strategies__item-image {
		margin-bottom: 3rem;
	}
	.strategies__item--reverse .strategies__item-image {
		order: initial; /* Сбрасываем порядок для мобильных */
	}
	.strategies__item--reverse .strategies__item-content {
		order: initial; /* Сбрасываем порядок для мобильных */
	}
	.strategies__item-content {
		text-align: center;
	}
}

/* ==========================================================================
   10. Cases Section
   ========================================================================== */
.cases {
	padding: 8rem 0;
	background-color: var(--color-white);
}

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

.cases__card {
	background-color: var(--color-background);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cases__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.cases__card-image {
	overflow: hidden;
}

.cases__card-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.cases__card:hover .cases__card-image img {
	transform: scale(1.05);
}

.cases__card-content {
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1; /* Чтобы карточки были одной высоты */
}

.cases__card-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	font-size: 1.3rem;
}

.cases__card-tag {
	background-color: #eaeaea;
	padding: 0.4rem 1rem;
	border-radius: 20px;
	font-weight: 500;
}

.cases__card-metric {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--color-accent);
	font-weight: 600;
}

.cases__card-metric i {
	width: 16px;
	height: 16px;
}

.cases__card-title {
	font-family: var(--font-secondary);
	font-size: 2.2rem;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.cases__card-description {
	color: #6e6e73;
	line-height: 1.6;
	margin-bottom: 2rem;
	flex-grow: 1; /* Чтобы ссылка всегда была внизу */
}

.cases__card-link {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	font-weight: 600;
	color: var(--color-accent);
	align-self: flex-start; /* Прижимаем к левому краю */
}

.cases__card-link i {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.cases__card-link:hover i {
	transform: translateX(4px);
}

/* --- Responsive for Cases --- */
@media (max-width: 768px) {
	.cases__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   11. Insights Section
   ========================================================================== */
.insights {
	padding: 8rem 0;
}

.insights__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3rem;
	margin-bottom: 6rem;
}

.insights__card {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insights__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.insights__card-image-link img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.insights__card-content {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.insights__card-meta {
	display: flex;
	gap: 1.5rem;
	font-size: 1.3rem;
	color: #6e6e73;
	margin-bottom: 1rem;
}

.insights__card-category {
	color: var(--color-accent);
	font-weight: 600;
}

.insights__card-title {
	font-family: var(--font-secondary);
	font-size: 1.9rem;
	line-height: 1.4;
	font-weight: 600;
}

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

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

.insights__cta {
	text-align: center;
}

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

@media (max-width: 768px) {
	.insights__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   12. Contact Section
   ========================================================================== */
.contact {
	padding: 8rem 0;
	background-color: var(--color-white);
}

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

.contact__title {
	font-family: var(--font-secondary);
	font-size: 3.6rem;
	margin-bottom: 2rem;
}

.contact__description {
	font-size: 1.7rem;
	line-height: 1.7;
	color: #6e6e73;
	max-width: 45ch;
}

.contact__form-button {
	width: 100%;
}

/* Сообщение об успехе */
.contact__form-success {
	display: none; /* ВАЖНО: скрыто по умолчанию */
	text-align: center;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 4rem;
}

.contact__form-success-icon {
	color: var(--color-accent);
	margin-bottom: 1.5rem;
}

.contact__form-success-icon i {
	width: 50px;
	height: 50px;
}

.contact__form-success-title {
	font-family: var(--font-secondary);
	font-size: 2.4rem;
	margin-bottom: 1rem;
}

/* ==========================================================================
   13. Form Styles (Global)
   ========================================================================== */
.form-group {
	margin-bottom: 2rem;
}

.form-label {
	display: block;
	font-size: 1.4rem;
	font-weight: 500;
	margin-bottom: 0.8rem;
}

.form-input {
	width: 100%;
	padding: 1.2rem 1.6rem;
	font-size: 1.6rem;
	font-family: var(--font-primary);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background-color: var(--color-background);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(0, 122, 122, 0.15);
}

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	font-size: 1.4rem;
	color: #6e6e73;
}

.form-group--checkbox input[type='checkbox'] {
	margin-top: 0.3rem;
	flex-shrink: 0;
}

/* --- Responsive for Contact --- */
@media (max-width: 992px) {
	.contact__grid {
		grid-template-columns: 1fr;
		gap: 5rem;
		text-align: center;
	}
	.contact__description {
		margin: 0 auto;
	}
}

/* ==========================================================================
   14. Cookie Pop-up
   ========================================================================== */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--color-text);
	color: var(--color-white);
	padding: 2rem;
	z-index: 2000;
	transform: translateY(100%);
	transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

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

.cookie-popup__link {
	color: var(--color-white);
	text-decoration: underline;
	font-weight: 500;
}

.cookie-popup__link:hover {
	color: #cccccc;
}

.cookie-popup__button {
	background-color: var(--color-white);
	color: var(--color-text);
	padding: 1rem 2.5rem;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font-weight: 600;
	font-size: 1.4rem;
	white-space: nowrap; /* Чтобы текст не переносился */
	transition: background-color 0.3s ease;
}

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

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

/* ==========================================================================
   15. Policy & Static Pages
   ========================================================================== */
.pages {
	padding: 6rem 0;
}

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

.pages h1,
.pages h2 {
	font-family: var(--font-secondary);
	margin-bottom: 2rem;
	line-height: 1.3;
}

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

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

.pages p {
	font-size: 1.7rem;
	line-height: 1.8;
	color: #333;
	margin-bottom: 2rem;
}

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

.pages li {
	font-size: 1.7rem;
	line-height: 1.8;
	margin-bottom: 1.2rem;
}

.pages a {
	text-decoration: underline;
}

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

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