/* ======== ETAP 0: ГЛОБАЛЬНЫЕ СТИЛИ ======== */

/* 1. Переменные */
:root {
	--bg-color: #ffffff;
	--text-color: #1a202c;
	--primary-color: #0052cc;
	--secondary-color: #36b37e;
	--light-gray-color: #f4f5f7;
	--footer-bg-color: #1a202c;
	--footer-text-color: #a0aec0;

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

	--container-width: 1140px;
	--container-padding: 1.5rem;
	--header-height: 70px;
}

/* 2. Сброс стилей */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-secondary);
	color: var(--text-color);
	background-color: var(--bg-color);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-primary);
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 1rem;
}

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

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

ul {
	list-style: none;
}

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

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background-color: transparent;
}

/* 3. Утилитарные классы */
.container {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

/* ======== ETAP 1: ХЕДЕР ======== */
.header {
	width: 100%;
	height: var(--header-height);
	background-color: var(--bg-color);
	border-bottom: 1px solid var(--light-gray-color);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
}

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

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

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

.logo__svg {
	width: 32px; /* Уменьшим для хедера */
	height: 32px;
}

.logo__text {
	transition: color 0.3s ease;
}

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

/* Стили для мобильного меню (Mobile-First) */
.nav {
	position: fixed;
	top: var(--header-height);
	left: -100%; /* Скрыто за экраном */
	width: 100%;
	height: calc(100vh - var(--header-height));
	background-color: var(--bg-color);
	flex-direction: column;
	padding: 2rem;
	transition: left 0.3s ease-in-out;
	overflow-y: auto;
}

.nav--mobile-active {
	left: 0; /* Показываем меню */
}

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

.nav__link {
	font-family: var(--font-primary);
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--text-color);
}

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

.nav__link--cta {
	display: inline-block;
	background-color: var(--secondary-color);
	color: #fff;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	text-align: center;
	transition: background-color 0.3s ease;
}

.nav__link--cta:hover {
	background-color: #2b9e6c;
	color: #fff;
}

/* Бургер */
.burger {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	width: 24px;
	height: 18px;
	z-index: 1001;
}

.burger__line {
	width: 100%;
	height: 2px;
	background-color: var(--text-color);
	border-radius: 2px;
	transition: all 0.3s ease-in-out;
}

/* Анимация бургера */
.burger--active .burger__line:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.burger--active .burger__line:nth-child(2) {
	opacity: 0;
}
.burger--active .burger__line:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}
/* Хак для трех линий, т.к. в HTML только один span */
.burger::before,
.burger::after {
	content: '';
	width: 100%;
	height: 2px;
	background-color: var(--text-color);
	border-radius: 2px;
	transition: all 0.3s ease-in-out;
}
.burger--active::before {
	transform: translateY(8px) rotate(45deg);
}
.burger--active .burger__line {
	opacity: 0; /* Скрываем среднюю линию */
}
.burger--active::after {
	transform: translateY(-8px) rotate(-45deg);
}
.burger .burger__line {
	transform: translateY(0); /* Позиция средней линии */
}

/* Стили для десктопа (768px+) */
@media (min-width: 768px) {
	.nav {
		position: static;
		width: auto;
		height: auto;
		background-color: transparent;
		flex-direction: row;
		padding: 0;
		left: 0;
	}

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

	.nav__link {
		font-size: 1rem;
	}

	.nav__link--cta {
		padding: 0.5rem 1.25rem;
	}

	.burger {
		display: none;
	}
}

/* Добавляем отступ для main, чтобы контент не уезжал под хедер */
.main {
	padding-top: var(--header-height);
}

/* ======== ETAP 2: ФУТЕР ======== */
.footer {
	background-color: var(--footer-bg-color);
	color: var(--footer-text-color);
	padding: 4rem 0 2rem 0;
	margin-top: 4rem; /* Временный отступ */
}

.footer .logo__text {
	color: #fff;
}
.footer .logo:hover .logo__text {
	color: #fff;
}

