/* ETAP 0: GLOBAL STYLES */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

/* CSS Variables */
:root {
	--bg-color: #0d1117;
	--bg-secondary-color: #161b22;
	--text-color: #e6edf3;
	--text-secondary-color: #8b949e;
	--accent-color: #2f81f7;
	--border-color: #30363d;

	--font-main: 'Inter', sans-serif;
	--font-headings: 'Plus Jakarta Sans', sans-serif;

	--header-height: 80px;
}

/* Base & Resets */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

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

ul {
	list-style: none;
}

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

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

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

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

/* Utility Classes */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-headings);
	font-weight: 800;
	font-size: 24px;
	color: var(--text-color);
}
.logo:hover {
	color: var(--text-color); /* Logo should not change color on hover */
}
.logo svg {
	color: var(--text-color);
	width: 42px;
	height: 42px;
}

/* ETAP 1: HEADER */

.header {
	background-color: var(--bg-color);
	border-bottom: 1px solid var(--border-color);
	height: var(--header-height);
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
}

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

.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: 100%;
	height: 2px;
	background-color: var(--accent-color);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease-in-out;
}

.header__nav-link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.header__nav-link--cta {
	background-color: var(--accent-color);
	color: #fff;
	padding: 10px 20px;
	border-radius: 6px;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.header__nav-link--cta:hover {
	background-color: #1f6feb;
	color: #fff;
	transform: translateY(-2px);
}
.header__nav-link--cta::after {
	display: none;
}

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

/* Mobile Header Styles */
@media (max-width: 992px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		max-width: 320px;
		height: 100vh;
		background-color: var(--bg-secondary-color);
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
		transition: right 0.4s ease-in-out;
		padding-top: calc(var(--header-height) + 40px);
	}
	.header__nav.is-active {
		right: 0;
	}

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

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

/* ETAP 2: FOOTER */
.footer {
	background-color: var(--bg-secondary-color);
	padding: 60px 0;
	border-top: 1px solid var(--border-color);
	font-size: 14px;
}

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

.footer__column--about {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.footer__copyright {
	color: var(--text-secondary-color);
	margin-top: 20px;
}

.footer__heading {
	font-size: 18px;
	margin-bottom: 20px;
	font-weight: 700;
}

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

.footer__link {
	color: var(--text-secondary-color);
}
.footer__link:hover {
	color: var(--accent-color);
	text-decoration: underline;
}

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

.footer__list--contacts li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.footer__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--text-secondary-color);
}

/* Footer Responsive Styles */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: 1fr 1fr;
	}
}

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

/* assets/css/style.css */

/* ETAP 3: HERO SECTION */

.hero {
	padding: 80px 0;
	overflow: hidden;
}

.hero__container {
	display: flex;
	align-items: center;
	gap: 60px;
}

.hero__content {
	flex: 1;
	max-width: 580px;
}

.hero__title {
	font-size: 52px;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 24px;
}

.hero__subtitle {
	font-size: 18px;
	color: var(--text-secondary-color);
	margin-bottom: 40px;
	max-width: 500px;
}

.hero__cta-button {
	display: inline-block;
	background-color: var(--accent-color);
	color: #fff;
	padding: 16px 32px;
	border-radius: 8px;
	font-weight: 500;
	font-size: 18px;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero__cta-button:hover {
	background-color: #1f6feb;
	color: #fff;
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 10px 20px rgba(47, 129, 247, 0.2);
}

.hero__visual {
	flex: 1;
	height: 450px;
	position: relative;
}

#hero-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 12px;
}

/* Hero Responsive Styles */
@media (max-width: 992px) {
	.hero__container {
		flex-direction: column;
		text-align: center;
	}

	.hero__title {
		font-size: 40px;
	}

	.hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}

	.hero__visual {
		width: 100%;
		max-width: 500px;
		height: 300px;
		margin-top: 40px;
	}
}

@media (max-width: 576px) {
	.hero {
		padding: 60px 0;
	}

	.hero__title {
		font-size: 32px;
	}

	.hero__subtitle {
		font-size: 16px;
	}
}

/* assets/css/style.css */

/* Utility Classes Update (добавьте или обновите) */
.section-title {
	font-size: 42px;
	font-weight: 800;
	text-align: center;
	margin-bottom: 60px;
	position: relative;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -15px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background-color: var(--accent-color);
	border-radius: 2px;
}

/* ETAP 3.2: COURSES SECTION */

.courses-section {
	padding: 80px 0;
	background-color: var(--bg-secondary-color);
}

.courses-section__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

