/* ==================== 0. ГЛОБАЛЬНІ СТИЛІ ==================== */

/* Підключення шрифтів */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Poppins:wght@500;600;700&display=swap');

/*
* Шрифти:
* font-family: 'Poppins', sans-serif; (Заголовки, акценти)
* font-family: 'Inter', sans-serif; (Основний текст)
*/

/* Кольорова палітра (темна тема) */
:root {
	--primary-color: #6b8aff;
	--secondary-color: #2dd4bf;
	--bg-color: #0f1419;
	--surface-color: #1a1f26;
	--text-primary: #f1f5f9;
	--text-secondary: #94a3b8;
	--border-color: #334155;

	--header-height: 70px;
}

/* Базові стилі */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	background-color: var(--bg-color);
	color: var(--text-primary);
	-webkit-font-smoothing: antialiased;
}

ul {
	list-style: none;
}

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

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

/* Заголовки */
h1,
h2,
h3,
h4 {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	line-height: 1.3;
}

/* Контейнер */
.container {
	max-width: 1200px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* ==================== 1. ХЕДЕР (Header) ==================== */
.header {
	width: 100%;
	height: var(--header-height);
	background-color: var(--surface-color);
	border-bottom: 1px solid var(--border-color);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
}

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

/* Логотип */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--text-primary);
}

.logo__svg {
	width: 32px;
	height: 32px;
}

/* Блок навігації (Mobile-First: прихований) */
.header__nav {
	position: fixed;
	top: 0;
	right: -100%; /* Прихований за екраном */
	width: 80%;
	max-width: 300px;
	height: 100vh;
	background-color: var(--surface-color);
	box-shadow: -4px 0 25px rgba(0, 0, 0, 0.4);
	padding: 4rem 2rem 2rem;
	transition: right 0.3s ease-in-out;
}

/* Модифікатор для показу меню */
.header__nav--open {
	right: 0;
}

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

.header__nav-link {
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 1.1rem;
	color: var(--text-primary);
	transition: color 0.2s;
}

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

/* Акцентна кнопка в меню */
.header__nav-link--button {
	background-color: var(--primary-color);
	color: #fff;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	text-align: center;
	transition: background-color 0.2s;
}

.header__nav-link--button:hover {
	background-color: #5b7aff;
	color: #fff;
}

/* Кнопки керування мобільним меню */
.header__toggle {
	display: block; /* Показаний на мобільних */
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-primary);
}

.header__nav-close {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.5rem;
	color: var(--text-secondary);
}

.header__toggle i,
.header__nav-close i {
	width: 28px;
	height: 28px;
}

