/* === GLOBAL STYLES === */
:root {
	--font-primary: 'Inter', sans-serif;
	--font-secondary: 'Poppins', sans-serif;

	--color-dark: #1a1d24;
	--color-light: #f8f9fa;
	--color-accent: #34d399;
	--color-gray: #6c757d;
	--color-white: #ffffff;

	--header-height: 80px;
}

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

body {
	font-family: var(--font-primary);
	background-color: var(--color-light);
	color: var(--color-dark);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

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

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

ul {
	list-style: none;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* === HEADER === */
.header {
	background-color: var(--color-light);
	height: var(--header-height);
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid #e0e0e0;
}

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-secondary);
	font-weight: 600;
	font-size: 22px;
}

.header__logo svg path:first-child {
	stroke: var(--color-dark);
}
.header__logo:hover svg path:first-child {
	stroke: var(--color-accent);
}

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

.nav__link {
	font-weight: 500;
	position: relative;
	padding: 8px 0;
}

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

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

.nav__link--cta {
	background-color: var(--color-accent);
	color: var(--color-dark);
	padding: 10px 20px;
	border-radius: 6px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.nav__link--cta:hover {
	background-color: #2bb986;
	color: var(--color-white);
}

.nav__link--cta::after {
	display: none;
}

.header__burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
}

/* === FOOTER === */
.footer {
	background-color: var(--color-white);
	padding: 60px 0 30px;
	border-top: 1px solid #e0e0e0;
}

.footer__container {
	display: grid;
	grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
	gap: 40px;
}

.footer__column--brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer__logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-secondary);
	font-weight: 600;
	font-size: 22px;
}

.footer__tagline {
	color: var(--color-gray);
	font-size: 14px;
	max-width: 200px;
}

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

.footer__list li:not(:last-child) {
	margin-bottom: 10px;
}

.footer__link {
	color: var(--color-gray);
	font-size: 14px;
	font-weight: 500;
}

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

.footer__list--contacts .footer__link {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.footer__bottom {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
	text-align: center;
	color: var(--color-gray);
	font-size: 14px;
}

/* === MOBILE ADAPTATION (Mobile-First) === */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		right: 0;
		width: 80%;
		max-width: 320px;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-white);
		transform: translateX(100%);
		transition: transform 0.3s ease-in-out;
		padding: 40px;
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
	}

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

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

	.nav__link {
		font-size: 18px;
	}

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

	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--brand,
	.footer__list--contacts .footer__link {
		justify-content: center;
	}

	.footer__tagline {
		margin: 0 auto;
	}
}

/* === HERO SECTION === */
.hero {
	padding: 80px 0;
	overflow: hidden; /* To hide pre-animation elements */
}

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

@media (min-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr 1fr;
	}
}

.hero__content {
	text-align: center;
}

@media (min-width: 992px) {
	.hero__content {
		text-align: left;
	}
}

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

@media (min-width: 768px) {
	.hero__title {
		font-size: 48px;
	}
}

/* Styles for text animation */
.hero__title span {
	display: inline-block;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero__title span.visible {
	opacity: 1;
	transform: translateY(0);
}

.hero__description {
	font-size: 18px;
	color: var(--color-gray);
	margin-bottom: 30px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 992px) {
	.hero__description {
		margin-left: 0;
		margin-right: 0;
	}
}

.button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: var(--color-accent);
	color: var(--color-dark);
	padding: 14px 28px;
	border-radius: 6px;
	font-family: var(--font-secondary);
	font-weight: 600;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
	background-color: #2bb986;
	color: var(--color-dark);
	transform: translateY(-3px);
}

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

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

/* === ANALYTICS SECTION === */
.analytics {
	padding: 80px 0;
	background-color: var(--color-white);
}

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

.analytics__title {
	font-size: 38px;
	margin-bottom: 16px;
}

.analytics__subtitle {
	font-size: 18px;
	color: var(--color-gray);
	line-height: 1.7;
}

.analytics__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

@media (min-width: 768px) {
	.analytics__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

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

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

.analytics-card__icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #eafcf6; /* Light green background */
	margin-bottom: 20px;
}

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

.analytics-card__title {
	font-size: 22px;
	margin-bottom: 12px;
}

.analytics-card__description {
	font-size: 15px;
	color: var(--color-gray);
	line-height: 1.6;
}

/* === STRATEGIES SECTION === */
.strategies {
	padding: 80px 0;
	background-color: var(--color-light);
}

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

.strategies__title {
	font-size: 38px;
	margin-bottom: 16px;
}

.strategies__subtitle {
	font-size: 18px;
	color: var(--color-gray);
	line-height: 1.7;
}

