/* ==================== GLOBAL STYLES (Etap 0) ==================== */

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

/* --- CSS Variables (Colors & Fonts) --- */
:root {
	/* Colors */
	--primary-color: #0a2a4e; /* Deep Blue */
	--secondary-color: #00b8a9; /* Teal Accent */
	--background-color: #f9fafb; /* Light Gray BG */
	--surface-color: #ffffff; /* White Cards/Header */
	--text-primary: #2d3748; /* Dark Gray Text */
	--text-secondary: #718096; /* Light Gray Text */
	--text-on-dark: #e0e7ff; /* Light text for dark BG */
	--success-color: #10b981;
	--error-color: #ef4444;

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

	/* Layout */
	--header-height: 70px;
	--container-width: 1140px;
	--container-padding: 1.5rem;
}

/* --- Base & Resets --- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 16px; /* 1rem = 16px */
}

body {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	background-color: var(--background-color);
	color: var(--text-primary);
	overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Utility class to lock scroll when mobile menu is open */
.body--lock-scroll {
	overflow: hidden;
}

ul {
	list-style: none;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--primary-color);
	font-weight: 700;
	line-height: 1.3;
}

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

/* --- Layout Container --- */
.container {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

/* --- Logo Styling --- */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	font-weight: 700;
}

.logo__svg {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
}

.logo__text {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	color: var(--primary-color);
}

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

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

.nav {
	display: flex;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 2rem;
}

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

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

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

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

/* CTA Button in Nav */
.nav__link--cta {
	background-color: var(--secondary-color);
	color: var(--surface-color);
	padding: 0.6rem 1.2rem;
	border-radius: 50px;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.nav__link--cta:hover {
	background-color: #009a8f;
	color: var(--surface-color);
	transform: translateY(-2px);
}

/* Burger & Close Buttons */
.header__burger,
.nav__close {
	display: none; /* Hidden on desktop */
	background: none;
	border: none;
	cursor: pointer;
	color: var(--primary-color);
	padding: 0.25rem;
}

.header__burger i,
.nav__close i {
	width: 28px;
	height: 28px;
}

.nav__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
}

/* --- Mobile Menu Styles (Mobile-First approach starts here) --- */
@media (max-width: 992px) {
	.nav {
		position: fixed;
		top: 0;
		right: -100%; /* Off-screen */
		width: 80%;
		max-width: 320px;
		height: 100vh;
		background-color: var(--surface-color);
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		flex-direction: column;
		padding: 4rem 2rem 2rem;
		transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
		overflow-y: auto;
	}

	.nav--open {
		right: 0; /* On-screen */
	}

	.nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
		width: 100%;
	}

	.nav__link {
		font-size: 1.2rem;
	}

	.nav__link--cta {
		width: 100%;
		text-align: center;
	}

	.header__burger,
	.nav__close {
		display: block; /* Show on mobile */
	}
}

/* --- Main content padding (to avoid header overlap) --- */
.main {
	padding-top: var(--header-height);
	/* Sections will add their own padding-bottom/top */
}

/* ==================== FOOTER (Etap 2) ==================== */
.footer {
	background-color: var(--primary-color);
	color: var(--text-on-dark);
	padding-top: 4rem;
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2.5rem;
	padding-bottom: 3rem;
}

.footer__title {
	font-size: 1.2rem;
	color: var(--surface-color);
	margin-bottom: 1.25rem;
	font-weight: 600;
}

.footer__description {
	font-size: 0.9rem;
	line-height: 1.5;
	margin-top: 1rem;
	max-width: 300px;
	color: var(--text-secondary); /* Slightly dimmer */
}

/* Footer Logo styles */
.footer__logo .logo__text--footer {
	color: var(--surface-color);
}
/* We use a pre-made inverted SVG for the footer */
.logo__svg--footer {
	/* Styles for the inverted logo are in the HTML (rect fill="#FFFFFF", etc.) */
}

/* Footer Lists */
.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer__link {
	color: var(--text-on-dark);
	font-size: 0.95rem;
	transition: color 0.3s ease, padding-left 0.3s ease;
}

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

/* Contact List */
.footer__list--contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.95rem;
	line-height: 1.5;
}

.footer__contact-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	color: var(--secondary-color);
}

/* Footer Bottom Bar */
.footer__bottom {
	padding: 1.5rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
}