/* SVG в футере нужно инвертировать */
.footer .logo__svg path {
	stroke: #fff; /* Белые контуры */
}
.footer .logo__svg path:last-child {
	stroke: var(--secondary-color); /* Акцентный цвет */
}

.footer__grid {
	display: grid;
	gap: 2rem;
	/* Mobile-first: 1 колонка */
	grid-template-columns: 1fr;
}

.footer__column {
	margin-bottom: 1rem;
}

.footer__heading {
	font-size: 1.1rem;
	color: #fff;
	margin-bottom: 1rem;
}

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

.footer__link,
.footer__text {
	color: var(--footer-text-color);
	font-size: 0.95rem;
}

.footer__link:hover {
	color: #fff;
}

.footer__list--contact {
	gap: 1rem;
}

.footer__list--contact .footer__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.footer__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--secondary-color);
}

.footer__copyright {
	font-size: 0.9rem;
	margin-top: 1rem;
}

/* Адаптация футера для планшетов и десктопа */
@media (min-width: 576px) {
	.footer__grid {
		/* 2 колонки */
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.footer__grid {
		/* 4 колонки */
		grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
		gap: 3rem;
	}
}

/* ======== ОБЩИЕ СТИЛИ (для секций и кнопок) ======== */

/* Базовый стиль секции */
.section {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

/* Стиль для секций с чередующимся фоном */
.section--bg-gray {
	background-color: var(--light-gray-color);
}

/* Общий стиль для заголовков секций */
.section__title {
	font-size: 2.25rem; /* 36px */
	text-align: center;
	margin-bottom: 3rem;
	position: relative;
	color: var(--text-color);
}

/* Декоративная линия под заголовком */
.section__title::after {
	content: '';
	display: block;
	width: 60px;
	height: 4px;
	background-color: var(--secondary-color);
	margin: 0.5rem auto 0;
	border-radius: 2px;
}

/* Общий стиль кнопки */
.button {
	display: inline-block;
	font-family: var(--font-primary);
	font-size: 1rem;
	font-weight: 500;
	padding: 0.85rem 2rem;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	border: 2px solid transparent;
}

.button--primary {
	background-color: var(--secondary-color);
	color: #fff;
	box-shadow: 0 4px 14px rgba(54, 179, 126, 0.4);
}

.button--primary:hover {
	background-color: #2b9e6c;
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(54, 179, 126, 0.5);
}

/* ======== ETAP 3: HERO SECTION ======== */
.hero {
	padding-top: 4rem;
	padding-bottom: 4rem;
	/* Высота первого экрана */
	min-height: calc(100vh - var(--header-height));
	display: flex;
	align-items: center;
}

.hero__container {
	display: grid;
	grid-template-columns: 1fr; /* Mobile-first: 1 колонка */
	gap: 2rem;
	align-items: center;
}

.hero__content {
	text-align: center; /* Центрируем на мобильных */
}

.hero__title {
	font-size: 1.5rem; /* 40px */
	color: var(--text-color);
	line-height: 1.2;
	margin-bottom: 1.5rem;
	/* Резервируем место под 2 строки, чтобы избежать "прыжка" */
	min-height: 90px;
}

/* Эффект мигающего курсора для анимации */
.hero__title::after {
	content: '|';
	animation: blink 1s infinite;
	color: var(--secondary-color);
	font-weight: 300;
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.hero__description {
	font-size: 1.125rem; /* 18px */
	color: var(--text-color);
	margin-bottom: 2.5rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hero__cta {
	/* Используем общие стили кнопки */
	background-color: var(--secondary-color);
	color: #fff;
	box-shadow: 0 4px 14px rgba(54, 179, 126, 0.4);
}

.hero__cta:hover {
	background-color: #2b9e6c;
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(54, 179, 126, 0.5);
}

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

.hero__image {
	width: 100%;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
}

/* Адаптация Hero (Планшеты и Десктопы) */
@media (min-width: 768px) {
	.hero {
		padding-top: 5rem;
		padding-bottom: 5rem;
	}

	.hero__container {
		grid-template-columns: 1fr 1fr; /* 2 колонки */
		gap: 3rem;
	}

	.hero__content {
		text-align: left; /* Текст слева */
		order: 1; /* Контент первый */
	}

	.hero__visual {
		order: 2; /* Картинка вторая */
	}

	.hero__title {
		font-size: 2rem; /* 48px */
		min-height: 115px; /* Резервируем больше места */
	}

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

/* Большие десктопы */
@media (min-width: 992px) {
	.hero__title {
		font-size: 2.5rem; /* 56px */
		min-height: 135px; /* Еще больше места */
	}
}

/* ======== ETAP 3.1: ABOUT SECTION ======== */
.about__grid {
	display: grid;
	grid-template-columns: 1fr; /* Mobile-first: 1 колонка */
	gap: 1.5rem;
}

.about-card {
	background-color: var(--bg-color);
	border-radius: 12px;
	padding: 2rem 1.5rem;
	text-align: center;
	border: 1px solid #e2e8f0;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(26, 32, 44, 0.08);
}

.about-card__icon-wrapper {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: var(--secondary-color);
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto 1.5rem auto;
}

.about-card__icon {
	width: 32px;
	height: 32px;
	color: #fff;
}

.about-card__title {
	font-size: 1.3rem;
	color: var(--text-color);
	margin-bottom: 0.75rem;
}

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

/* Адаптация About (Планшеты и Десктопы) */
@media (min-width: 768px) {
	.about__grid {
		grid-template-columns: repeat(3, 1fr); /* 3 колонки */
		gap: 2rem;
	}
}

/* ======== ETAP 3.2: SOLUTIONS SECTION ======== */

/* Подзаголовок (если нужен) */
.section__subtitle {
	text-align: center;
	font-size: 1.1rem;
	color: var(--text-color);
	max-width: 600px;
	margin: -2.5rem auto 3rem auto; /* Небольшой отступ после заголовка */
	line-height: 1.6;
}

/* Навигация табов */
.solutions__tabs-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap; /* Для мобильных */
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.solutions__tab-button {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-family: var(--font-primary);
	font-size: 1rem;
	font-weight: 500;
	color: var(--text-color);
	background-color: var(--light-gray-color);
	border: 2px solid transparent;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.solutions__tab-button:hover {
	background-color: #e2e8f0;
}

.solutions__tab-button--active {
	color: var(--primary-color);
	background-color: #fff;
	border-color: var(--primary-color);
	box-shadow: 0 4px 10px rgba(0, 82, 204, 0.15);
}

.solutions__tab-icon {
	width: 20px;
	height: 20px;
}

/* Контент табов */
.solutions__content-pane {
	display: none; /* Скрываем все по умолчанию */
	animation: fadeIn 0.5s ease;
}

.solutions__content-pane--active {
	display: block; /* Показываем активный таб */
}

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

/* Сетка внутри таба (текст + картинка) */
.solutions-pane__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
	background-color: var(--bg-color);
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 2rem;
	overflow: hidden;
}

.solutions-pane__text h3 {
	font-size: 1.75rem;
	color: var(--text-color);
	margin-bottom: 1rem;
}

.solutions-pane__text p {
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.solutions-pane__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.solutions-pane__list li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.solutions-pane__list-icon {
	width: 20px;
	height: 20px;
	color: var(--secondary-color);
	flex-shrink: 0;
}

.solutions-pane__image {
	width: 100%;
	height: auto;
	border-radius: 8px;
	object-fit: cover;
}

/* Адаптация Solutions (Планшеты и Десктопы) */
@media (min-width: 768px) {
	.solutions-pane__grid {
		grid-template-columns: 1fr 1fr; /* 2 колонки */
		gap: 3rem;
		padding: 3rem;
	}

	/* Меняем порядок для разнообразия */
	#tab-sales .solutions-pane__text {
		order: 2;
	}
	#tab-sales .solutions-pane__visual {
		order: 1;
	}
}

/* ======== ETAP 3.3: CASES SECTION ======== */
.cases__grid {
	display: grid;
	grid-template-columns: 1fr; /* 1 колонка на мобильных */
	gap: 2rem;
}

.case-card {
	background-color: var(--bg-color);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 12px rgba(26, 32, 44, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(26, 32, 44, 0.1);
}

.case-card__image-wrapper {
	position: relative;
	height: 220px;
}

.case-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.case-card__category {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background-color: var(--secondary-color);
	color: #fff;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	font-family: var(--font-primary);
}

.case-card__content {
	padding: 1.5rem;
}

.case-card__title {
	font-size: 1.35rem;
	color: var(--text-color);
	margin-bottom: 0.75rem;
}

.case-card__description {
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
	/* Ограничиваем текст 3-мя строками */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 57px; /* 0.95rem * 1.6 * 3 строки */
}

/* Стиль для CTA-кнопки в карточке.
   Используем .button, но сделаем его чуть менее агрессивным.
*/
.case-card__cta {
	background-color: transparent;
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	width: 100%;
	padding: 0.75rem 1rem;
}

.case-card__cta:hover {
	background-color: var(--primary-color);
	color: #fff;
	transform: none; /* Убираем эффект .button:hover */
	box-shadow: none;
}

/* Адаптация Cases (Планшеты и Десктопы) */
@media (min-width: 576px) {
	.cases__grid {
		grid-template-columns: repeat(2, 1fr); /* 2 колонки */
	}
}

@media (min-width: 992px) {
	.cases__grid {
		grid-template-columns: repeat(3, 1fr); /* 3 колонки */
	}
}

/* ======== ETAP 3.4: BLOG SECTION ======== */
.blog__grid {
	display: grid;
	grid-template-columns: 1fr; /* 1 колонка на мобильных */
	gap: 2rem;
}

.blog-card {
	background-color: var(--bg-color);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 12px rgba(26, 32, 44, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(26, 32, 44, 0.1);
}

.blog-card__link {
	display: block;
	text-decoration: none;
	color: var(--text-color);
}

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

.blog-card__image-wrapper {
	height: 200px;
}

.blog-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__image {
	transform: scale(1.05);
}

.blog-card__content {
	padding: 1.5rem;
}

.blog-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
	margin-bottom: 0.75rem;
	color: #4a5568; /* Тусклый серый */
	font-family: var(--font-primary);
}

.blog-card__category {
	font-weight: 500;
	color: var(--primary-color);
}

.blog-card__title {
	font-size: 1.25rem;
	line-height: 1.4;
	margin-bottom: 0.5rem;
	/* Ограничиваем 2 строками */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 44px; /* 1.25rem * 1.4 * 2 строки */
	transition: color 0.3s ease;
}

.blog-card:hover .blog-card__title {
	color: var(--secondary-color);
}

.blog-card__excerpt {
	font-size: 0.95rem;
	line-height: 1.6;
	/* Ограничиваем 3 строками */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 57px; /* 0.95rem * 1.6 * 3 строки */
}

/* Адаптация Blog (Планшеты и Десктопы) */
@media (min-width: 576px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr); /* 2 колонки */
	}
}

@media (min-width: 992px) {
	.blog__grid {
		grid-template-columns: repeat(4, 1fr); /* 4 колонки */
	}
}

/* ======== ETAP 4: CONTACT SECTION ======== */
.contact__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

.contact__title {
	text-align: left; /* Переопределяем .section__title */
	margin-bottom: 1.5rem;
}
.contact__title::after {
	margin: 0.5rem 0 0 0; /* Переопределяем .section__title */
}

.contact__description {
	font-size: 1.1rem;
	line-height: 1.7;
	margin-bottom: 1rem;
}

.contact-form {
	background-color: var(--bg-color);
	padding: 2.5rem 2rem;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(26, 32, 44, 0.08);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	font-family: var(--font-primary);
	font-weight: 500;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.form-input {
	width: 100%;
	padding: 0.85rem 1rem;
	font-size: 1rem;
	font-family: var(--font-secondary);
	border: 1px solid #cbd5e0;
	border-radius: 8px;
	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, 82, 204, 0.15);
}

/* Кастомный чекбокс */
.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.form-checkbox {
	/* Скрываем нативный чекбокс */
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 0.15rem; /* Для выравнивания с текстом */
	border: 2px solid #cbd5e0;
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-checkbox:checked {
	background-color: var(--secondary-color);
	border-color: var(--secondary-color);
}

/* Галочка */
.form-checkbox:checked::after {
	content: '';
	display: block;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	position: absolute;
	top: 2px;
	left: 6px;
}

.form-checkbox-label {
	font-size: 0.9rem;
	line-height: 1.5;
	user-select: none;
}
.form-checkbox-label a {
	text-decoration: underline;
}
.form-checkbox-label a:hover {
	color: var(--secondary-color);
}

.contact-form__button {
	width: 100%;
}

/* Сообщения формы */
.form-message {
	margin-bottom: 1.5rem;
	padding: 1rem;
	border-radius: 8px;
	font-size: 0.95rem;
	display: none; /* Скрыто по умолчанию */
}

.form-message--success {
	background-color: #e6fffa;
	border: 1px solid var(--secondary-color);
	color: #234e52;
	display: block; /* Показываем, когда JS добавляет класс */
}

.form-message--error {
	background-color: #fff5f5;
	border: 1px solid #e53e3e;
	color: #c53030;
	display: block; /* Показываем, когда JS добавляет класс */
}

/* Адаптация Contact (Планшеты и Десктопы) */
@media (min-width: 992px) {
	.contact__grid {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}
}

/* ======== ETAP 5.1: COOKIE POP-UP ======== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Скрыто по умолчанию */
	left: 0;
	width: 100%;
	background-color: var(--footer-bg-color);
	color: var(--footer-text-color);
	padding: 1.5rem;
	box-shadow: 0 -5px 15px rgba(26, 32, 44, 0.1);
	z-index: 2000;
	transition: bottom 0.5s ease-in-out;
}

/* Класс для показа */
.cookie-popup--show {
	bottom: 0;
}

.cookie-popup__content {
	display: flex;
	flex-direction: column; /* Mobile-first */
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	max-width: var(--container-width);
	margin: 0 auto;
}

.cookie-popup__text {
	font-size: 0.95rem;
	text-align: center;
}

.cookie-popup__link {
	color: #fff;
	text-decoration: underline;
	font-weight: 500;
}
.cookie-popup__link:hover {
	color: var(--secondary-color);
}

.cookie-popup__button {
	/* Используем .button, но переопределим цвета */
	background-color: var(--secondary-color);
	color: #fff;
	padding: 0.6rem 1.5rem; /* Чуть меньше */
	flex-shrink: 0;
}

.cookie-popup__button:hover {
	background-color: #2b9e6c;
	color: #fff;
	transform: none;
	box-shadow: none;
}

/* Адаптация для десктопа */
@media (min-width: 768px) {
	.cookie-popup__content {
		flex-direction: row; /* В ряд на десктопе */
		gap: 2rem;
	}
	.cookie-popup__text {
		text-align: left;
	}
}

.pages {
	padding-top: 6rem;
	padding-bottom: 4rem;
}

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

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

.pages h2 {
	font-size: 1.5rem;
	color: var(--text-color);
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

.pages p {
	font-size: 1.05rem;
	color: var(--text-color);
	margin-bottom: 1.5rem;
}

.pages ul {
	list-style: disc; /* Возвращаем стандартные маркеры */
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}

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

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

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

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