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

/*=============== CSS VARIABLES ===============*/
:root {
	/* Colors */
	--primary-bg: #0a0a0a;
	--secondary-bg: #1a1a1a;
	--text-primary: #eaeaea;
	--text-secondary: #a0a0a0;
	--accent-color: #00f5a0;
	--accent-hover: #00ddaa;
	--border-color: #333333;

	/* Typography */
	--font-body: 'Inter', sans-serif;
	--font-heading: 'Playfair Display', serif;

	--fs-h1: 2rem;
	--fs-h2: 1.5rem;
	--fs-h3: 1.25rem;
	--fs-normal: 1rem;
	--fs-small: 0.875rem;

	/* Other */
	--header-height: 5rem;
	--container-width: 1120px;
	--border-radius: 8px;
	--transition: all 0.3s ease-in-out;
}

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

html {
	scroll-behavior: smooth;
}

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

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

ul {
	list-style: none;
}

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

a:hover {
	color: var(--accent-hover);
}

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

.container {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding: 0 1rem;
}

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

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

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

.header__logo-svg {
	transition: var(--transition);
}

.header__logo:hover .header__logo-svg {
	transform: rotate(90deg);
}

.header__toggle {
	display: none;
	cursor: pointer;
	color: var(--text-primary);
}

.header__nav-list {
	display: flex;
	gap: 2rem;
}

.header__nav-link {
	color: var(--text-secondary);
	font-weight: 500;
	position: relative;
	padding-bottom: 0.25rem;
}

.header__nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--accent-color);
	transition: var(--transition);
}

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

.header__nav-link:hover::after,
.header__nav-link.active-link::after {
	width: 100%;
}

/*=============== FOOTER ===============*/
.footer {
	background-color: var(--secondary-bg);
	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: 2rem;
	row-gap: 3rem;
	margin-bottom: 3rem;
}

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-heading);
	font-size: 1.5rem;
	color: var(--text-primary);
	margin-bottom: 1rem;
}

.footer__description {
	color: var(--text-secondary);
	font-size: var(--fs-small);
}

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

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

.footer__link {
	color: var(--text-secondary);
	font-size: var(--fs-normal);
}

.footer__address {
	font-style: normal;
	color: var(--text-secondary);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.footer__copy {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid var(--border-color);
	color: var(--text-secondary);
	font-size: var(--fs-small);
}

/*=============== RESPONSIVE (MOBILE-FIRST) ===============*/
@media screen and (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: -500px;
		left: 0;
		width: 100%;
		background-color: var(--secondary-bg);
		padding: 4rem 0 3rem;
		transition: var(--transition);
		border-bottom: 1px solid var(--border-color);
	}

	.header__nav.show-menu {
		top: var(--header-height);
	}

	.header__nav-list {
		flex-direction: column;
		align-items: center;
		gap: 2.5rem;
	}

	.header__toggle {
		display: block;
		cursor: pointer;
		position: relative;
		z-index: 101; /* Переконайтеся, що кнопка поверх меню */
	}

	.header__toggle i:last-child {
		display: none; /* Приховати іконку 'x' за замовчуванням */
	}

	.header__toggle.is-active i:first-child {
		display: none; /* Приховати іконку бургер-меню */
	}

	.header__toggle.is-active i:last-child {
		display: block; /* Показати іконку 'x' */
	}
}

/*=============== REUSABLE CSS CLASSES ===============*/
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: var(--accent-color);
	color: var(--primary-bg);
	padding: 1rem 1.75rem;
	border-radius: var(--border-radius);
	font-weight: 500;
	transition: var(--transition);
	border: 2px solid var(--accent-color);
}

.button:hover {
	background-color: transparent;
	color: var(--accent-color);
}

.button__icon {
	transition: var(--transition);
}

.button:hover .button__icon {
	transform: translateX(5px);
}

/*=============== HERO SECTION ===============*/
.hero {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
	overflow: hidden; /* Для корректной работы AOS анимаций */
}

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

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: var(--fs-h1);
	margin-bottom: 1.5rem;
	line-height: 1.3;
}

