/* ======== 0. GLOBAL STYLES ======== */

/* --- Root Variables --- */
:root {
	/* Colors */
	--primary-color: #0a84ff;
	--primary-hover: #006edc;
	--accent-color: #00c9a7;
	--accent-hover: #00a98e;

	--text-color: #212529;
	--text-light: #6c757d;
	--bg-color: #ffffff;

	--footer-bg: #1a1d24;
	--footer-text: #ced4da;
	--footer-link-hover: #ffffff;

	/* Fonts */
	--font-primary: 'Inter', sans-serif;
	--font-secondary: 'Exo 2', sans-serif;

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

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

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-primary);
	color: var(--text-color);
	background-color: var(--bg-color);
	line-height: 1.6;
}

ul {
	list-style: none;
}

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

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

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

/* --- Utility Classes --- */
.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

/* --- Body Lock (for mobile menu) --- */
.body--lock-scroll {
	overflow: hidden;
}

/* ======== 1. HEADER STYLES ======== */
.header {
	height: var(--header-height);
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid #eee;
	transition: box-shadow 0.3s ease;
}

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--text-color);
}

.header__logo-svg {
	width: 32px;
	height: 32px;
	color: var(--primary-color);
}

/* --- Mobile Menu Toggle --- */
.header__toggle {
	display: block;
	color: var(--text-color);
}

.header__close {
	display: block;
	color: var(--text-color);
	z-index: 101;
}

.header__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	color: var(--text-color);
}

/* --- Mobile Navigation --- */
.header__nav {
	position: fixed;
	top: 0;
	right: -100%; /* Hidden by default */
	width: 80%;
	height: 100vh;
	background-color: var(--bg-color);
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
	padding: 6rem 2rem 2rem;
	transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header__nav--open {
	right: 0; /* Shown when active */
}

.header__nav-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.header__nav-link {
	font-family: var(--font-secondary);
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--text-color);
	transition: color 0.3s ease;
}

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

.header__nav-link--cta {
	background-color: var(--primary-color);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	text-align: center;
	transition: background-color 0.3s ease;
}

.header__nav-link--cta:hover {
	background-color: var(--primary-hover);
	color: white;
}

/* --- Desktop Navigation (Mobile-first) --- */
@media (min-width: 992px) {
	.header__toggle,
	.header__close {
		display: none;
	}

	.header__nav {
		position: static;
		width: auto;
		height: auto;
		background-color: transparent;
		box-shadow: none;
		padding: 0;
		transition: none;
	}

	.header__nav-list {
		flex-direction: row;
		align-items: center;
		gap: 2rem;
	}

	.header__nav-link {
		font-family: var(--font-primary);
		font-weight: 500;
		font-size: 1rem;
	}

	.header__nav-link--cta {
		padding: 0.6rem 1.25rem;
	}
}

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

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

.footer__logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 1.5rem;
	color: white;
	margin-bottom: 1rem;
}

.footer__logo-svg {
	width: 32px;
	height: 32px;
	color: var(--primary-color); /* SVG inherits color */
}

.footer__description {
	font-size: 0.9rem;
	line-height: 1.5;
	max-width: 300px;
}

.footer__title {
	font-family: var(--font-secondary);
	font-weight: 600;
	font-size: 1.1rem;
	color: white;
	margin-bottom: 1rem;
}

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

.footer__link {
	font-size: 0.95rem;
	color: var(--footer-text);
	transition: color 0.3s ease;
}

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

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

.footer__list--contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

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

.footer__copyright {
	border-top: 1px solid #343a40;
	margin-top: 3rem;
	padding: 1.5rem 0;
	text-align: center;
	font-size: 0.85rem;
	color: var(--text-light);
}