.course-card {
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 30px;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 0 25px rgba(47, 129, 247, 0.3);
	border-color: var(--accent-color);
}

.course-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.course-card__icon-wrapper {
	width: 50px;
	height: 50px;
	background-color: var(--bg-secondary-color);
	border-radius: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--accent-color);
}
.course-card__icon-wrapper i {
	width: 28px;
	height: 28px;
}

.course-card__duration {
	background-color: var(--bg-secondary-color);
	color: var(--text-secondary-color);
	font-size: 13px;
	font-weight: 500;
	padding: 4px 12px;
	border-radius: 15px;
}

.course-card__title {
	font-size: 22px;
	margin-bottom: 12px;
	font-weight: 700;
}

.course-card__description {
	color: var(--text-secondary-color);
	font-size: 15px;
	line-height: 1.6;
	flex-grow: 1; /* Pushes the link to the bottom */
	margin-bottom: 24px;
}

.course-card__link {
	color: var(--accent-color);
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.course-card__link-icon {
	width: 20px;
	height: 20px;
	transition: transform 0.3s ease;
}

.course-card:hover .course-card__link-icon {
	transform: translateX(5px);
}

/* Courses Section Responsive Styles */
@media (max-width: 768px) {
	.section-title {
		font-size: 34px;
	}
}

@media (max-width: 576px) {
	.courses-section {
		padding: 60px 0;
	}
	.section-title {
		font-size: 28px;
	}
}

/* assets/css/style.css */

/* ETAP 3.3: PROCESS SECTION */

.process-section {
	padding: 80px 0;
}

.process-section__timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

/* The vertical line */
.process-section__timeline::after {
	content: '';
	position: absolute;
	width: 4px;
	background-color: var(--border-color);
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -2px;
	border-radius: 2px;
}

.process-section__item {
	padding: 10px 40px;
	position: relative;
	width: 50%;
}

/* The circle on the timeline */
.process-section__item::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	right: -10px;
	background-color: var(--bg-color);
	border: 4px solid var(--accent-color);
	top: 25px;
	border-radius: 50%;
	z-index: 1;
}

/* Position items to the left */
.process-section__item:nth-child(odd) {
	left: 0;
}

/* Position items to the right */
.process-section__item:nth-child(even) {
	left: 50%;
}
.process-section__item:nth-child(even)::after {
	left: -10px;
}

