/* GLOBAL STYLES */
:root {
	--font-primary: 'Montserrat', sans-serif;
	--font-secondary: 'Playfair Display', serif;
	--color-primary: #12182b; /* Deep Blue */
	--color-accent: #d6a354; /* Gold */
	--color-bg: #ffffff;
	--color-bg-alt: #f7f7f7;
	--color-text: #333333;
	--color-text-light: #ffffff;
	--container-width: 1200px;
	--header-height: 80px;
}

*,
*::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(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 15px;
}

h1,
h2,
h3 {
	font-family: var(--font-secondary);
	color: var(--color-primary);
	font-weight: 700;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

ul {
	list-style: none;
}

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

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

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	font-size: 24px;
	color: var(--color-primary);
}

/* HEADER */
.header {
	background-color: var(--color-bg);
	height: var(--header-height);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.nav__list {
	display: flex;
	gap: 30px;
}

.nav__link {
	font-size: 16px;
	font-weight: 500;
	position: relative;
	padding: 5px 0;
	color: var(--color-primary);
}

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

.nav__link:hover::after {
	width: 100%;
}

.header__burger-btn {
	display: none;
	color: var(--color-primary);
}

/* FOOTER */
.footer {
	background-color: var(--color-primary);
	color: var(--color-text-light);
	padding: 60px 0;
}

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

.footer__column--about .logo {
	color: var(--color-text-light);
	margin-bottom: 20px;
}
.footer__copyright {
	font-size: 14px;
	opacity: 0.7;
}

.footer__title {
	font-family: var(--font-primary);
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--color-text-light);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__link {
	opacity: 0.8;
	font-size: 15px;
}

.footer__link:hover {
	opacity: 1;
	color: var(--color-accent);
}
.footer__address {
	font-size: 15px;
	line-height: 1.5;
	font-style: normal;
	opacity: 0.8;
}

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

@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		left: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-bg);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: left 0.4s ease;
	}

	.header__nav--active {
		left: 0;
	}

	.nav__list {
		flex-direction: column;
		text-align: center;
		gap: 35px;
	}

	.nav__link {
		font-size: 24px;
	}

	.header__burger-btn {
		display: block;
		z-index: 101;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--about .logo {
		justify-content: center;
	}
}

/* HERO SECTION */
.main {
	padding-top: var(
		--header-height
	); /* Компенсация высоты фиксированного хедера */
}

.hero {
	padding: 80px 0;
	background-color: var(--color-bg);
	overflow: hidden; /* Предотвращает выход элементов анимации за пределы секции */
}

.hero__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.hero__content {
	flex: 1 1 55%;
	max-width: 600px;
}

.hero__title {
	font-size: 48px;
	line-height: 1.2;
	margin-bottom: 20px;
}

.hero__subtitle {
	font-size: 18px;
	line-height: 1.7;
	margin-bottom: 30px;
	max-width: 500px;
}

.hero__cta-btn {
	display: inline-block;
	background-color: var(--color-accent);
	color: var(--color-text-light);
	padding: 15px 35px;
	font-weight: 700;
	border-radius: 5px;
	transition: background-color 0.3s ease, transform 0.3s ease;
	box-shadow: 0 4px 15px rgba(214, 163, 84, 0.3);
}

.hero__cta-btn:hover {
	background-color: #c58f41;
	transform: translateY(-3px);
}

.hero__visual {
	flex: 1 1 40%;
	max-width: 450px;
}

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

/* Адаптивность для Hero Section */
@media (max-width: 992px) {
	.hero__title {
		font-size: 40px;
	}
}

@media (max-width: 768px) {
	.hero__container {
		flex-direction: column;
		text-align: center;
	}
	.hero__content {
		max-width: 100%;
		margin-bottom: 40px;
	}
	.hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}
	.hero {
		padding: 60px 0;
	}
}
/* GENERAL SECTION STYLES */
.section {
	padding: 80px 0;
}

.section__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 50px;
}

.section__title {
	font-size: 36px;
	margin-bottom: 15px;
}

.section__subtitle {
	font-size: 18px;
	color: #555;
	line-height: 1.6;
}

/* ANALYTICS SECTION */
.analytics {
	background-color: var(--color-bg-alt);
}

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

