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

/* ==================== CSS VARIABLES ==================== */
:root {
	/* Colors */
	--primary-color: #fca311;
	--dark-color: #1b263b;
	--medium-color: #415a77;
	--light-color: #e0e1dd;
	--white-color: #ffffff;

	/* Fonts */
	--font-family-headings: 'Exo 2', sans-serif;
	--font-family-body: 'Inter', sans-serif;

	/* Other */
	--header-height: 4.5rem;
	--border-radius: 8px;
	--transition: cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family-body);
	font-size: 16px;
	line-height: 1.6;
	background-color: var(--light-color);
	color: var(--medium-color);
	padding-top: var(--header-height); /* Offset for fixed header */
}

ul {
	list-style: none;
}

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

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

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

/* ==================== HEADER ==================== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: rgba(224, 225, 221, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 100;
	border-bottom: 1px solid rgba(65, 90, 119, 0.1);
	transition: box-shadow var(--transition);
}

.header.scrolled {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.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-family-headings);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--dark-color);
}

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

.nav__link {
	position: relative;
	font-weight: 600;
	color: var(--dark-color);
	transition: color var(--transition);
}

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

.nav__link::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--primary-color);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform var(--transition);
}

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

.nav__link--button {
	background-color: var(--primary-color);
	color: var(--dark-color);
	padding: 0.5rem 1.25rem;
	border-radius: var(--border-radius);
	transition: transform var(--transition), box-shadow var(--transition);
}

.nav__link--button:hover {
	color: var(--dark-color);
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(252, 163, 17, 0.4);
}

.nav__link--button::after {
	display: none; /* No underline for button */
}

/* Burger menu */
.burger {
	display: none;
	width: 28px;
	height: 20px;
	position: relative;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 101;
}

.burger__line {
	width: 100%;
	height: 2px;
	background-color: var(--dark-color);
	position: absolute;
	left: 0;
	transition: all 0.3s ease-in-out;
}

.burger__line:first-child {
	top: 0;
}
.burger__line:nth-child(2) {
	top: 50%;
	transform: translateY(-50%);
}
.burger__line:last-child {
	bottom: 0;
}

/* Styles for active burger menu */
.burger.is-active .burger__line:first-child {
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
	background-color: var(--white-color);
}
.burger.is-active .burger__line:nth-child(2) {
	opacity: 0;
}
.burger.is-active .burger__line:last-child {
	bottom: 50%;
	transform: translateY(50%) rotate(-45deg);
	background-color: var(--white-color);
}

/* ==================== FOOTER ==================== */
.footer {
	background-color: var(--dark-color);
	color: var(--light-color);
	padding: 4rem 0 2rem;
}

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

.footer__column--main .logo span {
	color: var(--light-color);
}
.footer__tagline {
	margin-top: 1rem;
	font-size: 0.9rem;
	opacity: 0.7;
}

.footer__title {
	font-family: var(--font-family-headings);
	font-size: 1.1rem;
	margin-bottom: 1rem;
	color: var(--white-color);
}

.footer__list li {
	margin-bottom: 0.75rem;
}

.footer__link {
	opacity: 0.8;
	transition: color var(--transition), opacity var(--transition);
}

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

.footer__list--contacts li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.footer__list--contacts i {
	flex-shrink: 0;
	margin-top: 4px;
	color: var(--primary-color);
}

.footer__bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.85rem;
	opacity: 0.6;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media screen and (max-width: 992px) {
	.container {
		padding: 0 1rem;
	}
}

@media screen and (max-width: 768px) {
	.burger {
		position: relative;
		z-index: 9999;
		display: block; /* Show burger on mobile */
	}

	.nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		height: 100vh;
		background-color: var(--dark-color);
		padding: 6rem 2rem 2rem;
		transition: right var(--transition);
		z-index: 100;
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
	}

	.nav.is-active {
		right: 0;
	}

	body.no-scroll {
		overflow: hidden;
	}

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

	.nav__link {
		font-size: 1.2rem;
		color: var(--light-color);
	}

	.nav__link:hover,
	.nav__link--button:hover {
		color: var(--primary-color);
	}

	.nav__link--button {
		background-color: transparent;
		color: var(--primary-color);
		padding: 0;
		box-shadow: none;
		transform: none;
	}
}

