/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;700;800&family=Roboto:wght@400;500&display=swap');

/* ==================== CSS VARIABLES ==================== */
:root {
	/* Colors */
	--primary-color: #0a2540;
	--accent-color: #4ade80;
	--bg-color: #f8f9fa;
	--text-color: #333333;
	--text-light: #667085;
	--white-color: #ffffff;
	--border-color: #e0e0e0;

	/* Typography */
	--font-family-body: 'Roboto', sans-serif;
	--font-family-heading: 'Manrope', sans-serif;

	/* Other */
	--header-height: 4.5rem;
	--border-radius: 8px;
	--transition-speed: 0.3s ease;
}

/* ==================== BASE STYLES ==================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

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

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

ul {
	list-style: none;
}

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

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

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

/* ==================== UTILITY CLASSES ==================== */
.container {
	max-width: 1140px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

/* ==================== LOGO ==================== */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-family-heading);
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--primary-color);
}

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

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

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: var(--header-height);
}

.header__burger-btn {
	display: block;
	color: var(--primary-color);
}

.header__burger-btn .lucide {
	width: 28px;
	height: 28px;
}

.nav__close-btn {
	display: block;
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	color: var(--primary-color);
}

.nav__close-btn .lucide {
	width: 32px;
	height: 32px;
}

/* Mobile Menu */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: var(--white-color);
	padding: 6rem 2rem 2rem;
	transform: translateX(-100%);
	transition: var(--transition-speed);
	z-index: 101;
}

.nav--open {
	transform: translateX(0);
}

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

.nav__link {
	font-family: var(--font-family-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
	transition: var(--transition-speed);
}

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

.nav__link--cta {
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 0.75rem 1.5rem;
	border-radius: var(--border-radius);
}

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

/* ==================== MAIN ==================== */
.main {
	/* Додаємо відступ зверху, щоб контент не ховався за фіксований хедер */
	padding-top: var(--header-height);
}

/* ==================== FOOTER ==================== */
.footer {
	background-color: var(--white-color);
	border-top: 1px solid var(--border-color);
	padding: 4rem 0 2rem;
	margin-top: 4rem; /* Відступ від останньої секції */
}

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

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

.footer__description {
	font-size: 0.9rem;
	color: var(--text-light);
	max-width: 280px;
}

.footer__title {
	font-size: 1.1rem;
	margin-bottom: 1rem;
}

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

.footer__link {
	font-size: 0.9rem;
	color: var(--text-light);
	transition: var(--transition-speed);
	display: inline-block;
}

.footer__link:hover {
	color: var(--accent-color);
	transform: translateX(4px);
}

.footer__address p {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--text-light);
	margin-bottom: 0.5rem;
	font-style: normal;
}

.footer__icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	color: var(--accent-color);
	margin-top: 3px;
}

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

/* ==================== MEDIA QUERIES (Mobile-first) ==================== */

/* Medium devices (tablets) */
@media (min-width: 768px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}

	.header__burger-btn,
	.nav__close-btn {
		display: none;
	}

	.nav {
		all: unset; /* Скидаємо всі стилі мобільного меню */
	}

	.nav__list {
		flex-direction: row;
		gap: 1.5rem;
	}

	.nav__link {
		font-size: 1rem;
		font-weight: 500;
		color: var(--text-light);
	}

	.nav__link.nav__link--cta {
		font-size: 1rem;
		font-weight: 500;
	}

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

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

	/* Footer grid */
	.footer__container {
		grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
		gap: 2rem;
	}
}

/* Large devices (desktops) */
@media (min-width: 1024px) {
	:root {
		--header-height: 5rem;
	}

	.nav__list {
		gap: 2rem;
	}
}

/* ==================== BUTTONS (Reusable) ==================== */
.button {
	display: inline-block;
	padding: 0.85rem 2rem;
	font-family: var(--font-family-heading);
	font-weight: 700;
	font-size: 1rem;
	border-radius: var(--border-radius);
	transition: var(--transition-speed);
	text-align: center;
}

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

