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

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

	/* Colors */
	--primary-color: #00a9ff;
	--primary-color-alt: #008ddb;
	--background-color: #111827;
	--text-color: #f9fafb;
	--text-color-muted: #9ca3af;
	--container-color: #1f2937;

	/* Fonts */
	--body-font: 'Roboto', sans-serif;
	--title-font: 'Poppins', sans-serif;

	--h1-font-size: 2.5rem;
	--h2-font-size: 2rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--background-color);
	color: var(--text-color);
}

h1,
h2,
h3 {
	font-family: var(--title-font);
	font-weight: 700;
}

ul {
	list-style: none;
}

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

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

/* =========== REUSABLE CSS CLASSES =========== */
.container {
	max-width: 1120px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

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

.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(--title-font);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--text-color);
}

.logo__img {
	width: 32px;
	height: 32px;
}

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

@media screen and (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		right: -100%;
		width: 80%;
		height: 100vh;
		background-color: var(--container-color);
		padding: 2rem;
		transition: right 0.4s ease;
	}
}

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

.header__nav-link {
	color: var(--text-color);
	font-weight: 500;
	transition: color 0.3s;
}

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

.header__nav-link--button {
	background-color: var(--primary-color);
	padding: 0.75rem 1.5rem;
	border-radius: 5px;
	color: white;
	transition: background-color 0.3s;
}

.header__nav-link--button:hover {
	background-color: var(--primary-color-alt);
	color: white;
}

/* Show menu */
.show-menu {
	right: 0;
}

/* =========== FOOTER =========== */
.footer {
	background-color: var(--container-color);
	padding-top: 4rem;
}

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

.footer__description {
	color: var(--text-color-muted);
	font-size: var(--small-font-size);
	margin-top: 0.5rem;
	max-width: 300px;
}

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

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

.footer__list--contacts {
	gap: 1rem;
}

.footer__list--contacts li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.footer__icon {
	width: 20px;
	height: 20px;
	color: var(--primary-color);
}

.footer__link {
	color: var(--text-color-muted);
	transition: color 0.3s;
	font-size: var(--small-font-size);
}

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

.footer__bottom {
	text-align: center;
	padding: 1.5rem 0;
	margin-top: 2rem;
	border-top: 1px solid var(--background-color);
	color: var(--text-color-muted);
	font-size: var(--small-font-size);
}

/* =========== MEDIA QUERIES =========== */

/* For medium devices */
@media screen and (min-width: 576px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* For large devices */
@media screen and (min-width: 768px) {
	.header__burger {
		display: none;
	}
	.header__nav {
		all: unset;
	}
	.header__nav-list {
		flex-direction: row;
		align-items: center;
		gap: 2.5rem;
	}
}

@media screen and (min-width: 992px) {
	.footer__container {
		grid-template-columns: 3fr repeat(3, 2fr);
	}
}

@media screen and (min-width: 1200px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
}

/* assets/css/style.css */

/* =========== BUTTONS =========== */
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: var(--primary-color);
	color: white;
	padding: 1rem 2rem;
	border-radius: 5px;
	font-weight: 500;
	font-family: var(--title-font);
	transition: background-color 0.3s, transform 0.3s;
}

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

.button__icon {
	width: 20px;
	height: 20px;
}

/* =========== HERO =========== */
.hero {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
	overflow: hidden; /* Для анимации */
}

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

.hero__title {
	font-size: var(--h2-font-size);
	line-height: 1.3;
	margin-bottom: 1.5rem;
}

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

.hero__description {
	color: var(--text-color-muted);
	margin-bottom: 2.5rem;
	max-width: 500px;
	line-height: 1.6;
}

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

.hero__image {
	width: 100%;
	border-radius: 10px;
}

/* Для анимации: скрываем элементы по умолчанию */
.hero__title,
.hero__description,
.hero__button {
	opacity: 0;
}

/* =========== MEDIA QUERIES (HERO) =========== */
@media screen and (min-width: 768px) {
	:root {
		--h1-font-size: 3.5rem;
	}
	.hero__container {
		grid-template-columns: 1.2fr 1fr;
	}
}

@media screen and (min-width: 992px) {
	.hero {
		padding-top: calc(var(--header-height) + 6rem);
		padding-bottom: 6rem;
	}
}

/* assets/css/style.css */

