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

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

/* --- CSS Variables (Палітра) --- */
:root {
	/* Кольори */
	--primary-color: #0d1b2a; /* Глибокий синій (для футера, акцентів) */
	--secondary-color: #1ee3cf; /* Яскрава бірюза (для CTA, ховерів) */
	--accent-color: #007bff; /* Яскравий синій (для лого, посилань) */

	--text-color: #333333; /* Основний текст */
	--text-light: #f1f1f1; /* Світлий текст (на темному фоні) */
	--bg-color: #ffffff; /* Основний фон */
	--footer-bg: var(--primary-color);
	--border-color: #e0e0e0;

	/* Типографіка */
	--font-primary: 'Poppins', sans-serif;
	--font-secondary: 'Inter', sans-serif;

	/* Інше */
	--header-height: 70px;
	--container-padding: 0 20px;
	--container-width: 1140px;
	--transition-main: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
	font-family: var(--font-secondary);
	color: var(--text-color);
	background-color: var(--bg-color);
	line-height: 1.6;
	padding-top: var(--header-height); /* Компенсація фіксованого хедера */
}

ul,
ol {
	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;
}

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

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

/* ======== 1. HEADER STYLES ======== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: var(--bg-color);
	border-bottom: 1px solid var(--border-color);
	z-index: 1000;
	transition: var(--transition-main);
}

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

.header__logo-link {
	display: flex;
	align-items: center;
}

.header__logo-svg {
	height: 30px; /* Висота лого в хедері */
	width: auto;
}

/* --- Navigation (Mobile First) --- */
.nav {
	position: fixed;
	top: var(--header-height);
	left: -100%; /* Сховано за замовчуванням */
	width: 100%;
	height: calc(100vh - var(--header-height));
	background-color: var(--bg-color);
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	padding-top: 40px;
	transition: left 0.4s ease-in-out;
	z-index: 998;
	overflow-y: auto;
}

.nav.is-active {
	left: 0;
}

.nav__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 25px;
}

.nav__link {
	font-family: var(--font-primary);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text-color);
	transition: var(--transition-main);
	position: relative;
	padding-bottom: 5px;
}

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

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

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

.nav__link--button {
	background-color: var(--accent-color);
	color: var(--bg-color);
	padding: 10px 20px;
	border-radius: 50px;
	font-size: 1rem;
}

.nav__link--button:hover {
	background-color: var(--secondary-color);
	color: var(--primary-color);
}
.nav__link--button::after {
	display: none; /* Забираємо підкреслення для кнопки */
}

/* --- Burger Button --- */
.burger {
	display: block;
	z-index: 999;
	color: var(--primary-color);
}

/* --- Desktop Styles (Планшети і вище) --- */
@media (min-width: 992px) {
	.nav {
		position: static;
		width: auto;
		height: auto;
		background-color: transparent;
		flex-direction: row;
		padding-top: 0;
		transition: none;
	}

	.nav__list {
		flex-direction: row;
		gap: 30px;
	}

	.nav__link {
		font-size: 1rem;
		font-weight: 500;
		font-family: var(--font-secondary);
	}

	.nav__link--button {
		margin-left: 15px;
	}

	.burger {
		display: none;
	}
}

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

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

.footer__logo-svg {
	height: 40px;
	width: auto;
	margin-bottom: 15px;
}

.footer__description {
	font-size: 0.9rem;
	color: #b0b8c4; /* Більш світлий сірий */
	line-height: 1.5;
	max-width: 250px;
}

