/* Goggle Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
	--bg-main: #0d1b2a;
	--bg-secondary: #1b263b;
	--text-primary: #e0e1dd;
	--text-secondary: #778da9;
	--accent-primary: #00f5d4;
	--accent-hover: #97f9ee;
	--font-family: 'Poppins', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

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

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

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

a:hover {
	color: var(--accent-primary);
}

ul {
	list-style: none;
}

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

/* Logo */
.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
	font-size: 1.5rem;
	color: #ffffff;
}
.logo__icon {
	width: 32px;
	height: 32px;
}

/* Header */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	background-color: rgba(13, 27, 42, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--bg-secondary);
	padding: 15px 0;
}

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

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

.header__nav-link {
	font-weight: 500;
	position: relative;
	padding: 5px 0;
}

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

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

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

/* Footer */
.footer {
	background-color: var(--bg-secondary);
	padding: 60px 0;
	border-top: 1px solid var(--text-secondary);
}

.footer__container {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 40px;
}

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

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

.footer__title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 20px;
	color: #ffffff;
}

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

.footer__link {
	color: var(--text-secondary);
}
.footer__link:hover {
	color: var(--accent-primary);
	text-decoration: underline;
}

.footer__list--contacts li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text-secondary);
}
.footer__list--contacts i {
	color: var(--accent-primary);
	width: 20px;
	height: 20px;
}

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

@media (max-width: 768px) {
	.header__nav {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: var(--bg-main);
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.header__nav.is-active {
		display: flex;
	}
	.header__nav-list {
		flex-direction: column;
		align-items: center;
		gap: 40px;
	}
	.header__nav-link {
		font-size: 1.5rem;
	}
	.header__burger {
		display: block;
		z-index: 101; /* Поверх мобильного меню */
	}

	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__column--about {
		align-items: center;
	}
	.footer__list--contacts li {
		justify-content: center;
	}
}

/*
=============== 
Hero Section
===============
*/
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: 80px; /* Offset for fixed header */
}

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

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 20px;
	color: #ffffff;
	height: 87px;
}

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

/* ...в конец файла style.css... */
.hero__title.typing-done::after {
	content: '';
	animation: none;
}

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

.hero__description {
	font-size: 1.1rem;
	color: var(--text-secondary);
	max-width: 600px;
	margin: 0 auto 30px;
}

.button {
	display: inline-block;
	background-color: var(--accent-primary);
	color: var(--bg-main);
	padding: 14px 32px;
	border-radius: 8px;
	font-weight: 600;
	text-align: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
	background-color: var(--accent-hover);
	color: var(--bg-main);
	transform: translateY(-3px);
}

/* Tablet and Desktop */
@media (min-width: 768px) {
	.hero__container {
		grid-template-columns: repeat(2, 1fr);
		gap: 60px;
	}
	.hero__content {
		text-align: left;
	}
	.hero__description {
		margin: 0 0 30px 0;
	}
	.hero__image-wrapper {
		display: block;
	}
	.hero__image {
		width: 100%;
		height: auto;
		border-radius: 12px;
		object-fit: cover;
	}
	.hero__title {
		font-size: 2.5rem;
		height: 144px;
	}
}

/*
=============== 
Courses Section
===============
*/
.courses {
	padding: 80px 0;
	background-color: var(--bg-secondary);
}

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

.section-header__title {
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 15px;
	color: #ffffff;
}

.section-header__subtitle {
	font-size: 1.1rem;
	color: var(--text-secondary);
	max-width: 600px;
	margin: 0 auto;
}

.courses__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.courses__card {
	background-color: var(--bg-main);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid transparent;
	transition: transform 0.3s ease, border-color 0.3s ease;

	/* Styles for scroll animation */
	opacity: 0;
	transform: translateY(20px);
}

.courses__card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.courses__card:hover {
	transform: translateY(-5px);
	border-color: var(--accent-primary);
}

.courses__card-icon {
	margin-bottom: 20px;
	color: var(--accent-primary);
}

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

.courses__card-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 15px;
	color: #ffffff;
}

.courses__card-description {
	color: var(--text-secondary);
	margin-bottom: 20px;
}

.courses__card-tech {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--text-primary);
	font-size: 0.95rem;
}

.courses__card-tech li {
	position: relative;
	padding-left: 20px;
}

.courses__card-tech li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--accent-primary);
	font-weight: bold;
}

/* Responsive Grid for Courses */
@media (min-width: 576px) {
	.courses__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.courses__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/*
=============== 
Mentors Section
===============
*/
.mentors {
	padding: 80px 0;
	background-color: var(--bg-secondary);
}

.mentors__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

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

	/* Styles for scroll animation */
	opacity: 0;
	transform: translateY(30px);
}

