/*
 * Google Fonts
 */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&family=Space+Grotesk:wght@500;700&display=swap');

/*
 * CSS Variables
 */
:root {
	--color-bg-main: #0d1b2a;
	--color-bg-secondary: #1b263b;
	--color-text-main: #e0e1dd;
	--color-text-secondary: #415a77;
	--color-accent: #00f5d4;

	--font-family-headings: 'Space Grotesk', sans-serif;
	--font-family-body: 'Manrope', sans-serif;

	--header-height: 80px;
}

/*
 * Global Styles & Reset
 */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-family-headings);
	color: var(--color-text-main);
}

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

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

ul {
	list-style: none;
}

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

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/*
 * Header
 */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: rgba(13, 27, 42, 0.8);
	backdrop-filter: blur(10px);
	z-index: 100;
	display: flex;
	align-items: center;
}

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

.logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-family-headings);
	font-weight: 700;
	font-size: 24px;
	color: var(--color-text-main);
}

.logo svg {
	color: var(--color-accent);
	transition: transform 0.3s ease;
}

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

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

.header__nav-link {
	color: var(--color-text-main);
	font-weight: 500;
	position: relative;
	padding: 5px 0;
}

.header__nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--color-accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease-out;
}

.header__nav-link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

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

.header__burger .lucide-x {
	display: none;
}

/*
 * Footer
 */
.footer {
	background-color: var(--color-bg-secondary);
	padding: 60px 0;
	margin-top: 80px; /* Placeholder */
}

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

.footer__column--main {
	grid-column: span 1;
}

.footer__logo {
	margin-bottom: 20px;
}

.footer__copyright {
	font-size: 14px;
	color: var(--color-text-secondary);
}

.footer__title {
	font-size: 18px;
	margin-bottom: 20px;
	font-family: var(--font-family-headings);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__link {
	color: var(--color-text-main);
	font-size: 15px;
}

.footer__address {
	font-size: 15px;
	font-style: normal;
	color: var(--color-text-secondary);
	line-height: 1.5;
}

/*
 * Responsive Styles (Mobile-first)
 */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-bg-main);
		display: flex;
		justify-content: center;
		align-items: center;
		transform: translateX(100%);
		transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
	}

	.header__nav.is-active {
		transform: translateX(0);
	}

	.header__nav-list {
		flex-direction: column;
		align-items: center;
		gap: 40px;
	}

	.header__nav-link {
		font-size: 24px;
	}

	.header__burger {
		display: block;
		z-index: 101;
	}

	.header__burger.is-active .lucide-menu {
		display: none;
	}
	.header__burger.is-active .lucide-x {
		display: block;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.logo {
		justify-content: center;
	}
}

/*
 * Button
 */
.button {
	display: inline-block;
	padding: 14px 32px;
	background-color: var(--color-accent);
	color: var(--color-bg-main);
	font-family: var(--font-family-headings);
	font-weight: 700;
	border-radius: 8px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 2px solid var(--color-accent);
}

.button:hover {
	color: var(--color-bg-main);
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(0, 245, 212, 0.15);
}

/*
 * Hero Section
 */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	height: 100vh;
	min-height: 700px;
	padding-top: var(--header-height);
	overflow: hidden;
}

.hero__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

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

.hero__title {
	font-size: 2.5rem;
	line-height: 1.2;
	margin-bottom: 20px;
}

/* Стили для анимированных букв */
.hero__title .letter {
	display: inline-block;
	opacity: 0; /* Изначально буквы невидимы */
}

.hero__subtitle {
	font-size: 18px;
	line-height: 1.7;
	color: var(--color-text-main);
	max-width: 500px;
	margin-bottom: 40px;
}

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

.hero__image {
	max-width: 450px;
	width: 100%;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	border: 1px solid var(--color-bg-secondary);
}

/*
 * Hero Responsive
 */
@media (max-width: 992px) {
	.hero__title {
		font-size: 2rem;
	}
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.hero__content {
		order: 2;
	}
	.hero__visual {
		order: 1;
		margin-bottom: 40px;
	}
	.hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}
	.hero__image {
		max-width: 350px;
	}
}

@media (max-width: 768px) {
	.hero {
		height: auto;
		padding: 80px 0;
	}
}

@media (max-width: 480px) {
	.hero__title {
		font-size: 1.5rem;
	}
	.hero__subtitle {
		font-size: 16px;
	}
}

/*
 * General Section Styles
 */
.section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px;
}

.section-header__title {
	font-size: 42px;
	margin-bottom: 15px;
}

.section-header__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/*
 * Directions Section
 */
.directions {
	padding: 100px 0;
}

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

