/* ==================== GLOBAL STYLES ==================== */
:root {
	--background-color: #ffffff;
	--text-color: #1a1a1a;
	--primary-color: #4a90e2;
	--secondary-color: #f5f5f5;
	--font-main: 'Inter', sans-serif;
	--container-width: 1200px;
	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

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

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

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

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

ul {
	list-style-type: none;
}

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

h1,
h2,
h3 {
	line-height: 1.2;
}

/* ==================== HEADER ==================== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	z-index: 100;
	border-bottom: 1px solid #e0e0e0;
}

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.2rem;
	font-weight: 600;
}

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

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

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

.header__nav-list {
	display: flex;
	align-items: center;
	gap: 32px;
}

.header__nav-link {
	font-weight: 500;
	position: relative;
	padding: 8px 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::after {
	width: 100%;
}

.header__nav-link--button {
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.header__nav-link--button:hover {
	background-color: var(--text-color);
	color: var(--background-color);
}
.header__nav-link--button::after {
	display: none;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
	.header__burger-button {
		display: block;
		z-index: 101;
	}

	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		height: 100vh;
		background-color: #ffffff;
		padding: 100px 40px;
		transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
		box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
	}

	.header__nav.header__nav--open {
		right: 0;
	}

	.header__nav-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.header__nav-link {
		font-size: 1.2rem;
	}

	.header__nav-link--button {
		margin-top: 20px;
	}
}

/* ==================== MAIN CONTENT (Placeholder) ==================== */
.main-content {
	padding-top: var(--header-height);
}

/* ==================== FOOTER ==================== */
.footer {
	background-color: var(--background-color);
	border-top: 1px solid var(--secondary-color);
	padding: 60px 0;
}

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

.footer__logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 16px;
}

.footer__copy {
	font-size: 0.9rem;
	color: #666666;
}

.footer__title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 20px;
	color: var(--primary-color);
}

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

.footer__list--contacts {
	gap: 16px;
}

.footer__link {
	font-size: 0.95rem;
}

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

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

/* ==================== HERO SECTION ==================== */
.hero {
	padding: 80px 0;
	min-height: calc(100vh - var(--header-height));
	display: flex;
	align-items: center;
}

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

.hero__title {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 24px;
	line-height: 1.2;
}

/* --- Стили для анимации заголовка --- */
.hero__title .word-wrapper {
	display: inline-block;
	overflow: hidden;
	vertical-align: bottom;
}

