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

/* Подключение шрифтов (уже сделано в HTML через <link>) */

:root {
	/* Палитра */
	--primary-color: #0a2e5b;
	--secondary-color: #00c49a;
	--text-color: #333333;
	--text-light: #666666;
	--bg-color: #ffffff;
	--light-gray-bg: #f8f9fa;

	/* Шрифты */
	--font-primary: 'Manrope', sans-serif;
	--font-secondary: 'Playfair Display', serif;

	/* Размеры */
	--header-height: 70px;
	--border-radius: 8px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--bg-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-secondary);
	font-weight: 700;
	color: var(--primary-color);
	line-height: 1.2;
}

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

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

ul {
	list-style: none;
}

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

button {
	font-family: var(--font-primary);
	cursor: pointer;
	border: none;
	background: none;
}

/* Контейнер */
.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

/* ======== ЭТАП 1: ХЕДЕР ======== */
.header {
	width: 100%;
	height: var(--header-height);
	background-color: var(--bg-color);
	border-bottom: 1px solid #eee;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
}

.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-size: 1.25rem;
	font-weight: 700;
	color: var(--primary-color);
}
.logo:hover {
	color: var(--primary-color); /* Логотип не меняет цвет при наведении */
}
.logo svg {
	stroke: var(--primary-color);
}

/* Навигация (Скрыта на мобильных) */
.nav {
	display: none;
}

.nav__list {
	display: flex;
	flex-direction: column; /* Для мобильного меню */
	gap: 1.5rem;
}

.nav__link {
	font-weight: 700;
	font-size: 1.2rem; /* Крупнее для мобильного */
	color: var(--primary-color);
}

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

.nav__link--cta {
	background-color: var(--secondary-color);
	color: #fff;
	padding: 0.5rem 1rem;
	border-radius: var(--border-radius);
	transition: background-color 0.3s ease, color 0.3s ease;
}

.nav__link--cta:hover {
	background-color: var(--primary-color);
	color: #fff;
}

/* Кнопка Бургер */
.header__toggle {
	display: block;
	color: var(--primary-color);
	cursor: pointer;
}
.header__toggle .lucide {
	width: 28px;
	height: 28px;
}

/* Стили для открытого мобильного меню */
.nav.nav--open {
	display: flex;
	position: absolute;
	top: var(--header-height);
	left: 0;
	width: 100%;
	height: calc(100vh - var(--header-height));
	background-color: var(--bg-color);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	z-index: 99;
}

/* Адаптация хедера (Mobile-first) */
@media (min-width: 992px) {
	.header__toggle {
		display: none; /* Скрываем бургер */
	}

	.nav {
		display: block; /* Показываем навигацию */
	}

	.nav__list {
		flex-direction: row; /* Горизонтальное меню */
		align-items: center;
		gap: 2rem;
	}

	.nav__link {
		font-size: 1rem; /* Стандартный размер */
	}

	.nav__link--cta {
		padding: 0.6rem 1.2rem;
	}
}

/* ======== ЭТАП 2: ФУТЕР ======== */
.footer {
	background-color: var(--light-gray-bg);
	padding: 4rem 0 2rem 0;
	border-top: 1px solid #eee;
	margin-top: 4rem;
}

.footer__container {
	display: grid;
	grid-template-columns: 1fr; /* 1 колонка на мобильных */
	gap: 2.5rem;
}

.footer__col--logo {
	margin-bottom: 1rem;
}

.footer__logo {
	font-size: 1.5rem;
}

.footer__description {
	font-size: 0.9rem;
	color: var(--text-light);
	margin-top: 1rem;
	max-width: 300px;
}

.footer__title {
	font-family: var(--font-primary);
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--primary-color);
}

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

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

.footer__link:hover {
	color: var(--secondary-color);
	text-decoration: underline;
}

.footer__address {
	font-style: normal;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer__address p {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.95rem;
	color: var(--text-light);
}

.footer__icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 4px;
	color: var(--secondary-color);
}

.footer__bottom {
	text-align: center;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid #ddd;
	font-size: 0.9rem;
	color: var(--text-light);
}

/* Адаптация футера (Mobile-first) */
@media (min-width: 768px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
		gap: 3rem;
	}
}

@media (min-width: 992px) {
	.footer__container {
		grid-template-columns: 1.5fr 1fr 1fr 1fr; /* 4 колонки на десктопах */
	}
}

/* ======== ЭТАП 3: HERO SECTION ======== */