.analytics__card {
	background-color: var(--color-bg);
	padding: 35px;
	border-radius: 8px;
	text-align: center;
	border: 1px solid #e0e0e0;
	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 {
	margin: 0 auto 20px;
	width: 60px;
	height: 60px;
	background-color: #f1e9dc; /* Light gold background */
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
}

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

.analytics__card-title {
	font-family: var(--font-primary);
	font-weight: 700;
	font-size: 20px;
	color: var(--color-primary);
	margin-bottom: 10px;
}

.analytics__card-description {
	font-size: 15px;
	line-height: 1.6;
}

/* Адаптивность для Analytics Section */
@media (max-width: 992px) {
	.analytics__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.section {
		padding: 60px 0;
	}

	.section__title {
		font-size: 32px;
	}
}

/* STRATEGY SECTION */
.strategy {
	background-color: var(--color-bg);
}

.strategy__container {
	display: flex;
	gap: 60px;
	align-items: flex-start;
}

.strategy__info {
	flex: 1 1 40%;
	position: sticky; /* Делаем левый блок "липким" при скролле */
	top: 120px;
}

.strategy__info .section__header {
	text-align: left;
	margin: 0;
}

.strategy__accordion {
	flex: 1 1 60%;
}

.accordion__item {
	border-bottom: 1px solid #e0e0e0;
}

.accordion__item:first-child {
	border-top: 1px solid #e0e0e0;
}

.accordion__header {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	font-size: 20px;
	font-weight: 500;
	color: var(--color-primary);
	text-align: left;
}

.accordion__icon {
	transition: transform 0.3s ease;
	flex-shrink: 0; /* Предотвращает сжатие иконки */
}

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

.accordion__text {
	padding-bottom: 20px;
	font-size: 16px;
	color: #555;
	line-height: 1.7;
}

/* Active state for accordion */
.accordion__item--active .accordion__icon {
	transform: rotate(180deg);
}

.accordion__item--active .accordion__header {
	color: var(--color-accent);
}

/* Адаптивность для Strategy Section */
@media (max-width: 992px) {
	.strategy__container {
		flex-direction: column;
		gap: 40px;
	}
	.strategy__info {
		position: static;
		text-align: center;
	}
	.strategy__info .section__header {
		text-align: center;
	}
}

/* MARKETS SECTION */
.markets {
	background-color: var(--color-bg-alt);
}

.markets__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 25px;
}

.markets__card {
	position: relative;
	display: flex;
	align-items: flex-end;
	padding: 30px;
	height: 300px;
	border-radius: 8px;
	overflow: hidden;
	color: var(--color-text-light);
	transition: transform 0.3s ease;
}

.markets__card:hover {
	transform: scale(1.03);
}

.markets__card-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
	transition: transform 0.4s ease;
}

.markets__card:hover .markets__card-bg {
	transform: scale(1.1);
}

.markets__card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to top,
		rgba(18, 24, 43, 0.8) 20%,
		rgba(18, 24, 43, 0.1) 100%
	);
	z-index: 2;
	transition: background-color 0.3s ease;
}

.markets__card:hover .markets__card-overlay {
	background: linear-gradient(
		to top,
		rgba(18, 24, 43, 0.9) 20%,
		rgba(18, 24, 43, 0.2) 100%
	);
}

.markets__card-title {
	position: relative;
	font-family: var(--font-primary);
	font-size: 24px;
	font-weight: 700;
	z-index: 3;
	color: var(--color-text-light);
}

/* Адаптивность для Markets Section */
@media (max-width: 768px) {
	.markets__grid {
		grid-template-columns: 1fr;
	}
	.markets__card {
		height: 250px;
	}
}

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

.cases__slider {
	width: 100%;
	padding-bottom: 50px; /* Space for pagination */
}

