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

/* ===== CSS VARIABLES ===== */
:root {
	--header-height: 3.5rem;

	/* Colors */
	--primary-color: #0d1b2a;
	--secondary-color: #1b263b;
	--accent-color: #00b4d8;
	--accent-color-hover: #00a2c2;
	--text-color: #e0e1dd;
	--text-color-secondary: #a9b4c2;

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

	--fs-h1: 2.5rem;
	--fs-h2: 2rem;
	--fs-h3: 1.5rem;
	--fs-body: 1rem;
	--fs-small: 0.875rem;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	background-color: var(--primary-color);
	color: var(--text-color);
	line-height: 1.6;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-headings);
	color: var(--text-color);
	font-weight: 700;
}

ul {
	list-style: none;
}

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

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

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

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

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

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

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

.header__logo svg {
	transition: transform 0.4s ease;
}

.header__logo:hover svg {
	transform: rotate(360deg);
}

.header__burger,
.header__nav-close {
	display: none; /* Hidden on desktop */
	border: none;
	background: none;
	color: var(--text-color);
	cursor: pointer;
}

/* Mobile Menu Styles */
@media screen and (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		height: 100vh;
		background-color: var(--secondary-color);
		box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
		padding: 4rem 2rem;
		transition: right 0.4s ease-in-out;
	}

	.header__nav--active {
		right: 0;
	}

	.header__nav-list {
		display: flex;
		flex-direction: column;
		gap: 2rem;
	}

	.header__nav-link {
		font-size: 1.2rem;
		color: var(--text-color);
	}

	.header__nav-link--button {
		background-color: var(--accent-color);
		padding: 0.5rem 1rem;
		border-radius: 5px;
	}
	.header__nav-link--button:hover {
		background-color: var(--accent-color-hover);
		color: var(--text-color);
	}

	.header__nav-close {
		display: block;
		position: absolute;
		top: 1.5rem;
		right: 1.5rem;
	}

	.header__burger {
		display: block;
	}
}

/* Desktop Navigation Styles */
@media screen and (min-width: 769px) {
	.header__nav-list {
		display: flex;
		align-items: center;
		gap: 2rem;
	}
	.header__nav-link {
		color: var(--text-color-secondary);
		font-weight: 500;
		position: relative;
		padding: 0.25rem 0;
	}
	.header__nav-link::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		width: 0;
		height: 2px;
		background-color: var(--accent-color);
		transition: width 0.3s;
	}
	.header__nav-link:hover::after {
		width: 100%;
	}
	.header__nav-link:hover {
		color: var(--text-color);
	}

	.header__nav-link--button {
		background-color: var(--accent-color);
		color: var(--primary-color);
		padding: 0.5rem 1.25rem;
		border-radius: 20px;
		border: 1px solid var(--accent-color);
	}
	.header__nav-link--button:hover {
		background-color: transparent;
		color: var(--accent-color);
	}
	.header__nav-link--button::after {
		display: none;
	}
}

/* ===== FOOTER ===== */
.footer {
	background-color: var(--secondary-color);
	padding: 4rem 0 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__container {
	display: grid;
	gap: 2.5rem;
}

.footer__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-headings);
	font-size: 1.25rem;
	color: var(--text-color);
	margin-bottom: 1rem;
}

.footer__description {
	color: var(--text-color-secondary);
	font-size: var(--fs-small);
	max-width: 300px;
}

.footer__title {
	font-size: 1.2rem;
	margin-bottom: 1rem;
	color: var(--text-color);
}

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

.footer__link {
	font-size: var(--fs-small);
}

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

.footer__icon {
	flex-shrink: 0;
	margin-top: 4px;
	color: var(--accent-color);
}

.footer__text {
	font-size: var(--fs-small);
	color: var(--text-color-secondary);
}

.footer__bottom {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	font-size: var(--fs-small);
	color: var(--text-color-secondary);
}

/* Footer Desktop Layout */
@media screen and (min-width: 768px) {
	.footer__container {
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
	}
}