.strategies__process {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

.process-step {
	position: relative;
	padding: 20px;
	padding-top: 40px;
}

.process-step__number {
	position: absolute;
	top: -10px;
	left: 0;
	font-size: 60px;
	font-weight: 700;
	color: #e9ecef;
	z-index: 1;
}

.process-step__title {
	font-size: 22px;
	margin-bottom: 12px;
	position: relative;
	z-index: 2;
}

.process-step__description {
	font-size: 15px;
	color: var(--color-gray);
	line-height: 1.6;
	position: relative;
	z-index: 2;
}

@media (min-width: 768px) {
	.strategies__process {
		grid-template-columns: repeat(2, 1fr);
		gap: 50px 30px;
	}
}

@media (min-width: 992px) {
	.strategies__process {
		grid-template-columns: repeat(4, 1fr);
		gap: 0 30px;
	}

	.process-step {
		padding-left: 0;
	}

	/* Decorative connecting line */
	.process-step:not(:last-child)::after {
		content: '';
		position: absolute;
		top: 15px;
		right: -15px; /* Half of the gap */
		width: 1px;
		height: 80%;
		background: linear-gradient(to bottom, transparent, #ced4da, transparent);
		z-index: 0;
	}
}

@media (min-width: 1200px) {
	.strategies__process {
		gap: 0 40px;
	}
	.process-step:not(:last-child)::after {
		right: -20px;
	}
}

/* === CASES SECTION === */
.cases {
	padding: 80px 0;
	background-color: var(--color-white);
}

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

.cases__title {
	font-size: 38px;
	margin-bottom: 16px;
}

.cases__subtitle {
	font-size: 18px;
	color: var(--color-gray);
	line-height: 1.7;
}

.cases__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

@media (min-width: 768px) {
	.cases__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.case-card {
	background-color: var(--color-light);
	border-radius: 12px;
	border: 1px solid #e9ecef;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.case-card__image-wrapper {
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

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

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

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

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

.case-card__title {
	font-size: 22px;
	margin-bottom: 12px;
}

.case-card__description {
	font-size: 15px;
	color: var(--color-gray);
	line-height: 1.6;
	flex-grow: 1;
	margin-bottom: 25px;
}

.case-card__result {
	background-color: #eafcf6;
	border-radius: 8px;
	padding: 15px;
	text-align: center;
}

.case-card__metric {
	display: block;
	font-size: 32px;
	font-weight: 700;
	color: #1e7b60; /* Darker accent */
	line-height: 1;
}

.case-card__label {
	font-size: 14px;
	color: #1e7b60;
}

/* === INSIGHTS SECTION === */
.insights {
	padding: 80px 0;
	background-color: var(--color-light);
}

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

.insights__title {
	font-size: 38px;
	margin-bottom: 16px;
}

.insights__subtitle {
	font-size: 18px;
	color: var(--color-gray);
	line-height: 1.7;
}

.insights__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	margin-bottom: 50px;
}

@media (min-width: 768px) {
	.insights__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

.insight-card {
	background-color: var(--color-white);
	border-radius: 12px;
	border: 1px solid #e9ecef;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.insight-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--color-dark);
}

.insight-card__link:hover {
	color: var(--color-dark);
}

.insight-card__image-wrapper {
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

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

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

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

.insight-card__tag {
	display: inline-block;
	background-color: #e9ecef;
	color: var(--color-gray);
	padding: 4px 10px;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 15px;
	align-self: flex-start;
}

.insight-card__title {
	font-size: 18px;
	line-height: 1.4;
	font-weight: 600;
	flex-grow: 1;
	margin-bottom: 15px;
	transition: color 0.3s ease;
}

.insight-card__link:hover .insight-card__title {
	color: var(--color-accent);
}

.insight-card__date {
	font-size: 14px;
	color: var(--color-gray);
}

.insights__cta-wrapper {
	text-align: center;
}

/* === CONTACT SECTION === */
.contact {
	padding: 80px 0;
	background-color: var(--color-white);
}

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

@media (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1.2fr;
	}
}

.contact__title {
	font-size: 38px;
	margin-bottom: 16px;
}

.contact__description {
	font-size: 18px;
	color: var(--color-gray);
	line-height: 1.7;
	margin-bottom: 30px;
}

.contact__list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.contact__item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	font-weight: 500;
}

.contact__icon {
	color: var(--color-accent);
	width: 22px;
	height: 22px;
}

/* Form Styles */
.contact__form-wrapper {
	background-color: var(--color-light);
	padding: 40px;
	border-radius: 12px;
	border: 1px solid #e9ecef;
}

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

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

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

.form-input:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

.form-input.invalid {
	border-color: #e53e3e;
}
.form-input.invalid:focus {
	box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2);
}

.form-error-message {
	color: #e53e3e;
	font-size: 13px;
	display: none;
	margin-top: 6px;
}

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.form-group--checkbox input {
	margin-top: 4px;
}
.form-group--checkbox label {
	font-size: 14px;
	font-weight: 400;
	color: var(--color-gray);
	margin-bottom: 0;
}
.form-group--checkbox a {
	color: var(--color-dark);
	text-decoration: underline;
}
.form-group--checkbox a:hover {
	color: var(--color-accent);
}

.form-footer {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 25px;
}

.contact-form__button {
	border: none;
	cursor: pointer;
}

.form-success-message {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #1e7b60;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.form-success-message.visible {
	opacity: 1;
}

/* === COOKIE POP-UP === */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	background-color: var(--color-white);
	color: var(--color-dark);
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	z-index: 200;
	transform: translateY(200%);
	transition: transform 0.5s ease-in-out;
	max-width: 500px;
}

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

.cookie-popup__content {
	display: flex;
	flex-direction: column;
	gap: 15px;
	align-items: flex-start;
}

@media (min-width: 768px) {
	.cookie-popup {
		left: auto;
		right: 30px;
		bottom: 30px;
	}
	.cookie-popup__content {
		flex-direction: row;
		align-items: center;
	}
}

.cookie-popup__text {
	font-size: 14px;
	line-height: 1.5;
	color: var(--color-gray);
}

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

.cookie-popup__text a:hover {
	color: var(--color-accent);
}

.cookie-popup__button {
	background-color: var(--color-accent);
	color: var(--color-dark);
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 500;
	cursor: pointer;
	flex-shrink: 0;
	transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
	background-color: #2bb986;
}

/* === POLICY & TEXT PAGES === */
.pages {
	padding: 60px 0;
	background-color: var(--color-white);
}

.pages .container {
	max-width: 800px; /* Optimal width for reading text */
}

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

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

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

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

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

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

.pages a {
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
	font-weight: 500;
}

.pages a:hover {
	color: #1e7b60; /* Darker accent */
}
