/*=============== GOOGLE FONTS ===============*/
/* included via <link> in HTML */

/*=============== CSS VARIABLES ===============*/
:root {
	--header-height: 5rem;

	/* Colors */
	--background-color: #111317;
	--text-color: #d1d5db;
	--primary-color: #6366f1;
	--secondary-color: #374151;
	--body-color: #111317;
	--container-color: #1f2937;
	--title-color: #f9fafb;

	/* Typography */
	--body-font: 'Manrope', sans-serif;
	--title-font: 'Syne', sans-serif;

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

	/* Font weight */
	--font-normal: 400;
	--font-bold: 700;
	--font-extrabold: 800;

	/* Margins & Paddings */
	--mb-0-5: 0.5rem;
	--mb-1: 1rem;
	--mb-1-5: 1.5rem;
	--mb-2: 2rem;

	/* Z-index */
	--z-tooltip: 10;
	--z-fixed: 100;
}

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
	color: var(--title-color);
	font-family: var(--title-font);
	font-weight: var(--font-bold);
}

ul {
	list-style: none;
}

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

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
	margin: 0 auto;
	max-width: 1120px;
	padding-left: var(--mb-1-5);
	padding-right: var(--mb-1-5);
}

.section {
	padding: 6rem 0 2rem;
}

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

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

.header__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-weight: var(--font-bold);
	color: var(--title-color);
	transition: color 0.3s;
}

.header__logo-img {
	width: 32px;
	height: 32px;
}

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

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

.header__nav-link {
	font-size: var(--small-font-size);
	font-weight: var(--font-bold);
	text-transform: uppercase;
	color: var(--text-color);
	transition: color 0.3s ease;
	position: relative;
	padding: 0.5rem 0;
}

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

.header__nav-link:hover,
.header__nav-link:hover::after {
	color: var(--primary-color);
	width: 100%;
}

.header__toggle {
	display: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--title-color);
	background: none;
	border: none;
}

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

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

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-weight: var(--font-bold);
	color: var(--title-color);
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-1);
}

.footer__logo-img {
	width: 28px;
}

.footer__description {
	font-size: var(--small-font-size);
	max-width: 250px;
}

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

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

.footer__link {
	font-size: var(--small-font-size);
	transition: color 0.3s;
}

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

.footer__address {
	font-style: normal;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: var(--small-font-size);
}

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

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100vh; /* Занимает всю высоту экрана */
		background-color: var(--background-color); /* Сплошной цвет фона */
		z-index: 101; /* Слой выше чем контент, но ниже кнопки */

		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;

		padding: 2rem;
		transition: right 0.4s ease-in-out;
	}

	.header__nav.show-menu {
		right: 0;
	}

	.header__nav-list {
		flex-direction: column;
		gap: 3rem; /* Увеличил отступ для лучшей читаемости */
		align-items: center;
	}

	.header__nav-link {
		font-size: var(--h3-font-size); /* Сделал ссылки крупнее */
	}

	.header__toggle {
		display: block;
		position: fixed; /* Фиксируем кнопку */
		top: 1.5rem; /* Отступ сверху */
		right: 1.5rem; /* Отступ справа (как у .container) */
		z-index: 102; /* Слой выше, чем у меню */
	}
}

/* For small devices */
@media screen and (max-width: 350px) {
	.container {
		margin-left: var(--mb-1);
		margin-right: var(--mb-1);
	}
}

/*=============== BUTTONS ===============*/
.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--title-color);
	padding: 1rem 2rem;
	border-radius: 0.5rem;
	font-weight: var(--font-bold);
	transition: background-color 0.3s, transform 0.3s;
	border: none;
	cursor: pointer;
}

.button:hover {
	background-color: #4f46e5; /* Более темный оттенок primary-color */
	transform: translateY(-3px);
}

/*=============== HERO ===============*/
.hero {
	padding-top: calc(var(--header-height) + 4rem);
	position: relative;
	overflow: hidden; /* Скрываем части фигур, выходящие за пределы секции */
	min-height: 100vh;
}

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

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: var(--biggest-font-size);
	font-weight: var(--font-extrabold);
	line-height: 1.2;
	margin-bottom: var(--mb-1-5);
	/* Начальное состояние для анимации */
	opacity: 0;
}

.hero__description {
	margin-bottom: var(--mb-2);
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	/* Начальное состояние для анимации */
	opacity: 0;
}

.hero__button {
	/* Начальное состояние для анимации */
	opacity: 0;
}

.hero__image-wrapper {
	position: relative;
	justify-self: center;
	/* Начальное состояние для анимации */
	opacity: 0;
}

.hero__img {
	width: 300px;
	border-radius: 1rem;
}