/* Стили для кнопки (глобальные) */
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.5rem;
	background-color: var(--secondary-color);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	border-radius: var(--border-radius);
	transition: all 0.3s ease;
	border: 2px solid var(--secondary-color);
}

.button:hover {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.button .lucide {
	width: 20px;
	height: 20px;
}

/* Стили секции Hero */
.hero {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 100vh; /* Занимает весь экран */
	padding-top: var(--header-height); /* Отступ от хедера */
	background-color: var(--bg-color);
	overflow: hidden;
}

.hero__container {
	display: grid;
	grid-template-columns: 1fr; /* 1 колонка на мобильных */
	gap: 3rem;
	align-items: center;
}

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

.hero__title {
	font-size: 2.5rem; /* 40px */
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

.hero__description {
	font-size: 1.15rem;
	color: var(--text-light);
	margin-bottom: 2.5rem;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.hero__cta {
	font-size: 1.1rem;
	padding: 1rem 2rem;
}

.hero__visual {
	position: relative;
	width: 100%;
	min-height: 300px; /* Высота для мобильных */
	z-index: 1;
}

#hero-canvas {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	max-width: 500px; /* Ограничиваем на мобильных */
	max-height: 500px;
}

/* Адаптация Hero (Mobile-first) */
@media (min-width: 768px) {
	.hero__title {
		font-size: 3rem; /* 48px */
	}
}

@media (min-width: 992px) {
	.hero {
		min-height: 100vh;
		padding-top: var(--header-height);
	}

	.hero__container {
		grid-template-columns: 1fr 1fr; /* 2 колонки на десктопах */
		gap: 2rem;
		padding-top: 2rem;
		padding-bottom: 2rem;
	}

	.hero__content {
		text-align: left; /* Выравнивание по левому краю */
	}

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

	.hero__visual {
		min-height: 500px;
	}

	#hero-canvas {
		max-width: none;
		max-height: none;
	}
}

/* ======== ЭТАП 3: STRATEGIES SECTION ======== */

/* Глобальные стили для заголовков секций */
.section-header {
	text-align: center;
	margin-bottom: 3.5rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.section-header__subtitle {
	display: inline-block;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--secondary-color);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.5rem;
}

.section-header__title {
	font-size: 2.25rem; /* 36px */
	margin-bottom: 1rem;
}

.section-header__description {
	font-size: 1.05rem;
	color: var(--text-light);
}

/* Стили секции */
.strategies {
	padding: 5rem 0;
	background-color: var(--light-gray-bg);
	position: relative;
	overflow: hidden;
}

/* Стили Timeline */
.timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
}

/* Центральная линия (только на десктопах) */
.timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: var(--secondary-color);
	opacity: 0.3;
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -1.5px;
	display: none; /* Скрыта на мобильных */
}

.timeline__item {
	padding: 1rem 0 1rem 2.5rem; /* Отступ слева для иконки на мобильных */
	position: relative;
	background-color: transparent;
	width: 100%; /* На мобильных 100% */
	margin-bottom: 2rem;
}