/* ... (предыдущие стили) ... */

/* ==================== REUSABLE COMPONENTS ==================== */
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: var(--primary-color);
	color: var(--dark-color);
	padding: 0.8rem 1.75rem;
	border-radius: var(--border-radius);
	font-weight: 600;
	transition: transform var(--transition), box-shadow var(--transition);
}

.button:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 15px rgba(252, 163, 17, 0.4);
}

/* ==================== HERO SECTION ==================== */
.hero {
	position: relative;
	height: calc(100vh - var(--header-height));
	min-height: 500px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background-color: var(--light-color);
}

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

.hero__container {
	position: relative;
	z-index: 2;
}

.hero__content {
	max-width: 650px;
}

.hero__title {
	font-family: var(--font-family-headings);
	font-size: 3.5rem;
	line-height: 1.2;
	color: var(--dark-color);
	margin-bottom: 1rem;
}

.hero__subtitle {
	font-size: 1.125rem;
	margin-bottom: 2rem;
	max-width: 500px;
}

/* ==================== RESPONSIVE DESIGN (дополнения) ==================== */
@media screen and (max-width: 768px) {
	/* ... (предыдущие медиа-запросы) ... */

	.hero {
		height: auto;
		padding: 4rem 0;
		text-align: center;
	}

	.hero__content {
		margin: 0 auto;
	}

	.hero__title {
		font-size: 2.5rem;
	}

	.hero__subtitle {
		font-size: 1rem;
		margin-left: auto;
		margin-right: auto;
	}

	.button {
		padding: 0.7rem 1.5rem;
	}
}

/* ... (предыдущие стили) ... */

/* ==================== COURSES SECTION ==================== */
.section {
	padding: 5rem 0;
}

.section__header {
	text-align: center;
	max-width: 600px;
	margin: 0 auto 3rem auto;
}

.section__title {
	font-family: var(--font-family-headings);
	font-size: 2.5rem;
	color: var(--dark-color);
	margin-bottom: 0.5rem;
}

.section__subtitle {
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--medium-color);
}

.courses__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.course-card {
	background-color: var(--white-color);
	border-radius: var(--border-radius);
	padding: 2.5rem 2rem;
	text-align: center;
	border: 1px solid transparent;
	box-shadow: 0 4px 20px rgba(65, 90, 119, 0.05);
	transition: transform var(--transition), box-shadow var(--transition),
		border-color var(--transition);
}

.course-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 30px rgba(65, 90, 119, 0.1);
	border-color: var(--primary-color);
}

.course-card__icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 1.5rem auto;
	background-color: var(--light-color);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.course-card__icon i {
	width: 32px;
	height: 32px;
	color: var(--primary-color);
}

.course-card__title {
	font-family: var(--font-family-headings);
	font-size: 1.25rem;
	color: var(--dark-color);
	margin-bottom: 0.75rem;
}

.course-card__description {
	font-size: 0.95rem;
	margin-bottom: 1.5rem;
	min-height: 57px; /* Reserve space for 3 lines of text */
}

.course-card__link {
	font-weight: 600;
	color: var(--primary-color);
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	transition: gap var(--transition);
}

.course-card__link:hover {
	gap: 0.5rem;
}

.course-card__link i {
	transition: transform var(--transition);
}

.course-card__link:hover i {
	transform: translateX(4px);
}

/* ==================== RESPONSIVE DESIGN (дополнения) ==================== */
@media screen and (max-width: 992px) {
	/* ... */
	.courses__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 768px) {
	/* ... */
	.section {
		padding: 4rem 0;
	}

	.section__title {
		font-size: 2rem;
	}

	.section__subtitle {
		font-size: 1rem;
	}
}