.button--primary:hover {
	background-color: var(--accent-color);
	color: var(--primary-color);
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
}

.button--outline {
	background-color: transparent;
	color: var(--primary-color);
	box-shadow: inset 0 0 0 2px var(--primary-color);
}

.button--outline:hover {
	background-color: var(--primary-color);
	color: var(--white-color);
	transform: translateY(-3px);
}

/* ==================== HERO SECTION ==================== */
.hero {
	padding: 4rem 0;
	background-color: var(--white-color);
	overflow: hidden; /* Для декоративних елементів */
}

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

.hero__title {
	font-size: 1.5rem;
	font-weight: 800;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.hero__title--accent {
	color: var(--accent-color);
}

.hero__description {
	font-size: 1.1rem;
	color: var(--text-light);
	margin-bottom: 2rem;
	max-width: 500px;
}

.hero__buttons {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

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

.hero__image {
	width: 100%;
	border-radius: var(--border-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	z-index: 2;
}

/* Декоративні елементи */
.hero__deco {
	position: absolute;
	border-radius: 50%;
	z-index: 1;
}
.hero__deco--1 {
	width: 150px;
	height: 150px;
	background-color: rgba(74, 222, 128, 0.1);
	top: -20px;
	left: -20px;
}
.hero__deco--2 {
	width: 100px;
	height: 100px;
	background-color: rgba(10, 37, 64, 0.05);
	bottom: -30px;
	right: -30px;
}

/* ==================== MEDIA QUERIES (Hero) ==================== */

/* Small devices (phones) */
@media (min-width: 480px) {
	.hero__buttons {
		flex-direction: row;
		gap: 1.5rem;
	}
}

/* Medium devices (tablets) */
@media (min-width: 768px) {
	.hero {
		padding: 6rem 0;
	}

	.hero__container {
		grid-template-columns: 1fr 1fr;
		text-align: left;
	}

	.hero__title {
		font-size: 2rem;
	}
}

/* Large devices (desktops) */
@media (min-width: 1024px) {
	.hero {
		padding: 7rem 0;
	}

	.hero__container {
		gap: 4rem;
	}

	.hero__title {
		font-size: 2rem;
	}

	.hero__description {
		font-size: 1.15rem;
	}

	.hero__image-wrapper {
		justify-content: flex-end;
	}

	.hero__deco--1 {
		width: 200px;
		height: 200px;
	}
	.hero__deco--2 {
		width: 130px;
		height: 130px;
	}
}

.section {
	padding: 4rem 0;
}

.section__subtitle {
	display: block;
	text-align: center;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--accent-color);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.5rem;
}

.section__title {
	font-size: 2rem;
	text-align: center;
	margin-bottom: 1rem;
}

.section__description {
	font-size: 1.1rem;
	color: var(--text-light);
	text-align: center;
	max-width: 600px;
	margin: 0 auto 3rem auto;
}

/* ==================== COURSES SECTION ==================== */
.courses {
	padding: 4rem 0;
	/* Використовуємо основний фон --bg-color */
}

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

.course-card {
	background-color: var(--white-color);
	padding: 2rem;
	border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
	transition: var(--transition-speed);
}

.course-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 25px rgba(10, 37, 64, 0.1);
}

.course-card__icon-wrapper {
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(74, 222, 128, 0.1);
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

.course-card__icon {
	width: 28px;
	height: 28px;
	color: var(--accent-color);
}

.course-card__title {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.course-card__description {
	font-size: 0.95rem;
	color: var(--text-light);
	margin-bottom: 1.5rem;
}

.course-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-family: var(--font-family-heading);
	font-weight: 700;
	color: var(--primary-color);
	transition: var(--transition-speed);
}

.course-card__link:hover {
	color: var(--accent-color);
	transform: translateX(4px);
}

.course-card__link-icon {
	width: 18px;
	height: 18px;
}

/* ==================== MEDIA QUERIES (Courses) ==================== */

/* Medium devices (tablets) */
@media (min-width: 768px) {
	.section {
		padding: 6rem 0;
	}

	.courses {
		padding: 6rem 0;
	}

	.section__title {
		font-size: 2.5rem;
	}

	.courses__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

.section__title--left {
	text-align: left;
}

.section__description--left {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

/* ==================== PLATFORM SECTION ==================== */
.platform {
	background-color: var(--white-color);
	overflow: hidden; /* Для запобігання горизонтальному скролу через AOS */
}

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

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

.platform__image {
	width: 100%;
	max-width: 450px;
	border-radius: var(--border-radius);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.platform__content .section__subtitle {
	text-align: left;
}

.platform__features-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 2rem;
}

.platform__feature-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.platform__feature-icon {
	width: 24px;
	height: 24px;
	color: var(--accent-color);
	flex-shrink: 0;
	margin-top: 4px;
}

.platform__feature-title {
	font-size: 1.15rem;
	margin-bottom: 0.25rem;
}

.platform__feature-text {
	font-size: 0.95rem;
	color: var(--text-light);
}

.platform__cta {
	margin-top: 2rem;
}

/* ==================== MEDIA QUERIES (Platform) ==================== */

/* Medium devices (tablets) */
@media (min-width: 768px) {
	.platform__container {
		grid-template-columns: 1fr 1fr;
	}
}

/* Large devices (desktops) */
@media (min-width: 1024px) {
	.platform__container {
		gap: 5rem;
	}

	/* Міняємо колонки місцями */
	.platform__image-wrapper {
		order: 2;
	}
	.platform__content {
		order: 1;
	}
}

.about__container {
	max-width: 800px; /* Робимо цю секцію вужчою для фокусу на тексті */
}

.about__stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-top: 3rem;
	padding: 2rem;
	background-color: var(--white-color);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
}

.about__stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
}

.about__stat-icon {
	width: 32px;
	height: 32px;
	color: var(--accent-color);
}

.about__stat-number {
	font-family: var(--font-family-heading);
	font-size: 2rem;
	font-weight: 800;
	color: var(--primary-color);
}

.about__stat-label {
	font-size: 0.9rem;
	color: var(--text-light);
}

/* ==================== MEDIA QUERIES (About) ==================== */

/* Medium devices (tablets) */
@media (min-width: 768px) {
	.about__stats {
		grid-template-columns: repeat(3, 1fr);
		padding: 2.5rem;
	}
}

/* ==================== REVIEWS SECTION ==================== */
.reviews {
	background-color: var(--white-color);
}

.reviews__container {
	max-width: 900px;
	position: relative;
}

.reviews__swiper {
	padding-bottom: 3.5rem; /* Місце для пагінації */
}

.review-card {
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	padding: 2rem;
	border-radius: var(--border-radius);
	margin: 1rem; /* Невеликий відступ, щоб тінь було видно */
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.review-card__text {
	font-size: 1.1rem;
	font-style: italic;
	color: var(--text-color);
	line-height: 1.7;
	margin-bottom: 1.5rem;
	/* Обмеження тексту */
	min-height: 120px;
}

.review-card__author {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.review-card__avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--accent-color);
}

.review-card__name {
	font-size: 1.1rem;
	margin-bottom: 0.1rem;
}

.review-card__course {
	font-size: 0.9rem;
	color: var(--text-light);
}

/* ==================== SWIPER STYLES ==================== */
.swiper-pagination-bullet {
	background-color: var(--primary-color);
	opacity: 0.5;
}

.swiper-pagination-bullet-active {
	background-color: var(--accent-color);
	opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
	width: 50px !important;
	height: 50px !important;
	background-color: var(--white-color);
	border: 1px solid var(--border-color);
	border-radius: 50% !important;
	color: var(--primary-color);
	transition: var(--transition-speed);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.swiper-button-prev::after,
.swiper-button-next::after {
	display: none !important; /* Ховаємо стандартні стрілки */
}

.swiper-button-prev .lucide,
.swiper-button-next .lucide {
	width: 24px;
	height: 24px;
}

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

@media (min-width: 768px) {
	.swiper-button-prev {
		left: -20px;
	}
	.swiper-button-next {
		right: -20px;
	}
}

/* ==================== CONTACT SECTION ==================== */
.contact {
	background-color: var(--white-color);
	overflow: hidden;
}

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

.contact__info {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin-top: 2rem;
}

.contact__info-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

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

.contact__info-title {
	font-size: 1.15rem;
	margin-bottom: 0.25rem;
}

.contact__info-link {
	font-size: 1rem;
	color: var(--text-light);
	transition: var(--transition-speed);
}
.contact__info-link:hover {
	color: var(--accent-color);
}

.contact__form-wrapper {
	background-color: var(--bg-color);
	padding: 2rem;
	border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
}

/* ===============================================
   ВАЖЛИВО: Сховуємо повідомлення про успіх
   ===============================================
*/
.contact__success-message {
	display: none; /* Сховано за замовчуванням */
	text-align: center;
	padding: 2rem;
}

.contact__success-icon {
	width: 60px;
	height: 60px;
	color: var(--accent-color);
	margin-bottom: 1rem;
}

.contact__success-title {
	font-size: 1.75rem;
	margin-bottom: 0.5rem;
}

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

.contact__form-group {
	display: flex;
	flex-direction: column;
}

.contact__form-label {
	font-family: var(--font-family-heading);
	font-weight: 700;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	color: var(--primary-color);
}

.contact__form-input {
	width: 100%;
	padding: 0.85rem 1rem;
	font-family: var(--font-family-body);
	font-size: 1rem;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	background-color: var(--white-color);
	transition: var(--transition-speed);
}

.contact__form-input:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.4);
}

.contact__form-group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
}

