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

/* ==================== CSS VARIABLES ==================== */
:root {
	/* Colors */
	--primary-color: #00f5d4; /* Яркий бирюзовый */
	--background-color: #0d1b2a; /* Глубокий темно-синий */
	--text-color-light: #e0e1dd;
	--text-color-dark: #0d1b2a;
	--container-color: #1b263b;
	--border-color: #415a77;

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

	--h1-font-size: 2.5rem;
	--h2-font-size: 1.5rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* z-index */
	--z-header: 100;
	--z-mobile-menu: 110;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-size: var(--normal-font-size);
	background-color: var(--background-color);
	color: var(--text-color-light);
	line-height: 1.6;
}

h1,
h2,
h3 {
	font-family: var(--font-heading);
	color: var(--text-color-light);
	font-weight: 700;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: var(--text-color-light);
}

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

.container {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* ==================== HEADER ==================== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: rgba(13, 27, 42, 0.8);
	backdrop-filter: blur(10px);
	z-index: var(--z-header);
	border-bottom: 1px solid var(--border-color);
	transition: background-color 0.3s;
}

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

.header__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--primary-color);
	font-size: 1.25rem;
	transition: color 0.3s;
}

.header__logo:hover {
	color: white;
}

.header__logo svg {
	width: 32px;
	height: 32px;
}

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

.header__menu-link {
	font-family: var(--font-body);
	font-weight: 500;
	color: var(--text-color-light);
	position: relative;
	padding-bottom: 0.5rem;
	transition: color 0.3s;
}

.header__menu-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-color);
	transition: width 0.3s ease-in-out;
}

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

.header__menu-link:hover::after {
	width: 100%;
}

.header__menu-link--button {
	background-color: var(--primary-color);
	color: var(--text-color-dark);
	padding: 0.5rem 1.5rem;
	border-radius: 50px;
	font-weight: 700;
}

.header__menu-link--button:hover {
	color: var(--text-color-dark);
	background-color: white;
}
.header__menu-link--button:hover::after {
	width: 0;
}

.header__burger {
	display: none;
	cursor: pointer;
	background: none;
	border: none;
	color: var(--text-color-light);
}

/* ==================== FOOTER ==================== */
.footer {
	background-color: var(--container-color);
	padding: 4rem 0 2rem;
	border-top: 1px solid var(--border-color);
}

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

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

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--primary-color);
	font-size: 1.25rem;
}
.footer__logo svg {
	width: 32px;
	height: 32px;
}
.footer__copyright {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
	opacity: 0.7;
}

.footer__title {
	font-size: var(--h3-font-size);
	margin-bottom: 1rem;
}

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

.footer__link {
	font-size: var(--normal-font-size);
	color: var(--text-color-light);
	opacity: 0.8;
	transition: color 0.3s, opacity 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

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

.footer__icon {
	width: 18px;
	height: 18px;
}

.footer__address {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	color: var(--text-color-light);
	opacity: 0.8;
}

/* ==================== MEDIA QUERIES ==================== */
@media screen and (max-width: 768px) {
	.header__burger {
		display: block;
	}

	.header__nav {
		position: fixed;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100vh;
		background-color: var(--background-color);
		z-index: var(--z-mobile-menu);
		display: flex;
		align-items: center;
		justify-content: center;
		transition: left 0.4s ease-in-out;
	}

	.header__nav.menu-open {
		left: 0;
	}

	.header__menu {
		flex-direction: column;
		gap: 3rem;
		text-align: center;
	}

	.header__menu-link {
		font-size: var(--h2-font-size);
	}

	.header__burger.menu-open i {
		/* This can be swapped in JS to a close icon */
	}
}

/* Додайте цей код в кінець вашого CSS-файлу */

/* ==================== HERO ==================== */
.hero {
	padding-top: 8rem; /* Компенсация высоты хедера + отступ */
	padding-bottom: 4rem;
	overflow: hidden; /* Чтобы анимация картинки не выходила за рамки */
}

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

.hero__content {
	max-width: 500px;
}

.hero__title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	line-height: 1.3;
	min-height: 160px; /* Резервируем место под текст, чтобы не было скачков */
}