/* Адаптація хедера (Desktop) */
@media (min-width: 992px) {
	.header__nav {
		position: static;
		width: auto;
		max-width: none;
		height: auto;
		background: none;
		box-shadow: none;
		padding: 0;
	}

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

	.header__nav-link {
		font-size: 1rem;
	}

	.header__toggle,
	.header__nav-close {
		display: none; /* Приховуємо кнопки на десктопі */
	}

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

/* ==================== 2. ФУТЕР (Footer) ==================== */

/* Відступ для main, щоб контент не ховався під хедер */
.main {
	padding-top: var(--header-height);
}

.footer {
	background-color: var(--surface-color);
	border-top: 1px solid var(--border-color);
	padding: 4rem 0 0;
	color: var(--text-secondary);
}

.footer__container {
	display: grid;
	gap: 2.5rem;
	/* Mobile: 1 колонка */
	grid-template-columns: 1fr;
}

.footer__col--logo .logo {
	margin-bottom: 1rem;
}

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

.footer__title {
	font-family: 'Poppins', sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 1rem;
}

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

.footer__link {
	font-size: 0.95rem;
	color: var(--text-secondary);
	transition: color 0.2s;
}

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

.footer__link--static {
	font-size: 0.95rem;
	color: var(--text-secondary);
	line-height: 1.5;
}

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

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

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

.footer__bottom {
	padding: 1.5rem 1rem;
	margin-top: 3rem;
	border-top: 1px solid var(--border-color);
	text-align: center;
	font-size: 0.9rem;
}

/* Адаптація футера (Tablet) */
@media (min-width: 768px) {
	.footer__container {
		/* 2 колонки */
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Адаптація футера (Desktop) */
@media (min-width: 1024px) {
	.footer__container {
		/* 4 колонки */
		grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
	}
}

/* ==================== 3. КОМПОНЕНТИ (Buttons) ==================== */
/* * Ми додаємо загальні стилі для кнопок тут, 
 * щоб перевикористовувати їх в усіх секціях.
*/
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 1.75rem;
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 1rem;
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	white-space: nowrap;
}

.button--primary {
	background-color: var(--primary-color);
	color: #fff;
}
.button--primary:hover {
	background-color: #5b7aff;
	box-shadow: 0 4px 20px rgba(107, 138, 255, 0.35);
	transform: translateY(-2px);
}

.button--secondary {
	background-color: var(--surface-color);
	color: var(--primary-color);
	border-color: var(--border-color);
}
.button--secondary:hover {
	background-color: #252b33;
	border-color: #475569;
	transform: translateY(-2px);
}

.button__icon {
	width: 20px;
	height: 20px;
}

/* ==================== 4. СЕКЦІЯ: HERO (Home) ==================== */
.hero {
	/* Використовуємо margin, щоб якір #home спрацював коректно */
	margin-top: var(--header-height);
	padding: 4rem 0;
	background-color: var(--surface-color); /* Відрізняється від body */
	overflow: hidden;
	border-bottom: 1px solid var(--border-color);
}

.hero__container {
	display: grid;
	gap: 3rem;
}

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

.hero__title {
	font-size: 1.75rem; /* 36px */
	line-height: 1.3;
	margin-bottom: 1rem;
	font-weight: 700;
}

.hero__title-accent {
	color: var(--primary-color);
	/* Забезпечує коректний перенос рядка */
	display: inline-block;
	min-height: 2.5rem; /* Резервуємо місце по висоті */
}

/* Анімація курсора */
.hero__cursor {
	animation: blink 0.7s infinite;
	font-weight: 400;
	color: var(--text-secondary);
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.hero__description {
	font-size: 1.1rem;
	color: var(--text-secondary);
	margin: 0 auto 2rem auto;
	max-width: 550px; /* Обмежуємо ширину на мобільних */
}

.hero__description strong {
	color: var(--text-primary);
	font-weight: 500;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

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

.hero__image {
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
	position: relative;
	z-index: 2;
}

/* Декоративні елементи */
.hero__deco {
	position: absolute;
	border-radius: 16px;
	z-index: 1;
	display: none; /* Приховані на мобільних */
}

@media (min-width: 576px) {
	.hero__deco {
		display: block; /* Показуємо на екранах більше 576px */
	}
	.hero__deco--1 {
		width: 100px;
		height: 100px;
		top: -20px;
		left: -20px;
		transform: rotate(30deg);
		background-color: var(--secondary-color);
		opacity: 0.2;
	}

	.hero__deco--2 {
		width: 150px;
		height: 150px;
		bottom: -30px;
		right: -30px;
		transform: rotate(-15deg);
		background-color: var(--primary-color);
		opacity: 0.1;
	}
}

/* Адаптація Hero (Desktop) */
@media (min-width: 992px) {
	.hero {
		padding: 6rem 0;
	}
	.hero__container {
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: 2rem;
	}

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

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

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

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

/* ==================== 5. СЕКЦІЯ: КУРСИ (Courses) ==================== */

/* Загальні стилі для секцій */
.section {
	padding: 4rem 0;
}

/* Заголовок секції */
.section__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 3rem auto;
}

.section__subtitle {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	color: var(--primary-color);
	text-transform: uppercase;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
}

.section__title {
	font-size: 2rem; /* 32px */
	font-weight: 700;
	color: var(--text-primary);
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}

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

.section__description strong {
	color: var(--text-primary);
	font-weight: 500;
}

/* Сітка курсів */
.courses__grid {
	display: grid;
	gap: 2rem;
	/* Mobile-first: 1 колонка */
	grid-template-columns: 1fr;
}

/* Картка курсу */
.course-card {
	background-color: var(--surface-color);
	border-radius: 12px;
	border: 1px solid var(--border-color);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.course-card__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-bottom: 1px solid var(--border-color);
}

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

.course-card__title {
	font-family: 'Poppins', sans-serif;
	font-size: 1.25rem; /* 20px */
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.course-card__description {
	font-size: 0.95rem;
	color: var(--text-secondary);
	margin-bottom: 1.25rem;
	flex-grow: 1; /* Виштовхує список і кнопку вниз */
}

.course-card__features {
	margin-bottom: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.course-card__feature-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--text-primary);
}

.course-card__feature-icon {
	width: 18px;
	height: 18px;
	color: var(--secondary-color);
}

/* Модифікатор для кнопки на 100% ширини */
.button--full {
	width: 100%;
}

/* Адаптація заголовків секцій (Desktop) */
@media (min-width: 768px) {
	.section {
		padding: 5rem 0;
	}
	.section__title {
		font-size: 2.5rem; /* 40px */
	}

	/* 2 колонки на планшеті */
	.courses__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Адаптація (Desktop) */
@media (min-width: 992px) {
	/* 3 колонки на десктопі */
	.courses__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ==================== 6. СЕКЦІЯ: ТЕХНОЛОГІЇ (Tech) ==================== */
.tech {
	background-color: var(--surface-color); /* Змінюємо фон для контрасту */
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	overflow-x: hidden; /* Запобігаємо горизонтальному скролу від AOS */
}

.tech__container {
	display: grid;
	gap: 3rem;
	align-items: center;
	/* Mobile: 1 колонка */
	grid-template-columns: 1fr;
}

.tech__content {
	/* На мобільних заголовок секції вирівняний по центру */
	text-align: center;
}

.tech__sub-description {
	font-size: 1rem;
	color: var(--text-secondary);
	margin-top: 1rem;
}

.tech__button {
	margin-top: 2rem;
}

/* Сітка технологій */
.tech__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr); /* 2 колонки на мобільних */
	gap: 1.5rem;
}

.tech-item {
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
	border-color: var(--primary-color);
}

.tech-item__icon {
	width: 40px;
	height: 40px;
	color: var(--primary-color);
	margin-bottom: 0.75rem;
}

.tech-item__name {
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 0.9rem;
	color: var(--text-primary);
}

/* Адаптація Tech (Tablet) */
@media (min-width: 768px) {
	.tech__grid {
		grid-template-columns: repeat(3, 1fr); /* 3 колонки на планшеті */
	}
}

/* Адаптація Tech (Desktop) */
@media (min-width: 992px) {
	.tech__container {
		grid-template-columns: 1fr 1fr; /* 2 колонки */
		gap: 4rem;
	}

	.tech__content {
		/* На десктопі вирівнюємо по лівому краю */
		text-align: left;
	}

	/* Змушуємо секцію .section__header всередині .tech__content 
       також вирівнятися ліворуч (якщо ми її використовували б) */
	.tech__content .section__header {
		text-align: left;
		margin-left: 0;
		margin-right: 0;
	}
}

/* ==================== 7. СЕКЦІЯ: ПРО НАС (About) ==================== */
.about {
	overflow-x: hidden; /* Для AOS */
}

/* Блок 1: Місія */
.about__mission {
	display: grid;
	grid-template-columns: 1fr; /* 1 колонка на мобільних */
	gap: 3rem;
	align-items: center;
	margin-bottom: 4rem;
}

.about__image-wrapper {
	width: 100%;
	max-width: 450px;
	margin: 0 auto;
}

.about__image {
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.about__content .section__title {
	/* Робимо заголовок трохи меншим, бо він у колонці */
	font-size: 1.75rem; /* 28px */
}

.about__content .section__description {
	margin-bottom: 1.5rem;
}

.about__quote {
	padding: 1rem 1.5rem;
	background-color: var(--bg-color);
	border-left: 4px solid var(--secondary-color);
	border-radius: 0 8px 8px 0;
	font-size: 0.95rem;
	font-style: italic;
	color: var(--text-secondary);
}

.about__quote p {
	margin: 0;
}

/* Блок 2: Партнери */
.about__partners {
	text-align: center;
}

.about__partners-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 1.1rem;
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

.about__partners-title strong {
	color: var(--text-primary);
	font-weight: 600;
}

.about__partners-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr); /* 2 колонки */
	gap: 1.5rem;
	align-items: center;
}

.about__partner-logo {
	padding: 1rem;
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	/* Фільтр для "сірих" логотипів */
	filter: grayscale(100%) opacity(60%);
	transition: filter 0.3s ease;
}

.about__partner-logo:hover {
	filter: grayscale(0%) opacity(100%);
}

.about__partner-logo img {
	width: 100%;
	max-height: 40px; /* Обмежуємо висоту лого */
	object-fit: contain;
}

/* Адаптація "Про нас" (Tablet) */
@media (min-width: 768px) {
	.about__partners-grid {
		grid-template-columns: repeat(4, 1fr); /* 4 колонки */
	}

	.about__content .section__title {
		font-size: 2.25rem; /* 36px */
	}
}

/* Адаптація "Про нас" (Desktop) */
@media (min-width: 992px) {
	.about__mission {
		grid-template-columns: 1fr 1.2fr; /* 2 колонки */
		gap: 4rem;
	}

	.about__partners-grid {
		grid-template-columns: repeat(5, 1fr); /* 5 колонок */
	}
}

/* ==================== 8. СЕКЦІЯ: FAQ ==================== */
.faq {
	background-color: var(--surface-color);
	border-top: 1px solid var(--border-color);
}

.faq__container {
	max-width: 800px;
	margin: 0 auto;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
}

.faq__item {
	background-color: var(--surface-color);
	/* Розділювач між елементами */
	border-bottom: 1px solid var(--border-color);
}
.faq__item:last-child {
	border-bottom: none;
}

.faq__item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	cursor: pointer;
	gap: 1rem;
}

.faq__item-title {
	font-family: 'Poppins', sans-serif;
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--text-primary);
}

.faq__item-toggle {
	color: var(--primary-color);
	flex-shrink: 0;
	transition: transform 0.3s ease;
}
.faq__item-toggle i {
	width: 24px;
	height: 24px;
}

/* Стилі для контенту (прихований) */
.faq__item-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq__item-answer {
	padding: 0 1.5rem 1.5rem;
	font-size: 0.95rem;
	color: var(--text-secondary);
	line-height: 1.7;
}

/* Модифікатор для відкритого стану */
.faq__item--open .faq__item-toggle {
	transform: rotate(180deg);
}

.faq__item--open .faq__item-content {
	max-height: 300px; /* Встановлюємо достатню висоту */
	padding-bottom: 1.5rem;
	transition: max-height 0.4s ease-in, padding 0.4s ease-in;
}

/* Щоб перший елемент (відкритий за замовчуванням) мав висоту */
.faq__item--open .faq__item-content:not(:has(.faq__item-answer)) {
	max-height: 300px;
}
.faq__item.faq__item--open .faq__item-content {
	max-height: 300px;
}

/* ==================== 9. СЕКЦІЯ: КОНТАКТИ (Contact) ==================== */
.contact {
	padding: 4rem 0;
	background: linear-gradient(
		180deg,
		var(--bg-color) 0%,
		#151a22 50%,
		var(--surface-color) 100%
	);
	overflow-x: hidden;
}

.contact__container {
	display: grid;
	grid-template-columns: 1fr; /* 1 колонка на мобільних */
	gap: 3rem;
}

.contact__content {
	text-align: center; /* На мобільних */
}

.contact__info {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	align-items: center; /* Центруємо на мобільних */
}

.contact__info-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	text-align: left; /* Вирівнюємо текст в блоці */
}

