/* GLOBAL STYLES */
:root {
	--font-family-base: 'Inter', sans-serif;
	--font-family-heading: 'Manrope', sans-serif;
	--color-text: #111827;
	--color-text-secondary: #6b7280;
	--color-primary: #4f46e5;
	--color-bg: #ffffff;
	--color-bg-alt: #f9fafb;
	--container-width: 1200px;
	--container-padding: 15px;
}

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

html {
	scroll-behavior: smooth;
}

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

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

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

a:hover {
	color: #3730a3;
}

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);
}

.button {
	display: inline-block;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	color: #fff;
	background-color: var(--color-primary);
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.button:hover {
	background-color: #3730a3;
	color: #fff;
}

/* HEADER */
.header {
	background: var(--color-bg);
	padding: 20px 0;
	border-bottom: 1px solid #e5e7eb;
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(10px);
	background-color: rgba(255, 255, 255, 0.8);
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-family-heading);
	font-size: 24px;
	font-weight: 800;
	color: var(--color-text);
}

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

.header__nav {
	display: none;
}

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

.header__nav-link {
	font-size: 16px;
	font-weight: 500;
	color: var(--color-text-secondary);
	position: relative;
	padding-bottom: 5px;
}

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

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

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

.header__actions {
	display: flex;
	align-items: center;
	gap: 15px;
}

.header__button {
	display: none;
}

.header__burger-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
	z-index: 1001;
	position: relative;
}

/* Mobile Menu Styles */
.header__nav--mobile {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(10px);
	z-index: 1000;
	padding-top: 100px;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	opacity: 0;
	visibility: hidden;
}

.header__nav--mobile.header__nav--open {
	transform: translateX(0);
	opacity: 1;
	visibility: visible;
}

.header__nav--mobile .header__nav-list {
	flex-direction: column;
	align-items: center;
	gap: 40px;
	padding: 0 30px;
}

.header__nav--mobile .header__nav-link {
	font-size: 24px;
	font-weight: 600;
	color: var(--color-text);
	padding: 10px 0;
	text-align: center;
	width: 100%;
	display: block;
}

.header__nav--mobile .header__nav-link::after {
	display: none;
}

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

/* Mobile menu close button */
.mobile-menu__close {
	position: absolute;
	top: 30px;
	right: 30px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
	z-index: 1001;
}

/* Body scroll lock when menu is open */
body.mobile-menu-open {
	overflow: hidden;
}

/* FOOTER */
.footer {
	background-color: var(--color-bg-alt);
	padding-top: 60px;
	border-top: 1px solid #e5e7eb;
}

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

.footer__column--main {
	max-width: 350px;
}

.footer__description {
	margin-top: 15px;
	color: var(--color-text-secondary);
}

.footer__title {
	font-size: 18px;
	margin-bottom: 15px;
	color: var(--color-text);
}

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

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

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

.footer__list--contacts .footer__item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer__bottom {
	margin-top: 60px;
	padding: 20px 0;
	border-top: 1px solid #e5e7eb;
}

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

/* ADAPTIVE STYLES */
@media (min-width: 768px) {
	.header__burger-btn {
		display: none;
	}

	.header__nav {
		display: block;
	}

	.header__button {
		display: inline-block;
	}

	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.footer__container {
		grid-template-columns: 2fr 1fr 1fr 1fr;
		gap: 60px;
	}
}

/* ... (предыдущие стили без изменений) ... */

/* HERO SECTION */
.hero {
	padding: 60px 0;
	background-color: var(--color-bg-alt);
}

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

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: 1.5rem;
	font-weight: 800;
	margin-bottom: 20px;
}

.hero__title--animated {
	color: var(--color-primary);
	position: relative;
	display: inline-block;
}

/* Эффект курсора для печатающегося текста */
.hero__title--animated::after {
	content: '|';
	display: inline-block;
	animation: blink 0.7s infinite;
	font-weight: 800;
	position: absolute;
	right: -10px;
	top: 0;
}

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

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

.hero__button {
	padding: 14px 32px;
	font-size: 18px;
}

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