/* Курсор для эффекта печати */
.hero__title::after {
	content: '_';
	animation: blink 0.7s infinite;
	font-weight: 400;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

.hero__description {
	font-size: var(--normal-font-size);
	margin-bottom: 2.5rem;
	opacity: 0.9;
	max-width: 450px;
}

.hero__button {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--text-color-dark);
	padding: 1rem 2.5rem;
	border-radius: 50px;
	font-weight: 700;
	font-family: var(--font-heading);
	transition: transform 0.3s, background-color 0.3s;
}

.hero__button:hover {
	background-color: #fff;
	transform: translateY(-3px);
}

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

.hero__image {
	width: 100%;
	height: auto;
	border-radius: 20px;
	animation: float 6s ease-in-out infinite;
}

/* Анимация "дыхания" для изображения */
@keyframes float {
	0% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-20px);
	}
	100% {
		transform: translateY(0px);
	}
}

/* ==================== MEDIA QUERIES (Hero) ==================== */
@media screen and (max-width: 992px) {
	.hero__title {
		font-size: 2rem;
		min-height: 128px;
	}
}

@media screen and (max-width: 768px) {
	.hero {
		padding-top: 6rem;
		text-align: center;
	}
	.hero__container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.hero__content {
		max-width: 100%;
		order: 2; /* Текст будет под картинкой */
	}
	.hero__image-wrapper {
		order: 1;
	}
	.hero__description {
		margin-left: auto;
		margin-right: auto;
	}
	.hero__title {
		min-height: auto; /* Убираем резерв высоты на мобильных */
	}
}

/* Додайте цей код в кінець вашого CSS-файлу */

/* ==================== COURSES ==================== */
.courses {
	padding: 4rem 0;
	background-color: var(
		--container-color
	); /* Слегка другой фон для выделения */
}

.courses__title,
.courses__subtitle {
	text-align: center;
}

.courses__title {
	font-size: var(--h2-font-size);
	margin-bottom: 0.5rem;
}

.courses__subtitle {
	max-width: 500px;
	margin: 0 auto 3rem auto;
	opacity: 0.8;
}

.courses__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.courses__card {
	background-color: var(--background-color);
	padding: 2rem;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	transition: transform 0.3s, border-color 0.3s;
	display: flex;
	flex-direction: column;
}

.courses__card:hover {
	transform: translateY(-8px);
	border-color: var(--primary-color);
}

.courses__card-icon {
	width: 48px;
	height: 48px;
	color: var(--primary-color);
	margin-bottom: 1.5rem;
}

.courses__card-icon i {
	width: 100%;
	height: 100%;
}

.courses__card-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.75rem;
}

.courses__card-description {
	font-size: var(--normal-font-size);
	opacity: 0.8;
	flex-grow: 1; /* Чтобы карточки были одинаковой высоты */
	margin-bottom: 1.5rem;
}

.courses__card-stack {
	display: flex;
	gap: 1rem;
	color: var(--text-color-light);
	opacity: 0.6;
}

.courses__card-stack i {
	width: 24px;
	height: 24px;
}

/* Додайте цей код в кінець вашого CSS-файлу */

/* ==================== PROCESS ==================== */
.process {
	padding: 4rem 0;
}

.process__title,
.process__subtitle {
	text-align: center;
}

.process__title {
	font-size: var(--h2-font-size);
	margin-bottom: 0.5rem;
}

.process__subtitle {
	max-width: 550px;
	margin: 0 auto 4rem auto;
	opacity: 0.8;
}

.process__timeline {
	position: relative;
	max-width: 700px;
	margin: 0 auto;
}

/* Центральная линия таймлайна */
.process__timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: var(--border-color);
	top: 0;
	bottom: 0;
	left: 30px;
	margin-left: -1.5px;
	border-radius: 3px;
}

.process__item {
	padding: 1rem 0 2rem 70px; /* Сдвиг вправо от линии */
	position: relative;
	display: flex;
	gap: 1.5rem;
}

.process__item-icon {
	position: absolute;
	left: 5px;
	top: 18px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: var(--container-color);
	border: 3px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary-color);
	z-index: 1;
}

.process__item-icon i {
	width: 24px;
	height: 24px;
}

.process__item-step {
	font-family: var(--font-heading);
	color: var(--primary-color);
	font-size: var(--small-font-size);
	font-weight: 600;
	margin-bottom: 0.25rem;
	display: block;
}

