/* ==================== GLOBAL STYLES ==================== */
:root {
	--header-height: 4.5rem;

	/* Colors */
	--color-bg: #111827;
	--color-text: #f9fafb;
	--color-accent: #2dd4bf;
	--color-muted: #9ca3af;
	--color-surface: #1f2937;
	--color-border: #374151;

	/* Fonts */
	--font-body: 'Inter', sans-serif;
	--font-heading: 'Poppins', sans-serif;

	--h1-font-size: 2.5rem;
	--h2-font-size: 2rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* Transitions */
	--transition-fast: 0.2s ease-in-out;
}

* {
	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(--color-bg);
	color: var(--color-text);
	line-height: 1.6;
}

h1,
h2,
h3 {
	font-family: var(--font-heading);
	font-weight: 600;
}

ul {
	list-style: none;
}

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

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

.container {
	max-width: 1120px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

/* ==================== HEADER & NAV ==================== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: transparent;
	z-index: 100;
	transition: background-color var(--transition-fast),
		backdrop-filter var(--transition-fast);
	border-bottom: 1px solid transparent;
}

.header--scrolled {
	background-color: rgba(17, 24, 39, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-border);
}

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

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

.logo__img {
	width: 32px;
	height: 32px;
}

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

.nav__link {
	position: relative;
	padding: 0.5rem 0;
	color: var(--color-muted);
	transition: color var(--transition-fast);
}

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

.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 var(--transition-fast);
}

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

.nav__link--button {
	background-color: var(--color-accent);
	color: var(--color-bg);
	padding: 0.6rem 1.2rem;
	border-radius: 6px;
	transition: background-color var(--transition-fast);
}

.nav__link--button:hover {
	color: var(--color-bg);
	background-color: #5eead4; /* Lighter accent */
}

.nav__link--button::after {
	display: none;
}

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

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

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

.footer__description {
	margin-top: 1rem;
	color: var(--color-muted);
	font-size: var(--small-font-size);
}

.footer__title {
	font-size: 1.125rem;
	margin-bottom: 1rem;
}

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

.footer__list--contact li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.footer__list--contact .lucide {
	width: 18px;
	height: 18px;
	color: var(--color-accent);
}

.footer__link {
	color: var(--color-muted);
	font-size: var(--small-font-size);
	transition: color var(--transition-fast);
}

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

.footer__bottom {
	margin-top: 4rem;
	text-align: center;
	border-top: 1px solid var(--color-border);
	padding-top: 2rem;
}

.footer__copy {
	color: var(--color-muted);
	font-size: var(--small-font-size);
}

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

	.nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		height: 100vh;
		background-color: var(--color-surface);
		padding: 6rem 2rem 2rem;
		transition: right var(--transition-fast);
		box-shadow: -10px 0 20px rgba(0, 0, 0, 0.1);
	}

	.nav--active {
		right: 0;
	}

	.nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 2.5rem;
	}

	.nav__link {
		font-size: 1.1rem;
	}

	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--info {
		align-items: center;
	}

	.footer__list {
		align-items: center;
	}
}

@media screen and (min-width: 768px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
}

/* ==================== BUTTONS ==================== */
.button {
	display: inline-block;
	background-color: var(--color-accent);
	color: var(--color-bg);
	padding: 0.9rem 2rem;
	border-radius: 6px;
	font-family: var(--font-heading);
	font-weight: 600;
	transition: all var(--transition-fast);
	border: 2px solid var(--color-accent);
}

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

/* ==================== HERO SECTION ==================== */
.hero {
	padding-top: var(--header-height);
	min-height: 100vh;
	display: flex;
	align-items: center;
}

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

.hero__title {
	font-size: var(--h1-font-size);
	font-weight: 700;
	margin-bottom: 1.5rem;
	line-height: 1.2;
	min-height: 100px; /* Для стабильности во время анимации */
}

/* Blinking cursor for typewriter effect */
.hero__title::after {
	content: '|';
	animation: blink 1s infinite;
	color: var(--color-accent);
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.hero__subtitle {
	font-size: 1.125rem;
	color: var(--color-muted);
	margin-bottom: 2.5rem;
	max-width: 500px;
}

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

.hero__image-wrapper {
	position: relative;
	border-radius: 12px;
}

/* Glow effect for the image */
.hero__image-wrapper::before {
	content: '';
	position: absolute;
	inset: -5px;
	background: conic-gradient(
		from 90deg at 40% 50%,
		var(--color-accent),
		var(--color-surface),
		var(--color-surface),
		var(--color-accent)
	);
	filter: blur(20px);
	border-radius: inherit;
	z-index: -1;
	opacity: 0.7;
}

.hero__image {
	border-radius: 12px;
	border: 1px solid var(--color-border);
}

/* ==================== RESPONSIVENESS (HERO) ==================== */
@media screen and (min-width: 768px) {
	.hero__title {
		min-height: 120px;
	}
}

@media screen and (min-width: 992px) {
	:root {
		--h1-font-size: 3.5rem;
	}
	.hero__container {
		grid-template-columns: 1.2fr 1fr;
	}
	.hero__title {
		min-height: 150px;
	}
}

/* ==================== DIRECTIONS SECTION ==================== */
.directions {
	padding-top: 6rem;
	padding-bottom: 6rem;
}

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

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

.directions__subtitle {
	max-width: 600px;
	margin: 0 auto;
	color: var(--color-muted);
}

.directions__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	position: relative;
	padding: 2px; /* For spotlight effect visibility */
}