.process-section__content {
	padding: 20px 30px;
	background-color: var(--bg-secondary-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	position: relative;
}

.process-section__step-number {
	position: absolute;
	top: -20px;
	right: 20px;
	font-size: 50px;
	font-weight: 800;
	color: rgba(230, 237, 243, 0.1);
	z-index: 0;
}

.process-section__step-title {
	font-size: 20px;
	margin-bottom: 10px;
	position: relative;
	z-index: 1;
}

.process-section__step-description {
	font-size: 15px;
	color: var(--text-secondary-color);
	position: relative;
	z-index: 1;
}

/* Process Section Responsive Styles */
@media (max-width: 992px) {
	.process-section__timeline::after {
		left: 20px;
	}

	.process-section__item {
		width: 100%;
		padding-left: 60px;
		padding-right: 15px;
	}

	.process-section__item:nth-child(odd),
	.process-section__item:nth-child(even) {
		left: 0;
	}

	.process-section__item::after {
		left: 10px;
	}
}

@media (max-width: 576px) {
	.process-section {
		padding: 60px 0;
	}
}

/* assets/css/style.css */

/* ETAP 3.4: MENTORS SECTION */

.mentors-section {
	padding: 80px 0;
	background-color: var(--bg-secondary-color);
}

.mentors-section__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.mentor-card {
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	text-align: center;
	padding: 30px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mentor-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 0 25px rgba(47, 129, 247, 0.2);
}

.mentor-card__photo {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 20px;
	border: 3px solid var(--border-color);
}

.mentor-card__name {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 8px;
}

.mentor-card__role {
	color: var(--text-secondary-color);
	font-size: 14px;
	margin-bottom: 20px;
}

.mentor-card__socials {
	display: flex;
	justify-content: center;
	gap: 16px;
}

.mentor-card__social-link {
	color: var(--text-secondary-color);
}

.mentor-card__social-link i {
	width: 24px;
	height: 24px;
	transition: transform 0.3s ease, color 0.3s ease;
}

.mentor-card__social-link:hover {
	color: var(--accent-color);
}

.mentor-card__social-link:hover i {
	transform: scale(1.2);
}

/* Mentors Section Responsive Styles */
@media (max-width: 576px) {
	.mentors-section {
		padding: 60px 0;
	}
}

/* assets/css/style.css */

/* ETAP 3.5: REVIEWS SECTION */

.reviews-section {
	padding: 80px 0;
}

.reviews-section__slider-wrapper {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

.swiper {
	width: 100%;
	height: 100%;
}

.swiper-slide {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px; /* For slide shadows */
}

.review-card {
	background-color: var(--bg-secondary-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 40px;
	width: 100%;
}

.review-card__icon {
	color: var(--accent-color);
	width: 40px;
	height: 40px;
	margin-bottom: 20px;
}

.review-card__text {
	font-size: 18px;
	line-height: 1.7;
	margin-bottom: 30px;
	color: var(--text-color);
}

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

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

.review-card__author-name {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
}

.review-card__author-course {
	font-size: 14px;
	color: var(--text-secondary-color);
}

/* Swiper Customization */
.swiper-button-next,
.swiper-button-prev {
	color: var(--accent-color);
	width: 50px !important;
	height: 50px !important;
	background-color: var(--bg-secondary-color);
	border-radius: 50%;
	border: 1px solid var(--border-color);
}
.swiper-button-next::after,
.swiper-button-prev::after {
	font-size: 20px !important;
}

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

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

/* Reviews Section Responsive Styles */
@media (max-width: 992px) {
	.swiper-button-next,
	.swiper-button-prev {
		display: none;
	}
}
@media (max-width: 576px) {
	.reviews-section {
		padding: 60px 0;
	}
	.review-card {
		padding: 30px;
	}
	.review-card__text {
		font-size: 16px;
	}
}

/* assets/css/style.css */

/* ETAP 4: CONTACT SECTION */

.contact-section {
	padding: 80px 0;
	background-color: var(--bg-secondary-color);
}

.contact-section__container {
	display: flex;
	gap: 60px;
	align-items: center;
}

.contact-section__info {
	flex: 1;
}

.contact-section__title {
	font-size: 42px;
	font-weight: 800;
	margin-bottom: 20px;
}

.contact-section__subtitle {
	font-size: 18px;
	color: var(--text-secondary-color);
	line-height: 1.7;
}

.contact-section__form-wrapper {
	flex: 1;
	max-width: 500px;
}

.contact-form {
	background-color: var(--bg-color);
	padding: 40px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact-form__group {
	display: flex;
	flex-direction: column;
}

.contact-form__label {
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 500;
}

.contact-form__input {
	width: 100%;
	padding: 12px 16px;
	background-color: var(--bg-secondary-color);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-color);
	font-size: 16px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form__input:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.3);
}

.contact-form__group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
}

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

.contact-form__checkbox-label {
	font-size: 13px;
	color: var(--text-secondary-color);
	line-height: 1.5;
}

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

.contact-form__button {
	padding: 16px;
	background-color: var(--accent-color);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 18px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.3s ease, opacity 0.3s ease;
}

.contact-form__button:hover {
	background-color: #1f6feb;
}
.contact-form__button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.contact-form__success-message {
	display: none; /* Hidden by default */
	background-color: var(--bg-color);
	padding: 40px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	text-align: center;
}

.contact-form__success-message i {
	color: #34d399; /* Success Green */
	width: 50px;
	height: 50px;
	margin-bottom: 20px;
}

.contact-form__success-message h4 {
	font-size: 22px;
	margin-bottom: 10px;
}

/* Contact Section Responsive Styles */
@media (max-width: 992px) {
	.contact-section__container {
		flex-direction: column;
		text-align: center;
	}
}
@media (max-width: 576px) {
	.contact-section {
		padding: 60px 0;
	}
	.contact-form {
		padding: 25px;
	}
}

/* assets/css/style.css */

/* ETAP 5.1: COOKIE POP-UP */

.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	max-width: 600px;
	background-color: var(--bg-secondary-color);
	border: 1px solid var(--border-color);
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	z-index: 200;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	transform: translateY(200%);
	transition: transform 0.5s ease-in-out;
}

.cookie-popup.is-visible {
	transform: translateY(0);
}

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

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

.cookie-popup__button {
	background-color: var(--accent-color);
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	flex-shrink: 0;
	transition: background-color 0.3s ease;
}
.cookie-popup__button:hover {
	background-color: #1f6feb;
}

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

/* ETAP 5.2: POLICY PAGES STYLES */

.pages {
	padding: 60px 0;
}

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

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

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

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

.pages ul {
	list-style-type: disc;
	padding-left: 25px;
	color: var(--text-secondary-color);
}

.pages li {
	margin-bottom: 12px;
	line-height: 1.8;
}

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

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