/* ====================
   GLOBAL STYLES & SETUP
   ==================== */

:root {
	--bg-color: #111827;
	--text-color: #f9fafb;
	--primary-color: #4ade80;
	--secondary-color: #9ca3af;
	--surface-color: #1f2937;
	--border-color: #374151;

	--font-family: 'Manrope', sans-serif;
	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

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

ul {
	list-style: none;
}

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

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

.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

.button {
	display: inline-block;
	padding: 12px 24px;
	background-color: var(--primary-color);
	color: var(--bg-color);
	font-weight: 700;
	border-radius: 8px;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--text-color);
}

.logo svg {
	transition: transform 0.3s ease;
}

.logo:hover svg {
	transform: rotate(180deg);
}

/* ====================
   HEADER
   ==================== */

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

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

.header__nav {
	display: block;
}

.header__nav-list {
	display: flex;
	gap: 30px;
}

.header__nav-link {
	font-size: 1rem;
	font-weight: 500;
	color: var(--secondary-color);
	position: relative;
	transition: color 0.2s ease;
}

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

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

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

.header__actions {
	display: flex;
	align-items: center;
	gap: 15px;
}

.header__burger-btn {
	display: none;
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
	z-index: 101; /* Чтобы кнопка была поверх меню */
}

/* Header Responsive */
@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%; /* Изначально скрыто */
		width: 100%;
		height: 100vh;
		background-color: var(--bg-color);
		padding-top: var(--header-height);
		transition: right 0.3s ease-in-out;
		z-index: 100;
	}

	.header__nav.is-open {
		right: 0; /* Открытое состояние */
	}

	.header__nav-list {
		flex-direction: column;
		align-items: center;
		gap: 25px;
		padding: 20px 0;
	}

	.header__nav-link {
		font-size: 1.5rem;
		font-weight: 700;
	}

	.header__contact-btn {
		display: none;
	}

	.header__burger-btn {
		display: block;
	}

	/* Отключаем скролл, когда меню открыто */
	body.no-scroll {
		overflow: hidden;
	}
}

/* ====================
   FOOTER
   ==================== */

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

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

.footer__column:first-child {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer__copy {
	font-size: 0.9rem;
	color: var(--secondary-color);
}

.footer__title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--text-color);
}

.footer__nav-list,
.footer__legal-list,
.footer__contact-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__nav-link,
.footer__legal-link,
.footer__contact-link {
	color: var(--secondary-color);
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer__nav-link:hover,
.footer__legal-link:hover,
.footer__contact-link:hover {
	color: var(--primary-color);
	padding-left: 5px;
}

.footer__contact-item {
	color: var(--secondary-color);
	line-height: 1.5;
}

/* ====================
   HERO SECTION
   ==================== */

.hero {
	padding-top: calc(var(--header-height) + 60px);
	padding-bottom: 60px;
	min-height: 90vh;
	display: flex;
	align-items: center;
}

.hero__container {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: center;
	gap: 50px;
}

.hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.hero__title {
	font-size: 3rem;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 20px;
	max-width: 20ch; /* Ограничиваем ширину для лучшей читаемости */
}

/* Стили для анимации букв */
.hero__title .letter {
	display: inline-block;
	opacity: 0; /* Изначально буквы невидимы */
	transform: translateY(20px);
}

.hero__subtitle {
	font-size: 1.125rem;
	color: var(--secondary-color);
	margin-bottom: 30px;
	max-width: 55ch;
}

.hero__cta-btn {
	padding: 16px 32px;
	font-size: 1.1rem;
}

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

.hero__img {
	width: 100%;
	max-width: 450px;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
	border: 1px solid var(--border-color);
}

/* Hero Responsive */
@media (max-width: 992px) {
	.hero__title {
		font-size: 2.5rem;
	}
}

@media (max-width: 768px) {
	.hero {
		text-align: center;
	}
	.hero__container {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.hero__content {
		align-items: center;
	}
	.hero__visual {
		order: -1; /* Изображение будет сверху на мобильных */
	}
	.hero__title {
		font-size: 2rem;
		max-width: none;
	}
}

/* ====================
   COURSES SECTION
   ==================== */

.courses {
	padding-top: 80px;
	padding-bottom: 80px;
}

.courses__header {
	text-align: center;
	margin-bottom: 60px;
}

.courses__title {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 15px;
}

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

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

.courses__card {
	background-color: var(--surface-color);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.courses__card-icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(74, 222, 128, 0.1);
	border-radius: 8px;
	margin-bottom: 20px;
}

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

.courses__card-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 10px;
}

.courses__card-description {
	font-size: 1rem;
	color: var(--secondary-color);
	line-height: 1.6;
}

@media (max-width: 768px) {
	.courses__title {
		font-size: 2rem;
	}
}

/* ====================
   PROCESS SECTION
   ==================== */

.process {
	padding-top: 80px;
	padding-bottom: 80px;
	background-color: var(--surface-color);
}

.process__header {
	text-align: center;
	margin-bottom: 80px;
}

.process__title {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 15px;
}

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

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

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

.process__item {
	padding: 10px 40px;
	position: relative;
	width: 50%;
	margin-bottom: 40px;
}

/* Расположение блоков по сторонам */
.process__item:nth-child(odd) {
	left: 0;
	padding-right: 65px;
}

.process__item:nth-child(even) {
	left: 50%;
	padding-left: 65px;
}

/* Иконки на центральной линии */
.process__icon {
	position: absolute;
	width: 50px;
	height: 50px;
	right: -25px;
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--primary-color);
	border-radius: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 4px solid var(--surface-color);
}