.directions-card {
	background-color: var(--color-bg-secondary);
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 30px;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.directions-card__icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 245, 212, 0.1);
	border-radius: 8px;
	color: var(--color-accent);
	margin-bottom: 25px;
}

.directions-card__icon svg {
	width: 28px;
	height: 28px;
}

.directions-card__title {
	font-size: 22px;
	margin-bottom: 15px;
}

.directions-card__description {
	color: var(--color-text-secondary);
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 25px;
	flex-grow: 1; /* Pushes the link to the bottom */
}

.directions-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 25px;
}

.directions-card__tag {
	background-color: var(--color-bg-main);
	color: var(--color-text-secondary);
	font-size: 13px;
	font-weight: 500;
	padding: 5px 12px;
	border-radius: 20px;
	border: 1px solid #415a77; /* --color-text-secondary */
}

.directions-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--color-text-main);
	font-weight: 500;
	font-family: var(--font-family-headings);
}

.directions-card__link svg {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

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

.directions-card__link:hover svg {
	transform: translateX(4px);
}

/*
 * Directions Responsive
 */
@media (max-width: 992px) {
	.section-header__title {
		font-size: 36px;
	}
}

@media (max-width: 768px) {
	.directions {
		padding: 80px 0;
	}
	.section-header__title {
		font-size: 32px;
	}
	.section-header__subtitle {
		font-size: 16px;
	}
}

/*
 * Process Section
 */
.process {
	padding: 100px 0;
	background-color: var(--color-bg-secondary);
}

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

/* The central timeline line */
.process__timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: var(--color-accent);
	opacity: 0.2;
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -1.5px;
}

/* Container around content */
.process__item {
	padding: 10px 40px;
	position: relative;
	width: 50%;
}

/* The circle on the timeline */
.process__item::after {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	right: -9px;
	background-color: var(--color-bg-secondary);
	border: 3px solid var(--color-accent);
	top: 25px;
	border-radius: 50%;
	z-index: 1;
}

/* Positioning the items */
.process__item:nth-child(odd) {
	left: 0;
}

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

.process__item:nth-child(even)::after {
	left: -9px;
}

.process__content {
	padding: 30px;
	background-color: var(--color-bg-main);
	position: relative;
	border-radius: 8px;
	border: 1px solid transparent;
	transition: border-color 0.3s ease;
}

.process__item:hover .process__content {
	border-color: var(--color-accent);
}

.process__step {
	font-size: 60px;
	font-weight: 700;
	font-family: var(--font-family-headings);
	color: var(--color-accent);
	opacity: 0.1;
	position: absolute;
	top: 10px;
	right: 20px;
}

.process__title {
	font-size: 22px;
	margin-bottom: 15px;
}

.process__description {
	font-size: 15px;
	color: var(--color-text-secondary);
}

/*
 * Process Responsive
 */
@media (max-width: 992px) {
	.process__timeline::after {
		left: 20px;
	}

	.process__item {
		width: 100%;
		padding-left: 60px;
		padding-right: 15px;
	}

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

	.process__item::after {
		left: 11px; /* 20px (timeline left) - 9px (half of dot width) */
	}
}

/*
 * Mentors Section
 */
.mentors {
	padding: 100px 0;
}

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

.mentor-card {
	background-color: var(--color-bg-secondary);
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	border: 1px solid transparent;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mentor-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);
	border-color: rgba(0, 245, 212, 0.5);
}

.mentor-card__image-wrapper {
	width: 120px;
	height: 120px;
	margin: 0 auto 20px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid var(--color-accent);
}

.mentor-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mentor-card__info {
	margin-bottom: 20px;
}

.mentor-card__name {
	font-size: 20px;
	margin-bottom: 8px;
}

.mentor-card__role {
	font-size: 14px;
	color: var(--color-text-secondary);
}

.mentor-card__socials {
	display: flex;
	justify-content: center;
	gap: 20px;
}

.mentor-card__socials a {
	color: var(--color-text-secondary);
	transition: color 0.3s ease, transform 0.3s ease;
}

.mentor-card__socials a:hover {
	color: var(--color-accent);
	transform: scale(1.1);
}

/*
 * Reviews Section
 */
.reviews {
	padding: 100px 0;
	background-color: var(--color-bg-secondary);
}

.reviews__slider {
	width: 100%;
	padding: 20px 0 60px; /* Padding for shadow and pagination */
}

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

.review-card {
	background-color: var(--color-bg-main);
	border-radius: 12px;
	padding: 30px;
	max-width: 500px;
	width: 100%;
	display: flex;
	flex-direction: column;
	height: 100%;
}

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

