/* Глобальні налаштування та змінні */
:root {
	--font-family-base: 'Inter', sans-serif;
	--font-family-heading: 'Manrope', sans-serif;
	--color-background: #f8f9fa;
	--color-text: #212529;
	--color-primary: #007bff;
	--color-secondary: #6c757d;
	--color-white: #ffffff;
	--container-width: 1200px;
	--container-padding: 15px;
	--header-height: 70px;
}

/* Скидання стилів */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family-base);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-background);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

ul {
	list-style: none;
}

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

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

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

h1,
h2,
h3,
h4 {
	font-family: var(--font-family-heading);
	font-weight: 700;
	line-height: 1.2;
}

/* Утиліти */
.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

/* Логотип */
.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-family-heading);
	font-weight: 700;
	font-size: 24px;
	color: var(--color-text);
}
.logo:hover {
	color: var(--color-text);
}

/* --- Хедер --- */
.header {
	background-color: var(--color-white);
	border-bottom: 1px solid #dee2e6;
	height: var(--header-height);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
}

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

.nav__list {
	display: flex;
	align-items: center;
	gap: 30px;
}

.nav__link {
	font-weight: 500;
	font-size: 16px;
	padding: 5px 0;
	position: relative;
}

.nav__link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--color-primary);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease-in-out;
}

.nav__link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* --- Бургер меню --- */
.burger {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 28px;
	height: 24px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 10;
}

.burger__line {
	width: 28px;
	height: 3px;
	background-color: var(--color-text);
	border-radius: 10px;
	transition: all 0.3s linear;
	position: relative;
	transform-origin: 1px;
}

/* --- Адаптивність хедера --- */
@media (max-width: 992px) {
	.nav {
		position: fixed;
		top: 0;
		right: 0;
		width: 300px;
		height: 100vh;
		background-color: var(--color-white);
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		transform: translateX(100%);
		transition: transform 0.3s ease-in-out;
		padding-top: calc(var(--header-height) + 20px);
	}

	.nav--open {
		transform: translateX(0);
	}

	.nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		padding: 20px;
	}

	.nav__link {
		font-size: 18px;
	}

	.burger {
		display: flex;
	}

	.burger--open .burger__line:nth-child(1) {
		transform: rotate(45deg);
	}

	.burger--open .burger__line:nth-child(2) {
		opacity: 0;
		transform: translateX(20px);
	}

	.burger--open .burger__line:nth-child(3) {
		transform: rotate(-45deg);
	}
}

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

/* --- Футер --- */
.footer {
	background-color: var(--color-white);
	border-top: 1px solid #dee2e6;
	padding: 60px 0;
	margin-top: 60px;
}

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

.footer__column--main {
	grid-column: span 1;
}

.footer__logo {
	margin-bottom: 20px;
}

.footer__copyright {
	font-size: 14px;
	color: var(--color-secondary);
}

.footer__title {
	font-size: 18px;
	margin-bottom: 20px;
}

.footer__list li {
	margin-bottom: 10px;
}

.footer__link {
	font-size: 15px;
	color: var(--color-secondary);
}

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

.footer__address {
	font-size: 15px;
	color: var(--color-secondary);
	font-style: normal;
}

/* --- Адаптивність футера --- */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
	}
	.footer {
		padding: 40px 0;
	}
}

/* --- Секція Hero --- */
.hero {
	padding: 80px 0;
	overflow: hidden; /* Щоб анімація не створювала горизонтальний скрол */
}

.hero__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 60px;
}

.hero__title {
	font-size: 36px;
	margin-bottom: 20px;
}

.hero__description {
	font-size: 18px;
	color: var(--color-secondary);
	margin-bottom: 40px;
	max-width: 500px;
}

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

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