@media screen and (max-width: 576px) {
	.courses__grid {
		grid-template-columns: 1fr;
	}

	.course-card__description {
		min-height: auto; /* Remove min-height on mobile */
	}
}

/* ... (предыдущие стили) ... */

/* ==================== PROCESS SECTION ==================== */
.process {
	background-color: var(--white-color);
}

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

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

.timeline__item {
	padding: 1rem 3rem;
	position: relative;
	width: 50%;
}

/* The content box */
.timeline__content {
	padding: 1.5rem;
	background-color: var(--white-color);
	border: 1px solid var(--light-color);
	position: relative;
	border-radius: var(--border-radius);
	box-shadow: 0 4px 20px rgba(65, 90, 119, 0.05);
}

/* Alternating items */
.timeline__item:nth-child(odd) {
	left: 0;
}

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

/* Step number circle */
.timeline__step {
	position: absolute;
	width: 50px;
	height: 50px;
	background-color: var(--dark-color);
	color: var(--white-color);
	top: 32px;
	border-radius: 50%;
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: 600;
	font-family: var(--font-family-headings);
	border: 4px solid var(--white-color);
}

.timeline__item:nth-child(odd) .timeline__step {
	right: -25px;
}

.timeline__item:nth-child(even) .timeline__step {
	left: -25px;
}

.timeline__title {
	font-family: var(--font-family-headings);
	font-size: 1.2rem;
	color: var(--dark-color);
	margin-bottom: 0.5rem;
}

.timeline__description {
	font-size: 0.95rem;
}

/* ==================== RESPONSIVE DESIGN (дополнения для таймлайна) ==================== */
@media screen and (max-width: 768px) {
	.process__timeline::after {
		left: 25px;
	}

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

	.timeline__item:nth-child(even) {
		left: 0%;
	}

	.timeline__step {
		left: 0;
	}

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

/* ... (предыдущие стили) ... */

/* ==================== MENTORS SECTION ==================== */
.mentors {
	background-color: var(--light-color); /* To alternate background colors */
}

.mentors__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 3rem;
}

.mentor-card {
	background-color: var(--white-color);
	border-radius: var(--border-radius);
	padding: 2.5rem 1.5rem;
	text-align: center;
	box-shadow: 0 4px 20px rgba(65, 90, 119, 0.05);
	transition: transform var(--transition), box-shadow var(--transition);
}

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

.mentor-card__image-wrapper {
	width: 120px;
	height: 120px;
	margin: 0 auto 1.5rem auto;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid var(--white-color);
	box-shadow: 0 0 0 4px var(--primary-color);
}

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

.mentor-card__name {
	font-family: var(--font-family-headings);
	font-size: 1.25rem;
	color: var(--dark-color);
	margin-bottom: 0.25rem;
}