.hero__image {
	max-width: 500px;
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

/* ADAPTIVE STYLES */
@media (min-width: 768px) {
	/* ... (предыдущие медиа-запросы) ... */
}

@media (min-width: 1024px) {
	/* ... (предыдущие медиа-запросы) ... */
	.hero {
		padding: 80px 0;
	}

	.hero__container {
		grid-template-columns: 1.2fr 1fr;
		gap: 60px;
	}

	.hero__content {
		text-align: left;
	}

	.hero__subtitle {
		margin-left: 0;
	}

	.hero__title {
		font-size: 2.5rem;
	}
}

/* ... (предыдущие стили без изменений) ... */

/* SECTION HEADER (универсальный для секций) */
.section-header {
	text-align: center;
	margin-bottom: 50px;
}

.section-header__title {
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 15px;
}

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

/* COURSES SECTION */
.courses {
	padding: 60px 0;
	background-color: var(--color-bg);
}

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

/* Course Card */
.course-card {
	background-color: #fff;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.course-card__content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.course-card__tag {
	display: inline-block;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	background-color: #eef2ff;
	color: var(--color-primary);
	border-radius: 99px;
	margin-bottom: 15px;
	align-self: flex-start;
}

.course-card__title {
	font-size: 22px;
	margin-bottom: 10px;
}

.course-card__description {
	color: var(--color-text-secondary);
	margin-bottom: 20px;
	flex-grow: 1;
}

.course-card__meta {
	display: flex;
	gap: 20px;
	margin-bottom: 25px;
	border-top: 1px solid #e5e7eb;
	padding-top: 20px;
}

.course-card__meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--color-text-secondary);
}

.course-card__meta-item i {
	width: 18px;
	height: 18px;
	color: var(--color-primary);
}

.course-card__button {
	width: 100%;
}

/* ADAPTIVE STYLES */
/* ... (предыдущие медиа-запросы) ... */
@media (min-width: 768px) {
	.courses__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	/* ... (предыдущие медиа-запросы) ... */
	.courses {
		padding: 80px 0;
	}

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

	.section-header__title {
		font-size: 40px;
	}
}

/* ... (предыдущие стили без изменений) ... */

/* PROCESS SECTION */
.process {
	padding: 60px 0;
	background-color: var(--color-bg-alt);
}

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

.process-step {
	background-color: var(--color-bg);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	text-align: center;
}

.process-step__icon-wrapper {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #eef2ff;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto 20px;
}

.process-step__icon-wrapper i {
	color: var(--color-primary);
	width: 30px;
	height: 30px;
}

.process-step__title {
	font-size: 20px;
	margin-bottom: 10px;
}

.process-step__description {
	color: var(--color-text-secondary);
}

/* ADAPTIVE STYLES */
/* ... (предыдущие медиа-запросы) ... */
@media (min-width: 768px) {
	/* ... (предыдущие медиа-запросы) ... */
	.process__steps {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	/* ... (предыдущие медиа-запросы) ... */
	.process {
		padding: 80px 0;
	}

	.process__steps {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ... (предыдущие стили без изменений) ... */

/* ABOUT SECTION */
.about {
	padding: 60px 0;
	background-color: var(--color-bg);
}

.about__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 50px;
}

.about__content .section-header__title {
	text-align: left;
}

.about__text {
	font-size: 16px;
	color: var(--color-text-secondary);
	margin-bottom: 20px;
	line-height: 1.7;
}

.about__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin-top: 40px;
	border-top: 1px solid #e5e7eb;
	padding-top: 30px;
}

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

.stats-item__number {
	font-family: var(--font-family-heading);
	font-size: 36px;
	font-weight: 800;
	color: var(--color-primary);
	line-height: 1.1;
}

.stats-item__label {
	font-size: 14px;
	color: var(--color-text-secondary);
}

.about__image-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 150px);
	gap: 15px;
	position: relative;
	min-height: 315px; /* (150px * 2) + 15px gap */
}

.about__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.about__image--1 {
	grid-column: 1 / 2;
	grid-row: 1 / 3;
}

.about__image--2 {
	grid-column: 2 / 3;
	grid-row: 1 / 2;
}

.about__image--3 {
	grid-column: 2 / 3;
	grid-row: 2 / 3;
}