/* --- Кнопки --- */
.btn {
	display: inline-block;
	font-family: var(--font-family-heading);
	font-weight: 600;
	font-size: 16px;
	text-align: center;
	padding: 14px 32px;
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn--primary {
	background-color: var(--color-primary);
	color: var(--color-white);
	border-color: var(--color-primary);
}

.btn--primary:hover {
	background-color: #0069d9;
	border-color: #0062cc;
	color: var(--color-white);
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* --- Адаптивність Hero --- */
@media (max-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero__text-content {
		order: 2; /* Текст буде під зображенням */
	}

	.hero__image-wrapper {
		order: 1;
	}

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

	.hero__title {
		font-size: 36px;
	}
}

@media (max-width: 576px) {
	.hero {
		padding: 60px 0;
	}
	.hero__title {
		font-size: 20px;
	}
	.hero__description {
		font-size: 16px;
	}
}

/* --- Загальні стилі для секцій --- */
.section-padding {
	padding: 80px 0;
}

.section-header {
	text-align: center;
	margin-bottom: 60px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

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

.section-subtitle {
	font-size: 18px;
	color: var(--color-secondary);
	line-height: 1.7;
}

/* --- Секція Analysis --- */
.analysis {
	background-color: var(--color-white);
}

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

.analysis-card {
	background-color: var(--color-background);
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analysis-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.analysis-card__icon {
	margin-bottom: 20px;
	color: var(--color-primary);
}

.analysis-card__icon svg {
	width: 48px;
	height: 48px;
	stroke-width: 1.5;
}

.analysis-card__title {
	font-size: 22px;
	margin-bottom: 10px;
}

.analysis-card__description {
	font-size: 16px;
	color: var(--color-secondary);
}

/* --- Адаптивність Analysis --- */
@media (max-width: 992px) {
	.analysis__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 576px) {
	.section-padding {
		padding: 60px 0;
	}
	.section-title {
		font-size: 28px;
	}
	.section-subtitle {
		font-size: 16px;
	}
}

/* --- Секція Strategy --- */
.strategy {
	background-color: var(--color-background); /* Можна чергувати фон секцій */
}

.strategy-timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

/* Центральна лінія */
.strategy-timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: #dee2e6;
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -1.5px;
}

.strategy-timeline__item {
	padding: 10px 40px;
	position: relative;
	background-color: inherit;
	width: 50%;
}

/* Іконка на лінії */
.strategy-timeline__icon {
	position: absolute;
	width: 50px;
	height: 50px;
	right: -25px;
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--color-white);
	border: 3px solid var(--color-primary);
	border-radius: 50%;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--color-primary);
}

.strategy-timeline__icon svg {
	width: 24px;
	height: 24px;
}

/* Розташування блоків */
.strategy-timeline__item--right {
	left: 50%;
}

.strategy-timeline__item--right .strategy-timeline__icon {
	left: -25px;
}

/* Стрілочки-трикутники */
.strategy-timeline__content::before {
	content: ' ';
	height: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	z-index: 1;
	border: medium solid var(--color-white);
}

/* Стрілка для лівих блоків */
.strategy-timeline__item:not(.strategy-timeline__item--right)
	.strategy-timeline__content::before {
	right: 30px;
	border-width: 10px 0 10px 10px;
	border-color: transparent transparent transparent var(--color-white);
}

/* Стрілка для правих блоків */
.strategy-timeline__item--right .strategy-timeline__content::before {
	left: 30px;
	border-width: 10px 10px 10px 0;
	border-color: transparent var(--color-white) transparent transparent;
}

/* Контентний блок */
.strategy-timeline__content {
	padding: 20px 30px;
	background-color: var(--color-white);
	position: relative;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	border: 1px solid #e9ecef;
}

.strategy-timeline__title {
	font-size: 20px;
	margin-bottom: 8px;
	font-weight: 700;
}

.strategy-timeline__description {
	font-size: 15px;
	color: var(--color-secondary);
}

/* --- Адаптивність Timeline --- */
@media (max-width: 992px) {
	/* Лінія зліва */
	.strategy-timeline::after {
		left: 25px;
	}

	/* Всі блоки на 100% ширини */
	.strategy-timeline__item {
		width: 100%;
		padding-left: 70px;
		padding-right: 15px;
	}

	.strategy-timeline__item--right {
		left: 0%;
	}

	/* Іконка на лінії зліва */
	.strategy-timeline__icon,
	.strategy-timeline__item--right .strategy-timeline__icon {
		left: 0;
	}

	/* Стрілка завжди зліва */
	.strategy-timeline__content::before,
	.strategy-timeline__item--right .strategy-timeline__content::before {
		left: 60px;
		border-width: 10px 10px 10px 0;
		border-color: transparent var(--color-white) transparent transparent;
	}
}

/* --- Секція Market --- */
.market {
	background-color: var(--color-white);
}

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

.stat-card {
	text-align: center;
	padding: 25px;
	background-color: var(--color-background);
	border: 1px solid #e9ecef;
	border-radius: 12px;
}

.stat-card__value {
	display: flex;
	justify-content: center;
	align-items: baseline;
	font-family: var(--font-family-heading);
	font-weight: 700;
	font-size: 56px;
	color: var(--color-primary);
	margin-bottom: 10px;
}

.stat-card__symbol {
	font-size: 0.5em; /* 50% від розміру основного числа */
	font-weight: 600;
}

.stat-card__description {
	font-size: 12px;
	color: var(--color-secondary);
	line-height: 1.5;
}

/* --- Адаптивність Market --- */
@media (max-width: 992px) {
	.market__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 576px) {
	.stat-card__value {
		font-size: 48px;
	}
}

/* --- Секція Cases --- */
.cases {
	background-color: var(--color-background);
}

.cases__wrapper {
	display: grid;
	gap: 50px;
}

.case-card {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 40px;
	align-items: center;
	background-color: var(--color-white);
	padding: 40px;
	border-radius: 12px;
	border: 1px solid #e9ecef;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.case-card--reverse {
	grid-template-columns: 1fr 150px;
}

.case-card--reverse .case-card__image-wrapper {
	order: 2;
}

.case-card__image-wrapper {
	width: 150px;
	height: 150px;
}

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

.case-card__content {
	position: relative;
}

.case-card__quote {
	border: none;
	padding: 0;
	margin: 0 0 20px 0;
	font-size: 18px;
	font-style: italic;
	color: var(--color-text);
}

/* Стилізація лапок */
.case-card__quote::before {
	content: '“';
	font-family: 'Times New Roman', Times, serif;
	font-size: 80px;
	color: var(--color-primary);
	opacity: 0.2;
	position: absolute;
	top: -30px;
	left: -20px;
	line-height: 1;
}

.case-card__author {
	font-style: normal;
}

.case-card__name {
	display: block;
	font-weight: 700;
	font-family: var(--font-family-heading);
	font-size: 18px;
}

.case-card__result {
	font-size: 15px;
	color: var(--color-secondary);
}

/* --- Адаптивність Cases --- */
@media (max-width: 768px) {
	.case-card,
	.case-card--reverse {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 30px;
	}

	.case-card--reverse .case-card__image-wrapper {
		order: -1; /* Зображення завжди зверху */
	}

	.case-card__image-wrapper {
		margin: 0 auto;
		width: 120px;
		height: 120px;
	}

	.case-card__quote::before {
		top: -20px;
		left: 0;
	}
}

/* --- Секція Contact --- */
.contact {
	background-color: var(--color-white);
}

.contact__wrapper {
	max-width: 600px;
	margin: 0 auto;
}

.form-group {
	margin-bottom: 20px;
}

.form-label {
	display: block;
	font-weight: 500;
	margin-bottom: 8px;
}

.form-control {
	width: 100%;
	padding: 12px 15px;
	font-size: 16px;
	font-family: var(--font-family-base);
	border: 1px solid #ced4da;
	border-radius: 8px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 15px;
}

.form-checkbox {
	margin-top: 5px;
	width: 16px;
	height: 16px;
}

.form-checkbox-label {
	font-size: 14px;
	color: var(--color-secondary);
}

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

.btn--full-width {
	width: 100%;
	margin-top: 10px;
}

/* Повідомлення про успіх */
.form-success-message {
	text-align: center;
	padding: 40px;
	border: 1px solid #d1e7dd;
	background-color: #f0fff6;
	border-radius: 12px;
}

.form-success-message__icon {
	color: #0f5132;
	margin-bottom: 15px;
}

.form-success-message__icon svg {
	width: 60px;
	height: 60px;
}

.form-success-message__title {
	font-size: 24px;
	margin-bottom: 10px;
	color: #0f5132;
}

.form-success-message__text {
	color: #0f5132;
}

/* --- Додаткові стилі для кнопок --- */
.btn--small {
	padding: 8px 20px;
	font-size: 14px;
}

/* --- Cookie Pop-up --- */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--color-white);
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	padding: 20px 0;
	z-index: 1100;
	transform: translateY(0);
	transition: transform 0.4s ease-in-out;
}

.cookie-popup--hidden {
	transform: translateY(150%);
}

.cookie-popup__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.cookie-popup__text {
	margin: 0;
	color: var(--color-secondary);
	font-size: 15px;
}

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

/* --- Адаптивність Cookie Pop-up --- */
@media (max-width: 768px) {
	.cookie-popup__container {
		flex-direction: column;
		text-align: center;
		gap: 15px;
	}
}

/* --- Стилізація для сторінок політик --- */
.pages {
	padding: 120px 0;
	background-color: var(--color-white);
}

.pages .container {
	max-width: 800px; /* Обмеження ширини для кращої читабельності */
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 40px;
	border-bottom: 1px solid #dee2e6;
	padding-bottom: 20px;
}

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

.pages p {
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 20px;
	color: var(--color-secondary);
}

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

.pages li {
	margin-bottom: 10px;
	color: var(--color-secondary);
	line-height: 1.7;
}

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

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

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