/* Анимированные фоновые фигуры */
.hero__shape {
	position: absolute;
	border-radius: 50%;
	background-color: rgba(99, 102, 241, 0.1); /* Прозрачный primary-color */
	filter: blur(50px);
	z-index: -1;
}

.hero__shape--1 {
	width: 200px;
	height: 200px;
	top: 10%;
	left: 5%;
}

.hero__shape--2 {
	width: 150px;
	height: 150px;
	top: 60%;
	right: 10%;
}

.hero__shape--3 {
	width: 100px;
	height: 100px;
	bottom: 20%;
	left: 40%;
}

/*=============== BREAKPOINTS ===============*/
/* ... (ваш существующий код) ... */

/* Изменения для Hero на больших экранах */
@media screen and (min-width: 768px) {
	.hero__container {
		grid-template-columns: 1fr 1fr;
		height: calc(100vh - var(--header-height));
	}
	.hero__content {
		text-align: left;
	}
	.hero__description {
		margin-left: 0;
		margin-right: 0;
	}
	.hero__img {
		width: 350px;
	}
}

@media screen and (min-width: 1024px) {
	.hero__title {
		font-size: 3.5rem;
	}
	.hero__img {
		width: 450px;
	}
}

/*=============== REUSABLE CSS CLASSES ===============*/
/* ... (ваш существующий код) ... */
.section {
	padding: 6rem 0 2rem;
}

/* Добавляем стили для заголовков секций */
.section__title,
.section__subtitle {
	text-align: center;
}

.section__title {
	font-size: var(--h2-font-size);
	margin-bottom: var(--mb-1);
	font-weight: var(--font-extrabold);
}

.section__subtitle {
	display: block;
	margin-bottom: 3rem;
	color: var(--text-color);
}

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

.courses__card {
	background-color: var(--container-color);
	padding: 2rem;
	border-radius: 0.75rem;
	border: 1px solid var(--secondary-color);
	transition: transform 0.3s, box-shadow 0.3s;
	cursor: pointer;
}

.courses__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

.courses__card-icon {
	font-size: 2rem;
	margin-bottom: var(--mb-1-5);
	color: var(--title-color);
	transition: color 0.3s;
}

.courses__card-icon i {
	width: 48px;
	height: 48px;
}

.courses__card-title {
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-0-5);
}

.courses__card-description {
	font-size: var(--small-font-size);
	margin-bottom: var(--mb-1-5);
}

.courses__card-tag {
	display: inline-block;
	background-color: var(--secondary-color);
	color: var(--title-color);
	padding: 0.25rem 0.75rem;
	border-radius: 0.25rem;
	font-size: var(--small-font-size);
	font-weight: var(--font-bold);
}

/*=============== BREAKPOINTS ===============*/
/* ... (ваш существующий код) ... */
@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(4, 1fr);
	}
}

/*=============== PROCESS ===============*/
.process__container {
	position: relative;
	padding-top: 2rem;
}

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

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

.process__item {
	padding-left: 3rem;
	position: relative;
	margin-bottom: 3rem;
}

.process__item:last-child {
	margin-bottom: 0;
}

/* Круг на линии таймлайна */
.process__item::before {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	left: 1rem;
	top: 0.5rem;
	transform: translateX(-50%);
	background-color: var(--body-color);
	border: 3px solid var(--primary-color);
	border-radius: 50%;
	z-index: 1;
}

.process__item-content {
	background-color: var(--container-color);
	padding: 1.5rem;
	border-radius: 0.5rem;
	border: 1px solid var(--secondary-color);
}

.process__item-number {
	font-size: 2rem;
	font-weight: var(--font-extrabold);
	font-family: var(--title-font);
	color: var(--primary-color);
	line-height: 1;
}

.process__item-title {
	font-size: var(--h3-font-size);
	margin: var(--mb-0-5) 0;
}

.process__item-description {
	font-size: var(--small-font-size);
}

/*=============== BREAKPOINTS ===============*/
/* ... (ваш существующий код) ... */

@media screen and (min-width: 768px) {
	.process__timeline::after {
		left: 50%; /* Линия по центру */
	}

	.process__item {
		width: 50%;
		padding-left: 0;
		padding-right: 3rem;
		margin-bottom: 0; /* Убираем отступ, т.к. позиционируем */
	}

	/* Располагаем справа */
	.process__item:nth-child(even) {
		left: 50%;
		padding-left: 3rem;
		padding-right: 0;
	}

	.process__item::before {
		left: 50%;
	}

	/* Добавляем отступ между элементами таймлайна */
	.process__item {
		padding-bottom: 3rem;
	}
}

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

.mentors__card {
	background-color: var(--container-color);
	padding: 2rem 1.5rem;
	border-radius: 0.75rem;
	border: 1px solid var(--secondary-color);
	text-align: center;
	transition: transform 0.3s, box-shadow 0.3s;
}

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