.hero__description {
	color: var(--text-secondary);
	font-size: 1.125rem;
	max-width: 600px;
	margin: 0 auto 2.5rem;
}

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

.hero__image {
	max-width: 500px;
	width: 100%;
	border-radius: var(--border-radius);
}

/*=============== RESPONSIVE (Hero Section) ===============*/
@media screen and (min-width: 768px) {
	.hero__title {
		font-size: 2.5rem;
	}
}

@media screen and (min-width: 992px) {
	.hero {
		padding-top: calc(var(--header-height) + 6rem);
		padding-bottom: 6rem;
	}

	.hero__container {
		grid-template-columns: 1.1fr 0.9fr;
		gap: 4rem;
	}

	.hero__content {
		text-align: left;
	}

	.hero__description {
		margin: 0 0 2.5rem 0;
	}
}

/*=============== REUSABLE SECTION STYLES ===============*/
.section {
	padding: 6rem 0 4rem;
}

.section__header {
	text-align: center;
	margin-bottom: 4rem;
}

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

.section__subtitle {
	font-size: 1.125rem;
	color: var(--text-secondary);
	max-width: 650px;
	margin: 0 auto;
}

@media screen and (min-width: 768px) {
	.section__title {
		font-size: 2.75rem;
	}
}

/*=============== COURSES SECTION ===============*/
.courses__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.courses__card {
	background-color: var(--secondary-bg);
	padding: 2.5rem 2rem;
	border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
	transition: var(--transition);
	height: 100%; /* Для одинаковой высоты карточек в ряду */
	display: flex;
	flex-direction: column;
}

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

.courses__card-icon {
	width: 50px;
	height: 50px;
	display: grid;
	place-items: center;
	background-color: rgba(0, 245, 160, 0.1);
	border-radius: 50%;
	margin-bottom: 2rem;
}

.courses__card-icon i {
	color: var(--accent-color);
	width: 28px;
	height: 28px;
}

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

.courses__card-description {
	color: var(--text-secondary);
	margin-bottom: 2rem;
	flex-grow: 1; /* Чтобы теги всегда были внизу */
}

.courses__card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.courses__tag {
	background-color: var(--primary-bg);
	color: var(--text-secondary);
	font-size: var(--fs-small);
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	border: 1px solid var(--border-color);
}

/*=============== RESPONSIVE (Courses Section) ===============*/
@media screen and (min-width: 576px) {
	.courses__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.courses__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/*=============== ABOUT SECTION ===============*/
.about__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}

.about__image {
	border-radius: var(--border-radius);
	width: 100%;
}

/* Стили для заголовка и подзаголовка в этой секции */
.about__content .section__header {
	text-align: left;
	margin-bottom: 2.5rem;
}

.about__content .section__subtitle {
	margin-left: 0;
	max-width: 100%; /* Убираем ограничение ширины */
}

.about__features-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin-bottom: 3rem;
}

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

.about__features-icon {
	color: var(--accent-color);
	flex-shrink: 0; /* Иконка не будет сжиматься */
	margin-top: 4px;
}

.about__features-title {
	font-family: var(--font-body);
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.about__features-item p {
	color: var(--text-secondary);
}

/*=============== RESPONSIVE (About Section) ===============*/
@media screen and (min-width: 992px) {
	.about__container {
		grid-template-columns: 0.9fr 1.1fr;
		gap: 5rem;
	}
}

/*=============== MENTORS SECTION ===============*/
.mentors__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2rem;
}

.mentors__card {
	background-color: var(--secondary-bg);
	padding: 2rem;
	border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
	text-align: center;
	transition: var(--transition);
}

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

.mentors__card-img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 1.5rem;
	border: 3px solid var(--border-color);
}

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

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

.mentors__card-bio {
	color: var(--text-secondary);
	font-size: var(--fs-small);
	line-height: 1.5;
	margin-bottom: 1.5rem;
}

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

.mentors__social-link {
	color: var(--text-secondary);
}

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

/*=============== REVIEWS SECTION ===============*/
.reviews__container {
	padding-bottom: 2rem;
}