.mentor-card__title {
	color: var(--medium-color);
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.mentor-card__socials {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
}

.mentor-card__socials a {
	color: var(--medium-color);
	transition: color var(--transition), transform var(--transition);
}

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

/* ==================== RESPONSIVE DESIGN (дополнения для наставников) ==================== */

@media screen and (max-width: 992px) {
	.mentors__grid {
		grid-template-columns: 1fr;
		max-width: 400px;
		margin-left: auto;
		margin-right: auto;
	}
}

@media screen and (max-width: 768px) {
	.mentors__grid {
		grid-template-columns: 1fr;
	}
}

/* ... (предыдущие стили) ... */

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

.reviews__container {
	position: relative;
	max-width: 800px;
	margin: 3rem auto 0;
	padding: 0 2.5rem; /* Space for navigation buttons */
}

.review-card {
	background-color: var(--light-color);
	padding: 2rem;
	border-radius: var(--border-radius);
	text-align: center;
}

.review-card__text {
	font-size: 1.1rem;
	line-height: 1.7;
	font-style: italic;
	color: var(--dark-color);
	margin-bottom: 2rem;
}

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

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

.review-card__author-info {
	text-align: left;
}

.review-card__author-name {
	font-family: var(--font-family-headings);
	color: var(--dark-color);
	margin: 0;
}

.review-card__author-course {
	font-size: 0.9rem;
	color: var(--medium-color);
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
	color: var(--primary-color);
	width: 44px !important;
	height: 44px !important;
	background-color: var(--white-color);
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: background-color var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
	background-color: var(--light-color);
}

.swiper-button-next::after,
.swiper-button-prev::after {
	font-size: 1.2rem !important;
	font-weight: bold;
}

/* ==================== RESPONSIVE DESIGN (дополнения для отзывов) ==================== */
@media screen and (max-width: 768px) {
	.reviews__container {
		padding: 0;
	}

	.swiper-button-next,
	.swiper-button-prev {
		display: none; /* Hide navigation on mobile, rely on swipe */
	}

	.review-card__text {
		font-size: 1rem;
	}
}

/* ==================== CONTACT SECTION ==================== */
.contact {
	background-color: var(--light-color);
}

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

.contact__details {
	list-style: none;
	padding: 0;
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact__details li {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 1.05rem;
}

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

.contact__form {
	background-color: var(--white-color);
	padding: 2.5rem;
	border-radius: var(--border-radius);
	box-shadow: 0 10px 30px rgba(65, 90, 119, 0.1);
}

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

.form__input {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid var(--light-color);
	border-radius: var(--border-radius);
	font-size: 1rem;
	font-family: var(--font-family-body);
	outline: none;
	transition: border-color var(--transition);
}

.form__input:focus {
	border-color: var(--primary-color);
}

.form__label {
	position: absolute;
	top: 50%;
	left: 1rem;
	transform: translateY(-50%);
	background-color: var(--white-color);
	padding: 0 0.25rem;
	color: var(--medium-color);
	transition: all 0.2s ease-in-out;
	pointer-events: none;
}

/* Floating label effect */
.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
	top: 0;
	font-size: 0.8rem;
	color: var(--primary-color);
}

.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.form__checkbox-input {
	margin-top: 4px;
	flex-shrink: 0;
}

.form__checkbox-label {
	font-size: 0.85rem;
	line-height: 1.5;
}

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

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

.form__message {
	padding: 1rem;
	border-radius: var(--border-radius);
	text-align: center;
	margin-top: 1rem;
	display: none; /* Hidden by default */
}

.form__message--success {
	background-color: #d1e7dd;
	color: #0f5132;
}
.form__message--error {
	background-color: #f8d7da;
	color: #842029;
}

/* ==================== RESPONSIVE DESIGN (дополнения для контактов) ==================== */
@media screen and (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	.contact__info {
		text-align: center;
	}
	.contact__details {
		align-items: center;
	}
}

/* ... (предыдущие стили) ... */

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--dark-color);
	color: var(--light-color);
	padding: 1.5rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	z-index: 200;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(120%);
	transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.cookie-popup__text {
	font-size: 0.9rem;
}

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

.cookie-popup__button {
	flex-shrink: 0;
	padding: 0.6rem 1.2rem;
}

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

/* ... (предыдущие стили) ... */

/* ==================== POLICY & STATIC PAGES ==================== */
.pages {
	padding: 4rem 0;
	background-color: var(--white-color);
}

.pages .container {
	max-width: 800px; /* Optimal width for reading text */
}

.pages h1,
.pages h2 {
	font-family: var(--font-family-headings);
	color: var(--dark-color);
	margin-bottom: 1rem;
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--light-color);
}

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

.pages p {
	font-size: 1.05rem;
	line-height: 1.8;
	margin-bottom: 1.5rem;
}

.pages ul {
	list-style-position: inside;
	margin-bottom: 1.5rem;
}

.pages li {
	margin-bottom: 0.75rem;
	line-height: 1.8;
}

.pages a {
	color: var(--primary-color);
	font-weight: 600;
	text-decoration: none;
	transition: text-decoration var(--transition);
}

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

.pages strong {
	color: var(--dark-color);
	font-weight: 600;
}