.contact__info-icon {
	width: 28px;
	height: 28px;
	color: var(--primary-color);
	flex-shrink: 0;
	margin-top: 4px;
}

.contact__info-item h4 {
	font-family: 'Poppins', sans-serif;
	font-size: 1.1rem;
	margin-bottom: 0.25rem;
	color: var(--text-primary);
}
.contact__info-item a {
	color: var(--text-secondary);
	transition: color 0.2s;
}
.contact__info-item a:hover {
	color: var(--primary-color);
}

/* Оболонка форми */
.contact__form-wrapper {
	background-color: var(--surface-color);
	padding: 2rem;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

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

.contact__group {
	display: flex;
	flex-direction: column;
}

.contact__label {
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.contact__input {
	width: 100%;
	padding: 0.8rem 1rem;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	background-color: var(--bg-color);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.contact__input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(107, 138, 255, 0.3);
}

/* Чекбокс */
.contact__group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.contact__checkbox-input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	flex-shrink: 0;
}

.contact__checkbox-label {
	font-size: 0.85rem;
	color: var(--text-secondary);
	line-height: 1.5;
}

.contact__checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
}

/* Повідомлення про успіх */
.contact__message {
	display: none; /* Приховано за замовчуванням */
	padding: 1.5rem;
	background-color: #064e3b;
	border: 1px solid #2dd4bf;
	border-radius: 8px;
	color: #99f6e4;
	text-align: center;
	font-weight: 500;

	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

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

/* Модифікатор для показу повідомлення */
.contact__message--success {
	display: flex;
}

/* Адаптація (Tablet) */
@media (min-width: 768px) {
	.contact__info {
		flex-direction: row;
		justify-content: center;
		gap: 2rem;
	}
}

/* Адаптація (Desktop) */
@media (min-width: 992px) {
	.contact {
		padding: 5rem 0;
	}
	.contact__container {
		grid-template-columns: 1fr 1.1fr; /* 2 колонки */
		gap: 4rem;
		align-items: center;
	}

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

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

	.contact__form-wrapper {
		padding: 2.5rem;
	}
}

.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--surface-color);
	border-top: 1px solid var(--border-color);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
	padding: 1.5rem;
	z-index: 90; /* Нижче хедера (100) */

	/* Анімація появи */
	transform: translateY(100%);
	transition: transform 0.4s ease-in-out;
}

