/* ======== 0. GLOBAL STYLES ======== */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@600;700&display=swap');

:root {
	--primary-color: #0d47a1;
	--accent-color: #10b981;
	--bg-color: #f9fafb;
	--bg-dark: #111827;
	--text-color: #1f2937;
	--text-light: #9ca3af;
	--white: #ffffff;

	--font-heading: 'Montserrat', sans-serif;
	--font-body: 'Lato', sans-serif;

	--header-height: 70px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	background-color: var(--bg-color);
	color: var(--text-color);
	font-size: 16px;
	line-height: 1.6;
	/* Відступ для фіксованого хедера */
	padding-top: var(--header-height);
}

ul {
	list-style: none;
}

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

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

.container {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* ======== 1. HEADER ======== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: var(--white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	z-index: 100;
	transition: box-shadow 0.3s ease;
}

.header--scrolled {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

.logo__svg {
	width: 28px;
	height: 28px;
	color: var(--primary-color);
}

/* --- Navigation --- */
.nav__list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.nav__link {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--text-color);
	padding: 0.5rem 0;
	position: relative;
	transition: color 0.3s ease;
}

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

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

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

/* CTA Button in Nav */
.nav__link--button {
	background-color: var(--primary-color);
	color: var(--white);
	padding: 0.5rem 1.25rem;
	border-radius: 50px;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav__link--button:hover {
	background-color: var(--accent-color);
	color: var(--white);
	transform: translateY(-2px);
}

.nav__link--button::after {
	display: none; /* No underline for button */
}

/* --- Burger (Mobile) --- */
.burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-color);
}

/* Mobile-first: Hide nav, show burger */
@media (max-width: 992px) {
	.nav {
		position: fixed;
		top: var(--header-height);
		left: -100%; /* Hidden by default */
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--white);
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
		transition: left 0.4s ease;
		overflow-y: auto;
	}

	.nav--open {
		left: 0; /* Show menu */
	}

	.nav__list {
		flex-direction: column;
		align-items: center;
		padding: 2rem;
		gap: 2rem;
	}

	.nav__link {
		font-size: 1.2rem;
	}

	.burger {
		display: block;
	}
}

/* ======== 2. FOOTER ======== */
.footer {
	background-color: var(--bg-dark);
	color: var(--text-light);
	padding: 4rem 0 2rem 0;
}

.footer__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

/* Grid layout for tablet and desktop */
@media (min-width: 768px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.footer__container {
		/* 1.5fr for about, 1fr for the rest */
		grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
	}
}

.footer__col--about .logo {
	color: var(--white);
	font-size: 1.5rem;
}

.footer__col--about .logo__svg {
	width: 32px;
	height: 32px;
}

.footer__tagline {
	margin-top: 1rem;
	font-size: 0.9rem;
	max-width: 300px;
}

.footer__title {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--white);
	font-size: 1.1rem;
	margin-bottom: 1.25rem;
}

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

.footer__link {
	color: var(--text-light);
	transition: color 0.3s ease, padding-left 0.3s ease;
	display: inline-block;
}

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

.footer__list--contact {
	gap: 1rem;
}

.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(--accent-color);
}

.footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	padding-top: 2rem;
	margin-top: 3rem;
	font-size: 0.9rem;
}

/* ======== 3. HERO SECTION ======== */
.hero {
	padding: 4rem 0;
	background-color: var(--white); /* Трохи інший фон для виділення */
	overflow-x: hidden; /* Для коректної роботи AOS */
}

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

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

.hero__content {
	text-align: center;
}

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

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

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

.hero__description {
	font-size: 1.1rem;
	color: var(--text-color);
	line-height: 1.7;
	margin-bottom: 2.5rem;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

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

/* --- Global Button Style --- */
.button {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1rem;
	padding: 0.9rem 2rem;
	border-radius: 50px;
	cursor: pointer;
	text-align: center;
	border: none;
	transition: background-color 0.3s ease, transform 0.3s ease,
		box-shadow 0.3s ease;

	/* Main CTA style */
	background-color: var(--accent-color);
	color: var(--white);
}

.button:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Secondary button style (if needed) */
.button--secondary {
	background-color: var(--primary-color);
	color: var(--white);
}

.button--secondary:hover {
	box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

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

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

/* ======== 4. SHARED SECTION STYLES ======== */
.section {
	padding: 4.5rem 0;
	overflow-x: hidden; /* For AOS */
}

/* Кожна друга секція матиме інший фон для контрасту */
.section:nth-of-type(odd) {
	background-color: var(--bg-color);
}
.section:nth-of-type(even) {
	background-color: var(--white);
}

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

.section__subtitle {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--accent-color);
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	font-size: 0.9rem;
}

.section__title {
	font-family: var(--font-heading);
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--text-color);
	margin-bottom: 1rem;
}