/* =========== REUSABLE SECTION STYLES =========== */
.section__title,
.section__subtitle {
	text-align: center;
}

.section__title {
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.section__subtitle {
	color: var(--text-color-muted);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

/* =========== COURSES =========== */
.courses {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.courses__header {
	margin-bottom: 3rem;
}

.courses__grid {
	display: grid;
	gap: 1.5rem;
}

.course-card {
	background-color: var(--container-color);
	padding: 2rem;
	border-radius: 10px;
	border: 1px solid transparent;
	transition: transform 0.3s, border-color 0.3s;
	display: flex;
	flex-direction: column;
}

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

.course-card__icon-wrapper {
	width: 60px;
	height: 60px;
	display: grid;
	place-items: center;
	background-color: var(--background-color);
	border-radius: 8px;
	margin-bottom: 1.5rem;
}

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

.course-card__title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.75rem;
}

.course-card__description {
	color: var(--text-color-muted);
	font-size: var(--small-font-size);
	line-height: 1.7;
	margin-bottom: 1.5rem;
	flex-grow: 1; /* Заставляет описание занимать все доступное место */
}

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

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

.course-card__link i {
	width: 16px;
	height: 16px;
}

/* =========== MEDIA QUERIES (COURSES) =========== */
@media screen and (min-width: 576px) {
	.courses__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.courses {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}
	.courses__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* assets/css/style.css */

/* =========== MENTORS =========== */
.mentors {
	padding-top: 4rem;
	padding-bottom: 4rem;
	background-color: var(--container-color);
}

.mentors__header {
	margin-bottom: 3rem;
}

.mentors__grid {
	display: grid;
	gap: 2.5rem 1.5rem; /* Больше отступ сверху/снизу */
}

.mentor-card {
	text-align: center;
	background-color: var(--background-color);
	padding: 2rem 1.5rem;
	border-radius: 10px;
	transition: transform 0.3s;
}

.mentor-card:hover {
	transform: translateY(-5px);
}

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

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

.mentor-card__name {
	font-size: var(--h3-font-size);
	margin-bottom: 0.25rem;
}

.mentor-card__specialty {
	color: var(--primary-color);
	font-size: var(--small-font-size);
	font-weight: 500;
	margin-bottom: 1.5rem;
}

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

.mentor-card__social-link {
	color: var(--text-color-muted);
	transition: color 0.3s, transform 0.3s;
}

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

/* =========== MEDIA QUERIES (MENTORS) =========== */
@media screen and (min-width: 576px) {
	.mentors__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.mentors {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}
	.mentors__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* assets/css/style.css */

/* =========== BENEFITS =========== */
.benefits {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.benefits__header {
	margin-bottom: 3rem;
}

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

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

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

.benefit-item__icon-wrapper {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	display: grid;
	place-items: center;
	background-color: var(--container-color);
	border-radius: 8px;
}

.benefit-item__icon {
	width: 28px;
	height: 28px;
	color: var(--primary-color);
}

.benefit-item__title {
	font-size: 1.125rem; /* ~18px */
	margin-bottom: 0.5rem;
}

.benefit-item__description {
	color: var(--text-color-muted);
	font-size: var(--small-font-size);
	line-height: 1.6;
}

.benefits__image-wrapper {
	display: flex;
	justify-content: center;
}

.benefits__image {
	width: 100%;
	max-width: 400px;
	border-radius: 10px;
}

/* =========== MEDIA QUERIES (BENEFITS) =========== */
@media screen and (min-width: 768px) {
	.benefits__grid {
		grid-template-columns: 1fr 1fr;
	}
	.benefits__content {
		order: 1; /* Меняем порядок на десктопе, чтобы текст был справа */
	}
}

@media screen and (min-width: 992px) {
	.benefits {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}
}

/* assets/css/style.css */

/* =========== REVIEWS =========== */
.reviews {
	padding-top: 4rem;
	padding-bottom: 5rem; /* Больше отступ снизу для пагинации */
	background-color: var(--container-color);
}

.reviews__header {
	margin-bottom: 3rem;
}

.reviews__swiper {
	padding-bottom: 3rem; /* Место для пагинации */
}

.review-card {
	background-color: var(--background-color);
	padding: 2rem;
	border-radius: 10px;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.review-card__text {
	color: var(--text-color-muted);
	line-height: 1.7;
	font-style: italic;
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.review-card__text::before {
	content: '“';
	font-size: 3rem;
	color: var(--primary-color);
	font-weight: 700;
	line-height: 1;
	display: block;
	margin-bottom: -1rem;
}

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

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

.review-card__author-name {
	font-size: 1.125rem;
	margin: 0;
}

.review-card__author-course {
	font-size: var(--small-font-size);
	color: var(--text-color-muted);
}

/* Swiper custom styles */
.swiper-button-next,
.swiper-button-prev {
	color: var(--primary-color);
	top: 50% !important;
	transform: translateY(-150%) !important; /* Поднимаем повыше */
}

.swiper-pagination-bullet {
	background-color: var(--text-color-muted);
}

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

/* =========== MEDIA QUERIES (REVIEWS) =========== */
@media screen and (min-width: 992px) {
	.reviews {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}
}

/* assets/css/style.css */

/* =========== CONTACT =========== */
.contact {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.contact__container {
	display: grid;
	gap: 3rem;
}

.contact__title,
.contact__subtitle {
	text-align: left;
	margin: 0 0 1.5rem 0;
}

.contact__subtitle {
	max-width: none;
}

.contact__details {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 2rem;
}

.contact__detail-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--text-color-muted);
}
.contact__detail-item a {
	color: var(--text-color-muted);
	transition: color 0.3s;
}
.contact__detail-item a:hover {
	color: var(--primary-color);
}

.contact__detail-icon {
	width: 24px;
	height: 24px;
	color: var(--primary-color);
}

/* Form Styles */
.contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.form__group {
	position: relative;
}

.form__input {
	width: 100%;
	padding: 1rem;
	background-color: var(--container-color);
	border: 1px solid var(--container-color);
	border-radius: 5px;
	color: var(--text-color);
	font-size: var(--normal-font-size);
	outline: none;
	transition: border-color 0.3s;
}

.form__label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	color: var(--text-color-muted);
	pointer-events: none;
	transition: all 0.3s;
}

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

/* Когда в инпуте есть текст или он в фокусе */
.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
	top: -0.75rem;
	left: 0.75rem;
	font-size: var(--small-font-size);
	background-color: var(--background-color);
	padding: 0 0.25rem;
	color: var(--primary-color);
}

.form__group--checkbox {
	display: flex;
	align-items: center;
}

.form__checkbox-label {
	color: var(--text-color-muted);
	font-size: var(--small-font-size);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	user-select: none;
}

.form__checkbox-input {
	display: none; /* Скрываем стандартный чекбокс */
}

/* Кастомный чекбокс */
.form__checkbox-label::before {
	content: '';
	width: 18px;
	height: 18px;
	border: 1px solid var(--text-color-muted);
	border-radius: 3px;
	display: inline-block;
	transition: background-color 0.3s, border-color 0.3s;
}

.form__checkbox-icon {
	position: absolute;
	width: 18px;
	height: 18px;
	color: white;
	transform: scale(0);
	transition: transform 0.3s;
}

.form__checkbox-input:checked + .form__checkbox-label::before {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.form__checkbox-input:checked + .form__checkbox-label .form__checkbox-icon {
	transform: scale(0.8);
}

.contact__button {
	border: none;
	cursor: pointer;
}

.form__message {
	font-size: var(--small-font-size);
	text-align: center;
	display: none; /* Скрыто по умолчанию */
}

/* MEDIA QUERIES (CONTACT) */
@media screen and (min-width: 992px) {
	.contact {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}
	.contact__container {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}
}

/* assets/css/style.css */

/* =========== COOKIE POPUP =========== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Скрыто по умолчанию */
	left: 50%;
	transform: translateX(-50%);
	max-width: 500px;
	width: calc(100% - 3rem);
	background-color: var(--container-color);
	padding: 1.5rem;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
	bottom: 1.5rem;
}

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

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

.cookie-popup__button {
	padding: 0.5rem 1rem;
	flex-shrink: 0;
}

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

/* assets/css/style.css */

/* =========== POLICY PAGES STYLES =========== */
.pages {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
}

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

.pages h1,
.pages h2 {
	margin-bottom: 1.5rem;
}

.pages h1 {
	font-size: 1.5rem;
}

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

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

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

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

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

.pages li {
	color: var(--text-color-muted);
	line-height: 1.8;
	margin-bottom: 0.75rem;
}

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