/* Модифікатор для показу */
.cookie-popup:not(.cookie-popup--hidden) {
	transform: translateY(0);
}

/* Модифікатор для приховування (JS додає цей клас) */
.cookie-popup--hidden {
	transform: translateY(100%);
}

.cookie-popup__container {
	max-width: 1200px; /* Повинен відповідати .container */
	margin: 0 auto;
	padding: 0 1rem;
	display: flex;
	flex-direction: column; /* На мобільних */
	align-items: center;
	gap: 1rem;
	text-align: center;
}

.cookie-popup__text {
	font-size: 0.9rem;
	color: var(--text-secondary);
	line-height: 1.5;
}

.cookie-popup__link {
	color: var(--primary-color);
	text-decoration: underline;
}

.cookie-popup__button {
	/* Робимо кнопку меншою */
	padding: 0.6rem 1.25rem;
	font-size: 0.9rem;
	flex-shrink: 0;
}

/* Адаптація (Tablet / Desktop) */
@media (min-width: 768px) {
	.cookie-popup {
		padding: 1rem;
	}
	.cookie-popup__container {
		flex-direction: row; /* В рядок на великих екранах */
		justify-content: space-between;
		text-align: left;
	}
	.cookie-popup__button {
		width: auto;
	}
}

/* ==================== 11. СТИЛІЗАЦІЯ СТОРІНОК ПОЛІТИК ==================== */