@media (min-width: 768px) {
	.section__title {
		font-size: 2.5rem;
	}
}

.section__description {
	font-size: 1.05rem;
	color: var(--text-color);
	line-height: 1.7;
}

/* ======== 5. STRATEGIES SECTION (CARDS) ======== */
.strategies__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

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

.strategy-card {
	background-color: var(--white);
	padding: 2.5rem 2rem;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.strategy-card__icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #e0e7ff; /* Light blue bg for icon */
	color: var(--primary-color);
	margin-bottom: 1.5rem;
}

.strategy-card__icon i {
	width: 28px;
	height: 28px;
}

.strategy-card__title {
	font-family: var(--font-heading);
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--text-color);
	margin-bottom: 0.75rem;
}

.strategy-card__text {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--text-color);
}

/* ======== 6. MARKET SECTION ======== */
.market__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}

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

	/* Міняємо колонки місцями для візуальної різноманітності */
	.market__visual {
		order: 1; /* Зображення буде праворуч */
	}
	.market__content {
		order: 0; /* Текст буде ліворуч */
	}

	/* Для наступної секції з 2-ма колонками можна поміняти 'order' назад */
}

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

.market__content-title {
	font-family: var(--font-heading);
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--text-color);
	margin-bottom: 1rem;
}

.market__content-text {
	font-size: 1.05rem;
	line-height: 1.7;
	margin-bottom: 2rem;
}

.market__list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.market__list-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.market__list-item i {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	color: var(--accent-color);
	margin-top: 2px;
}

.market__list-item span {
	font-size: 1rem;
	line-height: 1.6;
}

/* ======== 7. BRANDING SECTION (ACCORDION) ======== */
.branding__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: flex-start; /* Вирівнюємо по верху */
}

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

.branding__visual {
	text-align: center;
}

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

.branding__accordion {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background-color: var(--white);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.accordion__item {
	border-bottom: 1px solid #e5e7eb;
}
.accordion__item:last-child {
	border-bottom: none;
}

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

.accordion__title {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--text-color);
	padding-right: 1rem;
}

.accordion__icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	color: var(--primary-color);
	transition: transform 0.3s ease;
}

/* Стан "Active" для JS */
.accordion__button.active .accordion__icon {
	transform: rotate(180deg);
}

.accordion__content {
	max-height: 0; /* Сховано за замовчуванням */
	overflow: hidden;
	transition: max-height 0.4s ease-out;
}

.accordion__text {
	padding: 0 1.5rem 1.5rem 1.5rem;
	font-size: 0.95rem;
	line-height: 1.7;
}

/* --- Global Link Style --- */
.link {
	color: var(--primary-color);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
	transition: color 0.3s ease;
}
.link:hover {
	color: var(--accent-color);
}

/* ======== 8. CASES SECTION (SWIPER) ======== */
.cases-slider {
	width: 100%;
	padding: 1rem 0 3.5rem 0; /* Залишаємо місце для пагінації */
	overflow: visible; /* Щоб тінь від карток було видно */
}

.swiper-slide {
	height: auto; /* Дозволяємо слайду мати гнучку висоту */
	padding: 0.5rem; /* Невеликий відступ, щоб картки не злипались */
}

.case-card {
	display: flex;
	flex-direction: column;
	height: 100%; /* Картки будуть однакової висоти */
	background-color: var(--white);
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.case-card__img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-bottom: 3px solid var(--accent-color);
}

.case-card__content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1; /* Дозволяє контенту рости, щоб заповнити картку */
}

.case-card__title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.2rem;
	color: var(--text-color);
	margin-bottom: 0.5rem;
}

.case-card__quote {
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
	font-style: italic;
	color: var(--text-color);
	flex-grow: 1; /* Цитата займає вільне місце, притискаючи посилання вниз */
}

.case-card__link {
	font-size: 0.9rem;
	align-self: flex-start; /* Притискаємо посилання до лівого краю */
}

/* --- Swiper Controls --- */
:root {
	/* Перевизначаємо кольори Swiper */
	--swiper-theme-color: var(--primary-color);
}

.swiper-button-prev,
.swiper-button-next {
	color: var(--primary-color);
	width: 50px !important;
	height: 50px !important;
	background-color: var(--white);
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: background-color 0.3s ease, color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
	background-color: var(--primary-color);
	color: var(--white);
}

.swiper-button-prev::after,
.swiper-button-next::after {
	font-size: 1.2rem !important; /* Робимо іконки меншими */
	font-weight: 900;
}

/* Позиціонування кнопок */
.swiper-button-prev {
	left: -10px !important;
}
.swiper-button-next {
	right: -10px !important;
}