.contact__form-checkbox {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	flex-shrink: 0;
}

.contact__form-checkbox-label {
	font-size: 0.85rem;
	color: var(--text-light);
	line-height: 1.5;
}

.contact__form-checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
}
.contact__form-checkbox-label a:hover {
	color: var(--accent-color);
}

.contact__form-button {
	width: 100%;
}

/* ==================== MEDIA QUERIES (Contact) ==================== */

/* Medium devices (tablets) */
@media (min-width: 768px) {
	.contact__container {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
		align-items: center;
	}
}

@media (min-width: 1024px) {
	.contact__container {
		gap: 5rem;
	}
	.contact__form-wrapper {
		padding: 2.5rem;
	}
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 1.5rem;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
	z-index: 1000;

	/* Сховано за замовчуванням */
	transform: translateY(100%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.4s ease-out, opacity 0.4s ease-out, visibility 0.4s;
}

/* Клас для показу */
.cookie-popup--show {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

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

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

.cookie-popup__link {
	color: var(--accent-color);
	text-decoration: underline;
	font-weight: 700;
}
.cookie-popup__link:hover {
	text-decoration: none;
}

.cookie-popup__button {
	/* Використовуємо існуючий клас .button, але змінимо колір */
	background-color: var(--accent-color);
	color: var(--primary-color);
	padding: 0.6rem 1.5rem; /* Зробимо кнопку трохи меншою */
	flex-shrink: 0;
}
.cookie-popup__button:hover {
	background-color: var(--white-color);
	color: var(--primary-color);
	box-shadow: none;
}

/* ==================== MEDIA QUERIES (Cookie) ==================== */

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

/* ==================== PAGES (Privacy, Terms, etc.) ==================== */
.pages {
	padding: 6rem 0;
	background-color: var(--white-color);
	min-height: 80vh; /* Щоб сторінка не виглядала порожньою */
}

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

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

.pages h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

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

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

.pages li {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--text-light);
	margin-bottom: 0.75rem;
}

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

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

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

/* ==================== MEDIA QUERIES (Pages) ==================== */
@media (min-width: 768px) {


	.pages h1 {
		font-size: 3rem;
	}

	.pages h2 {
		font-size: 2rem;
	}

	.pages p,
	.pages li {
		font-size: 1.1rem;
	}
}
