/* ======== 0. GLOBAL STYLES ======== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@500;700&display=swap');

/* --- Root Variables --- */
:root {
	--font-family-body: 'Lato', sans-serif;
	--font-family-heading: 'Poppins', sans-serif;

	--color-bg: #f8f9fa;
	--color-text: #333333;
	--color-primary: #005a9c; /* Professional Blue */
	--color-primary-light: #007bff; /* Brighter Blue */
	--color-secondary: #e8f1f5; /* Light Accent Bg */
	--color-white: #ffffff;
	--color-border: #dee2e6;

	--header-height: 70px;
}

/* --- Resets --- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-family-heading);
	color: var(--color-primary);
	margin-bottom: 0.75rem;
}

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

a:hover {
	color: var(--color-primary-light);
}

ul {
	list-style: none;
}

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

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

/* --- Utility Classes --- */
.container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 1rem;
}

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

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

.logo__svg {
	width: 32px;
	height: 32px;
}

.logo__svg path,
.logo__svg circle {
	/* Make SVG colors inherit from CSS variables */
	fill: currentColor;
}

/* Override for the two-tone logo */
.logo__svg path:nth-child(2) {
	color: var(--color-primary-light);
}
.logo__svg circle:nth-child(3) {
	color: var(--color-bg);
}
.logo__svg circle:nth-child(4) {
	color: var(--color-primary);
}

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

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

.header__burger {
	display: none; /* Mobile only */
	color: var(--color-primary);
}

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

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

.header__nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--color-primary);
	transition: width 0.3s ease;
}

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

.header__nav-link--cta {
	background-color: var(--color-primary);
	color: var(--color-white);
	padding: 0.5rem 1.25rem;
	border-radius: 50px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.header__nav-link--cta:hover {
	background-color: var(--color-primary-light);
	color: var(--color-white);
}

.header__nav-link--cta::after {
	display: none; /* No underline for CTA button */
}

/* --- Header Mobile (Mobile-first) --- */
@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		left: -100%; /* Hidden by default */
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-white);
		flex-direction: column;
		padding: 2rem;
		transition: left 0.4s ease;
		overflow-y: auto;
	}

	.header__nav.header__nav--active {
		left: 0; /* Show menu */
	}

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

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

	.header__nav-link--cta {
		width: 100%;
		text-align: center;
	}

	.header__burger {
		display: block;
		z-index: 1001; /* Above nav */
	}
}

/* --- Body padding for fixed header --- */
body {
	padding-top: var(--header-height);
}

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

.footer__container {
	display: grid;
	grid-template-columns: repeat(1, 1fr); /* Mobile: 1 column */
	gap: 2.5rem;
}

.footer__column {
	padding-bottom: 1rem;
}

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

.footer__description {
	font-size: 0.9rem;
	line-height: 1.5;
	margin-top: 1rem;
	max-width: 300px;
}

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

.footer__link {
	font-size: 0.9rem;
	color: #555;
	transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer__link:hover {
	color: var(--color-primary);
	padding-left: 5px;
}

.footer__list--contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.footer__list--contact i {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	color: var(--color-primary);
}

.footer__bottom {
	text-align: center;
	padding: 1.5rem 0;
	margin-top: 2rem;
	border-top: 1px solid var(--color-border);
	font-size: 0.85rem;
}

/* --- Footer Desktop --- */
@media (min-width: 768px) {
	.footer__container {
		/* 4 columns: 2fr (logo) + 1fr + 1fr + 1.5fr (contact) */
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
	}
}

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

/* ======== 3. HERO SECTION ======== */

/* Подключаем стили AOS (для тех, у кого не загрузится из CDN) */
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

.hero {
	padding: 4rem 0;
	background-color: var(--color-white);
	overflow: hidden; /* Для AOS анимаций */
}

.hero__container {
	display: grid;
	grid-template-columns: 1fr; /* Mobile: 1 column */
	gap: 2rem;
	align-items: center;
}

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-text);
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

/* Для JS анимации (anime.js) */
.hero__title-line {
	display: block;
	/* Скрываем текст, чтобы JS мог его показать */
	opacity: 0;
}

