/* Глобальные переменные и настройки */
:root {
	--background-color: #0a0a0a;
	--text-color: #e0e0e0;
	--primary-color: #00a3ff;
	--secondary-color: #1a1a1a;
	--text-muted: #888888;

	--font-main: 'Roboto', sans-serif;
	--font-accent: 'JetBrains Mono', monospace;

	--container-width: 1200px;
	--container-padding: 15px;
	--header-height: 70px;
}

/* Сброс стилей и базовые настройки */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--background-color);
	color: var(--text-color);
	font-family: var(--font-main);
	font-size: 16px;
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.main {
	flex-grow: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--text-color);
	font-family: var(--font-main);
	line-height: 1.2;
	margin-bottom: 1rem;
}

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

a:hover {
	color: #ffffff;
}

ul {
	list-style: none;
}

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

/* Утилитарные классы */
.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

/* Логотип */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-accent);
	font-weight: 700;
	font-size: 24px;
	color: var(--text-color);
}

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

/* Хедер */
.header {
	background-color: rgba(10, 10, 10, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--secondary-color);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
}

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

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

.header__nav-link {
	color: var(--text-muted);
	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(--primary-color);
	transition: width 0.3s ease;
}

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

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

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

/* Футер */
.footer {
	background-color: var(--secondary-color);
	padding: 60px 0;
	border-top: 1px solid #2a2a2a;
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
}

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

.footer__copyright {
	color: var(--text-muted);
	font-size: 14px;
}

.footer__title {
	font-size: 18px;
	margin-bottom: 20px;
	color: #ffffff;
}

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

.footer__link {
	color: var(--text-muted);
	font-size: 15px;
}
.footer__link:hover {
	color: var(--primary-color);
}

.footer__list--contacts li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text-muted);
}

.footer__icon {
	width: 18px;
	height: 18px;
	color: var(--primary-color);
	flex-shrink: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
	.header__nav {
		display: none;
		position: absolute;
		top: var(--header-height);
		left: 0;
		width: 100%;
		background-color: var(--background-color);
		border-bottom: 1px solid var(--secondary-color);
	}

	.header__nav--active {
		display: block;
	}

	.header__nav-list {
		flex-direction: column;
		padding: 20px;
		align-items: center;
	}

	.header__burger {
		display: block;
	}

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

	.footer__column--main {
		grid-column: 1 / -1;
		align-items: center;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__list--contacts li {
		justify-content: center;
	}
}

/* --- Hero Section --- */
.hero {
	padding-top: var(--header-height);
	display: flex;
	align-items: center;
	min-height: 100vh; /* Занимает всю высоту экрана */
	background-color: var(--background-color);
}

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

.hero__content {
	max-width: 550px;
}

.hero__title {
	font-size: 2.5rem;
	font-family: var(--font-accent);
	margin-bottom: 20px;
	line-height: 1.3;
	min-height: 105px; /* Чтобы избежать "прыжка" контента при смене текста */
}

.hero__title--dynamic {
	color: var(--primary-color);
}

/* Эффект курсора для пишущей машинки */
.hero__title--dynamic::after {
	content: '_';
	animation: blink 0.7s infinite;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

.hero__description {
	font-size: 18px;
	color: var(--text-muted);
	margin-bottom: 30px;
}

/* Стили для кнопок */
.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: #ffffff;
	padding: 14px 28px;
	border-radius: 8px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: background-color 0.3s ease, transform 0.3s ease;
	border: 2px solid var(--primary-color);
}

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

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

.hero__image {
	max-width: 100%;
	border-radius: 12px;
	opacity: 0.7;
}

/* Адаптивность для Hero */
@media (max-width: 992px) {
	.hero__title {
		font-size: 2rem;
		min-height: 115px;
	}
}

@media (max-width: 768px) {
	.hero {
		min-height: auto;
		padding: calc(var(--header-height) + 40px) 0 60px;
		text-align: center;
	}
	.hero__container {
		grid-template-columns: 1fr;
		gap: 50px;
	}

	.hero__visual {
		order: -1; /* Изображение будет сверху на мобильных */
	}

	.hero__title {
		font-size: 1.5rem;
		min-height: 63px;
	}
}

/* --- Courses Section --- */
.courses {
	padding: 80px 0;
	background-color: #0f0f0f; /* Немного светлее основного фона */
}

.section-title {
	font-size: 42px;
	font-family: var(--font-accent);
	text-align: center;
	margin-bottom: 50px;
}

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

.courses__card {
	background-color: var(--secondary-color);
	border: 1px solid #2a2a2a;
	border-radius: 12px;
	padding: 30px;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.courses__card-icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 163, 255, 0.1);
	border-radius: 8px;
	margin-bottom: 20px;
}

