/* ==================== GLOBAL STYLES ==================== */
:root {
	--background-color: #f8f7f4;
	--text-color: #2c2f33;
	--primary-color: #003366;
	--accent-color: #c5a575;
	--secondary-color: #d1d1d1;
	--header-height: 4.5rem;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Manrope', sans-serif;
	background-color: var(--background-color);
	color: var(--text-color);
	font-size: 16px;
	line-height: 1.6;
}

/* Helper class to prevent scrolling */
.body-no-scroll {
	overflow: hidden;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

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

.container {
	max-width: 1140px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

/* ==================== HEADER ==================== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: rgba(248, 247, 244, 0.8);
	backdrop-filter: blur(10px);
	z-index: 100;
	border-bottom: 1px solid rgba(0, 51, 102, 0.1);
	transition: box-shadow 0.3s ease;
}

.header.scrolled {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: var(--header-height);
}

.header__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	color: var(--primary-color);
	font-size: 1.25rem;
	/* Ensure logo is visible above the full-screen menu */
	position: relative;
	z-index: 101;
}

.header__logo-icon {
	width: 32px;
	height: 32px;
}

.header__burger {
	display: none;
	cursor: pointer;
	background: none;
	border: none;
	color: var(--primary-color);
	/* Ensure burger is visible above the full-screen menu */
	position: relative;
	z-index: 101;
}

.header__nav-list {
	display: flex;
	gap: 2rem;
}

.header__nav-link {
	position: relative;
	color: var(--text-color);
	font-weight: 500;
	transition: color 0.3s ease;
}

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

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

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

/* ==================== FOOTER ==================== */
.footer {
	background-color: #fff;
	padding: 4rem 0 2rem;
	border-top: 1px solid rgba(0, 51, 102, 0.1);
}

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

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	color: var(--primary-color);
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.footer__logo-icon {
	width: 32px;
	height: 32px;
}

.footer__copyright {
	font-size: 0.9rem;
	color: #6c757d;
}

.footer__title {
	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__list--contacts li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.footer__contact-icon {
	width: 20px;
	height: 20px;
	color: var(--accent-color);
}

.footer__link {
	transition: color 0.3s ease;
}

.footer__link:hover {
	color: var(--accent-color);
}

/* ==================== RESPONSIVE ==================== */
@media screen and (min-width: 768px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 1024px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
	.footer__container {
		grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
		gap: 2rem;
	}
}

/* === UPDATED MOBILE MENU STYLES === */
@media screen and (max-width: 1023px) {
	.header__nav {
		position: fixed;
		/* Start from the top and take full height */
		top: 0;
		height: 100vh;
		/* Full width */
		width: 100%;
		/* Hide it off-screen to the right */
		right: -100%;
		/* Solid background color */
		background-color: var(--background-color);
		transition: right 0.4s ease-in-out;
		/* Center the navigation list vertically and horizontally */
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.header__nav.show-menu {
		right: 0; /* Slide in */
	}

	.header__nav-list {
		flex-direction: column;
		gap: 3rem; /* Increased gap for better touch interaction */
		text-align: center;
	}

	.header__nav-link {
		font-size: 1.5rem; /* Larger font size for better readability */
		font-weight: 700;
		color: var(--primary-color);
	}

	.header__nav-link:hover::after {
		width: 0; /* Optional: disable hover effect on mobile */
	}

	.header__burger {
		display: block;
	}
}

/* ==================== REUSABLE COMPONENTS (introduced in Hero) ==================== */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.9rem 1.8rem;
	background-color: var(--accent-color);
	color: #fff;
	font-weight: 700;
	border: 2px solid var(--accent-color);
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.button:hover {
	background-color: transparent;
	color: var(--accent-color);
	transform: translateY(-3px);
}

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

/* ==================== HERO SECTION ==================== */
.hero {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
	overflow: hidden; /* To contain AOS animations */
}

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

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

.hero__subtitle {
	font-size: 1.125rem;
	margin-bottom: 2.5rem;
	max-width: 500px;
}

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

.hero__image {
	width: 100%;
	max-width: 450px;
	height: auto;
	border-radius: 8px;
}

/* ==================== RESPONSIVE FOR HERO ==================== */
@media screen and (min-width: 768px) {
	.hero__container {
		grid-template-columns: 1.2fr 1fr;
	}
	.hero__title {
		font-size: 2rem;
	}
}

@media screen and (min-width: 1024px) {
	.hero {
		padding-top: calc(var(--header-height) + 5rem);
		padding-bottom: 5rem;
	}
	.hero__title {
		font-size: 3rem;
	}
}

/* ==================== REUSABLE COMPONENTS ==================== */
/* ... (код .button без изменений) ... */

.section {
	padding: 5rem 0;
}

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

.section__subtitle {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--accent-color);
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.section__title {
	font-size: 2.25rem;
	font-weight: 800;
	color: var(--primary-color);
	line-height: 1.2;
}

/* ==================== HEADER ==================== */
/* ... (код хедера без изменений) ... */

/* ==================== HERO SECTION ==================== */
/* ... (код hero секции без изменений) ... */

/* ==================== ANALYTICS SECTION ==================== */
.analytics {
	background-color: #fff; /* A slightly different background to distinguish */
}

.analytics__grid {
	display: grid;
	gap: 1.8rem;
}

.analytics__card {
	background-color: var(--background-color);
	padding: 2.5rem 2rem;
	border-radius: 8px;
	border: 1px solid rgba(0, 51, 102, 0.1);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.analytics__card-icon {
	display: inline-flex;
	padding: 1rem;
	background-color: #fff;
	border-radius: 50%;
	margin-bottom: 1.5rem;
	color: var(--accent-color);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.analytics__card-icon i {
	width: 32px;
	height: 32px;
}

.analytics__card-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 0.75rem;
}

.analytics__card-description {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #6c757d;
}

/* ==================== FOOTER ==================== */
/* ... (код футера без изменений) ... */

/* ==================== RESPONSIVE ==================== */
/* ... (код адаптивности для хедера, hero и футера без изменений) ... */

/* Responsive for Analytics Section */
@media screen and (min-width: 576px) {
	.analytics__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.analytics__grid {
		grid-template-columns: repeat(4, 1fr);
	}
	.section {
		padding: 6rem 0;
	}
	.section__title {
		font-size: 2.5rem;
	}
}

/* ... (предыдущие стили без изменений) ... */

/* ==================== STRATEGIES SECTION ==================== */
.strategies {
	background-color: var(--background-color);
}

.strategies__flow {
	position: relative;
	display: grid;
	gap: 2rem;
}

.strategies__step {
	padding: 2rem;
	background-color: #fff;
	border-radius: 8px;
	border: 1px solid rgba(0, 51, 102, 0.1);
	position: relative;
	z-index: 2; /* Ensure steps are above the connecting line */
}

.strategies__step-number {
	display: block;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--accent-color);
	margin-bottom: 1rem;
}

.strategies__step-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 0.75rem;
}

.strategies__step-description {
	font-size: 0.95rem;
	color: #6c757d;
}

/* ==================== RESPONSIVE ==================== */
/* ... (предыдущие адаптивные стили без изменений) ... */

/* Responsive for Strategies Section */
@media screen and (min-width: 768px) {
	.strategies__flow {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}

	/* Horizontal connecting line for desktop */
	.strategies__flow::before {
		content: '';
		position: absolute;
		top: 50%;
		left: 5%;
		right: 5%;
		height: 2px;
		background-image: linear-gradient(
			to right,
			var(--secondary-color) 50%,
			transparent 50%
		);
		background-size: 16px 2px;
		z-index: 1;
		transform: translateY(-50%);
	}

	.strategies__step {
		/* Add some margin to not overlap the line ends */
		margin: 0 0.5rem;
	}
}

@media screen and (max-width: 767px) {
	/* Vertical connecting line for mobile */
	.strategies__flow::before {
		content: '';
		position: absolute;
		top: 5%;
		bottom: 5%;
		left: 2rem; /* Aligns with step padding */
		width: 2px;
		background-image: linear-gradient(
			to bottom,
			var(--secondary-color) 50%,
			transparent 50%
		);
		background-size: 2px 16px;
		z-index: 1;
		transform: translateX(-50%);
	}

	.strategies__step {
		margin-left: 2rem; /* Indent steps to not overlap the line */
	}
}

/* ... (предыдущие стили без изменений) ... */

/* ==================== MARKETS SECTION ==================== */
.markets {
	background-color: #fff;
}

.markets__accordion {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.markets__accordion-item {
	background-color: var(--background-color);
	border: 1px solid rgba(0, 51, 102, 0.1);
	border-radius: 8px;
	overflow: hidden; /* Important for max-height transition */
}

.markets__accordion-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 1.5rem;
	cursor: pointer;
	background: none;
	border: none;
	text-align: left;
}

.markets__accordion-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--primary-color);
}