.process__item-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.5rem;
}

.process__item-description {
	opacity: 0.8;
	font-size: var(--normal-font-size);
}

/* Адаптивность для больших экранов (классический таймлайн) */
@media screen and (min-width: 768px) {
	.process__timeline::after {
		left: 50%; /* Линия по центру */
	}

	.process__item {
		width: 50%;
		padding-left: 0;
		padding-right: 70px; /* Отступ от центральной линии */
		justify-content: flex-end; /* Выравнивание по правому краю */
		text-align: right;
	}

	/* Каждый второй элемент - справа */
	.process__item:nth-child(even) {
		left: 50%;
		padding-left: 70px;
		padding-right: 0;
		justify-content: flex-start;
		text-align: left;
	}

	.process__item-icon {
		left: auto;
		right: 0; /* Размещение на центральной линии */
		top: 22px;
		transform: translateX(50%);
	}

	.process__item:nth-child(even) .process__item-icon {
		right: auto;
		left: 0;
		transform: translateX(-50%);
	}
}

/* Додайте цей код в кінець вашого CSS-файлу */

/* ==================== MENTORS ==================== */
.mentors {
	padding: 4rem 0;
	background-color: var(
		--container-color
	); /* Чередуем фон для визуального разделения */
}

.mentors__title,
.mentors__subtitle {
	text-align: center;
}

.mentors__title {
	font-size: var(--h2-font-size);
	margin-bottom: 0.5rem;
}

.mentors__subtitle {
	max-width: 550px;
	margin: 0 auto 4rem auto;
	opacity: 0.8;
}

.mentors__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.mentors__card {
	background-color: var(--background-color);
	border-radius: 12px;
	border: 1px solid var(--border-color);
	text-align: center;
	padding: 2.5rem 1.5rem 1.5rem;
	position: relative;
	transition: transform 0.3s, box-shadow 0.3s;
}

.mentors__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.mentors__card-image {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	margin: -6rem auto 1.5rem; /* Выносим аватар наверх */
	border: 4px solid var(--container-color);
	position: relative;
}

.mentors__card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mentors__card-name {
	font-size: var(--h3-font-size);
	margin-bottom: 0.25rem;
}

.mentors__card-role {
	color: var(--primary-color);
	font-size: var(--small-font-size);
	font-weight: 500;
	margin-bottom: 1rem;
}

.mentors__card-bio {
	opacity: 0.8;
	margin-bottom: 1.5rem;
	font-size: var(--small-font-size);
}

.mentors__card-socials {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.mentors__card-social-link {
	color: var(--text-color-light);
	opacity: 0.7;
	transition: color 0.3s, opacity 0.3s, transform 0.3s;
}

.mentors__card-social-link:hover {
	color: var(--primary-color);
	opacity: 1;
	transform: scale(1.1);
}

/* Додайте цей код в кінець вашого CSS-файлу */

/* ==================== REVIEWS ==================== */
.reviews {
	padding: 4rem 0 5rem;
}

.reviews__title,
.reviews__subtitle {
	text-align: center;
}

.reviews__title {
	font-size: var(--h2-font-size);
	margin-bottom: 0.5rem;
}

.reviews__subtitle {
	max-width: 550px;
	margin: 0 auto 3rem auto;
	opacity: 0.8;
}

.reviews__swiper {
	width: 100%;
	max-width: 800px; /* Ограничиваем ширину для лучшего вида */
	padding: 2rem 0;
}

.reviews__slide {
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.reviews__slide-img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 1.5rem;
	border: 3px solid var(--border-color);
}

.reviews__slide-text {
	font-size: var(--normal-font-size);
	font-style: italic;
	opacity: 0.9;
	margin-bottom: 1.5rem;
	flex-grow: 1; /* Чтобы слайды были одной высоты */
}

.reviews__slide-name {
	font-size: 1.1rem;
	font-family: var(--font-heading);
	margin-bottom: 0.25rem;
}

.reviews__slide-course {
	font-size: var(--small-font-size);
	color: var(--primary-color);
}

/* Swiper custom styles */
.swiper-pagination-bullet {
	background-color: var(--border-color);
}

.swiper-pagination-bullet-active {
	background-color: var(--primary-color);
}

.swiper-button-next,
.swiper-button-prev {
	color: var(--primary-color);
	transition: transform 0.2s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
	transform: scale(1.1);
}

@media screen and (max-width: 768px) {
	.swiper-button-next,
	.swiper-button-prev {
		display: none;
	}
}
/* ==================== CONTACT ==================== */
.contact {
	padding: 4rem 0;
	background-color: var(--container-color);
}

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

@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: 0.8fr 1fr;
	}
}