/* Interactive spotlight effect */
.directions__grid::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(
		300px circle at var(--mouse-x) var(--mouse-y),
		rgba(45, 212, 191, 0.15),
		transparent 80%
	);
	border-radius: inherit;
	z-index: 1;
	opacity: 0;
	transition: opacity 0.3s;
}

.directions__grid:hover::before {
	opacity: 1;
}

.directions__card {
	background-color: var(--color-surface);
	padding: 2.5rem 2rem;
	border-radius: 12px;
	border: 1px solid var(--color-border);
	transition: transform var(--transition-fast),
		box-shadow var(--transition-fast);
	position: relative;
	z-index: 2;
	overflow: hidden;
}

.directions__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--color-accent);
}

.card__icon {
	width: 50px;
	height: 50px;
	background-color: var(--color-bg);
	border-radius: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 1.5rem;
	border: 1px solid var(--color-border);
}

.card__icon .lucide {
	width: 28px;
	height: 28px;
	color: var(--color-accent);
}

.card__title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

.card__description {
	font-size: var(--small-font-size);
	color: var(--color-muted);
	line-height: 1.7;
}

/* ==================== RESPONSIVENESS (DIRECTIONS) ==================== */
@media screen and (min-width: 992px) {
	.directions__title {
		font-size: 2.5rem;
	}
}

/* ==================== PROCESS SECTION ==================== */
.process {
	padding-top: 6rem;
	padding-bottom: 6rem;
	background-color: var(--color-surface);
	position: relative;
	overflow: hidden;
}

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

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

.process__subtitle {
	max-width: 600px;
	margin: 0 auto;
	color: var(--color-muted);
}

.process__timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	padding-left: 2rem; /* Space for the timeline line */
}

/* The vertical timeline line */
.process__timeline::before {
	content: '';
	position: absolute;
	top: 25px;
	left: 2px;
	bottom: 25px;
	width: 2px;
	background: var(--color-border);
}

.process__item {
	position: relative;
	display: flex;
	gap: 1.5rem;
	margin-bottom: 3rem;
}

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

.process__item-icon {
	position: relative;
	z-index: 2;
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	background-color: var(--color-accent);
	color: var(--color-bg);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: -24px; /* Center icon on the line */
	border: 3px solid var(--color-surface);
}

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

.process__item-number {
	position: absolute;
	top: -1.5rem;
	left: 4rem;
	font-size: 5rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.05);
	z-index: 1;
	line-height: 1;
}

.process__item-content {
	padding-top: 0.5rem;
	position: relative;
	z-index: 2;
}

.process__item-title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.process__item-description {
	color: var(--color-muted);
}

/* ==================== RESPONSIVENESS (PROCESS) ==================== */
@media screen and (min-width: 992px) {
	.process__title {
		font-size: 2.5rem;
	}
}

/* ==================== MENTORS SECTION ==================== */
.mentors {
	padding-top: 6rem;
	padding-bottom: 6rem;
}

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

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

.mentors__subtitle {
	max-width: 600px;
	margin: 0 auto;
	color: var(--color-muted);
}

.mentors__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.mentor-card {
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: transform var(--transition-fast),
		box-shadow var(--transition-fast);
}

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

.mentor-card__image-wrapper {
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	margin-bottom: 1.5rem;
	border: 3px solid var(--color-accent);
	overflow: hidden;
	aspect-ratio: 1/1;
}

.mentor-card__image {
	width: 100%;
	height: auto;
	aspect-ratio: 1/1;
	object-fit: cover;
}

.mentor-card__name {
	font-size: 1.25rem;
	margin-bottom: 0.25rem;
}

.mentor-card__role {
	color: var(--color-muted);
	font-size: var(--small-font-size);
	margin-bottom: 1rem;
}

.mentor-card__socials {
	display: flex;
	gap: 1rem;
}

.mentor-card__social-link {
	color: var(--color-muted);
	transition: color var(--transition-fast);
}

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

/* ==================== RESPONSIVENESS (MENTORS) ==================== */
@media screen and (min-width: 768px) {
	.mentors__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.mentors__title {
		font-size: 2.5rem;
	}
	.mentor-card {
		flex-direction: row;
		text-align: left;
		padding: 2rem;
	}
	.mentor-card__image-wrapper {
		margin-bottom: 0;
		margin-right: 2rem;
		width: 100px;
		height: 100px;
	}
}