.markets__accordion-icon {
	color: var(--accent-color);
	transition: transform 0.4s ease;
	flex-shrink: 0; /* Prevents icon from shrinking */
}

.markets__accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.markets__accordion-description {
	padding: 0 1.5rem;
	font-size: 0.95rem;
	color: #6c757d;
	line-height: 1.7;
}

/* Active state for accordion item */
.markets__accordion-item.active .markets__accordion-content {
	max-height: 200px; /* Adjust if content is taller */
	padding-bottom: 1.5rem;
}

.markets__accordion-item.active .markets__accordion-icon {
	transform: rotate(45deg);
}

/* ... (предыдущие стили без изменений) ... */

/* ==================== CASES SECTION ==================== */
.cases {
	background-color: var(--background-color);
}

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

.cases__card {
	background-color: #fff;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(0, 51, 102, 0.1);
	box-shadow: 0 4px 20px 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 10px 30px rgba(0, 0, 0, 0.07);
}

.cases__card-image {
	overflow: hidden; /* To contain the image zoom */
}

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

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

.cases__card-content {
	padding: 1.5rem;
}

.cases__card-tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background-color: rgba(0, 51, 102, 0.1);
	color: var(--primary-color);
	font-size: 0.8rem;
	font-weight: 700;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.cases__card-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 1.5rem;
	/* To ensure consistent height */
	min-height: 58px;
}