.process__item:nth-child(even) .process__icon {
	left: 0;
}

.process__icon i {
	color: var(--bg-color);
	width: 24px;
	height: 24px;
}

.process__content {
	padding: 20px 30px;
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	position: relative;
	border-radius: 8px;
}

.process__item:nth-child(odd) .process__content {
	text-align: right;
}

.process__step {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 10px;
	display: block;
}

.process__item-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 10px;
}

.process__item-description {
	font-size: 1rem;
	color: var(--secondary-color);
	line-height: 1.6;
}

/* Process Responsive */
@media (max-width: 768px) {
	.process__title {
		font-size: 2rem;
	}

	.process__timeline::after {
		left: 25px;
	}

	.process__item {
		width: 100%;
		padding-left: 70px;
		padding-right: 15px;
		left: 0 !important; /* !important, чтобы перебить инлайновый стиль */
		margin-bottom: 30px;
	}

	.process__item:nth-child(odd) {
		padding-right: 15px;
	}

	.process__item .process__icon {
		left: 0;
	}

	.process__item:nth-child(odd) .process__content,
	.process__item:nth-child(even) .process__content {
		text-align: left;
	}
}

/* ====================
   MENTORS SECTION
   ==================== */

.mentors {
	padding-top: 80px;
	padding-bottom: 80px;
}

.mentors__header {
	text-align: center;
	margin-bottom: 60px;
}

.mentors__title {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 15px;
}

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

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

.mentors__card {
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.mentors__card-name {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 5px;
}

.mentors__card-title {
	color: var(--primary-color);
	font-weight: 500;
	margin-bottom: 15px;
}

.mentors__card-description {
	color: var(--secondary-color);
	line-height: 1.6;
	margin-bottom: 20px;
	flex-grow: 1; /* Чтобы карточки были одинаковой высоты */
}

.mentors__card-socials {
	display: flex;
	gap: 15px;
}

.mentors__card-socials a {
	color: var(--secondary-color);
	transition: color 0.2s ease, transform 0.2s ease;
}

.mentors__card-socials a:hover {
	color: var(--primary-color);
	transform: scale(1.1);
}

@media (max-width: 768px) {
	.mentors__title {
		font-size: 2rem;
	}
}

/* ====================
   REVIEWS SECTION
   ==================== */

.reviews {
	padding-top: 80px;
	padding-bottom: 100px;
	background-color: var(--surface-color);
}

.reviews__header {
	text-align: center;
	margin-bottom: 60px;
}

.reviews__title {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 15px;
}

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

/* Swiper Стили */
.reviews__slider {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 40px;
}

.swiper-slide {
	display: flex;
	justify-content: center;
}

.reviews__card {
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 30px;
	width: 100%;
}

.reviews__card-author {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
}

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

.reviews__author-name {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0;
}

.reviews__author-role {
	font-size: 0.9rem;
	color: var(--primary-color);
	margin: 0;
}

.reviews__card-text {
	font-size: 1.05rem;
	color: var(--secondary-color);
	line-height: 1.7;
	font-style: italic;
}

/* Стилизация навигации и пагинации Swiper */
.swiper-button-next,
.swiper-button-prev {
	color: var(--primary-color);
}

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

@media (max-width: 768px) {
	.reviews__title {
		font-size: 2rem;
	}
	.reviews__slider {
		padding: 0;
	}
	.swiper-button-next,
	.swiper-button-prev {
		display: none;
	}
}

/* ====================
   CONTACT SECTION
   ==================== */

.contact {
	padding-top: 80px;
	padding-bottom: 80px;
}

.contact__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.contact__title {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 20px;
}

.contact__description {
	font-size: 1.125rem;
	color: var(--secondary-color);
	line-height: 1.6;
	margin-bottom: 30px;
}

.contact__perks {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.contact__perk-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--secondary-color);
}

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