.footer__title {
	font-size: 1.25rem;
	margin-bottom: 20px;
	color: var(--bg-color);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__link {
	color: #b0b8c4;
	transition: var(--transition-main);
	display: inline-block;
}

.footer__link:hover {
	color: var(--secondary-color);
	text-decoration: underline;
	transform: translateX(5px);
}

.footer__contact-item {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #b0b8c4;
}

.footer__contact-item svg {
	width: 20px;
	height: 20px;
	stroke: var(--secondary-color);
	flex-shrink: 0;
}

.footer__copyright {
	border-top: 1px solid #4a5568; /* Темніший роздільник */
	margin-top: 40px;
	padding: 20px 0;
	text-align: center;
	font-size: 0.85rem;
	color: #b0b8c4;
}

/* --- Footer Grid (Планшети і вище) --- */
@media (min-width: 576px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.footer__container {
		/* 1.5fr для лого, 1fr для інших */
		grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
	}
}

/* ======== 3. MAIN CONTENT STYLES ======== */

/* --- Загальний стиль для кнопок --- */
.button {
	display: inline-flex; /* Для вирівнювання іконки та тексту */
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 28px;
	font-family: var(--font-primary);
	font-size: 1rem;
	font-weight: 600;
	border-radius: 50px;
	text-align: center;
	cursor: pointer;
	transition: var(--transition-main);
	border: 2px solid transparent;
}

.button--primary {
	background-color: var(--accent-color);
	color: var(--bg-color);
}

.button--primary:hover {
	background-color: var(--secondary-color);
	color: var(--primary-color);
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.button--secondary {
	background-color: transparent;
	color: var(--text-color);
	border-color: var(--border-color);
}

.button--secondary:hover {
	background-color: var(--bg-color);
	border-color: var(--accent-color);
	color: var(--accent-color);
	transform: translateY(-3px);
}

.button svg {
	width: 20px;
	height: 20px;
}

/* --- Hero Section --- */
.hero {
	padding: 60px 0;
	overflow: hidden; /* Для коректної роботи AOS */
	background-color: #f9faff; /* Дуже світлий фон */
}

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

.hero__content {
	text-align: center; /* Mobile-first: текст по центру */
}

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

.hero__title--highlight {
	/* Використовуємо градієнт для акценту */
	background: linear-gradient(
		90deg,
		var(--accent-color),
		var(--secondary-color)
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-fill-color: transparent;
}

.hero__description {
	font-size: 1.1rem;
	line-height: 1.7;
	color: #555;
	max-width: 600px;
	margin: 0 auto 30px auto;
}

.hero__actions {
	display: flex;
	flex-direction: column; /* На мобільних кнопки одна під одною */
	justify-content: center;
	align-items: center;
	gap: 15px;
}

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

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

/* --- Hero (Desktop) --- */
@media (min-width: 768px) {
	.hero__actions {
		flex-direction: row; /* На планшетах - в ряд */
	}
}

@media (min-width: 992px) {
	.hero {
		padding: 80px 0;
		min-height: calc(100vh - var(--header-height)); /* Займає висоту екрану */
		display: flex;
		align-items: center;
	}

	.hero__container {
		grid-template-columns: 1fr 1fr; /* Дві колонки */
		gap: 60px;
	}

	.hero__content {
		text-align: left; /* Текст зліва */
	}

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

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

	.hero__actions {
		justify-content: flex-start;
	}
}

.section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 50px auto;
}

.section-header__subtitle {
	display: inline-block;
	padding: 5px 15px;
	background-color: rgba(0, 123, 255, 0.1); /* Світлий фон акцентного кольору */
	color: var(--accent-color);
	font-family: var(--font-primary);
	font-weight: 600;
	border-radius: 30px;
	font-size: 0.9rem;
	margin-bottom: 15px;
	text-transform: uppercase;
}

.section-header__title {
	font-size: 2.25rem; /* 36px */
	margin-bottom: 15px;
}

.section-header__description {
	font-size: 1.1rem;
	color: #555;
	line-height: 1.7;
}

@media (min-width: 768px) {
	.section-header__title {
		font-size: 2.5rem; /* 40px */
	}
}

/* ======== 5. PRACTICE SECTION ======== */

.practice {
	padding: 60px 0;
	background-color: var(--bg-color); /* Чистий білий фон */
}

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

/* --- Practice Card --- */
.practice-card {
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 30px;
	text-align: center;
	transition: var(--transition-main);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.practice-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px rgba(0, 123, 255, 0.1);
	border-color: var(--accent-color);
}

.practice-card__icon-wrapper {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: var(--secondary-color);
	color: var(--primary-color);
	margin-bottom: 20px;
	transition: var(--transition-main);
}

.practice-card__icon-wrapper svg {
	width: 30px;
	height: 30px;
}

.practice-card:hover .practice-card__icon-wrapper {
	background-color: var(--accent-color);
	color: var(--bg-color);
	transform: rotate(15deg);
}

.practice-card__title {
	font-size: 1.5rem; /* 24px */
	font-family: var(--font-primary);
	margin-bottom: 15px;
	color: var(--primary-color);
}

.practice-card__description {
	font-size: 1rem;
	line-height: 1.6;
	color: #555;
}

/* --- Practice Grid (Desktop) --- */
@media (min-width: 768px) {
	.practice__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 576px) and (max-width: 767px) {
	.practice__grid {
		/* На малих планшетах зробимо 2 колонки */
		grid-template-columns: repeat(2, 1fr);
	}
}

.tools {
	padding: 60px 0;
	background-color: #f9faff; /* Той самий світлий фон, що й у Hero */
}

.tools__grid {
	display: grid;
	/* 2 колонки на мобільних */
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.tool-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 25px;
	min-height: 120px;
	gap: 15px; /* Відстань між іконкою та текстом */

	font-family: var(--font-primary);
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-color);

	transition: var(--transition-main);
}

.tool-card svg {
	width: 32px;
	height: 32px;
	color: var(--accent-color);
	transition: var(--transition-main);
}

.tool-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
	border-color: var(--accent-color);
}