.hero__title .word {
	display: inline-block;
	transform: translateY(110%);
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero__title.is-animated .word {
	transform: translateY(0);
}
/* --- Конец стилей для анимации --- */

.hero__description {
	font-size: 1.1rem;
	max-width: 500px;
	margin-bottom: 40px;
	color: #666666;
}

.hero__cta-button {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 16px 32px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 1rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__cta-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
	color: #ffffff;
}

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

.hero__image {
	max-width: 100%;
	border-radius: 16px;
	object-fit: cover;
	border: 1px solid #e0e0e0;
}

/* --- Анимация появления для остального контента --- */
.hero__description,
.hero__cta-button,
.hero__image-wrapper {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero.is-animated .hero__description {
	transition-delay: 0.4s;
}
.hero.is-animated .hero__cta-button {
	transition-delay: 0.5s;
}
.hero.is-animated .hero__image-wrapper {
	transition-delay: 0.6s;
}

.hero.is-animated .hero__description,
.hero.is-animated .hero__cta-button,
.hero.is-animated .hero__image-wrapper {
	opacity: 1;
	transform: translateY(0);
}

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

@media (max-width: 768px) {
	.hero {
		padding: 60px 0;
		text-align: center;
	}
	.hero__container {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.hero__content {
		order: 2; /* Текст будет под картинкой */
	}
	.hero__image-wrapper {
		order: 1;
	}
	.hero__description {
		margin-left: auto;
		margin-right: auto;
	}
}

/* ==================== COURSES SECTION ==================== */
.courses {
	padding: 100px 0;
	background-color: #f9f9f9; /* Slightly lighter than main bg */
}

.courses__header {
	text-align: center;
	margin-bottom: 60px;
}

.courses__title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 16px;
}

.courses__subtitle {
	font-size: 1.1rem;
	color: #666666;
	max-width: 600px;
	margin: 0 auto;
}

.courses__interactive-wrapper {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 40px;
	background-color: #ffffff;
	padding: 20px;
	border-radius: 16px;
	border: 1px solid #e0e0e0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.courses__nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.courses__nav-item {
	padding: 16px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 500;
	transition: background-color 0.3s ease, color 0.3s ease;
	border: 1px solid transparent;
	position: relative;
}

.courses__nav-item:hover {
	background-color: var(--secondary-color);
}

.courses__nav-item.is-active {
	background-color: var(--secondary-color);
	color: var(--primary-color);
	font-weight: 600;
}

.courses__content {
	position: relative;
	min-height: 400px;
}

.courses__content-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
	display: flex;
	flex-direction: column;
}

.courses__content-item.is-active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.courses__content-image {
	width: 100%;
	height: 250px;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 24px;
}

.courses__content-title {
	font-size: 1.8rem;
	font-weight: 600;
	margin-bottom: 12px;
}

.courses__content-description {
	font-size: 1rem;
	color: #666666;
	margin-bottom: 24px;
	flex-grow: 1;
}

.courses__content-tags {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.courses__content-tags span {
	background-color: var(--secondary-color);
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--primary-color);
}

/* --- Адаптивность для Courses (Accordion on Mobile) --- */
@media (max-width: 992px) {
	.courses__interactive-wrapper {
		grid-template-columns: 250px 1fr;
	}
}

@media (max-width: 768px) {
	.courses {
		padding: 60px 0;
	}
	.courses__interactive-wrapper {
		grid-template-columns: 1fr;
		padding: 0;
		background: none;
		border: none;
	}

	.courses__nav-item {
		background-color: #ffffff;
		border: 1px solid #e0e0e0;
	}

	.courses__content {
		position: static;
		min-height: 0;
	}

	.courses__content-item {
		position: static;
		max-height: 0;
		overflow: hidden;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
		padding: 0 20px;
		margin-top: -8px; /* Compensate for nav-item gap */
		border-radius: 0 0 8px 8px;
		background-color: #ffffff;
		border: 1px solid #e0e0e0;
		border-top: none;
	}

	.courses__content-item.is-active {
		max-height: 500px; /* Large enough to fit content */
		padding: 24px 20px;
	}

	.courses__content-image {
		height: 180px;
	}
	.courses__content-title {
		display: none; /* Hide title as it's already in the nav item */
	}
}

/* ==================== PROCESS SECTION ==================== */
.process {
	padding: 100px 0;
}

.process__header {
	text-align: center;
	margin-bottom: 60px;
}

.process__title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 16px;
}

.process__subtitle {
	font-size: 1.1rem;
	color: #666666;
	max-width: 600px;
	margin: 0 auto;
}

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

.process__card {
	background-color: #ffffff;
	padding: 30px;
	border-radius: 16px;
	border: 1px solid #e0e0e0;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.process__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.process__card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
}

.process__card-icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(74, 144, 226, 0.1);
	border-radius: 8px;
}

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

.process__card-step {
	font-size: 1.8rem;
	font-weight: 700;
	color: rgba(0, 0, 0, 0.05);
}

.process__card-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 12px;
}

.process__card-description {
	font-size: 0.95rem;
	color: #666666;
	line-height: 1.7;
}

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

@media (max-width: 768px) {
	.process {
		padding: 60px 0;
	}
	.process__timeline {
		grid-template-columns: 1fr;
	}
}

/* ==================== ABOUT US SECTION ==================== */
.about {
	padding: 100px 0;
	background-color: #f9f9f9;
}

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

.about__image {
	width: 100%;
	border-radius: 16px;
	margin-bottom: 30px;
	object-fit: cover;
	border: 1px solid #e0e0e0;
}

.about__title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 20px;
}

.about__description {
	font-size: 1.1rem;
	color: #666666;
	line-height: 1.7;
}

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

.about__stat-card {
	background-color: #ffffff;
	padding: 30px;
	border-radius: 16px;
	border: 1px solid #e0e0e0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.about__stat-number-wrapper {
	font-size: 3.5rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 12px;
}

.about__stat-title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.about__stat-description {
	font-size: 0.9rem;
	color: #666666;
}

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