.contact__form-wrapper {
	background-color: var(--surface-color);
	padding: 40px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	position: relative;
	overflow: hidden; /* Для скрытия сообщения об успехе */
}

.contact__form-group {
	position: relative;
	margin-bottom: 25px;
}

.contact__form-input {
	width: 100%;
	padding: 15px;
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	color: var(--text-color);
	font-size: 1rem;
	font-family: var(--font-family);
	transition: border-color 0.2s ease;
}

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

/* Эффект для плейсхолдера */
.contact__form-label {
	position: absolute;
	top: 15px;
	left: 15px;
	color: var(--secondary-color);
	pointer-events: none;
	transition: all 0.2s ease;
}

.contact__form-input:focus ~ .contact__form-label,
.contact__form-input:not(:placeholder-shown) ~ .contact__form-label {
	top: -10px;
	left: 12px;
	font-size: 0.8rem;
	background-color: var(--surface-color);
	padding: 0 5px;
	color: var(--primary-color);
}

.contact__form-group--checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 25px;
}

.contact__form-group--checkbox label {
	font-size: 0.9rem;
	color: var(--secondary-color);
}

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

.contact__form-btn {
	width: 100%;
	font-size: 1.1rem;
	padding: 16px;
}

.contact__success-message {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--surface-color);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transform: scale(1.1);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.contact__success-message.is-visible {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.contact__success-message i {
	color: var(--primary-color);
	width: 48px;
	height: 48px;
	margin-bottom: 15px;
}

.contact__success-message h4 {
	font-size: 1.5rem;
	margin-bottom: 10px;
}

/* Contact Responsive */
@media (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
	}
}

/* ====================
   COOKIE POP-UP
   ==================== */

.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	max-width: 90%;
	width: 600px;
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	z-index: 200;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;

	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(20px);
	transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

.cookie-popup.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

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

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

.cookie-popup__btn {
	background-color: var(--primary-color);
	color: var(--bg-color);
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap; /* Чтобы текст не переносился */
	transition: transform 0.2s ease;
}

.cookie-popup__btn:hover {
	transform: scale(1.05);
}

@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
		bottom: 10px;
	}
}

/* ====================
   POLICY & TEXT PAGES
   ==================== */

.pages {
	padding-top: calc(var(--header-height) + 60px);
	padding-bottom: 80px;
}

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

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

.pages h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-top: 40px;
	margin-bottom: 20px;
}

.pages p {
	font-size: 1.1rem;
	color: var(--secondary-color);
	line-height: 1.8;
	margin-bottom: 20px;
}

.pages ul {
	list-style: disc;
	padding-left: 25px;
	margin-bottom: 20px;
}

.pages li {
	font-size: 1.1rem;
	color: var(--secondary-color);
	line-height: 1.8;
	margin-bottom: 10px;
}

.pages a {
	color: var(--primary-color);
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.pages a:hover {
	text-decoration: underline;
	opacity: 0.8;
}

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