.mentors__card-image {
	width: 120px;
	height: 120px;
	margin: 0 auto var(--mb-1);
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid var(--secondary-color);
}

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

.mentors__card-name {
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-0-5);
}

.mentors__card-title {
	font-size: var(--small-font-size);
	color: var(--primary-color);
	font-weight: var(--font-bold);
	margin-bottom: var(--mb-1);
}

.mentors__card-bio {
	font-size: var(--small-font-size);
	margin-bottom: var(--mb-1-5);
	min-height: 50px; /* Для выравнивания карточек по высоте */
}

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

.mentors__card-social-link {
	color: var(--text-color);
	font-size: 1.25rem;
	transition: color 0.3s;
}

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

/*=============== BREAKPOINTS ===============*/
/* ... (ваш существующий код) ... */

@media screen and (min-width: 576px) {
	.mentors__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

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

.reviews__card {
	background-color: var(--body-color);
	padding: 2rem;
	border-radius: 0.75rem;
	border: 1px solid var(--secondary-color);
	height: 100%; /* Для выравнивания высоты карточек */
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	padding-top: 3rem;
}

/* Стилизация иконки кавычки */
.reviews__card::before {
	content: '\201C'; /* Unicode для открывающей кавычки */
	font-family: var(--title-font);
	font-size: 5rem;
	color: var(--primary-color);
	position: absolute;
	top: 0.5rem;
	left: 1.5rem;
	line-height: 1;
	opacity: 0.2;
}

.reviews__card-text {
	margin-bottom: var(--mb-1-5);
	font-size: var(--normal-font-size);
}

.reviews__card-name {
	font-size: var(--h3-font-size);
}

.reviews__card-role {
	font-size: var(--small-font-size);
	color: var(--text-color);
}

/* Стилизация пагинации Swiper */
.swiper-pagination-bullet {
	background-color: var(--secondary-color);
	opacity: 1;
}

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

.reviews-swiper {
	padding-bottom: 3rem; /* Место для пагинации */
}

/*=============== CONTACT ===============*/
.contact__container {
	display: grid;
	gap: 3rem;
}

.contact__description {
	margin-bottom: var(--mb-2);
}

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

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

.contact__info-item i {
	color: var(--primary-color);
	width: 24px;
	height: 24px;
}

.contact__info-item a:hover {
	color: var(--primary-color);
}

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

.contact__form-label {
	display: block;
	font-size: var(--small-font-size);
	margin-bottom: var(--mb-0-5);
	color: var(--text-color);
}

.contact__form-input {
	width: 100%;
	padding: 1rem;
	background-color: var(--secondary-color);
	border: 1px solid transparent;
	border-radius: 0.5rem;
	color: var(--title-color);
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	transition: border-color 0.3s;
}

.contact__form-input::placeholder {
	color: #9ca3af;
}

.contact__form-input:focus {
	outline: none;
	border-color: var(--primary-color);
}

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

.contact__form-checkbox {
	margin-top: 5px; /* Выравнивание */
}

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

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

.contact__form-button {
	width: 100%;
}

.contact__form-message {
	display: none; /* Изначально скрыто */
	text-align: center;
	padding: 1rem;
	background-color: var(--container-color);
	border-radius: 0.5rem;
	border: 1px solid var(--primary-color);
	color: var(--title-color);
}

/*=============== BREAKPOINTS ===============*/
/* ... (ваш существующий код) ... */

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

/*=============== POLICY PAGES ===============*/
.pages {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
}

.pages h1,
.pages h2 {
	font-family: var(--title-font);
	color: var(--title-color);
	margin-bottom: var(--mb-1-5);
}

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

.pages h2 {
	font-size: 1.5rem;
	margin-top: var(--mb-2);
}

.pages p {
	margin-bottom: var(--mb-1);
	line-height: 1.7;
}

.pages ul {
	list-style: disc;
	margin-left: 1.5rem;
	margin-bottom: var(--mb-1);
}

.pages ul li {
	margin-bottom: var(--mb-0-5);
}

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

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

.pages strong {
	font-weight: var(--font-bold);
	color: var(--title-color);
}

/*=============== COOKIE POPUP ===============*/
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Изначально скрыт */
	left: 0;
	width: 100%;
	background-color: var(--container-color);
	border-top: 1px solid var(--secondary-color);
	padding: 1.5rem;
	z-index: var(--z-fixed);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
	bottom: 0; /* Показать попап */
}

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

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

.cookie-popup__button {
	padding: 0.5rem 1.5rem; /* Делаем кнопку чуть меньше */
}

@media screen and (min-width: 768px) {
	.cookie-popup {
		flex-direction: row;
		justify-content: center;
	}
	.cookie-popup__text {
		text-align: left;
	}
}