.cases__card-result {
	background-color: var(--accent-color);
	color: #fff;
	text-align: center;
	padding: 0.75rem;
	border-radius: 4px;
	font-weight: 700;
	font-size: 1.1rem;
}

/* ==================== RESPONSIVE ==================== */
/* ... (предыдущие адаптивные стили без изменений) ... */

/* Responsive for Cases Section */
@media screen and (min-width: 576px) {
	.cases__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.cases__card-title {
		min-height: 86px; /* Adjust height for larger screens */
	}
}

/* ... (предыдущие стили без изменений) ... */

/* ==================== CONTACT SECTION ==================== */
.contact {
	background-color: #fff;
}

.contact__description {
	margin-top: 1rem;
	max-width: 450px;
	color: #6c757d;
}

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

.contact__form-group {
	display: flex;
	flex-direction: column;
}

.contact__form-label {
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: var(--primary-color);
}

.contact__form-input {
	width: 100%;
	padding: 0.9rem 1rem;
	border: 1px solid var(--secondary-color);
	border-radius: 4px;
	font-family: 'Manrope', sans-serif;
	font-size: 1rem;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form-input:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 2px rgba(197, 165, 117, 0.2);
}

.contact__form-group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.contact__form-checkbox {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.contact__form-checkbox-label {
	font-size: 0.85rem;
	color: #6c757d;
	line-height: 1.5;
}

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

.contact__form-button {
	width: 100%;
}

.contact__form-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
	background-color: var(--background-color);
	border-radius: 8px;
	border: 1px solid var(--accent-color);
}

.contact__form-message-icon {
	width: 48px;
	height: 48px;
	color: var(--accent-color);
	margin-bottom: 1rem;
}

.contact__form-message-title {
	color: var(--primary-color);
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

/* ==================== RESPONSIVE ==================== */
/* ... (предыдущие адаптивные стили без изменений) ... */

/* Responsive for Contact Section */
@media screen and (min-width: 992px) {
	.contact__container {
		display: grid;
		grid-template-columns: 1fr 1.2fr;
		align-items: center;
		gap: 5rem;
	}
}

/* ... (предыдущие стили без изменений) ... */

/* ==================== COOKIE POP-UP ==================== */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #fff;
	padding: 1.5rem;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
	z-index: 200;
	transform: translateY(120%);
	transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__container {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

.cookie-popup__text {
	font-size: 0.9rem;
	color: #6c757d;
}

.cookie-popup__link {
	color: var(--primary-color);
	text-decoration: underline;
}

.cookie-popup__button {
	padding: 0.6rem 1.5rem; /* smaller button */
	width: 100%;
}

/* ==================== RESPONSIVE ==================== */
/* ... (предыдущие адаптивные стили без изменений) ... */

@media screen and (min-width: 768px) {
	.cookie-popup__container {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.cookie-popup__button {
		width: auto;
	}
}

/* ... (предыдущие стили без изменений) ... */

/* ==================== POLICY PAGES ==================== */
.pages {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
	background-color: #fff;
}

.pages .container h1 {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--primary-color);
	margin-bottom: 2rem;
}

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

.pages .container p {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--text-color);
	margin-bottom: 1rem;
}

.pages .container ul,
.pages .container ol {
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.pages .container li {
	margin-bottom: 0.75rem;
	line-height: 1.8;
}

.pages .container a {
	color: var(--accent-color);
	text-decoration: underline;
	font-weight: 500;
	transition: color 0.3s;
}

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

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