.hero__description {
	font-size: 1.1rem;
	color: #555;
	margin-bottom: 2rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hero__actions {
	display: flex;
	flex-direction: column; /* Mobile: stacked buttons */
	justify-content: center;
	align-items: center;
	gap: 1rem;
}

.hero__button {
	font-family: var(--font-family-heading);
	font-weight: 500;
	font-size: 1rem;
	padding: 0.8rem 2rem;
	border-radius: 50px;
	transition: all 0.3s ease;
	width: 100%;
}

.hero__button--primary {
	background-color: var(--color-primary);
	color: var(--color-white);
	box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.hero__button--primary:hover {
	background-color: var(--color-primary-light);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
	color: var(--color-white);
}

.hero__button--secondary {
	background-color: transparent;
	color: var(--color-primary);
	border: 2px solid var(--color-primary);
}

.hero__button--secondary:hover {
	background-color: var(--color-secondary);
	color: var(--color-primary);
	transform: translateY(-2px);
}

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

.hero__image {
	width: 100%;
	max-width: 500px;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* --- Hero Desktop (Media Query) --- */
@media (min-width: 768px) {
	.hero {
		padding: 6rem 0;
		min-height: calc(100vh - var(--header-height));
		display: flex;
		align-items: center;
	}

	.hero__container {
		grid-template-columns: 1.2fr 1fr; /* 2 columns: Text | Image */
		gap: 3rem;
	}

	.hero__content {
		text-align: left;
	}

	.hero__title {
		font-size: 2.5rem;
	}

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

	.hero__actions {
		flex-direction: row; /* Desktop: side-by-side buttons */
		justify-content: flex-start;
		width: auto;
	}

	.hero__button {
		width: auto; /* Сбрасываем ширину на десктопе */
	}
}

/* ======== 4. STRATEGIES SECTION ======== */

.strategies {
	padding: 3rem 0;
	background-color: var(--color-secondary);
}

.strategies__header {
	text-align: center;
	max-width: 650px;
	margin: 0 auto 3rem auto;
}

.strategies__pre-title {
	font-family: var(--font-family-heading);
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.strategies__title {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.strategies__description {
	font-size: 1rem;
	color: #555;
}

.strategies__content {
	display: grid;
	grid-template-columns: 1fr; /* Mobile: 1 column */
	gap: 1.5rem;
}

.strategies__card {
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	padding: 2rem;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.strategies__card-icon {
	margin-bottom: 1rem;
}

.strategies__card-icon i {
	width: 48px;
	height: 48px;
	color: var(--color-primary);
	stroke-width: 2;
}

.strategies__card-title {
	font-size: 1.25rem;
	color: var(--color-text);
	margin-bottom: 0.75rem;
}

.strategies__card-description {
	font-size: 0.9rem;
	color: #555;
	margin-bottom: 1.5rem;
	min-height: 3.5rem; /* Для выравнивания высоты */
}

.strategies__card-link {
	font-family: var(--font-family-heading);
	font-weight: 500;
	color: var(--color-primary);
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.95rem;
}

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

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

/* --- Strategies Desktop (Media Query) --- */
@media (min-width: 768px) {
	.strategies {
		padding: 5rem 0;
	}

	.strategies__title {
		font-size: 2.5rem;
	}

	.strategies__content {
		grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
	}
}

@media (min-width: 576px) and (max-width: 767px) {
	.strategies__content {
		grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
	}
}

.markets {
	padding: 3rem 0;
	background-color: var(--color-white);
	overflow: hidden;
}

.markets__container {
	display: grid;
	grid-template-columns: 1fr; /* Mobile: 1 column */
	gap: 2rem;
	align-items: center;
}

.markets__visual {
	width: 100%;
}

.markets__image {
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.markets__pre-title {
	font-family: var(--font-family-heading);
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

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

.markets__description {
	font-size: 1rem;
	color: #555;
	margin-bottom: 1.5rem;
}

.markets__list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

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

.markets__list-item i {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--color-primary-light);
}

.markets__note {
	font-size: 0.9rem;
	font-style: italic;
	color: #777;
	margin-bottom: 2rem;
}

.markets__button {
	/* Стилизуем как primary-кнопку из Hero */
	display: inline-block;
	font-family: var(--font-family-heading);
	font-weight: 500;
	font-size: 1rem;
	padding: 0.8rem 2rem;
	border-radius: 50px;
	transition: all 0.3s ease;
	background-color: var(--color-primary);
	color: var(--color-white);
	box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.markets__button:hover {
	background-color: var(--color-primary-light);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
	color: var(--color-white);
}

/* --- Markets Desktop (Media Query) --- */
@media (min-width: 768px) {
	.markets {
		padding: 5rem 0;
	}

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

	.markets__title {
		font-size: 2.5rem;
	}
}

.innovations {
	padding: 3rem 0;
	background-color: var(--color-secondary);
}

.innovations__container {
	max-width: 800px; /* Ограничиваем ширину для лучшей читаемости */
	margin: 0 auto;
	padding: 0 1rem;
}

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

.innovations__pre-title {
	font-family: var(--font-family-heading);
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

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

.innovations__description {
	font-size: 1rem;
	color: #555;
}

.innovations__accordion {
	border: 1px solid var(--color-border);
	border-radius: 8px;
	overflow: hidden; /* Для скругления углов */
	background-color: var(--color-white);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.innovations__item {
	border-bottom: 1px solid var(--color-border);
}
.innovations__item:last-child {
	border-bottom: none;
}

.innovations__item-header {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.25rem 1.5rem;
	text-align: left;
	background-color: var(--color-white);
	transition: background-color 0.3s ease;
}
.innovations__item-header:hover {
	background-color: var(--color-bg);
}

.innovations__item-title {
	font-family: var(--font-family-heading);
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--color-primary);
}

.innovations__item-icon {
	width: 20px;
	height: 20px;
	color: var(--color-primary);
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 1rem;
}

.innovations__item-content {
	max-height: 0; /* Скрыто по умолчанию */
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding 0.4s ease-out;
	padding: 0 1.5rem;
}
.innovations__item-content p {
	font-size: 0.95rem;
	color: #555;
	padding-bottom: 1.5rem;
	line-height: 1.7;
}

/* --- Accordion Active State --- */
.innovations__item--active .innovations__item-header {
	background-color: var(--color-secondary);
}

.innovations__item--active .innovations__item-icon {
	transform: rotate(180deg);
}

/* JS будет устанавливать max-height */
.innovations__item--active .innovations__item-content {
	/* max-height будет установлен в JS (например, scrollHeight + 'px') */
	/* padding: 1.5rem; */ /* Нельзя анимировать padding-top/bottom вместе с max-height */
}

@media (min-width: 768px) {
	.innovations {
		padding: 5rem 0;
	}
	.innovations__title {
		font-size: 2.5rem;
	}
}

/* ======== 7. BLOG SECTION ======== */

.blog {
    padding: 3rem 0;
    background-color: var(--color-white);
}

.blog__header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem auto;
}

.blog__pre-title {
    font-family: var(--font-family-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.blog__description {
    font-size: 1rem;
    color: #555;
}

.blog__grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 2rem;
}

.blog__card {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.blog__card-image-link {
    display: block;
    overflow: hidden;
}

.blog__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

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

.blog__card-meta {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.blog__card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.blog__card-title a {
    color: var(--color-text);
}
.blog__card-title a:hover {
    color: var(--color-primary);
}

.blog__card-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
    flex-grow: 1; /* Чтобы ссылка "Читать далее" была внизу */
}

.blog__card-link {
    font-family: var(--font-family-heading);
    font-weight: 500;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.95rem;
    align-self: flex-start; /* Прижимаем к левому краю */
}

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

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


/* --- Blog Desktop (Media Query) --- */
@media (min-width: 768px) {
    .blog {
        padding: 5rem 0;
    }
    .blog__title {
        font-size: 2.5rem;
    }
    .blog__grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .blog__grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
    }
}

/* ======== 8. CONTACT SECTION ======== */

.contact {
    padding: 3rem 0;
    background-color: var(--color-secondary);
}

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

.contact__pre-title {
    font-family: var(--font-family-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.contact__description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.contact__detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.contact__detail-item i {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    color: var(--color-primary-light);
}

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

/* --- Contact Form --- */
.contact__form-wrapper {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.contact__form-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.contact__form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #999;
    pointer-events: none; /* Allows click-through */
}

.contact__form-input {
    width: 100%;
    height: 50px;
    padding: 0 1rem 0 3rem; /* Left padding for icon */
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

/* Checkbox */
.contact__form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact__form-checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--color-primary);
}

.contact__form-checkbox-label {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}
.contact__form-checkbox-label a {
    text-decoration: underline;
}

/* Button */
.contact__form-button {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
    background-color: var(--color-primary);
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
}

.contact__form-button:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.contact__form-button:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Form Messages (for JS) --- */
.form-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-message--success {
    background-color: #d1e7dd; /* Bootstrap success green */
    color: #0f5132;
    border: 1px solid #badbcc;
}

.form-message--error {
    background-color: #f8d7da; /* Bootstrap danger red */
    color: #842029;
    border: 1px solid #f5c2c7;
}


/* --- Contact Desktop (Media Query) --- */
@media (min-width: 992px) {
    .contact {
        padding: 5rem 0;
    }
    .contact__container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    .contact__title {
        font-size: 2.5rem;
    }
}

/* ======== 9. COOKIE POPUP (Stage 5.1) ======== */

.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2a2a2a; /* Темний фон для контрасту */
    color: var(--color-white);
    padding: 1rem;
    z-index: 2000;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    
    /* Скрыто по умолчанию и готово к анимации */
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.5s ease-out, visibility 0.5s ease-out;
}

/* Класс, который добавляет JS */
.cookie-popup--active {
    visibility: visible;
    transform: translateY(0);
}

.cookie-popup__container {
    display: flex;
    flex-direction: column; /* Mobile */
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-popup__text {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

.cookie-popup__link {
    color: var(--color-white);
    text-decoration: underline;
    font-weight: 700;
}
.cookie-popup__link:hover {
    color: #ddd;
}

.cookie-popup__button {
    /* Стилизуем как CTA */
    font-family: var(--font-family-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-white);
    background-color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    flex-shrink: 0; /* Не сжиматься */
    transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
    background-color: var(--color-primary-light);
}

/* --- Cookie Popup Desktop --- */
@media (min-width: 768px) {
    .cookie-popup {
        padding: 1.25rem 1rem;
    }
    .cookie-popup__container {
        flex-direction: row; /* Desktop: side-by-side */
    }
    .cookie-popup__text {
        text-align: left;
    }
}

/* ======== 10. POLICY PAGES STYLING (Stage 5.2) ======== */

/* * Эти стили применяются к страницам (privacy.html, terms.html и т.д.)
 * при условии, что контент обернут в <section class="pages"> 
 * и <div class="container">
 */

.pages {
    padding: 3rem 0;
    background-color: var(--color-white);
    min-height: calc(100vh - var(--header-height) - 300px); /* (100vh - header - ~footer height) */
}

.pages .container {
    max-width: 800px; /* Ограничиваем ширину для лучшей читаемости */
}

/* --- Заголовок страницы --- */
.pages h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 0.5rem;
}

/* --- Подзаголовки --- */
.pages h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.pages h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* --- Абзацы --- */
.pages p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.25rem;
}

/* --- Ссылки в тексте --- */
.pages a {
    color: var(--color-primary-light);
    text-decoration: underline;
}

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

/* --- Списки --- */
.pages ul,
.pages ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: #555;
}

.pages ul {
    list-style-type: disc;
}

.pages ol {
    list-style-type: decimal;
}

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

/* --- Жирный текст --- */
.pages strong {
    font-weight: 700;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .pages {
        padding: 5rem 0;
    }
    .pages h1 {
        font-size: 2.75rem;
    }
    .pages h2 {
        font-size: 2rem;
    }
}