.reviews__swiper {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

.reviews__slide {
	background-color: var(--secondary-bg);
	padding: 2.5rem 2rem;
	border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
	text-align: center;
}

.reviews__text {
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--text-primary);
	margin-bottom: 2rem;
	font-style: italic;
}

.reviews__author {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	text-align: left;
}

.reviews__author-img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
}

.reviews__author-name {
	font-family: var(--font-body);
	font-size: var(--fs-normal);
	font-weight: 700;
	margin: 0;
}

.reviews__author-info {
	font-size: var(--fs-small);
	color: var(--text-secondary);
}

/* Swiper Pagination Styles */
.swiper-pagination-bullet {
	background-color: var(--text-secondary);
	opacity: 0.5;
	transition: var(--transition);
}

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

.swiper-container-horizontal > .swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
	bottom: 0px; /* Position pagination dots closer to the slider */
}

/*=============== CONTACT SECTION ===============*/
.contact__content {
	max-width: 600px;
	margin: 0 auto;
}

.contact__form-group {
	position: relative;
	margin-bottom: 2rem;
}

.contact__form-input {
	width: 100%;
	padding: 1.25rem 1rem;
	border: 1px solid var(--border-color);
	background-color: var(--secondary-bg);
	color: var(--text-primary);
	border-radius: var(--border-radius);
	outline: none;
	font-size: var(--fs-normal);
	transition: var(--transition);
}

.contact__form-input:focus {
	border-color: var(--accent-color);
}

.contact__form-label {
	position: absolute;
	top: 1.25rem;
	left: 1rem;
	color: var(--text-secondary);
	background-color: var(--secondary-bg);
	padding: 0 0.25rem;
	transition: var(--transition);
	pointer-events: none; /* Allows click through the label */
}

/* Move label up when input is focused or has content */
.contact__form-input:focus + .contact__form-label,
.contact__form-input:not(:placeholder-shown) + .contact__form-label {
	top: -0.75rem;
	left: 0.75rem;
	font-size: var(--fs-small);
	color: var(--accent-color);
}

.contact__form-checkbox-group {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.contact__form-checkbox {
	margin-top: 5px;
	accent-color: var(--accent-color);
}

.contact__form-checkbox-label {
	font-size: var(--fs-small);
	color: var(--text-secondary);
}

.contact__form-checkbox-label a {
	text-decoration: underline;
}

.contact__form-button {
	width: 100%;
	justify-content: center;
}

.contact__form-message {
	text-align: center;
	padding: 1rem;
	border-radius: var(--border-radius);
	margin-top: 1.5rem;
	display: none; /* IMPORTANT: Hide message by default */
}

.contact__form-message.success {
	background-color: rgba(0, 245, 160, 0.1);
	border: 1px solid var(--accent-color);
	color: var(--accent-color);
}

/*=============== COOKIE POPUP ===============*/
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 200;
	padding: 1.5rem 0;
	background-color: rgba(10, 10, 10, 0.9);
	backdrop-filter: blur(5px);
	border-top: 1px solid var(--border-color);
	transform: translateY(100%);
	transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1.5rem;
}

.cookie-popup p {
	color: var(--text-secondary);
	font-size: var(--fs-normal);
	line-height: 1.5;
	max-width: 600px;
}

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

.cookie-popup__button {
	padding: 0.75rem 2rem;
	font-size: var(--fs-small);
}

@media screen and (min-width: 768px) {
	.cookie-popup__content {
		flex-direction: row;
		justify-content: space-between;
	}

	.cookie-popup p {
		text-align: left;
	}
}

/*=============== POLICIES PAGES STYLING ===============*/
.pages {
	padding-top: 8rem;
	padding-bottom: 4rem;
}

.pages h1 {
	font-size: 1.8rem;
	margin-bottom: 2rem;
}

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

.pages p {
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
}

.pages ul {
	margin-bottom: 1.5rem;
}

.pages li {
	color: var(--text-secondary);
	margin-bottom: 0.75rem;
	position: relative;
	padding-left: 1.5rem;
}

.pages li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--accent-color);
}

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

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