/* --- Desktop Footer (Mobile-first) --- */
@media (min-width: 768px) {
	.footer__container {
		/* 2 columns */
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.footer__container {
		/* 4 columns */
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 3rem;
	}
}

/* ======== 3. HERO STYLES ======== */
.hero {
	padding-top: var(--header-height); /* Offset for fixed header */
	min-height: 90vh; /* Minimum height */
	display: flex;
	align-items: center;
	padding-bottom: 4rem;
	padding-top: calc(var(--header-height) + 3rem);
	overflow: hidden; /* For animations */
}

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

.hero__content {
	text-align: center;
}

.hero__title {
	font-family: var(--font-secondary);
	font-size: 2.5rem; /* 40px */
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
	color: var(--text-color);
}

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

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

.hero__cta-group {
	display: flex;
	flex-wrap: wrap; /* Allow buttons to wrap on small screens */
	justify-content: center;
	gap: 1rem;
}

.hero__cta {
	display: inline-block;
	padding: 0.85rem 1.75rem;
	border-radius: 8px;
	font-family: var(--font-secondary);
	font-weight: 600;
	font-size: 1rem;
	text-align: center;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

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

.hero__cta--primary:hover {
	background-color: var(--primary-hover);
	border-color: var(--primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

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

.hero__cta--secondary:hover {
	background-color: var(--primary-color);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(10, 132, 255, 0.2);
}

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

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

/* --- Hero Animation Styles (JS Hook) --- */
.hero__title,
.hero__description,
.hero__cta-group,
.hero__image-wrapper {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* --- Desktop Styles (Mobile-first) --- */
@media (min-width: 992px) {
	.hero {
		min-height: 100vh; /* Full viewport height on desktop */
		padding-bottom: 4rem;
		padding-top: var(--header-height);
	}

	.hero__container {
		grid-template-columns: 1fr 1fr; /* 2 columns */
		gap: 4rem;
	}

	.hero__content {
		text-align: left; /* Align text to the left */
		order: -1; /* Move text content before image */
	}

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

	.hero__cta-group {
		justify-content: flex-start;
	}
}

/* ======== 4. ABOUT STYLES ======== */
.about {
	padding: 5rem 0;
	background-color: var(--bg-color);
}

.about__intro {
	text-align: center;
	max-width: 800px;
	margin: 0 auto 4rem auto;
}

.about__title {
	font-family: var(--font-secondary);
	font-size: 2.25rem; /* 36px */
	font-weight: 700;
	margin-bottom: 1rem;
}

.about__title--highlight {
	color: var(--accent-color);
}

.about__description {
	font-size: 1.125rem; /* 18px */
	color: var(--text-light);
	line-height: 1.7;
}

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

.about__card {
	background-color: #f8f9fa; /* Світлий фон для картки */
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.about__card-icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: var(--primary-color);
	color: white;
	margin-bottom: 1.5rem;
}

.about__card-icon i {
	width: 30px;
	height: 30px;
}

.about__card-title {
	font-family: var(--font-secondary);
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--text-color);
}

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

/* --- Desktop Grid (Mobile-first) --- */
@media (min-width: 768px) {
	.about__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

/* --- Animation Class (JS Hook) --- */
.animate-on-scroll {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
	/* Додаємо затримку для послідовної анімації карток */
}

.about__card:nth-child(1) {
	transition-delay: 0s;
}
.about__card:nth-child(2) {
	transition-delay: 0.1s;
}
.about__card:nth-child(3) {
	transition-delay: 0.2s;
}

.animate-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ======== 5. HOW IT WORKS STYLES ======== */
.how {
	padding: 5rem 0;
	background-color: #f8f9fa; /* Світлий фон */
}

.how__intro {
	text-align: center;
	max-width: 800px;
	margin: 0 auto 4rem auto;
}

.how__title {
	font-family: var(--font-secondary);
	font-size: 2.25rem; /* 36px */
	font-weight: 700;
	margin-bottom: 1rem;
}

.how__description {
	font-size: 1.125rem; /* 18px */
	color: var(--text-light);
	line-height: 1.7;
}

.how__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	position: relative;
}

/* --- Step Card --- */
.how__step {
	background-color: var(--bg-color);
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 2rem;
	position: relative;
	/* Анімація (вже налаштована у .animate-on-scroll) */
}

.how__step-icon-wrapper {
	display: flex;
	align-items: center;
	margin-bottom: 1.5rem;
	gap: 1rem;
}

.how__step-number {
	font-family: var(--font-secondary);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
	background-color: rgba(10, 132, 255, 0.1);
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 50%;
}

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

.how__step-title {
	font-family: var(--font-secondary);
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--text-color);
}

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

/* --- Desktop Grid (Mobile-first) --- */
@media (min-width: 768px) {
	.how__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
	}
}

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

	/* Додаємо "стрілки" між картками на десктопі */
	.how__step:not(:last-child)::after {
		content: '';
		position: absolute;
		top: 50%;
		right: -30px; /* Половина gap */
		transform: translateY(-50%);
		width: 20px;
		height: 20px;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23CED4DA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-arrow-right'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
		opacity: 0.8;
	}
}

/* --- Animation Delays (JS Hook) --- */
/* Наш JS для .animate-on-scroll вже працює, просто додамо затримки */
.how__step:nth-child(1) {
	transition-delay: 0s;
}
.how__step:nth-child(2) {
	transition-delay: 0.1s;
}
.how__step:nth-child(3) {
	transition-delay: 0.2s;
}
.how__step:nth-child(4) {
	transition-delay: 0.3s;
}

/* ======== 6. MODULES (TABS) STYLES ======== */
.modules {
	padding: 5rem 0;
	background-color: var(--bg-color);
}

.modules__intro {
	text-align: center;
	max-width: 800px;
	margin: 0 auto 3rem auto;
}

.modules__title {
	font-family: var(--font-secondary);
	font-size: 2.25rem; /* 36px */
	font-weight: 700;
	margin-bottom: 1rem;
}

.modules__description {
	font-size: 1.125rem; /* 18px */
	color: var(--text-light);
	line-height: 1.7;
}

/* --- Tabs Component --- */
.tabs__nav {
	display: flex;
	flex-wrap: wrap; /* Дозволяє переносити на мобільних */
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 2.5rem;
	border-bottom: 1px solid #dee2e6;
}

.tabs__button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.25rem;
	font-family: var(--font-secondary);
	font-weight: 600;
	font-size: 1rem;
	color: var(--text-light);
	border: none;
	background-color: transparent;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: color 0.3s ease, border-color 0.3s ease;
	margin-bottom: -1px; /* Накладається на нижній бордер */
}