/* * Ці стилі призначені для окремих сторінок, таких як 
 * privacy.html, terms.html, cookies.html і т.д.
 * Вони розраховані на структуру:
 * <main>
 * <section class="pages">
 * <div class="container">
 * <h1>...</h1>
 * <p>...</p>
 * <h2>...</h2>
 * <ul>...</ul>
 * </div>
 * </section>
 * </main>
*/

.pages {
	padding: 6rem 0; /* Менший відступ для текстових сторінок */
	background-color: var(--surface-color);
	min-height: calc(
		100vh - var(--header-height) - 200px
	); /* Щоб футер не прилипав */
}

/* * Ми не використовуємо .container всередині .pages, 
 * оскільки він вже є в вашій структурі. 
 * Замість цього, ми обмежуємо ширину контенту для читабельності.
*/
.pages .container {
	max-width: 800px; /* Вужчий контейнер для тексту */
}

/* Заголовок сторінки */
.pages h1 {
	font-family: 'Poppins', sans-serif;
	font-size: 2.5rem; /* 40px */
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border-color);
}

/* Підзаголовки */
.pages h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 1.75rem; /* 28px */
	font-weight: 600;
	color: var(--text-primary);
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

/* Абзаци */
.pages p {
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text-secondary);
	margin-bottom: 1.25rem;
}

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

/* Списки */
.pages ul,
.pages ol {
	margin-left: 1.5rem;
	margin-bottom: 1.25rem;
	color: var(--text-secondary);
}

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

.pages ul {
	list-style-type: disc;
}
.pages ol {
	list-style-type: decimal;
}

/* Посилання в тексті */
.pages a {
	color: var(--primary-color);
	text-decoration: underline;
	transition: color 0.2s;
}

.pages a:hover {
	color: #5b7aff;
}

/* Адаптація для мобільних */
@media (max-width: 768px) {
	.pages {
		padding: 6rem 0;
	}
	.pages h1 {
		font-size: 2rem; /* 32px */
	}
	.pages h2 {
		font-size: 1.5rem; /* 24px */
	}
}