@media (max-width: 768px) {
	.about {
		padding: 60px 0;
	}
	.about__stats {
		gap: 20px;
	}
	.about__stat-card {
		padding: 20px;
	}
	.about__stat-number-wrapper {
		font-size: 2.8rem;
	}
}

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

/* ==================== REVIEWS SECTION ==================== */
.reviews {
	padding: 100px 0;
}

.reviews__header {
	text-align: center;
	margin-bottom: 60px;
}

.reviews__title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 16px;
}

.reviews__subtitle {
	font-size: 1.1rem;
	color: #666666;
	max-width: 600px;
	margin: 0 auto;
}

.reviews__slider {
	padding-bottom: 50px; /* Space for pagination */
}

.reviews__card {
	background-color: #ffffff;
	padding: 30px;
	border-radius: 16px;
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid #e0e0e0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.reviews__card-text {
	font-style: italic;
	color: #333333;
	line-height: 1.7;
	margin-bottom: 24px;
	flex-grow: 1; /* Pushes author to the bottom */
}

.reviews__card-author {
	display: flex;
	align-items: center;
	gap: 16px;
}

.reviews__card-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.reviews__card-name {
	font-weight: 600;
	font-size: 1.1rem;
}

.reviews__card-course {
	font-size: 0.9rem;
	color: var(--primary-color);
}

/* Swiper custom styles */
.swiper-pagination-bullet {
	background-color: #d0d0d0;
	opacity: 0.8;
}

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

/* ==================== CONTACT SECTION ==================== */
.contact {
	padding: 100px 0;
	background-color: #f9f9f9;
}

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

.contact__title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 20px;
}

.contact__description {
	font-size: 1.1rem;
	color: #666666;
	line-height: 1.7;
	margin-bottom: 30px;
}

.contact__details {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.contact__detail-item {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 1.1rem;
	font-weight: 500;
}

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

.contact__form-wrapper {
	background-color: #ffffff;
	padding: 40px;
	border-radius: 16px;
	border: 1px solid #e0e0e0;
	position: relative;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form__group {
	margin-bottom: 24px;
}

.form__label {
	display: block;
	font-weight: 500;
	margin-bottom: 8px;
	font-size: 0.9rem;
}

.form__input {
	width: 100%;
	padding: 14px 16px;
	background-color: #f9f9f9;
	border: 1px solid #d0d0d0;
	border-radius: 8px;
	color: var(--text-color);
	font-size: 1rem;
	font-family: var(--font-main);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.form__input.is-invalid {
	border-color: #e57373;
}

.form__error-message {
	color: #e57373;
	font-size: 0.85rem;
	margin-top: 6px;
	display: none; /* Hidden by default */
}

.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.form__checkbox {
	margin-top: 5px;
	accent-color: var(--primary-color);
}

.form__checkbox-label {
	font-size: 0.9rem;
	color: #666666;
}
.form__checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
}

.form__submit-button {
	width: 100%;
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 16px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 1.1rem;
	border: none;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.form__submit-button:hover {
	background-color: #357abd;
}

.form__submit-button:disabled {
	background-color: #555;
	cursor: not-allowed;
}

.form__success-message {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	/* height: 100%; */
	background-color: #ffffff;
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 20px;
	transition: opacity 0.5s ease;
}

.form__success-message.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.form__success-message i {
	width: 60px;
	height: 60px;
	color: var(--primary-color);
	margin-bottom: 20px;
}
.form__success-message h4 {
	font-size: 1.8rem;
	margin-bottom: 10px;
}

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

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: #ffffff;
	border-top: 1px solid #e0e0e0;
	padding: 20px 0;
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-popup.is-visible {
	bottom: 0;
}

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

.cookie-popup__text {
	color: #333333;
}

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

.cookie-popup__button {
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 10px 24px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	white-space: nowrap; /* Prevent button text from wrapping */
}

@media (max-width: 768px) {
	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
	}
}

/* ==================== GENERIC PAGES STYLES ==================== */
.pages {
	padding: 120px 0 80px 0;
}

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

.pages h1 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 40px;
	border-bottom: 2px solid var(--primary-color);
	padding-bottom: 20px;
}

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

.pages p {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #333333;
	margin-bottom: 20px;
}

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

.pages ul,
.pages ol {
	margin-bottom: 20px;
	padding-left: 20px;
}

.pages li {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #333333;
	margin-bottom: 12px;
}

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