/* ==================== REVIEWS SECTION ==================== */
.reviews {
	padding-top: 6rem;
	padding-bottom: 6rem;
	background-color: var(--color-surface);
}

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

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

.reviews__subtitle {
	max-width: 600px;
	margin: 0 auto;
	color: var(--color-muted);
}

.reviews__slider {
	padding-bottom: 3rem !important; /* For pagination */
}

.review-card {
	background-color: var(--color-bg);
	padding: 2rem;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.review-card__text {
	font-style: italic;
	color: var(--color-muted);
	margin: 0 0 1.5rem 0;
	line-height: 1.7;
	position: relative;
	padding-left: 2rem;
}

.review-card__text::before {
	content: '“';
	font-family: serif;
	font-size: 4rem;
	color: var(--color-accent);
	position: absolute;
	left: -0.5rem;
	top: -1.5rem;
	opacity: 0.5;
}

.review-card__author {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.review-card__author-img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--color-border);
}

.review-card__author-name {
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
}

.review-card__author-course {
	font-size: var(--small-font-size);
	color: var(--color-muted);
}

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

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

/* ==================== CONTACT SECTION ==================== */
.contact {
	padding-top: 6rem;
	padding-bottom: 6rem;
}

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

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

.contact__description {
	color: var(--color-muted);
	line-height: 1.7;
}

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

.form__group {
	position: relative;
}

.form__input {
	width: 100%;
	padding: 1rem;
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	color: var(--color-text);
	font-size: var(--normal-font-size);
	transition: border-color var(--transition-fast);
}

.form__input:focus {
	outline: none;
	border-color: var(--color-accent);
}

.form__label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	color: var(--color-muted);
	pointer-events: none;
	transition: all var(--transition-fast);
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
	top: -0.75rem;
	left: 0.75rem;
	font-size: var(--small-font-size);
	background-color: var(--color-bg);
	padding: 0 0.25rem;
	color: var(--color-accent);
}

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

.form__checkbox-input {
	appearance: none;
	-webkit-appearance: none;
	width: 1.25rem;
	height: 1.25rem;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	background-color: var(--color-surface);
	cursor: pointer;
	flex-shrink: 0;
	margin-top: 0.2rem;
	position: relative;
	transition: all var(--transition-fast);
}

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

.form__checkbox-input:checked::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 6px;
	width: 5px;
	height: 10px;
	border: solid var(--color-bg);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.form__checkbox-label {
	font-size: var(--small-font-size);
	color: var(--color-muted);
	line-height: 1.5;
}

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

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

.form__success-message {
	display: none;
	text-align: center;
	padding: 3rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background-color: var(--color-surface);
}
.form__success-message--visible {
	display: block;
}

/* ==================== RESPONSIVENESS (CONTACT) ==================== */
@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1.2fr;
		align-items: center;
	}
	.contact__title {
		font-size: 2.5rem;
	}
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	background-color: var(--color-surface);
	color: var(--color-text);
	padding: 1.5rem;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	z-index: 200;
	opacity: 0;
	transform: translateY(20px);
	visibility: hidden;
	transition: opacity var(--transition-fast), transform var(--transition-fast),
		visibility var(--transition-fast);
}

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

.cookie-popup__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	text-align: center;
}

.cookie-popup__text {
	font-size: var(--small-font-size);
	color: var(--color-muted);
}

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

.cookie-popup__button {
	background-color: var(--color-accent);
	color: var(--color-bg);
	border: none;
	padding: 0.6rem 1.5rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: var(--small-font-size);
	font-weight: 500;
	transition: background-color var(--transition-fast);
	white-space: nowrap;
}

.cookie-popup__button:hover {
	background-color: #5eead4; /* Lighter accent */
}

/* ==================== RESPONSIVENESS (COOKIE) ==================== */
@media screen and (min-width: 768px) {
	.cookie-popup {
		max-width: 1120px;
		left: 50%;
		transform: translateX(-50%) translateY(20px);
	}
	.cookie-popup--visible {
		transform: translateX(-50%) translateY(0);
	}
	.cookie-popup__container {
		flex-direction: row;
		text-align: left;
	}
}

/* ==================== STATIC PAGES (PRIVACY, TERMS, ETC.) ==================== */
.pages {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 6rem;
}

.pages .container {
	max-width: 800px; /* Limit line length for readability */
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	color: var(--color-text);
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 3rem;
	margin-bottom: 1.5rem;
	color: var(--color-text);
}

.pages p,
.pages li {
	font-size: var(--normal-font-size);
	color: var(--color-muted);
	line-height: 1.8;
	margin-bottom: 1.5rem;
}

.pages ul {
	list-style-type: disc;
	padding-left: 1.5rem;
}

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

.pages a:hover {
	color: #5eead4; /* Lighter accent */
}

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