.tool-card:hover svg {
	color: var(--secondary-color);
	transform: scale(1.1);
}

/* --- Tools Grid (Desktop) --- */
@media (min-width: 768px) {
	.tools__grid {
		/* 3 колонки на планшетах */
		grid-template-columns: repeat(3, 1fr);
		gap: 25px;
	}

	.tool-card {
		flex-direction: row; /* В ряд на великих екранах */
		justify-content: flex-start;
		font-size: 1.1rem;
		padding: 30px;
	}
}

@media (min-width: 992px) {
	.tools__grid {
		/* 3 колонки, але з більшою відстанню */
		gap: 30px;
	}
}

.how-it-works {
	padding: 60px 0;
	background-color: var(--bg-color); /* Знову білий фон */
}

.how-it-works__steps-wrapper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	margin-bottom: 40px;
	position: relative;
}

.step-card {
	position: relative;
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 35px 30px 30px;
	text-align: center;
	background-color: var(--bg-color);
	transition: var(--transition-main);
}

.step-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px rgba(0, 123, 255, 0.1);
}

.step-card__number {
	position: absolute;
	top: 15px;
	right: 25px;
	font-size: 3rem;
	font-weight: 700;
	font-family: var(--font-primary);
	color: #e9ecef; /* Дуже світлий сірий */
	z-index: 0;
}

.step-card__icon-wrapper {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: rgba(0, 123, 255, 0.1);
	color: var(--accent-color);
	margin-bottom: 20px;
	position: relative;
	z-index: 1;
}

.step-card__icon-wrapper svg {
	width: 30px;
	height: 30px;
}

.step-card__title {
	font-size: 1.5rem; /* 24px */
	margin-bottom: 15px;
	position: relative;
	z-index: 1;
}

.step-card__description {
	font-size: 1rem;
	line-height: 1.6;
	color: #555;
	position: relative;
	z-index: 1;
}

.how-it-works__cta {
	text-align: center;
}

/* --- Steps (Desktop) --- */
@media (min-width: 768px) {
	.how-it-works__steps-wrapper {
		grid-template-columns: repeat(3, 1fr);
		gap: 30px;
	}

	/* Лінія-конектор */
	.step-card:not(:last-child)::after {
		content: '';
		position: absolute;
		top: 65px; /* На рівні центру іконки */
		right: -15px; /* Половина 'gap' */
		width: 30px; /* 'gap' */
		height: 2px;
		background-color: var(--border-color);
		z-index: -1;
	}
}

/* Прибираємо лінію на мобільних */
@media (max-width: 767px) {
	.step-card:not(:last-child)::after {
		display: none;
	}
}

.faq {
	padding: 60px 0;
	background-color: #f9faff; /* Знову світлий фон */
}

.faq__list {
	max-width: 800px;
	margin: 0 auto;
	border: 1px solid var(--border-color);
	border-radius: 16px;
	background-color: var(--bg-color);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
	overflow: hidden; /* Для заокруглених кутів */
}

.faq__item:not(:last-child) {
	border-bottom: 1px solid var(--border-color);
}

.faq__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 20px 25px;
	text-align: left;

	font-family: var(--font-primary);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--primary-color);
	transition: background-color 0.3s ease;
}

.faq__question:hover {
	background-color: #f9faff;
}

.faq__question span {
	padding-right: 15px;
}