.timeline__icon-wrapper {
	position: absolute;
	left: 0;
	top: 10px;
	width: 40px;
	height: 40px;
	background-color: var(--secondary-color);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.timeline__icon {
	width: 20px;
	height: 20px;
}

.timeline__content {
	background-color: #fff;
	padding: 1.5rem;
	border-radius: var(--border-radius);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.timeline__step {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--text-light);
	margin-bottom: 0.5rem;
	display: block;
}

.timeline__title {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
	font-family: var(--font-primary);
	font-weight: 700;
}

.timeline__description {
	font-size: 0.95rem;
	color: var(--text-light);
	line-height: 1.6;
}

/* Стили для анимации появления (AOS-style) */
.animated-item {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}
/* Добавим задержку для каждого элемента */
.timeline__item:nth-child(2) {
	transition-delay: 0.1s;
}
.timeline__item:nth-child(3) {
	transition-delay: 0.2s;
}
.timeline__item:nth-child(4) {
	transition-delay: 0.3s;
}

/* Адаптация Timeline (Mobile-first) */
@media (min-width: 992px) {
	.section-header__title {
		font-size: 2.75rem; /* 44px */
	}

	.timeline::after {
		display: block; /* Показываем линию на десктопах */
	}

	.timeline__item {
		width: 50%; /* 50% ширины */
		padding: 1rem 2.5rem;
		margin-bottom: 0; /* Убираем отступ, т.к. позиционируем */
	}

	/* Элементы слева */
	.timeline__item:nth-child(odd) {
		left: 0;
		padding-right: 3.5rem; /* Отступ от центральной линии */
		padding-left: 0;
		text-align: right;
	}

	/* Элементы справа */
	.timeline__item:nth-child(even) {
		left: 50%;
		padding-left: 3.5rem; /* Отступ от центральной линии */
		padding-right: 0;
	}

	/* Иконки по центру */
	.timeline__icon-wrapper {
		left: 50%;
		margin-left: -20px;
		top: 30px; /* Сдвигаем иконку по центру контента */
	}

	/* Убираем позиционирование иконки для левых элементов */
	.timeline__item:nth-child(odd) .timeline__icon-wrapper {
		left: auto;
		right: -20px;
		margin-left: 0;
	}
}

/* ======== ЭТАП 3: CASES SECTION ======== */
.cases {
	padding: 5rem 0;
	background-color: var(--bg-color); /* Белый фон */
}

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

.case-card {
	background-color: #fff;
	border-radius: var(--border-radius);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
	overflow: hidden;
	/* Анимация (is-visible) уже задана в .animated-item */
	transition-delay: 0s; /* Сбрасываем задержку от timeline */
}
.cases__grid .case-card:nth-child(2) {
	transition-delay: 0.1s;
}
.cases__grid .case-card:nth-child(3) {
	transition-delay: 0.2s;
}

.case-card__image-wrapper {
	width: 100%;
	aspect-ratio: 4 / 3; /* Соотношение сторон для фото */
	overflow: hidden;
}

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

.case-card:hover .case-card__image {
	transform: scale(1.05); /* Легкий зум при наведении */
}

.case-card__content {
	padding: 1.5rem;
}

.case-card__quote {
	display: block;
	font-family: var(--font-secondary);
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--secondary-color);
	margin-bottom: 1rem;
	line-height: 1.3;
}

.case-card__story {
	font-size: 0.9rem;
	color: var(--text-light);
	line-height: 1.6;
}

.case-card__story p {
	margin-bottom: 0.5rem;
}

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

.case-card__author {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;

	font-size: 1.1rem;
	font-weight: 700;
	color: var(--primary-color);
}

.case-card__author span {
	display: block;
	font-size: 0.9rem;
	font-weight: 400;
	color: var(--text-light);
	margin-top: 0.25rem;
}

/* Адаптация Cases (Mobile-first) */
@media (min-width: 768px) {
	.cases__grid {
		grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
		gap: 2rem;
	}

	/* На планшете 3-я карточка будет на всю ширину,
       но можно оставить 2, а 3-я будет одна в ряду.
       Для 3-х в ряд нужен @media (min-width: 992px)
    */
}

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

/* ======== ЭТАП 3: BLOG SECTION ======== */
.blog {
	padding: 5rem 0;
	background-color: var(--light-gray-bg); /* Чередуем фон */
}

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

.blog-card {
	background-color: #fff;
	border-radius: var(--border-radius);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	/* Стили анимации (is-visible) уже заданы */
	transition-delay: 0s;
}

.blog__grid .blog-card:nth-child(2) {
	transition-delay: 0.1s;
}
.blog__grid .blog-card:nth-child(3) {
	transition-delay: 0.2s;
}

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

.blog-card__image-link {
	display: block;
	overflow: hidden;
}

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

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

.blog-card__content {
	padding: 1.5rem;
}

.blog-card__category {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background-color: var(--secondary-color);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 50px;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.blog-card__title {
	font-size: 1.3rem;
	margin-bottom: 0.75rem;
}
.blog-card__title a {
	color: var(--primary-color);
}
.blog-card__title a:hover {
	color: var(--secondary-color);
}

.blog-card__excerpt {
	font-size: 0.95rem;
	color: var(--text-light);
	margin-bottom: 1.5rem;
}

.blog-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	color: var(--primary-color);
	font-size: 0.9rem;
}

.blog-card__link .lucide {
	width: 16px;
	height: 16px;
	transition: transform 0.3s ease;
}

.blog-card__link:hover .lucide {
	transform: translateX(4px);
}

/* Адаптация Blog (Mobile-first) */
@media (min-width: 768px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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


/* ======== ЭТАП 3: ABOUT SECTION ======== */
.about {
    padding: 5rem 0;
    background-color: var(--bg-color);
    overflow: hidden;
}

.about__container {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобильных */
    gap: 3rem;
    align-items: center;
}

.about__image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    /* Стили анимации (is-visible) уже заданы */
    transition-delay: 0s;
}