/* ADAPTIVE STYLES */
/* ... (предыдущие медиа-запросы) ... */
@media (min-width: 768px) {
	/* ... (предыдущие медиа-запросы) ... */
	.about__grid {
		gap: 60px;
	}

	.about__image-grid {
		grid-template-rows: repeat(2, 200px);
		min-height: 415px;
	}
}

@media (min-width: 1024px) {
	/* ... (предыдущие медиа-запросы) ... */
	.about {
		padding: 80px 0;
	}

	.about__grid {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}
}

/* ... (предыдущие стили без изменений) ... */

/* FAQ SECTION */
.faq {
	padding: 60px 0;
	background-color: var(--color-bg-alt);
}

.faq__accordion {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.faq__item {
	background-color: var(--color-bg);
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
}

.faq__question {
	width: 100%;
	padding: 20px 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--font-family-base);
	font-size: 18px;
	font-weight: 600;
	text-align: left;
	color: var(--color-text);
}

.faq__icon {
	transition: transform 0.3s ease;
	flex-shrink: 0; /* Предотвращает сжатие иконки */
}

.faq__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq__answer p {
	padding: 0 25px 20px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/* Active state for accordion */
.faq__item.active .faq__answer {
	max-height: 200px; /* Установите значение больше возможной высоты контента */
}

.faq__item.active .faq__icon {
	transform: rotate(180deg);
}

/* ADAPTIVE STYLES */
/* ... (предыдущие медиа-запросы) ... */
@media (min-width: 1024px) {
	/* ... (предыдущие медиа-запросы) ... */
	.faq {
		padding: 80px 0;
	}
}

/* CONTACT SECTION */
.contact {
	padding: 60px 0;
	background-color: var(--color-bg);
}

.contact__wrapper {
	max-width: 700px;
	margin: 0 auto;
	background-color: var(--color-bg-alt);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
}

.contact__form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

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

.form-group__label {
	font-weight: 500;
	margin-bottom: 8px;
	font-size: 14px;
}

.form-group__input {
	padding: 12px 15px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 16px;
	font-family: var(--font-family-base);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group__input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group--checkbox {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--color-text-secondary);
}

.form-group--checkbox input[type='checkbox'] {
	width: 18px;
	height: 18px;
	accent-color: var(--color-primary);
}

.form-group--checkbox a {
	text-decoration: underline;
}

.contact__button {
	justify-self: start;
	padding: 12px 30px;
}

/* Success Message */
.contact__success-message {
	display: none; /* Initially hidden */
	text-align: center;
	padding: 40px;
}

.contact__success-message i {
	width: 60px;
	height: 60px;
	color: #10b981; /* Green */
	margin-bottom: 20px;
}

.contact__success-message h4 {
	font-size: 24px;
	margin-bottom: 10px;
}

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

/* ADAPTIVE STYLES */
/* ... (предыдущие медиа-запросы) ... */
@media (min-width: 768px) {
	/* ... (предыдущие медиа-запросы) ... */
	.contact__wrapper {
		padding: 50px;
	}

	.contact__form {
		grid-template-columns: 1fr 1fr;
	}

	.form-group--full {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	/* ... (предыдущие медиа-запросы) ... */
	.contact {
		padding: 80px 0;
	}
}

/* ... (все предыдущие стили без изменений) ... */

/* COOKIE POP-UP */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--color-text);
	color: #fff;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
}

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

.cookie-popup__text {
	text-align: center;
	font-size: 14px;
}

.cookie-popup__text a {
	color: #fff;
	text-decoration: underline;
}

.cookie-popup__button {
	background-color: var(--color-primary);
	padding: 8px 20px;
	font-size: 14px;
}

@media (min-width: 768px) {
	.cookie-popup {
		flex-direction: row;
		padding: 20px 40px;
	}
	.cookie-popup__text {
		text-align: left;
	}
}

/* STYLES FOR POLICY PAGES */
.pages {
	padding: 60px 0;
}

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

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 25px;
}

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

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

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

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

.pages a {
	text-decoration: underline;
}

.pages a:hover {
	color: #3730a3;
}

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