.faq__icon {
	width: 22px;
	height: 22px;
	color: var(--accent-color);
	flex-shrink: 0;
	transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Стан "Активний" для акордеону */
.faq__item.is-active .faq__icon {
	transform: rotate(180deg);
}

.faq__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq__answer p {
	padding: 0 25px 20px 25px;
	font-size: 1rem;
	line-height: 1.7;
	color: #555;
}

.contact {
	padding: 60px 0;
	background-color: var(--bg-color);
}

.contact__wrapper {
	max-width: 700px;
	margin: 0 auto;
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
	.contact__wrapper {
		padding: 50px;
	}
}

/* --- Form Styles --- */
.contact-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 25px;
}

.form-group {
	position: relative;
}

.form-group__icon {
	position: absolute;
	left: 15px;
	top: 14px;
	width: 22px;
	height: 22px;
	color: #999;
	transition: var(--transition-main);
}

.form-group__input {
	width: 100%;
	padding: 15px 15px 15px 50px; /* Відступ для іконки */
	font-size: 1rem;
	font-family: var(--font-secondary);
	color: var(--text-color);
	background-color: #f9faff;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	outline: none;
	transition: var(--transition-main);
}

.form-group__label {
	position: absolute;
	left: 50px;
	top: 15px;
	font-size: 1rem;
	color: #999;
	pointer-events: none;
	transition: var(--transition-main);
}

/* Анімація "Floating Label" */
.form-group__input:focus + .form-group__label,
.form-group__input:not(:placeholder-shown) + .form-group__label {
	top: -10px;
	left: 45px;
	font-size: 0.85rem;
	color: var(--accent-color);
	background-color: var(--bg-color); /* Потрібно для перекриття рамки */
	padding: 0 5px;
}

.form-group__input:focus {
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group__input:focus ~ .form-group__icon {
	color: var(--accent-color);
}

/* --- Checkbox Styles --- */
.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.form-group__checkbox-input {
	/* Кастомний чекбокс */
	appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid var(--border-color);
	border-radius: 4px;
	cursor: pointer;
	flex-shrink: 0;
	margin-top: 3px;
	transition: var(--transition-main);
}

.form-group__checkbox-input:checked {
	background-color: var(--accent-color);
	border-color: var(--accent-color);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
}

.form-group__checkbox-label {
	font-size: 0.9rem;
	color: #555;
	line-height: 1.5;
}

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

.form-group__checkbox-label a:hover {
	color: var(--secondary-color);
}

/* --- Form Button --- */
.contact-form__button {
	width: 100%;
}

/* --- Success Message --- */
.form-message {
	display: none; /* Сховано за замовчуванням */
	padding: 15px 20px;
	border-radius: 8px;
	font-size: 1rem;
	display: flex;
	align-items: center;
	gap: 12px;
}

.form-message--success {
	display: none;
	background-color: #e6f7f0; /* Світло-зелений */
	border: 1px solid #b7e4d3;
	color: #0d6a47;
}

.form-message--success.is-visible {
	display: flex; /* Робимо видимим */
}


/* ======== 10. COOKIE POP-UP ======== */

.cookie-popup {
    position: fixed;
    bottom: -100%; /* Початково сховано */
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
}

/* Стан "Активний" */
.cookie-popup.is-visible {
    bottom: 0;
}

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0; /* Контейнер вже має паддінги */
}

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

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

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

.cookie-popup__button {
    padding: 8px 25px; /* Трохи менша кнопка */
    flex-shrink: 0;
}

/* --- Cookie Pop-up (Desktop) --- */
@media (min-width: 768px) {
    .cookie-popup {
        padding: 25px;
    }
    .cookie-popup__content {
        flex-direction: row;
    }
    .cookie-popup__text {
        text-align: left;
    }
}




/* Цей клас .pages ти будеш використовувати на своїх 
   окремих сторінках політик */
.pages {
    padding: 40px 0 60px 0;
    background-color: var(--bg-color);
}

.pages .container {
    max-width: 800px; /* Вужчий контейнер для кращої читабельності */
    color: var(--text-color);
}

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

.pages h2 {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin: 30px 0 15px 0;
}

.pages p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.pages ul {
    list-style: disc; /* Повертаємо стандартні маркери */
    margin: 0 0 20px 20px;
    padding-left: 20px;
}

.pages li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

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

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

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

@media (min-width: 768px) {
    .pages {
        padding: 60px 0 80px 0;
    }
    .pages h1 {
        font-size: 3rem;
    }
    .pages h2 {
        font-size: 2rem;
    }
}