.courses__card-icon i {
	width: 28px;
	height: 28px;
	color: var(--primary-color);
}

.courses__card-title {
	font-size: 22px;
	margin-bottom: 10px;
}

.courses__card-description {
	color: var(--text-muted);
	font-size: 15px;
	margin-bottom: 20px;
	flex-grow: 1; /* Чтобы карточки были одной высоты */
}

.courses__card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	color: var(--text-color);
}

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

.courses__card-link i {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.courses__card-link:hover i {
	transform: translateX(4px);
}

/* Адаптивность для Courses */
@media (max-width: 992px) {
	.courses__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.section-title {
		font-size: 36px;
	}
}

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

/* --- Process Section --- */
.process {
	padding: 80px 0;
	background-color: var(--background-color);
}

.process__steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	position: relative;
}

/* Линия, соединяющая блоки */
.process__steps::before {
	content: '';
	position: absolute;
	top: 40px; /* Позиционируем по центру круга с цифрой */
	left: 15%;
	right: 15%;
	height: 2px;
	background: linear-gradient(
		to right,
		var(--primary-color),
		var(--text-muted)
	);
	z-index: 0;
}

.process__step {
	background-color: var(--secondary-color);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid #2a2a2a;
	position: relative;
	z-index: 1;
}

.process__step-number {
	width: 80px;
	height: 80px;
	background-color: var(--background-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-accent);
	font-size: 28px;
	font-weight: 700;
	color: var(--primary-color);
	margin: -70px auto 20px auto; /* Выносим кружок наверх */
	border: 4px solid var(--secondary-color);
}

.process__step-title {
	font-size: 20px;
	text-align: center;
	margin-bottom: 15px;
}

.process__step-description {
	color: var(--text-muted);
	font-size: 15px;
	text-align: center;
}

/* Адаптивность для Process */
@media (max-width: 992px) {
	.process__steps {
		grid-template-columns: repeat(2, 1fr);
		gap: 60px 30px;
	}

	.process__steps::before {
		display: none; /* Скрываем горизонтальную линию на планшетах */
	}
}

@media (max-width: 768px) {
	.process__step-number {
		width: 70px;
		height: 70px;
		font-size: 24px;
		margin-top: -65px;
	}
}

@media (max-width: 576px) {
	.process__steps {
		grid-template-columns: 1fr;
		gap: 50px;
	}

	/* Рисуем вертикальную линию на мобильных */
	.process__steps::before {
		display: block;
		top: 40px;
		bottom: 40px;
		left: 50%;
		transform: translateX(-50%);
		right: auto;
		width: 2px;
		height: auto;
		background: linear-gradient(
			to bottom,
			var(--primary-color),
			var(--text-muted)
		);
	}
}

/* --- About Section --- */
.about {
	padding: 80px 0;
	background-color: #0f0f0f;
}

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

.about__title {
	text-align: left;
	margin-bottom: 20px;
}

.about__description {
	font-size: 17px;
	color: var(--text-muted);
	margin-bottom: 40px;
}

.about__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.about__stat-item {
	display: flex;
	flex-direction: column;
}

.about__stat-number {
	font-size: 48px;
	font-family: var(--font-accent);
	color: var(--primary-color);
	line-height: 1.1;
}

.about__stat-label {
	font-size: 15px;
	color: var(--text-muted);
}

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

.about__image {
	border-radius: 12px;
	width: 100%;
	height: auto;
}