.footer__bottom p {
	font-size: 0.85rem;
	color: var(--text-secondary);
	margin: 0;
}

/* ==================== HERO (Etap 3) ==================== */
.hero {
	position: relative; /* Для позиціонування декоративних елементів */
	padding: 6rem 0;
	overflow: hidden; /* Ховаємо частини декору, що виходять за межі */
	background-color: var(
		--surface-color
	); /* Або --background-color, якщо хочете інший фон */
}

.hero__container {
	display: grid;
	grid-template-columns: 1fr; /* 1 колонка на мобільних */
	gap: 3rem;
	align-items: center;
	position: relative; /* Для z-index */
	z-index: 2;
}

.hero__content {
	text-align: center; /* Центруємо на мобільних */
	animation: fadeInDown 1s ease-out; /* Анімація появи */
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero__title {
	font-size: 1.5rem; /* 40px */
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.hero__title--highlight {
	color: var(--secondary-color);
}

.hero__description {
	font-size: 1.125rem; /* 18px */
	color: var(--text-secondary);
	line-height: 1.7;
	margin-bottom: 2.5rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hero__actions {
	display: flex;
	flex-direction: column; /* Стовпчик на мобільних */
	justify-content: center;
	align-items: center;
	gap: 1rem;
}

.hero__cta {
	display: inline-block;
	padding: 0.9rem 2rem;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1rem;
	border-radius: 50px;
	text-align: center;
	transition: all 0.3s ease;
	width: 100%; /* На всю ширину на мобільних */
	max-width: 300px;
}

.hero__cta--primary {
	background-color: var(--secondary-color);
	color: var(--surface-color);
}

.hero__cta--primary:hover {
	background-color: #009a8f;
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(0, 184, 169, 0.3);
}

.hero__cta--secondary {
	background-color: transparent;
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
}

.hero__cta--secondary:hover {
	background-color: var(--primary-color);
	color: var(--surface-color);
	transform: translateY(-3px);
}

.hero__visual {
	position: relative;
	text-align: center;
	animation: fadeInUp 1s ease-out 0.2s; /* Анімація появи з затримкою */
	animation-fill-mode: backwards; /* Починається з невидимого стану */
	transition: transform 0.1s linear; /* Плавність для JS анімації */
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

/* --- Декоративні "краплі" для анімації --- */
.hero__deco {
	position: absolute;
	border-radius: 50%;
	opacity: 0.15;
	z-index: 1;
	transition: transform 0.1s linear; /* Плавність для JS анімації */
}
.hero__deco--1 {
	width: 200px;
	height: 200px;
	background-color: var(--secondary-color);
	top: 10%;
	left: 5%;
}
.hero__deco--2 {
	width: 100px;
	height: 100px;
	background-color: var(--primary-color);
	bottom: 20%;
	right: 10%;
}

/* --- Адаптивність (Mobile-first) --- */

/* Планшети (min-width: 768px) */
@media (min-width: 768px) {
	.hero {
		padding: 7rem 0;
	}

	.hero__content {
		text-align: left; /* Вирівнюємо по лівому краю */
	}

	.hero__title {
		font-size: 2rem; /* 48px */
	}

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

	.hero__actions {
		flex-direction: row; /* В рядок на планшетах */
		justify-content: flex-start;
		gap: 1.5rem;
		width: auto;
	}

	.hero__cta {
		width: auto; /* Автоматична ширина кнопок */
	}
}

/* Десктопи (min-width: 992px) */
@media (min-width: 992px) {
	.hero {
		padding: 8rem 0;
	}

	.hero__container {
		grid-template-columns: 1fr 1fr; /* 2 колонки на десктопах */
		align-items: center;
	}

	.hero__title {
		font-size: 2.5rem; /* 56px */
	}
}

/* ==================== ЗАГАЛЬНІ СТИЛІ СЕКЦІЙ ==================== */
/* Ці стилі будуть перевикористовуватись для
    всіх наступних секцій (platform, technology, etc.) 
*/
.section {
	padding: 5rem 0;
	overflow: hidden; /* Для анімацій */
}

/* Використовуємо :nth-child для чергування фону секцій */
.section:nth-of-type(odd) {
	background-color: var(--background-color);
}
.section:nth-of-type(even) {
	background-color: var(--surface-color);
}
/* Hero секція має свій фон, тому platform (перша секція) буде --background-color */

/* --- Заголовки секцій --- */
.section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 4rem auto;

	/* Анімація появи */
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInHeader 1s ease-out forwards;
}

/* Простий CSS fade-in, без AOS */
@keyframes fadeInHeader {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.section-header__subtitle {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--secondary-color);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.75rem;
}

.section-header__title {
	font-size: 2.25rem; /* 36px */
	margin-bottom: 1.25rem;
	color: var(--primary-color);
}

.section-header__description {
	font-size: 1.1rem;
	color: var(--text-secondary);
	line-height: 1.7;
}

/* ==================== PLATFORM (Etap 3) ==================== */
.platform__grid {
	display: grid;
	grid-template-columns: 1fr; /* 1 колонка на мобільних */
	gap: 2rem;
}

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

	/* Анімація появи карток */
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUpCard 0.8s ease-out forwards;
}

/* Затримка анімації для кожної картки */
.platform__card:nth-child(2) {
	animation-delay: 0.2s;
}
.platform__card:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes fadeInUpCard {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

.platform__card-icon-wrapper {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: var(--secondary-color);
	margin-bottom: 1.5rem;
	color: var(--surface-color); /* Колір іконки */
}

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

.platform__card-title {
	font-size: 1.3rem;
	color: var(--primary-color);
	margin-bottom: 0.75rem;
}

.platform__card-description {
	font-size: 0.95rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

/* --- Адаптивність (Mobile-first) --- */

/* Планшети (min-width: 768px) */
@media (min-width: 768px) {
	.section-header__title {
		font-size: 2.5rem; /* 40px */
	}

	.platform__grid {
		/* * Гнучка сітка: автоматично заповнює простір,
         * мінімальна ширина картки ~300px.
         * На планшетах це дасть 2 колонки, на десктопах 3.
        */
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	}
}

/* ==================== TECHNOLOGY (Etap 3) ==================== */
.technology__container {
	display: grid;
	grid-template-columns: 1fr; /* 1 колонка на мобільних */
	gap: 3rem;
	align-items: center;
}

/* --- Візуальна частина (ліворуч) --- */
.technology__visual {
	width: 100%;
	animation: zoomIn 1s ease-out forwards;
	opacity: 0;
}

@keyframes zoomIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

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

/* --- Контентна частина (праворуч) --- */
.technology__content {
	animation: fadeInRight 1s ease-out 0.2s forwards;
	opacity: 0;
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Модифікатор для заголовка, вирівняного ліворуч */
.section-header--left {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

/* --- Стилі Акордеону --- */
.accordion {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden; /* Щоб зберігти заокруглені кути */
}

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

.accordion__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 1.5rem 1.25rem;
	background-color: var(--surface-color);
	border: none;
	cursor: pointer;
	text-align: left;
	transition: background-color 0.3s ease;
}

.accordion__header:hover {
	background-color: var(--background-color);
}

.accordion__title {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--primary-color);
}

.accordion__icon {
	width: 20px;
	height: 20px;
	color: var(--secondary-color);
	flex-shrink: 0;
	margin-left: 1rem;
	transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.accordion__content {
	/* Стилі для контенту, що ховається */
	max-height: 0;
	overflow: hidden;
	visibility: hidden;
	padding: 0 1.25rem;
	background-color: var(--surface-color);
	transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
		padding 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), visibility 0.4s;
}

.accordion__content p {
	font-size: 0.95rem;
	color: var(--text-secondary);
	line-height: 1.6;
	padding: 1.5rem 0 1.5rem 0; /* Внутрішній відступ, щоб текст не прилипав */
}

/* --- Стилі для АКТИВНОГО стану (JS буде додавати/видаляти класи) --- */

/* Елемент 2 в HTML (aria-expanded="true") буде відкритий за замовчуванням */
.accordion__item.accordion--open .accordion__header,
.accordion__header[aria-expanded='true'] {
	background-color: #f4f8fe; /* Світлий фон для активного */
}

.accordion__item.accordion--open .accordion__icon,
.accordion__header[aria-expanded='true'] .accordion__icon {
	transform: rotate(180deg); /* Обертаємо стрілку */
}

.accordion__item.accordion--open .accordion__content,
.accordion__content[aria-hidden='false'] {
	visibility: visible;
	max-height: 500px; /* Встановіть достатньо велику висоту */
}

/* --- Адаптивність (Mobile-first) --- */

/* Планшети (min-width: 768px) */
@media (min-width: 768px) {
	.technology__container {
		gap: 4rem;
	}
}

/* Десктопи (min-width: 992px) */
@media (min-width: 992px) {
	.technology__container {
		grid-template-columns: 1fr 1fr; /* 2 колонки */
	}
}

/* ==================== INCOME (Etap 3) ==================== */
.income__grid {
	display: grid;
	grid-template-columns: 1fr; /* 1 колонка на мобільних */
	gap: 2rem;
	margin-top: 4rem;
	position: relative; /* Для ліній (якщо будемо додавати) */
}

.income__step {
	position: relative;
	background-color: var(--surface-color);
	border-radius: 12px;
	padding: 3rem 2rem 2.5rem 2rem;
	text-align: center;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	overflow: hidden; /* Щоб номер не вилазив */

	/* Анімація появи (повторне використання з .platform__card) */
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUpCard 0.8s ease-out forwards;
}

/* Затримка анімації */
.income__step:nth-child(2) {
	animation-delay: 0.2s;
}
.income__step:nth-child(3) {
	animation-delay: 0.4s;
}

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

/* --- Декоративний номер кроку --- */
.income__step-number {
	position: absolute;
	top: -10px;
	left: 10px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 4rem;
	color: var(--primary-color);
	opacity: 0.07;
	z-index: 1;
}

.income__step-icon-wrapper {
	position: relative; /* Щоб було поверх номера */
	z-index: 2;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: var(--primary-color);
	margin-bottom: 1.5rem;
	color: var(--surface-color);
}

.income__step-icon {
	width: 28px;
	height: 28px;
}

.income__step-title {
	position: relative;
	z-index: 2;
	font-size: 1.3rem;
	color: var(--primary-color);
	margin-bottom: 0.75rem;
}

.income__step-description {
	position: relative;
	z-index: 2;
	font-size: 0.95rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

/* --- CTA Блок --- */
.income__cta-block {
	text-align: center;
	margin-top: 4rem;
}

.income__cta-block p {
	font-size: 1.1rem;
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
}
/* Кнопка CTA перевикористовує стилі з .hero__cta */

/* --- Адаптивність (Mobile-first) --- */

/* Планшети (min-width: 768px) */
@media (min-width: 768px) {
	.income__grid {
		/* 2 колонки на планшетах */
		grid-template-columns: 1fr 1fr;
	}

	/* Центруємо третій елемент */
	.income__step:nth-child(3) {
		grid-column: 1 / -1;
		max-width: 500px; /* Обмежуємо ширину */
		margin: 0 auto; /* Центруємо */
	}
}

/* Десктопи (min-width: 992px) */
@media (min-width: 992px) {
	.income__grid {
		/* 3 колонки на десктопах */
		grid-template-columns: 1fr 1fr 1fr;
	}

	/* Скидаємо стилі для 3-го елемента */
	.income__step:nth-child(3) {
		grid-column: auto;
		max-width: none;
		margin: 0;
	}
}

/* ==================== FAQ (Etap 3) ==================== */

/* Ми хочемо, щоб FAQ акордеон був трохи вужчим 
   ніж акордеон у секції Technology (де він був частиною сітки) */
.accordion--faq {
	max-width: 800px; /* Обмежуємо ширину */
	margin: 0 auto; /* Центруємо */
}

/* Всі інші стилі (.accordion__item, .accordion__header і т.д.) 
   вже визначені в .technology і застосуються автоматично. */

/* ==================== CONTACT (Etap 4) ==================== */
.contact__container {
	display: grid;
	grid-template-columns: 1fr; /* 1 колонка на мобільних */
	gap: 3rem;
	margin-top: 3rem;
}

/* --- Ліва колонка (Інфо) --- */
.contact__info {
	animation: fadeInDown 1s ease-out forwards;
}

.contact__info-title {
	font-size: 1.75rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.contact__info-description {
	font-size: 1rem;
	color: var(--text-secondary);
	line-height: 1.7;
	margin-bottom: 2rem;
}

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

.contact__info-list li {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 1rem;
}

.contact__info-icon {
	width: 22px;
	height: 22px;
	color: var(--secondary-color);
	flex-shrink: 0;
}

/* --- Права колонка (Форма) --- */
.contact__form-wrapper {
	background-color: var(--surface-color);
	padding: 2.5rem;
	border-radius: 12px;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	border: 1px solid #e2e8f0;
	animation: fadeInUp 1s ease-out 0.2s forwards;
	animation-fill-mode: backwards;
}

.form__group {
	margin-bottom: 1.5rem;
}
.form__group:last-of-type {
	margin-bottom: 2rem;
}

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

.form__input-wrapper {
	position: relative;
}

.form__input-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: var(--text-secondary);
	opacity: 0.6;
	pointer-events: none; /* Щоб не заважав кліку */
}

.form__input {
	width: 100%;
	height: 50px;
	padding: 0 1rem 0 3rem; /* Зліва місце для іконки */
	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(--secondary-color);
	box-shadow: 0 0 0 2px rgba(0, 184, 169, 0.2);
}

.form__input::placeholder {
	color: var(--text-secondary);
	opacity: 0.8;
}

/* --- Чекбокс --- */
.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.form__checkbox {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: var(--secondary-color); /* Сучасна стилізація */
}

.form__label--checkbox {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 0.9rem;
	color: var(--text-secondary);
	line-height: 1.5;
	margin-bottom: 0;
}

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

/* --- Кнопка --- */
.form__button {
	/* Перевикористання стилів .hero__cta, але з деякими змінами */
	display: block;
	width: 100%;
	padding: 1rem 2rem;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1rem;
	border-radius: 50px;
	text-align: center;
	transition: all 0.3s ease;
	background-color: var(--secondary-color);
	color: var(--surface-color);
	border: none;
	cursor: pointer;
}

.form__button:hover {
	background-color: #009a8f;
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(0, 184, 169, 0.3);
}

.form__button:disabled {
	background-color: var(--text-secondary);
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* --- Повідомлення --- */
.form__message {
	padding: 0.75rem 1rem;
	margin-top: 1.5rem;
	border-radius: 8px;
	font-size: 0.9rem;

	/* Стан "приховано" */
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	padding-top: 0;
	padding-bottom: 0;
	margin-top: 0;
	transition: all 0.4s ease;
}

.form__message--visible {
	/* Стан "видимо" */
	max-height: 100px; /* Достатньо для тексту */
	opacity: 1;
	visibility: visible;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	margin-top: 1.5rem;
}

.form__message--success {
	background-color: #f0fdf4; /* Light green */
	color: #16a34a; /* Dark green */
	border: 1px solid #86efac;
}

.form__message--error {
	background-color: #fef2f2; /* Light red */
	color: #dc2626; /* Dark red */
	border: 1px solid #fca5a5;
}

/* --- Адаптивність (Mobile-first) --- */

/* Десктопи (min-width: 992px) */
@media (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1.1fr; /* 2 колонки */
		gap: 5rem;
	}
}


/* ==================== COOKIE POPUP (Etap 5) ==================== */
.cookie-popup {
    /* Приховано за замовчуванням */
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Поверх усього */
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    padding: 1.25rem 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    
    /* Анімація появи */
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
}

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

.cookie-popup__container {
    display: flex;
    flex-direction: column; /* На мобільних */
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-popup__text {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

.cookie-popup__link {
    color: var(--surface-color);
    text-decoration: underline;
    font-weight: 600;
}
.cookie-popup__link:hover {
    color: var(--secondary-color);
}

.cookie-popup__button {
    /* Перевикористання стилів кнопок */
    padding: 0.6rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    background-color: var(--secondary-color);
    color: var(--surface-color);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0; /* Не стискатися */
}

.cookie-popup__button:hover {
    background-color: #009a8f;
}

/* Адаптивність для Cookie */
@media (min-width: 768px) {
    .cookie-popup__container {
        flex-direction: row; /* В рядок на десктопах */
        gap: 2rem;
    }
    .cookie-popup__text {
        text-align: left;
    }
}


/* ==================== POLICY PAGES (Etap 5) ==================== */
/* Стилі для privacy.html, terms.html, etc. */

.pages {
    padding: 6rem 0;
    background-color: var(--surface-color);
    min-height: 70vh;
}

.pages h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 1rem;
}

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

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

.pages ul {
    list-style-type: disc;
    padding-left: 1.5rem; /* Відступ для маркерів */
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

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

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

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