.tabs__button-icon {
	width: 18px;
	height: 18px;
}

.tabs__button:hover {
	color: var(--text-color);
}

.tabs__button--active {
	color: var(--primary-color);
	border-bottom-color: var(--primary-color);
}

/* --- Tab Content --- */
.tabs__content {
	background-color: #f8f9fa;
	border-radius: 8px;
	padding: 2rem;
	/* Анімація появи */
	animation: fadeIn 0.5s ease;
}

/* Приховуємо неактивні таби */
.tabs__content[hidden] {
	display: none;
}

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

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

.tabs__content-title {
	font-family: var(--font-secondary);
	font-size: 1.75rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.tabs__content-text p {
	font-size: 1rem;
	color: var(--text-light);
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.tabs__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.tabs__list li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
}

.tabs__list-icon {
	width: 20px;
	height: 20px;
	color: var(--accent-color);
	flex-shrink: 0;
}

.tabs__cta {
	/* Схожий на .hero__cta--secondary */
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-family: var(--font-secondary);
	font-weight: 600;
	font-size: 0.95rem;
	transition: all 0.3s ease;
	background-color: transparent;
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
}

.tabs__cta:hover {
	background-color: var(--primary-color);
	color: white;
	transform: translateY(-2px);
}

.tabs__content-image img {
	width: 100%;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* --- Desktop Styles --- */
@media (min-width: 768px) {
	.tabs__content-inner {
		grid-template-columns: 2fr 1fr;
		gap: 3rem;
	}
}

/* ======== 7. FEATURES (ACCORDION) STYLES ======== */
.features {
	padding: 5rem 0;
	background-color: #f8f9fa; /* Світлий фон */
}

.features__intro {
	text-align: center;
	max-width: 800px;
	margin: 0 auto 3rem auto;
}

.features__title {
	font-family: var(--font-secondary);
	font-size: 2.25rem; /* 36px */
	font-weight: 700;
	margin-bottom: 1rem;
}

.features__description {
	font-size: 1.125rem; /* 18px */
	color: var(--text-light);
	line-height: 1.7;
}

/* --- Accordion Component --- */
.accordion {
	max-width: 800px;
	margin: 0 auto;
}

.accordion__item {
	background-color: var(--bg-color);
	border: 1px solid #e9ecef;
	border-radius: 8px;
	margin-bottom: 1rem;
	overflow: hidden; /* Для анімації max-height */
	transition: box-shadow 0.3s ease;
}

.accordion__item:last-child {
	margin-bottom: 0;
}

.accordion__item:hover {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.accordion__title {
	font-family: var(--font-secondary);
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--text-color);
	padding-right: 1rem; /* Відступ від іконки */
}

.accordion__icon {
	width: 20px;
	height: 20px;
	color: var(--primary-color);
	transition: transform 0.3s ease;
	flex-shrink: 0; /* Запобігає стисканню іконки */
}

/* Стан "відкрито" */
.accordion__header[aria-expanded='true'] .accordion__icon {
	transform: rotate(180deg);
}

.accordion__panel {
	padding: 0 1.5rem; /* Горизонтальний падінг */
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		padding 0.4s ease;
}

.accordion__panel p {
	font-size: 0.95rem;
	color: var(--text-light);
	line-height: 1.7;
	padding-bottom: 1.5rem; /* Відступ знизу для тексту */
	border-top: 1px solid #e9ecef;
	padding-top: 1.5rem;
	margin: 0;
}

/* Стан "відкрито" для панелі */
.accordion__panel:not([hidden]) {
	/* max-height має бути достатньо великим */
	max-height: 500px;
}

/* ======== 8. CONTACT STYLES ======== */
.contact {
	padding: 5rem 0;
	background-color: var(--bg-color);
	border-top: 1px solid #e9ecef;
}

.contact__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

.contact__title {
	font-family: var(--font-secondary);
	font-size: 2.25rem; /* 36px */
	font-weight: 700;
	margin-bottom: 1rem;
}

.contact__description {
	font-size: 1.1rem; /* 18px */
	color: var(--text-light);
	line-height: 1.7;
	margin-bottom: 2.5rem;
}

.contact__details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact__details-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	font-size: 1rem;
	color: var(--text-color);
}

.contact__details-icon {
	width: 22px;
	height: 22px;
	color: var(--primary-color);
	flex-shrink: 0;
	margin-top: 2px;
}

.contact__details-item a {
	color: var(--text-color);
	transition: color 0.3s ease;
}
.contact__details-item a:hover {
	color: var(--primary-hover);
	text-decoration: underline;
}

/* --- Form Styles --- */
.contact__form-wrapper {
	background-color: #f8f9fa;
	border-radius: 12px;
	padding: 2.5rem;
	border: 1px solid #e9ecef;
}

.form__group {
	margin-bottom: 1.5rem;
}

.form__label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

.form__input {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid #ced4da;
	border-radius: 8px;
	font-size: 1rem;
	font-family: var(--font-primary);
	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(10, 132, 255, 0.2);
}

/* --- Custom Checkbox --- */
.form__group--checkbox {
	margin-bottom: 2rem;
}

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

.form__checkbox-label {
	display: inline-block;
	cursor: pointer;
	font-size: 0.9rem;
	color: var(--text-light);
	line-height: 1.5;
}

.form__checkbox-custom {
	width: 20px;
	height: 20px;
	border: 2px solid #ced4da;
	border-radius: 4px;
	display: grid;
	place-items: center;
	transition: background-color 0.3s ease, border-color 0.3s ease;
	flex-shrink: 0;
}

.form__checkbox-icon {
	width: 16px;
	height: 16px;
	color: white;
	opacity: 0; /* Прихована галочка */
	transition: opacity 0.3s ease;
}

.form__checkbox-input:checked + .form__checkbox-label .form__checkbox-custom {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.form__checkbox-input:checked + .form__checkbox-label .form__checkbox-icon {
	opacity: 1; /* Показуємо галочку */
}

.form__checkbox-input:focus + .form__checkbox-label .form__checkbox-custom {
	box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

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

/* --- Submit Button --- */
.form__submit-btn {
	width: 100%;
	padding: 0.9rem 1.75rem;
	border-radius: 8px;
	font-family: var(--font-secondary);
	font-weight: 600;
	font-size: 1.1rem;
	background-color: var(--accent-color);
	color: white;
	border: 2px solid var(--accent-color);
	cursor: pointer;
	transition: all 0.3s ease;
}

.form__submit-btn:hover {
	background-color: var(--accent-hover);
	border-color: var(--accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 201, 167, 0.3);
}

/* --- Success Message --- */
.form__success-message {
	text-align: center;
	padding: 2rem;
	border: 1px solid var(--accent-color);
	background-color: rgba(0, 201, 167, 0.05);
	border-radius: 8px;
	color: var(--text-color);
}

.form__success-message[hidden] {
	display: none;
}

.form__success-icon {
	width: 48px;
	height: 48px;
	color: var(--accent-color);
	margin-bottom: 1rem;
}
.form__success-title {
	font-family: var(--font-secondary);
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

/* --- Desktop Layout --- */
@media (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1fr;
		gap: 5rem;
		align-items: flex-start;
	}
}


/* ======== 9. COOKIE POPUP STYLES ======== */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Приховано за замовчуванням */
    left: 0;
    width: 100%;
    background-color: var(--footer-bg); /* Темний фон, як у футера */
    color: var(--footer-text);
    padding: 1.5rem 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 200;
    transition: bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Стан "показано" (додається через JS) */
.cookie-popup--show {
    bottom: 0;
}

.cookie-popup__container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.cookie-popup__link {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

.cookie-popup__btn {
    /* Схожий на .hero__cta--primary, але менший */
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0; /* Не стискати кнопку */
}

.cookie-popup__btn:hover {
    background-color: var(--primary-hover);
}

/* --- Desktop Layout --- */
@media (min-width: 768px) {
    .cookie-popup__container {
        flex-direction: row;
        gap: 2rem;
    }
    .cookie-popup__text {
        text-align: left;
    }
}

/* ======== 10. LEGAL PAGES STYLES (.pages) ======== */

.pages {
    padding: calc(var(--header-height) + 4rem) 0 5rem 0; /* Відступ від фікс. хедера */
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8; /* Покращена читабельність */
}

.pages .container {
    max-width: 800px; /* Вужчий контейнер для тексту */
}

.pages h1,
.pages h2 {
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

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

.pages h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
}

.pages p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.pages ul {
    list-style: disc;
    padding-left: 1.5rem; /* Відступ для маркерів */
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pages li {
    font-size: 1rem;
    color: var(--text-light);
}

.pages a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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