/* Адаптивность для About */
@media (max-width: 992px) {
	.about__container {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.about__title {
		text-align: center;
	}

	.about__content {
		text-align: center;
	}

	.about__stats {
		justify-content: center;
	}
}

@media (max-width: 576px) {
	.about__stats {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.about__stat-number {
		font-size: 42px;
	}
}

/* --- Blog Section --- */
.blog {
	padding: 80px 0;
	background-color: var(--background-color);
}

.blog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.blog__post {
	background-color: var(--secondary-color);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #2a2a2a;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog__post:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 163, 255, 0.1);
}

.blog__post-link {
	display: block;
	color: var(--text-color);
}

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

.blog__post-image-wrapper {
	overflow: hidden;
}

.blog__post-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.blog__post:hover .blog__post-image {
	transform: scale(1.05);
}

.blog__post-content {
	padding: 25px;
}

.blog__post-category {
	display: inline-block;
	background-color: rgba(0, 163, 255, 0.1);
	color: var(--primary-color);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 15px;
}

.blog__post-title {
	font-size: 20px;
	line-height: 1.4;
	margin-bottom: 15px;
	/* Ограничение текста в 3 строки */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog__post-link:hover .blog__post-title {
	color: var(--primary-color);
}

.blog__post-date {
	font-size: 14px;
	color: var(--text-muted);
}

/* Адаптивность для Blog */
@media (max-width: 992px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* --- Contact Section --- */
.contact {
	padding: 80px 0;
	background-color: #0f0f0f;
}

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

.contact__title {
	text-align: left;
}

.contact__description {
	font-size: 17px;
	color: var(--text-muted);
}

.contact__form-wrapper {
	background-color: var(--secondary-color);
	padding: 40px;
	border-radius: 12px;
	border: 1px solid #2a2a2a;
}

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

.contact__label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--text-muted);
}

.contact__input {
	width: 100%;
	padding: 12px 16px;
	background-color: var(--background-color);
	border: 1px solid #333;
	border-radius: 8px;
	color: var(--text-color);
	font-size: 16px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact__input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(0, 163, 255, 0.2);
}

.contact__form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 25px;
}

.contact__checkbox {
	margin-top: 5px;
	flex-shrink: 0;
}

.contact__checkbox-label {
	font-size: 14px;
	color: var(--text-muted);
}

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

.contact__button {
	width: 100%;
	padding: 16px;
	font-size: 16px;
}

.contact__success-message {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px;
	background-color: rgba(0, 163, 255, 0.1);
	border: 1px solid var(--primary-color);
	border-radius: 8px;
	color: var(--text-color);
	text-align: center;
}

.contact__success-message i {
	color: var(--primary-color);
}

/* Адаптивность для Contact */
@media (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
	}

	.contact__info {
		text-align: center;
	}

	.contact__title {
		text-align: center;
	}
}

/* --- Cookie Pop-up --- */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Изначально скрыт за пределами экрана */
	left: 0;
	width: 100%;
	background-color: var(--secondary-color);
	border-top: 1px solid #2a2a2a;
	padding: 20px;
	z-index: 1100;
	transition: bottom 0.5s ease-in-out;
}

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

.cookie-popup__content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: var(--container-width);
	margin: 0 auto;
	gap: 20px;
}

.cookie-popup__text {
	color: var(--text-muted);
	font-size: 15px;
}

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

.cookie-popup__button {
	background-color: var(--primary-color);
	color: #ffffff;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 500;
	white-space: nowrap; /* Чтобы текст не переносился */
	transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
	background-color: #008ad6;
}

/* Адаптивность для Cookie Pop-up */
@media (max-width: 768px) {
	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
	}
}

/* --- Policy & Text Pages Styles --- */
.pages {
	padding-top: calc(
		var(--header-height) + 60px
	); /* Отступ от фиксированного хедера */
	padding-bottom: 80px;
}

.pages .container {
	max-width: 800px; /* Ограничиваем ширину для лучшей читабельности */
}

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

.pages h2 {
	font-size: 1.5rem;
	margin-top: 40px;
	margin-bottom: 20px;
}

.pages p {
	font-size: 17px;
	line-height: 1.7;
	color: var(--text-muted);
	margin-bottom: 20px;
}

.pages a {
	text-decoration: underline;
}

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

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

.pages li {
	font-size: 17px;
	color: var(--text-muted);
	margin-bottom: 10px;
}

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