/* ===== BUTTONS ===== */
.button {
	display: inline-block;
	padding: 0.9rem 2.2rem;
	border-radius: 50px;
	font-family: var(--font-headings);
	font-size: var(--fs-body);
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

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

.button--primary:hover {
	background-color: transparent;
	border-color: var(--accent-color);
	color: var(--accent-color);
	transform: translateY(-3px);
}

.button--secondary {
	background-color: transparent;
	color: var(--text-color);
	border-color: var(--secondary-color);
}

.button--secondary:hover {
	background-color: var(--secondary-color);
	color: var(--text-color);
	transform: translateY(-3px);
}

/* ===== HERO SECTION ===== */
.hero {
	position: relative;
	/* height: 100vh; */
	min-height: 700px;
	display: flex;
	align-items: center;
	padding-top: calc(var(--header-height) + 2rem);
	overflow: hidden; /* Важно для анимации */
}

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

.particle {
	position: absolute;
	background-color: var(--accent-color);
	border-radius: 50%;
	opacity: 0;
	animation: particle-animation 20s infinite ease-in-out;
}

@keyframes particle-animation {
	0%,
	100% {
		opacity: 0;
		transform: scale(0.5) translate(0, 0);
	}
	50% {
		opacity: 0.2;
	}
	80% {
		opacity: 0.1;
	}
}

.hero__container {
	display: grid;
	align-items: center;
	gap: 3rem;
}

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: calc(var(--fs-h2) * 1.2);
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

.hero__title--highlight {
	color: var(--accent-color);
}

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

.hero__buttons {
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.hero__image-wrapper {
	display: flex;
	justify-content: center;
	position: relative;
}

.hero__image {
	width: 100%;
	height: auto;
	border-radius: 15px;
	background-color: var(--secondary-color);
	padding: 1rem;
	border: 1px solid var(--accent-color-hover);
}

/* Hero Desktop Layout */
@media screen and (min-width: 992px) {
	.hero {
		min-height: 800px;
	}
	.hero__container {
		grid-template-columns: 1fr 1fr;
		gap: 5rem;
	}
	.hero__content {
		text-align: left;
	}
	.hero__description {
		margin: 0 0 2.5rem;
	}
	.hero__buttons {
		justify-content: flex-start;
	}
}

/* ===== REUSABLE SECTION STYLES ===== */
.section__header {
	text-align: center;
	margin-bottom: 4rem;
}

.section__title {
	font-size: var(--fs-h2);
	margin-bottom: 1rem;
	position: relative;
	display: inline-block;
	padding-bottom: 0.5rem;
}

.section__title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background-color: var(--accent-color);
	border-radius: 2px;
}

.section__subtitle {
	max-width: 700px;
	margin: 0 auto;
	color: var(--text-color-secondary);
}

/* ===== FEATURES SECTION ===== */
.features {
	padding: 6rem 0;
	background-color: var(--secondary-color);
}

.features__grid {
	display: grid;
	gap: 2rem;
}

.features__card {
	background-color: var(--primary-color);
	padding: 2.5rem 2rem;
	border-radius: 15px;
	text-align: center;
	border: 1px solid transparent;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.features__card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 25px rgba(0, 180, 216, 0.2);
	border-color: var(--accent-color);
}

.features__card-icon {
	margin-bottom: 1.5rem;
}

.features__card-icon i {
	width: 48px;
	height: 48px;
	color: var(--accent-color);
}

.features__card-title {
	font-size: var(--fs-h3);
	margin-bottom: 1rem;
}

.features__card-description {
	color: var(--text-color-secondary);
	font-size: var(--fs-small);
}

/* Features Desktop Layout */
@media screen and (min-width: 768px) {
	.features__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ===== PROCESS SECTION ===== */
.process {
	padding: 6rem 0;
}

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

/* The vertical line */
.process__timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: var(--secondary-color);
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -1.5px;
	border-radius: 3px;
}

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

/* The circle on the timeline */
.process__item-step {
	position: absolute;
	width: 50px;
	height: 50px;
	right: -25px;
	top: 32px;
	background-color: var(--primary-color);
	border: 3px solid var(--accent-color);
	border-radius: 50%;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: var(--font-headings);
	font-weight: 700;
}

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

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

/* Adjusting the step circle for even items */
.process__item:nth-child(even) .process__item-step {
	left: -25px;
}

.process__item-content {
	padding: 2rem;
	background-color: var(--secondary-color);
	border-radius: 10px;
	position: relative;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.process__item-icon {
	margin-bottom: 1rem;
	color: var(--accent-color);
}
.process__item-icon i {
	width: 36px;
	height: 36px;
}

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

.process__item-description {
	font-size: var(--fs-small);
	color: var(--text-color-secondary);
}

/* Process Mobile Layout */
@media screen and (max-width: 768px) {
	.process__timeline::after {
		left: 30px;
	}

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

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

	.process__item:nth-child(even) {
		left: 0;
		padding-left: 60px;
	}

	.process__item-step {
		left: 5px;
	}
}

/* ===== Small Button Modifier ===== */
.button--small {
	padding: 0.6rem 1.5rem;
	font-size: var(--fs-small);
}

/* ===== COURSES SECTION ===== */
.courses {
	padding: 6rem 0;
	background-color: var(--secondary-color);
	position: relative;
}

.courses .container {
	position: relative; /* For swiper button positioning */
}

.courses__swiper {
	padding-bottom: 3.5rem; /* Space for pagination */
}

.courses__card {
	background-color: var(--primary-color);
	border-radius: 15px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.courses__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.courses__card-img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.courses__card-content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.courses__card-title {
	font-size: 1.3rem;
	margin-bottom: 0.75rem;
}

.courses__card-description {
	color: var(--text-color-secondary);
	font-size: var(--fs-small);
	flex-grow: 1;
	margin-bottom: 1.5rem;
}

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

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

.swiper-button-next,
.swiper-button-prev {
	color: var(--accent-color);
	width: 50px !important;
	height: 50px !important;
	background-color: rgba(13, 27, 42, 0.7);
	border-radius: 50% !important;
	backdrop-filter: blur(5px);
	transition: opacity 0.3s;
}

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

.swiper-button-next::after,
.swiper-button-prev::after {
	font-size: 1.5rem;
	font-weight: 900;
}

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

/* ===== REVIEWS SECTION ===== */
.reviews {
	padding: 6rem 0;
}

.reviews__swiper {
	max-width: 800px;
	margin: 0 auto;
	padding-bottom: 3.5rem; /* Space for pagination */
}

.reviews__card {
	background-color: var(--secondary-color);
	border-radius: 15px;
	padding: 2.5rem;
	text-align: center;
}

.reviews__avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 1.5rem;
	border: 3px solid var(--accent-color);
}

.reviews__text {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--text-color-secondary);
	margin-bottom: 2rem;
	font-style: italic;
	position: relative;
}

.reviews__text::before {
	content: '“';
	font-family: var(--font-headings);
	font-size: 4rem;
	color: var(--accent-color);
	position: absolute;
	top: -1rem;
	left: -1.5rem;
	opacity: 0.3;
}

.reviews__author {
	font-size: 1.2rem;
	color: var(--text-color);
	margin-bottom: 0.25rem;
}

.reviews__course {
	font-size: var(--fs-small);
	color: var(--accent-color);
}

/* ===== CONTACT SECTION ===== */
.contact {
	padding: 6rem 0;
}

.contact__grid {
	display: grid;
	gap: 4rem;
}

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

.section__header--left {
	text-align: left;
}

.section__header--left .section__title::after {
	left: 0;
	transform: translateX(0);
}

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

.contact__list li {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.contact__icon {
	color: var(--accent-color);
	flex-shrink: 0;
	margin-top: 5px;
}

.contact__list h4 {
	margin-bottom: 0.25rem;
	color: var(--text-color);
}

.contact__list a,
.contact__list span {
	color: var(--text-color-secondary);
}

.contact__form-wrapper {
	background-color: var(--secondary-color);
	padding: 2.5rem;
	border-radius: 15px;
	position: relative;
	overflow: hidden;
}

.contact__form-group {
	position: relative;
	margin-bottom: 1.75rem;
}

.contact__form-input {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 2px solid var(--primary-color);
	border-radius: 8px;
	background-color: var(--primary-color);
	color: var(--text-color);
	font-size: 1rem;
	outline: none;
	transition: border-color 0.3s;
}

.contact__form-label {
	position: absolute;
	top: 50%;
	left: 1rem;
	transform: translateY(-50%);
	background-color: var(--primary-color);
	padding: 0 0.25rem;
	color: var(--text-color-secondary);
	transition: all 0.3s;
	pointer-events: none;
}

.contact__form-input:focus + .contact__form-label,
.contact__form-input:not(:placeholder-shown) + .contact__form-label {
	top: 0;
	font-size: 0.8rem;
	color: var(--accent-color);
}

.contact__form-input:focus {
	border-color: var(--accent-color);
}

.contact__form-group--checkbox {
	margin-bottom: 2rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.contact__form-group--checkbox label {
	font-size: var(--fs-small);
	color: var(--text-color-secondary);
}

.contact__form-group--checkbox a {
	color: var(--accent-color);
	text-decoration: underline;
}
.contact__form-group--checkbox a:hover {
	text-decoration: none;
}
.contact__form-group--checkbox input[type='checkbox'] {
	accent-color: var(--accent-color);
}

.contact__form-button {
	width: 100%;
}

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

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

.contact__success-message i {
	color: var(--accent-color);
	width: 60px;
	height: 60px;
	margin-bottom: 1rem;
}

.contact__success-message h4 {
	font-size: var(--fs-h3);
	margin-bottom: 0.5rem;
}

.contact__success-message p {
	color: var(--text-color-secondary);
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Start hidden */
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 3rem);
	max-width: 900px;
	background-color: rgba(27, 38, 59, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 1.5rem;
	border-radius: 15px 15px 0 0;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.active {
	bottom: 0;
}

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

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

.cookie-popup__text a:hover {
	text-decoration: none;
}

@media screen and (max-width: 576px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
		border-radius: 15px;
		margin-bottom: 1rem;
	}
	.cookie-popup.active {
		bottom: 0;
	}
}

/* ===== GENERIC PAGES STYLES (privacy.html, terms.html etc.) ===== */
.pages {
	padding: calc(var(--header-height) + 4rem) 0 4rem;
}

.pages .container {
	max-width: 800px;
}

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

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

.pages p {
	margin-bottom: 1.5rem;
	line-height: 1.8;
	color: var(--text-color-secondary);
}

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

.pages li {
	margin-bottom: 0.75rem;
	color: var(--text-color-secondary);
}

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

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

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