@media (max-width: 768px) {
	.swiper-button-prev,
	.swiper-button-next {
		display: none !important; /* Ховаємо стрілки на мобільних */
	}
}

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

/* ======== 9. CONTACT SECTION ======== */
.contact__container {
	max-width: 700px;
	margin: 0 auto;
	background-color: var(--white);
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
	.contact__container {
		padding: 3rem;
	}
}

.contact__form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.form__group {
	position: relative;
	display: flex;
	flex-direction: column;
}

.form__label {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	color: var(--text-color);
}

.form__input {
	width: 100%;
	height: 50px;
	padding: 0 1rem 0 2.75rem; /* Місце для іконки */
	font-family: var(--font-body);
	font-size: 1rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.form__input-icon {
	position: absolute;
	left: 1rem;
	top: 50%; /* Початок від 50% */
	transform: translateY(calc(-50% + 12px)); /* Компенсація висоти label */
	width: 20px;
	height: 20px;
	color: var(--text-light);
}
/* Коли інпут у фокусі, іконка стає кольоровою */
.form__input:focus + .form__input-icon {
	color: var(--primary-color);
}

/* --- Checkbox Styling --- */
.form__group--checkbox {
	margin-top: 0.5rem;
}

.form__checkbox-input {
	/* Ховаємо стандартний чекбокс */
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.form__checkbox-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-size: 0.9rem;
	color: var(--text-color);
	line-height: 1.5;
}

.form__checkbox-box {
	width: 20px;
	height: 20px;
	border: 2px solid #d1d5db;
	border-radius: 4px;
	margin-right: 0.75rem;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
	background-color: var(--white);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form__checkbox-box i {
	width: 16px;
	height: 16px;
	color: var(--white);
	/* Ховаємо іконку за замовчуванням */
	transform: scale(0);
	transition: transform 0.3s ease;
}

/* Стиль, коли чекбокс обрано (через JS або :checked) */
.form__checkbox-input:checked + .form__checkbox-label .form__checkbox-box {
	background-color: var(--accent-color);
	border-color: var(--accent-color);
}

.form__checkbox-input:checked + .form__checkbox-label .form__checkbox-box i {
	transform: scale(1);
}

.contact__submit-button {
	width: 100%;
	padding-top: 1rem;
	padding-bottom: 1rem;
	font-size: 1.1rem;
}

/* --- Success Message --- */
.form__success-message {
	display: none; /* ПРИХОВАНО ЗА ЗАМОВЧУВАННЯМ */
	padding: 1rem 1.25rem;
	background-color: #f0fdf4; /* Light green */
	border: 1px solid var(--accent-color);
	color: #14532d; /* Dark green text */
	border-radius: 8px;
	text-align: center;
	font-weight: 600;

	/* Flex для іконки */
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
}

.form__success-message i {
	width: 20px;
	height: 20px;
	color: var(--accent-color);
}

/* ======== 10. COOKIE POPUP ======== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Приховано за замовчуванням */
	left: 0;
	width: 100%;
	background-color: var(--bg-dark);
	color: var(--text-light);
	padding: 1.5rem;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
}

/* Клас, який додає JS */
.cookie-popup--show {
	bottom: 0;
}

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

@media (min-width: 768px) {
	.cookie-popup__container {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

.cookie-popup__text {
	font-size: 0.9rem;
}
.cookie-popup__text .link {
	color: var(--white);
	text-decoration: underline;
}
.cookie-popup__text .link:hover {
	color: var(--accent-color);
}

.cookie-popup__button {
	/* Використовуємо основний стиль кнопки, але менший */
	padding: 0.6rem 1.5rem;
	font-size: 0.9rem;
	flex-shrink: 0; /* Щоб кнопка не стискалась */
}

.pages {
	padding: 3rem 0;
	background-color: var(--white);
	min-height: 50vh; /* Щоб футер не прилипав до хедера на коротких сторінках */
}

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

.pages h1,
.pages h2 {
	font-family: var(--font-heading);
	color: var(--text-color);
	margin-bottom: 1.5rem;
	margin-top: 2.5rem;
	line-height: 1.3;
}

.pages h1 {
	font-size: 1.5rem;
	font-weight: 700;
	border-bottom: 2px solid var(--accent-color);
	padding-bottom: 1rem;
}

.pages h2 {
	font-size: 1.5rem;
	font-weight: 700;
}

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

.pages ul {
	list-style-type: disc;
	padding-left: 2rem;
	margin-bottom: 1.5rem;
}

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

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

.pages a {
	/* Використовуємо наш глобальний стиль .link */
	color: var(--primary-color);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
	transition: color 0.3s ease;
}

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