.review-card__avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.review-card__name {
	font-size: 18px;
	font-family: var(--font-family-headings);
	margin: 0;
}

.review-card__course {
	font-size: 14px;
	color: var(--color-text-secondary);
}

.review-card__text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-text-main);
	flex-grow: 1;
	margin-bottom: 20px;
}

.review-card__rating {
	color: #ffc700;
}

.review-card__rating svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Swiper Controls */
.reviews__nav {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: -30px; /* Pulls nav buttons up */
	position: relative;
	z-index: 10;
}

.reviews__nav-button {
	width: 44px;
	height: 44px;
	border: 1px solid var(--color-text-secondary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text-main);
	cursor: pointer;
	transition: all 0.3s ease;
}

.reviews__nav-button:hover {
	background-color: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-bg-main);
}

.reviews__nav-button.swiper-button-disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.reviews__pagination {
	bottom: 20px !important; /* Swiper uses !important */
}

.reviews__pagination .swiper-pagination-bullet {
	background-color: var(--color-text-secondary);
	opacity: 0.7;
}

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

@media (max-width: 768px) {
	.reviews__nav {
		display: none; /* Hide arrows on mobile, pagination is enough */
	}
}

/*
 * Contact Section
 */
.contact {
	padding: 100px 0;
}

.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 60px;
	background-color: var(--color-bg-secondary);
	padding: 60px;
	border-radius: 12px;
}

.contact__info-title {
	font-size: 28px;
	margin-bottom: 20px;
}

.contact__info-text {
	color: var(--color-text-secondary);
	margin-bottom: 30px;
}

.contact__info-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

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

.contact__info-item i {
	color: var(--color-accent);
}

.contact__info-item a,
.contact__info-item span {
	color: var(--color-text-main);
	font-size: 16px;
}
.contact__info-item a:hover {
	text-decoration: underline;
}

/* Form Styles */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

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

.form-label {
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--color-text-secondary);
}

.form-input {
	width: 100%;
	padding: 12px 16px;
	border-radius: 8px;
	border: 1px solid var(--color-text-secondary);
	background-color: var(--color-bg-main);
	color: var(--color-text-main);
	font-size: 16px;
	font-family: var(--font-family-body);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.2);
}

.form-group--checkbox {
	flex-direction: row;
	align-items: center;
	gap: 12px;
}

.form-group--checkbox label {
	font-size: 14px;
	color: var(--color-text-secondary);
	margin: 0;
}

.form-group--checkbox a {
	text-decoration: underline;
}

.form-group--checkbox input[type='checkbox'] {
	width: 18px;
	height: 18px;
	accent-color: var(--color-accent);
}

.contact-form__button {
	margin-top: 10px;
}

.form-success-message {
	display: none; /* Initially hidden */
	text-align: center;
	padding: 40px;
	border: 1px solid var(--color-accent);
	border-radius: 8px;
	background-color: rgba(0, 245, 212, 0.05);
}
.form-success-message.is-visible {
	display: block;
}

.form-success-message i {
	color: var(--color-accent);
	width: 48px;
	height: 48px;
	margin-bottom: 20px;
}
.form-success-message h4 {
	font-size: 22px;
	margin-bottom: 10px;
}
.form-success-message p {
	color: var(--color-text-secondary);
}

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

@media (max-width: 768px) {
	.contact__wrapper {
		padding: 30px;
	}
}

/*
 * Cookie Popup
 */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	background-color: var(--color-bg-secondary);
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	z-index: 200;
	transform: translateY(200%);
	transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
	max-width: 600px;
	margin: 0 auto;
	border: 1px solid var(--color-text-secondary);
}

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

.cookie-popup__text {
	font-size: 15px;
	color: var(--color-text-secondary);
}

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

.cookie-popup__button {
	background-color: var(--color-accent);
	color: var(--color-bg-main);
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 500;
	white-space: nowrap;
	transition: opacity 0.3s ease;
}

.cookie-popup__button:hover {
	opacity: 0.85;
}

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

/*
 * Static Pages (Privacy, Terms, etc.)
 */
.pages {
	padding: calc(var(--header-height) + 60px) 0 100px;
}

.pages .container {
	max-width: 800px; /* Уменьшаем ширину для лучшей читаемости */
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
}

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

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

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

.pages a:hover {
	text-decoration: none;
}

.pages ul,
.pages ol {
	margin-bottom: 20px;
	padding-left: 25px;
}

.pages li {
	color: var(--color-text-secondary);
	margin-bottom: 12px;
	line-height: 1.8;
}

.pages ul li {
	list-style-type: disc;
}

.pages ol li {
	list-style-type: decimal;
}

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