/* Декоративна рамка */
.about__image-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 2px solid var(--primary-color);
}

/* Декоративний елемент */
.about__image-frame::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    opacity: 0.1;
    border-radius: var(--border-radius);
    top: -1rem;
    left: 1rem;
    z-index: -1;
    transition: all 0.4s ease;
}

.about__image-wrapper:hover .about__image-frame::after {
    top: 1rem;
    left: -1rem;
}

.about__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.about__content {
    /* Стили анимации (is-visible) уже заданы */
    transition-delay: 0.1s;
}

/* Выравнивание заголовка по левому краю */
.about__header {
    text-align: left;
    max-width: none;
    margin-bottom: 2rem;
}

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

.about__cta {
    margin-top: 1.5rem;
}

/* Адаптация About (Mobile-first) */
@media (min-width: 992px) {
    .about__container {
        grid-template-columns: 1fr 1.2fr; /* 2 колонки на десктопах */
        gap: 5rem;
    }

    .about__image-wrapper {
        max-width: none;
    }
}

/* ======== ЭТАП 4: CONTACT SECTION ======== */
.contact {
    padding: 5rem 0;
    background-color: var(--light-gray-bg);
    overflow: hidden;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact__header {
    text-align: left;
    margin-bottom: 2rem;
}

.contact__note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background-color: rgba(10, 46, 91, 0.05); /* --primary-color 5% */
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 0.95rem;
}
.contact__note .lucide {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 2px;
}
.contact__note strong {
    color: var(--primary-color);
}

.contact__form-wrapper .animated-item {
    transition-delay: 0.1s;
}

.contact__form {
    width: 100%;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

/* Стили для полей формы (Floating Labels) */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group__input {
    width: 100%;
    padding: 1rem 0.5rem 0.5rem 0.5rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: none;
    border-bottom: 2px solid #ccc;
    background-color: transparent;
    transition: border-color 0.3s ease;
}

.form-group__label {
    position: absolute;
    top: 0.75rem;
    left: 0.5rem;
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Анимация лейбла при фокусе или вводе */
.form-group__input:focus,
.form-group__input:not(:placeholder-shown) {
    border-bottom-color: var(--secondary-color);
    outline: none;
}

.form-group__input:focus + .form-group__label,
.form-group__input:not(:placeholder-shown) + .form-group__label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.75rem;
    color: var(--secondary-color);
}

/* Стили для чекбокса */
.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

.form-group__checkbox-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.2em;
    flex-shrink: 0;
    accent-color: var(--secondary-color);
}

.form-group__checkbox-label {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}
.form-group__checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}
.form-group__checkbox-label a:hover {
    color: var(--secondary-color);
}

/* Кнопка */
.contact__submit-button {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 1rem;
    margin-top: 1.5rem;
}
.contact__submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Сообщение об успехе/ошибке */
.form-message {
    display: none; /* ПРИХОВАНО ЗА ЗАМОВЧУВАННЯМ */
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
}
.form-message--success {
    display: block; /* Показываем */
    background-color: rgba(0, 196, 154, 0.1); /* --secondary-color 10% */
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}
.form-message--error {
    display: block; /* Показываем */
    background-color: rgba(255, 0, 0, 0.1);
    color: #D8000C;
    border: 1px solid #D8000C;
}


/* Адаптация Contact (Mobile-first) */
@media (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1fr; /* 2 колонки */
        gap: 5rem;
    }
}

/* ======== ЭТАП 5.1: COOKIE POPUP ======== */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Скрыт по умолчанию */
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: #f1f1f1;
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 200;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup--show {
    bottom: 0; /* Показываем */
}

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-popup p {
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.cookie-popup__button {
    padding: 0.6rem 1.2rem;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}
.cookie-popup__button:hover {
    background-color: #00a07d; /* Чуть темнее */
}

/* Адаптация Cookie */
@media (min-width: 768px) {
    .cookie-popup__content {
        flex-direction: row;
        text-align: left;
    }
    .cookie-popup p {
        font-size: 1rem;
    }
}

/* ======== ЭТАП 5.2: СТИЛИ ДЛЯ СТРАНИЦ ПОЛИТИК (.pages) ======== */
.pages {
    padding: calc(var(--header-height) + 4rem) 0 4rem 0; /* Отступ от хедера */
    background-color: var(--bg-color);
    min-height: 80vh;
}

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

.pages h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

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

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

.pages ul,
.pages ol {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

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

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

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

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