.mentors__card.is-visible {
	opacity: 1;
	transform: translateY(0);
	transition-property: opacity, transform;
	transition-duration: 0.6s;
	transition-timing-function: ease;
}

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

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

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

.mentors__name {
	font-size: 1.5rem;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 5px;
}

.mentors__role {
	font-size: 1rem;
	color: var(--accent-primary);
	margin-bottom: 15px;
}

.mentors__bio {
	font-size: 0.95rem;
	color: var(--text-secondary);
	margin-bottom: 20px;
}

.mentors__socials {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.mentors__socials a {
	color: var(--text-secondary);
}

.mentors__socials a:hover {
	color: var(--accent-hover);
}

/* Responsive Grid for Mentors */
@media (min-width: 576px) {
	.mentors__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/*
=============== 
Reviews Section
===============
*/
.reviews {
	padding: 80px 0;
}

.reviews__slider {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 15px; /* Add padding for navigation arrows */
}

.reviews__card {
	background-color: var(--bg-secondary);
	border-radius: 12px;
	padding: 40px;
	text-align: center;
	user-select: none; /* Prevent text selection on drag */
}

.reviews__photo {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 20px;
	border: 2px solid var(--accent-primary);
}

.reviews__text {
	font-size: 1.1rem;
	font-style: italic;
	color: var(--text-primary);
	line-height: 1.7;
	margin-bottom: 25px;
}

.reviews__author {
	font-size: 1.2rem;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 5px;
}

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

/* Swiper Styles Override */
.swiper-pagination-bullet {
	background-color: var(--text-secondary);
}

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

.swiper-button-next,
.swiper-button-prev {
	color: var(--accent-primary);
}

@media (max-width: 768px) {
	.swiper-button-next,
	.swiper-button-prev {
		display: none;
	}
}

/*
=============== 
Contact Section
===============
*/
.contact {
	padding: 80px 0;
	background-color: var(--bg-secondary);
}

.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 60px;
}

.contact__info .section-header {
	text-align: left;
	margin-bottom: 0;
}

.contact__info .section-header__subtitle {
	margin-left: 0;
}

.form-group {
	margin-bottom: 20px;
}

.form-group__label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

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

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

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

.form-group__checkbox {
	appearance: none;
	width: 20px;
	height: 20px;
	background-color: var(--bg-main);
	border: 1px solid var(--text-secondary);
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
}

.form-group__checkbox:checked {
	background-color: var(--accent-primary);
	border-color: var(--accent-primary);
}

.form-group__checkbox:checked::after {
	content: '✓';
	position: absolute;
	color: var(--bg-main);
	font-weight: bold;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 14px;
}

.form-group__checkbox-label {
	font-size: 0.9rem;
	color: var(--text-secondary);
}

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

.contact__button {
	width: 100%;
	border: none;
	cursor: pointer;
}

.form-success {
	display: none; /* Initially hidden */
	background-color: var(--bg-main);
	padding: 40px;
	border-radius: 8px;
	text-align: center;
	border: 1px solid var(--accent-primary);
}

.form-success__icon {
	color: var(--accent-primary);
	margin-bottom: 15px;
}
.form-success__icon i {
	width: 50px;
	height: 50px;
}

.form-success__title {
	font-size: 1.8rem;
	color: #ffffff;
	margin-bottom: 10px;
}

.form-success__text {
	color: var(--text-secondary);
}

@media (min-width: 992px) {
	.contact__wrapper {
		grid-template-columns: 1fr 1.2fr;
		align-items: center;
	}
}

/*
=============== 
Cookie Pop-up
===============
*/
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--bg-secondary);
	padding: 20px 0;
	z-index: 200;
	border-top: 1px solid var(--text-secondary);
	transform: translateY(100%);
	transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	text-align: center;
}

.cookie-popup__text {
	color: var(--text-secondary);
}

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

.cookie-popup__button {
	padding: 8px 24px;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.cookie-popup__container {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

/*
=========================
Styling for Static Pages
=========================
*/
.pages {
	padding: 120px 0 80px; /* Extra top padding to clear the fixed header */
}

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

.pages h1 {
	font-size: 1.5rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 30px;
	border-bottom: 1px solid var(--bg-secondary);
	padding-bottom: 20px;
}

.pages h2 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #ffffff;
	margin-top: 40px;
	margin-bottom: 20px;
}

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

.pages ul {
	list-style-type: disc;
	padding-left: 25px;
	color: var(--text-secondary);
	margin-bottom: 20px;
}

.pages li {
	font-size: 1.1rem;
	line-height: 1.8;
	margin-bottom: 10px;
}

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

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

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