/* Table of Contents
---
1. Global Styles & Variables
2. Generic & Reusable Classes (container, logo, etc.)
3. Header
4. Footer
---*/

/* 1. Global Styles & Variables */
:root {
	--bg-color: #0b132b;
	--primary-color: #1c2541;
	--secondary-color: #3a506b;
	--accent-color: #5bc0be;
	--text-color: #f0f0f0;
	--font-family-headings: 'Poppins', sans-serif;
	--font-family-body: 'Roboto', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-family-headings);
	font-weight: 600;
}

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

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

ul {
	list-style: none;
}

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

/* 2. Generic & Reusable Classes */
.container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-family-headings);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--text-color);
}

.logo__icon {
	width: 40px;
	height: 40px;
}

/* 3. Header */
.header {
	background-color: rgba(28, 37, 65, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--secondary-color);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
}

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

.nav__list {
	display: flex;
	gap: 2rem;
}

.nav__link {
	font-weight: 500;
	position: relative;
	padding-bottom: 5px;
}

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

.nav__link:hover::after,
.nav__link--active::after {
	width: 100%;
}

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

/* 4. Footer */
.footer {
	background-color: var(--primary-color);
	padding: 4rem 0 1rem 0;
	border-top: 1px solid var(--secondary-color);
}

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

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

.footer__description {
	margin-top: 1rem;
	color: #b0b0b0;
	font-size: 0.9rem;
	max-width: 250px;
}

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

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

.footer__link {
	color: #b0b0b0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

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

.footer__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.footer__address {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: #b0b0b0;
}

.footer__bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid var(--secondary-color);
	font-size: 0.85rem;
	color: #b0b0b0;
}

/* --- Media Queries (Mobile First) --- */

/* Tablet */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5rem;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.nav {
		position: fixed;
		top: 0;
		left: -100%;
		width: 80%;
		max-width: 300px;
		height: 100vh;
		background-color: var(--primary-color);
		padding: 6rem 2rem 2rem;
		transition: left 0.4s ease-in-out;
		z-index: 99;
	}

	.nav--open {
		left: 0;
		box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
	}

	.nav__list {
		flex-direction: column;
		gap: 1.5rem;
	}

	.nav__link {
		font-size: 1.2rem;
	}

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

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

	.footer__column {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.footer__list--contact {
		align-items: flex-start;
	}

	.footer__address {
		text-align: left;
	}
}

/* --- 5. Hero Section --- */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: calc(100vh - 80px); /* Высота экрана минус высота хедера */
	padding: 4rem 0;
	overflow: hidden;
}

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

.hero__container {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 2rem;
}