.case-card {
	background-color: var(--color-bg);
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

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

.case-card__content {
	padding: 25px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.case-card__tag {
	display: inline-block;
	background-color: #f1e9dc;
	color: var(--color-accent);
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 15px;
	align-self: flex-start;
}

.case-card__title {
	font-family: var(--font-primary);
	font-size: 20px;
	font-weight: 700;
	color: var(--color-primary);
	margin-bottom: 10px;
}

.case-card__description {
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 20px;
	flex-grow: 1;
}

.case-card__stats {
	display: flex;
	gap: 20px;
	border-top: 1px solid #e0e0e0;
	padding-top: 20px;
}

.case-card__stat-item {
	flex: 1;
}

.case-card__stat-value {
	display: block;
	font-family: var(--font-secondary);
	font-size: 28px;
	font-weight: 700;
	color: var(--color-accent);
}

.case-card__stat-label {
	font-size: 13px;
	color: #555;
}

/* Swiper custom styles */
.swiper-pagination-bullet {
	background-color: #ccc;
	width: 10px;
	height: 10px;
}

.swiper-pagination-bullet-active {
	background-color: var(--color-accent);
}

/* CONTACT SECTION */
.contact {
	background-color: var(--color-bg-alt);
}

.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 60px;
	background-color: var(--color-bg);
	padding: 50px;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact__info-title {
	font-family: var(--font-primary);
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 15px;
}

.contact__info-text {
	margin-bottom: 30px;
	line-height: 1.7;
}

.contact__info-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact__info-item {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 16px;
}

.contact__info-item i {
	color: var(--color-accent);
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

/* Form Styles */
.contact__form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.form-group {
	display: flex;
	flex-direction: column;
}
.form-label {
	font-weight: 500;
	margin-bottom: 8px;
	font-size: 14px;
}
.form-input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 16px;
	font-family: inherit;
	transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(214, 163, 84, 0.2);
}

.form-group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
}
.form-checkbox {
	margin-top: 5px;
	width: 1.2em;
	height: 1.2em;
}
.form-checkbox-label {
	font-size: 14px;
	line-height: 1.5;
}
.form-checkbox-label a {
	color: var(--color-accent);
	text-decoration: underline;
}
.form-submit-btn {
	background-color: var(--color-accent);
	color: var(--color-text-light);
	padding: 15px;
	font-weight: 700;
	border-radius: 5px;
	transition: background-color 0.3s ease, transform 0.3s ease;
	box-shadow: 0 4px 15px rgba(214, 163, 84, 0.3);
	font-size: 16px;
	margin-top: 10px;
}
.form-submit-btn:hover {
	background-color: #c58f41;
	transform: translateY(-3px);
}

/* Success Message */
.form-message {
	border: 1px solid #5cb85c;
	background-color: #f0fff0;
	color: #3c763d;
	padding: 20px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 15px;
}
.form-message--hidden {
	display: none;
}
.form-message i {
	width: 32px;
	height: 32px;
	color: #5cb85c;
}

/* Адаптивность для Contact Section */
@media (max-width: 992px) {
	.contact__wrapper {
		grid-template-columns: 1fr;
		padding: 30px;
	}
}

/* COOKIE POPUP */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(200%); /* Start hidden */
	max-width: 95%;
	width: 800px;
	background-color: var(--color-primary);
	color: var(--color-text-light);
	padding: 20px 25px;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	z-index: 200;
	transition: transform 0.5s ease-in-out;
}

.cookie-popup--visible {
	transform: translateX(-50%) translateY(0); /* Animate to visible */
}

.cookie-popup__text {
	font-size: 15px;
}

.cookie-popup__text a {
	color: var(--color-accent);
	text-decoration: underline;
}

.cookie-popup__btn {
	background-color: var(--color-accent);
	color: var(--color-text-light);
	padding: 10px 20px;
	font-weight: 700;
	border-radius: 5px;
	white-space: nowrap; /* Prevent button text from wrapping */
	transition: background-color 0.3s ease;
}

.cookie-popup__btn:hover {
	background-color: #c58f41;
}

/* Адаптивность для Cookie Popup */
@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
		bottom: 10px;
		width: calc(100% - 20px);
	}
}

/* ========================================= */
/* PAGES (PRIVACY, TERMS)           */
/* ========================================= */

.pages {
	padding: 120px 0;
	background-color: var(--color-bg);
}

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

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e0e0e0;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 40px;
	margin-bottom: 20px;
}

.pages p {
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 20px;
}

.pages a {
	color: var(--color-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

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

.pages ul {
	list-style-type: disc;
	padding-left: 20px;
	margin-bottom: 20px;
}

.pages li {
	margin-bottom: 10px;
	line-height: 1.8;
}

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