.contact__title {
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.contact__description {
	opacity: 0.8;
	margin-bottom: 2rem;
}

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

.contact__details-item {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.contact__details-item i {
	color: var(--primary-color);
	width: 24px;
	height: 24px;
}
.contact__details-item a {
	transition: color 0.3s;
}
.contact__details-item a:hover {
	color: var(--primary-color);
}

/* Form styles */
.contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

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

.form__label {
	margin-bottom: 0.5rem;
	font-size: var(--small-font-size);
	font-weight: 500;
	opacity: 0.9;
}

.form__input {
	width: 100%;
	padding: 0.9rem 1rem;
	background-color: var(--background-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	color: var(--text-color-light);
	font-family: var(--font-body);
	font-size: var(--normal-font-size);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.form__input::placeholder {
	color: var(--text-color-light);
	opacity: 0.5;
}

.form__input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.3);
}

.form__group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
	margin-top: -0.5rem;
}

.form__checkbox-input {
	appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid var(--border-color);
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	top: 3px;
	flex-shrink: 0;
	transition: background-color 0.3s, border-color 0.3s;
}

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

.form__checkbox-input:checked::after {
	content: '✔';
	color: var(--background-color);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 14px;
}

.form__checkbox-label {
	font-size: var(--small-font-size);
	opacity: 0.8;
	line-height: 1.5;
}
.form__checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
}

.form__button {
	background-color: var(--primary-color);
	color: var(--text-color-dark);
	padding: 1rem 2.5rem;
	border-radius: 50px;
	font-weight: 700;
	font-family: var(--font-heading);
	border: none;
	cursor: pointer;
	transition: background-color 0.3s, transform 0.3s;
	text-align: center;
	font-size: var(--normal-font-size);
}

.form__button:hover {
	background-color: #fff;
	transform: translateY(-3px);
}
.form__button:disabled {
	background-color: var(--border-color);
	cursor: not-allowed;
}

.form__message {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 8px;
	text-align: center;
	font-weight: 500;
	display: none; /* Hidden by default */
}
.form__message.success {
	background-color: rgba(0, 245, 212, 0.1);
	color: var(--primary-color);
}
.form__message.error {
	background-color: rgba(255, 82, 82, 0.1);
	color: #ff5252;
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--container-color);
	border-top: 1px solid var(--border-color);
	padding: 1rem;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	z-index: 120;
	transform: translateY(100%);
	transition: transform 0.5s ease-in-out;
}

.cookie-popup.show {
	transform: translateY(0);
}

.cookie-popup__text {
	font-size: var(--small-font-size);
	opacity: 0.9;
	text-align: center;
}

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

.cookie-popup__button {
	background-color: var(--primary-color);
	color: var(--text-color-dark);
	padding: 0.5rem 1.5rem;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	font-weight: 600;
	flex-shrink: 0; /* Чтобы кнопка не сжималась */
	transition: background-color 0.3s;
}

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

@media screen and (max-width: 600px) {
	.cookie-popup {
		flex-direction: column;
		gap: 1rem;
	}
}

/* ==================== POLICY PAGES ==================== */
.pages {
	padding: 8rem 0 4rem; /* Отступ от хедера */
}

.pages .container {
	max-width: 800px; /* Делаем контентную область уже для читабельности */
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	line-height: 1.3;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	line-height: 1.4;
}

.pages p {
	margin-bottom: 1rem;
	line-height: 1.7;
	opacity: 0.9;
}

.pages ul {
	margin-bottom: 1rem;
	padding-left: 20px;
}

.pages li {
	list-style-type: disc;
	margin-bottom: 0.75rem;
	line-height: 1.7;
	opacity: 0.9;
}

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

.pages a:hover {
	color: #fff;
}

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