.hero__content {
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

.hero__title {
	font-size: 1.5rem;
	line-height: 1.2;
	margin-bottom: 1.5rem;
	font-weight: 700;
	background: linear-gradient(90deg, var(--text-color), var(--accent-color));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-fill-color: transparent;
}

.hero__description {
	font-size: 1.1rem;
	margin-bottom: 2.5rem;
	color: #c0c0c0;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hero__cta-button {
	display: inline-block;
	background-color: var(--accent-color);
	color: var(--bg-color);
	padding: 1rem 2.5rem;
	border-radius: 50px;
	font-weight: 700;
	font-family: var(--font-family-headings);
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__cta-button:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(91, 192, 190, 0.2);
	color: var(--bg-color);
}

.hero__visual {
	display: none; /* Скрываем плейсхолдер, так как у нас есть анимация */
}

/* --- Media Queries for Hero --- */
@media (min-width: 992px) {
	.hero {
		min-height: calc(100vh - 82px);
	}

	.hero__container {
		grid-template-columns: 1.2fr 1fr;
		gap: 4rem;
	}

	.hero__content {
		text-align: left;
		max-width: none;
		margin: 0;
	}

	.hero__title {
		font-size: 2.5rem;
	}

	.hero__description {
		margin-left: 0;
		margin-right: 0;
		max-width: 500px;
	}

	.hero__visual {
		display: block; /* Показываем плейсхолдер на больших экранах */
		position: relative;
	}

	.hero__image {
		border-radius: 20px;
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	}
}

/* --- 6. About Section --- */
.about {
	padding: 6rem 0;
	background-color: var(--primary-color);
}

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

/* Reusable section title styles */
.section-subtitle {
	display: block;
	color: var(--accent-color);
	font-family: var(--font-family-headings);
	font-weight: 600;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.section-title {
	font-size: 2.5rem;
	max-width: 700px;
	margin: 0 auto;
}

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

.about__card {
	background-color: var(--secondary-color);
	padding: 2.5rem 2rem;
	border-radius: 15px;
	border: 1px solid transparent;
	transition: transform 0.3s ease, border-color 0.3s ease;

	/* For JS animation */
	opacity: 0;
	transform: translateY(30px);
}

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

.about__card:hover {
	transform: translateY(-10px);
	border-color: var(--accent-color);
}

.about__card-icon {
	margin-bottom: 1.5rem;
	color: var(--accent-color);
}

.about__card-icon i {
	width: 48px;
	height: 48px;
}

.about__card-title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.about__card-description {
	color: #c0c0c0;
}

/* --- Media Queries for About --- */
@media (max-width: 992px) {
	.about__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.about {
		padding: 4rem 0;
	}

	.section-title {
		font-size: 2rem;
	}
}

/* --- 7. Features Section --- */
.features {
	padding: 6rem 0;
	background-color: var(--bg-color); /* Возвращаемся к основному фону */
}

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

.features__visual {
	/* For JS animation */
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.features__image {
	width: 100%;
	border-radius: 15px;
	object-fit: cover;
}

.features__content {
	/* For JS animation */
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
	transition-delay: 0.2s; /* небольшая задержка для текста */
}

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

.features__content .section-title,
.features__content .section-subtitle {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.features__description {
	margin-top: 1.5rem;
	margin-bottom: 2.5rem;
	color: #c0c0c0;
}

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

.features__item {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
}

.features__item-icon {
	flex-shrink: 0;
	color: var(--accent-color);
	width: 32px;
	height: 32px;
	margin-top: 5px;
}

.features__item-text h3 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.features__item-text p {
	color: #b0b0b0;
	font-size: 0.95rem;
}

/* --- Media Queries for Features --- */
@media (min-width: 992px) {
	.features__container {
		grid-template-columns: 1fr 1.1fr;
		gap: 5rem;
	}
}

/* --- 8. Benefits Section --- */
.benefits {
	padding: 6rem 0;
	background-color: var(--primary-color);
}

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

.benefits__visual {
	order: -1; /* Image appears first on mobile */
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
	transition-delay: 0.2s;
}

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

.benefits__image {
	width: 100%;
	border-radius: 15px;
	object-fit: cover;
}

.benefits__content {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.benefits__content .section-title,
.benefits__content .section-subtitle {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.benefits__description {
	margin-top: 1.5rem;
	margin-bottom: 2.5rem;
	color: #c0c0c0;
}

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

.benefits__item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	font-size: 1.05rem;
}

.benefits__item-icon {
	flex-shrink: 0;
	color: var(--accent-color);
	width: 24px;
	height: 24px;
	margin-top: 2px;
}

/* --- Media Queries for Benefits --- */
@media (min-width: 992px) {
	.benefits__container {
		grid-template-columns: 1.1fr 1fr;
		gap: 5rem;
	}
	.benefits__visual {
		order: 1; /* Image goes back to the right on desktop */
	}
}

/* --- 9. Courses Section --- */
.courses {
	padding: 6rem 0;
	background-color: var(--bg-color);
}

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

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

.course-card {
	background-color: var(--primary-color);
	border-radius: 15px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--secondary-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;

	/* For JS animation */
	opacity: 0;
	transform: translateY(30px);
}

.course-card--visible {
	opacity: 1;
	transform: translateY(0);
}

.course-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.course-card__image {
	width: 100%;
	aspect-ratio: 16 / 9;
}

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

.course-card__content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.course-card__tag {
	display: inline-block;
	background-color: var(--secondary-color);
	color: var(--accent-color);
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 1rem;
	align-self: flex-start;
}

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

.course-card__description {
	color: #c0c0c0;
	font-size: 0.95rem;
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.course-card__button {
	display: block;
	width: 100%;
	text-align: center;
	background-color: var(--accent-color);
	color: var(--bg-color);
	padding: 0.75rem 1rem;
	border-radius: 8px;
	font-weight: 600;
	font-family: var(--font-family-headings);
	transition: background-color 0.3s ease;
}

.course-card__button:hover {
	background-color: #72dbd9; /* Lighten accent color */
	color: var(--bg-color);
}

/* --- Media Queries for Courses --- */
@media (max-width: 992px) {
	.courses__grid {
		grid-template-columns: 1fr;
	}
}

/* --- 10. Contact Section --- */
.contact {
	padding: 6rem 0;
	background-color: var(--primary-color);
}

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

.contact__info .section-title,
.contact__info .section-subtitle {
	text-align: left;
	margin-left: 0;
}

.contact__description {
	margin-top: 1.5rem;
	margin-bottom: 2.5rem;
	color: #c0c0c0;
	max-width: 500px;
}

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

.contact__detail-item {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	font-size: 1.1rem;
	color: var(--text-color);
}

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

.contact__form-container {
	background-color: var(--secondary-color);
	padding: 3rem;
	border-radius: 15px;
}

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

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

.form-label {
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	color: #c0c0c0;
}

.form-input {
	background-color: var(--primary-color);
	border: 1px solid var(--secondary-color);
	color: var(--text-color);
	padding: 0.8rem 1rem;
	border-radius: 8px;
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.form-group--checkbox {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.form-checkbox {
	width: 1.25em;
	height: 1.25em;
}

.form-checkbox-label {
	font-size: 0.9rem;
	color: #b0b0b0;
}

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

.form-button {
	background-color: var(--accent-color);
	color: var(--bg-color);
	padding: 1rem;
	border: none;
	border-radius: 8px;
	font-size: 1.1rem;
	font-weight: 700;
	font-family: var(--font-family-headings);
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.form-button:hover {
	background-color: #72dbd9;
}

.form-success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
}

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

/* --- Media Queries for Contact --- */
@media (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1fr;
		gap: 5rem;
	}
}

/* --- 11. Cookie Pop-up --- */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--secondary-color);
	border-top: 1px solid var(--primary-color);
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
	padding: 1.5rem 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
}

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

.cookie-popup__text {
	color: #c0c0c0;
	text-align: center;
}

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

.cookie-popup__button {
	background-color: var(--accent-color);
	color: var(--bg-color);
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	flex-shrink: 0;
	transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
	background-color: #72dbd9;
}

/* --- 12. Policy Pages Styles --- */
.pages {
	padding: 4rem 0;
}

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

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

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

.pages p {
	margin-bottom: 1.5rem;
	line-height: 1.8;
	color: #c0c0c0;
}

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

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

.pages li {
	margin-bottom: 1rem;
	line-height: 1.8;
	color: #c0c0c0;
}

/* --- Media Queries for Cookie Popup --- */
@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		gap: 1rem;
		padding: 1.5rem;
	}
}
