/* GLOBAL STYLES */
:root {
	--bg-dark: #0d1b2a;
	--text-light: #e0e1dd;
	--accent-blue: #415a77;
	--accent-blue-dark: #1b263b;
	--cta-coral: #ff6b6b;
	--cta-coral-hover: #ff4f4f;
	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Manrope', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	background-color: var(--bg-dark);
	color: var(--text-light);
	overflow-x: hidden;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

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

a:hover {
	color: var(--cta-coral);
}

ul {
	list-style: none;
}

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

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

/* LOGO */
.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 24px;
}

.logo__svg path {
	transition: stroke 0.3s ease;
}

.logo:hover .logo__svg path:nth-child(1) {
	stroke: var(--text-light);
}

/* HEADER */
.header {
	padding: 20px 0;
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 100;
	background-color: rgba(13, 27, 42, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--accent-blue);
}

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

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

.header__nav-link {
	font-weight: 600;
	padding: 5px 0;
	position: relative;
}

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

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

.header__nav-link--cta {
	background-color: var(--cta-coral);
	color: var(--bg-dark);
	padding: 8px 20px;
	border-radius: 50px;
	transition: background-color 0.3s ease;
}

.header__nav-link--cta:hover {
	background-color: var(--cta-coral-hover);
	color: var(--bg-dark);
}

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

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

/* FOOTER */
.footer {
	background-color: var(--accent-blue-dark);
	padding: 60px 0 0;
	border-top: 2px solid var(--accent-blue);
}

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

.footer__column--about {
	padding-right: 20px;
}

.footer__description {
	margin-top: 20px;
	color: #a9b3c1;
	font-size: 14px;
}

.footer__heading {
	font-family: var(--font-heading);
	font-size: 20px;
	margin-bottom: 20px;
	position: relative;
	padding-bottom: 10px;
}

.footer__heading::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background-color: var(--cta-coral);
}

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

.footer__link {
	color: #a9b3c1;
	transition: color 0.3s ease, transform 0.3s ease;
	display: inline-block;
}

.footer__link:hover {
	color: var(--text-light);
	transform: translateX(5px);
}

.footer__list--contact li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #a9b3c1;
}

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

.footer__bottom {
	margin-top: 40px;
	padding: 20px 0;
	border-top: 1px solid var(--accent-blue);
	text-align: center;
	font-size: 14px;
	color: #a9b3c1;
}

/* MOBILE ADAPTATION */
@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100vh;
		background-color: var(--accent-blue-dark);
		display: flex;
		justify-content: center;
		align-items: center;
		transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
	}

	.header__nav--active {
		right: 0;
	}

	.header__nav-list {
		flex-direction: column;
		gap: 40px;
		font-size: 24px;
	}

	.header__burger-btn {
		display: block;
		z-index: 110; /* поверх меню */
	}
}

/* HERO SECTION */
.main {
	padding-top: 85px; /* Offset for fixed header */
}

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

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

.hero__content {
	animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.hero__title {
	font-size: 1.5rem;
	line-height: 1.2;
	margin-bottom: 20px;
}

.hero__title--animated {
	color: var(--cta-coral);
	border-right: 3px solid var(--cta-coral);
	animation: blink 0.7s infinite;
	min-height: 32px; /* Prevents layout shift */
	display: inline-block;
}

/* Blinking cursor effect */
@keyframes blink {
	0%,
	100% {
		border-color: transparent;
	}
	50% {
		border-color: var(--cta-coral);
	}
}

.hero__subtitle {
	font-size: 18px;
	color: #a9b3c1;
	max-width: 600px;
	margin: 0 auto 30px;
}

.hero__cta-button {
	display: inline-block;
	background-color: var(--cta-coral);
	color: var(--bg-dark);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
	padding: 15px 35px;
	border-radius: 50px;
	transition: background-color 0.3s ease, transform 0.3s ease;
	border: 2px solid var(--cta-coral);
}

.hero__cta-button:hover {
	background-color: var(--cta-coral-hover);
	color: var(--bg-dark);
	transform: translateY(-3px);
}

.hero__image-wrapper {
	animation: slideInRight 1s ease-out forwards;
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(100px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.hero__image {
	border-radius: 15px;
	border: 2px solid var(--accent-blue);
}

/* MEDIA QUERIES FOR HERO */
@media (min-width: 768px) {
	.hero {
		padding: 100px 0;
	}

	.hero__container {
		grid-template-columns: 1fr 1fr;
		text-align: left;
		gap: 60px;
	}

	.hero__subtitle {
		margin: 0 0 30px 0;
	}

	.hero__title {
		font-size: 2.5rem;
	}

	.hero__title--animated {
		min-height: 43px;
	}
}

/* SHARED SECTION HEADER */
.section-header {
	text-align: center;
	margin-bottom: 60px;
}

.section-header__title {
	font-size: 36px;
	margin-bottom: 15px;
}

.section-header__subtitle {
	font-size: 18px;
	color: #a9b3c1;
	max-width: 700px;
	margin: 0 auto;
}

/* FEATURES SECTION */
.features {
	padding: 80px 0;
	background-color: var(--accent-blue-dark);
}

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

.features__card {
	background-color: var(--bg-dark);
	padding: 35px 25px;
	border-radius: 10px;
	text-align: center;
	border: 1px solid var(--accent-blue);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features__card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
	border-color: var(--cta-coral);
}

.features__card-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 25px;
	border-radius: 50%;
	background-color: var(--accent-blue);
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--cta-coral);
	transition: background-color 0.3s ease, color 0.3s ease;
}

.features__card:hover .features__card-icon {
	background-color: var(--cta-coral);
	color: var(--bg-dark);
}

.features__card-icon i {
	width: 32px;
	height: 32px;
}

.features__card-title {
	font-size: 22px;
	margin-bottom: 15px;
}

.features__card-description {
	font-size: 15px;
	color: #a9b3c1;
	line-height: 1.7;
}

/* MEDIA QUERIES FOR FEATURES */
@media (max-width: 768px) {
	.features {
		padding: 60px 0;
	}
	.section-header__title {
		font-size: 30px;
	}
}

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

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

/* The vertical line */
.process__timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: var(--accent-blue);
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -1.5px;
}

.process__item {
	padding: 10px 40px;
	position: relative;
	width: 50%;
}

/* The circle on the timeline */
.process__icon-wrapper {
	position: absolute;
	width: 50px;
	height: 50px;
	right: -25px;
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--cta-coral);
	border-radius: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 4px solid var(--bg-dark);
	color: var(--bg-dark);
}

.process__icon-wrapper i {
	width: 24px;
	height: 24px;
}

/* Positioning items on the timeline */
.process__item:nth-child(odd) {
	left: 0;
	text-align: right;
}

.process__item:nth-child(even) {
	left: 50%;
}

.process__item:nth-child(odd) .process__icon-wrapper {
	right: -25px;
}

.process__item:nth-child(even) .process__icon-wrapper {
	left: -25px;
}

.process__content {
	padding: 20px 30px;
	background-color: var(--accent-blue-dark);
	border-radius: 8px;
	border: 1px solid var(--accent-blue);
	position: relative;
}

.process__step-number {
	font-family: var(--font-heading);
	color: var(--cta-coral);
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 5px;
	display: block;
}

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

.process__description {
	font-size: 15px;
	color: #a9b3c1;
}

/* MEDIA QUERIES FOR PROCESS */
@media (max-width: 768px) {
	.process {
		padding: 60px 0;
	}

	.process__timeline::after {
		left: 25px;
	}

	.process__item {
		width: 100%;
		padding-left: 70px;
		padding-right: 15px;
		left: 0 !important; /* Override inline style */
		text-align: left;
	}

	.process__item:nth-child(odd),
	.process__item:nth-child(even) {
		text-align: left;
	}

	.process__icon-wrapper {
		left: 0 !important; /* Override inline style */
	}
}

/* REVIEWS SECTION */
.reviews {
	padding: 80px 0;
	background-color: var(--accent-blue-dark);
}

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

.reviews__card {
	background-color: var(--bg-dark);
	border: 1px solid var(--accent-blue);
	border-radius: 10px;
	padding: 30px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.reviews__text {
	font-style: italic;
	color: #a9b3c1;
	margin-bottom: 25px;
	position: relative;
	padding-left: 35px;
}

.reviews__text::before {
	content: '“';
	font-family: Georgia, serif;
	font-size: 60px;
	color: var(--accent-blue);
	position: absolute;
	left: -10px;
	top: -20px;
}

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

.reviews__author-img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--cta-coral);
}

.reviews__author-name {
	display: block;
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--text-light);
}

.reviews__author-role {
	font-size: 14px;
	color: #a9b3c1;
}

/* Swiper custom styles */
.swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background-color: var(--accent-blue);
	opacity: 0.7;
	transition: background-color 0.3s ease, opacity 0.3s ease;
}

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

/* COURSES SECTION */
.courses {
	padding: 80px 0;
}

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

.courses__card {
	background-color: var(--accent-blue-dark);
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--accent-blue);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.3s ease;
}

.courses__card:hover {
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.courses__card-image {
	overflow: hidden;
	height: 200px;
}

.courses__card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.courses__card:hover .courses__card-image img {
	transform: scale(1.1);
}

.courses__card-content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1; /* Allows the content to fill the space */
}

.courses__card-title {
	font-size: 24px;
	margin-bottom: 15px;
}

.courses__card-description {
	color: #a9b3c1;
	margin-bottom: 25px;
	flex-grow: 1; /* Pushes the button to the bottom */
}

.courses__card-cta {
	display: inline-block;
	text-align: center;
	padding: 10px 20px;
	border: 2px solid var(--cta-coral);
	border-radius: 50px;
	font-weight: 700;
	color: var(--cta-coral);
	transition: background-color 0.3s ease, color 0.3s ease;
}

.courses__card-cta:hover {
	background-color: var(--cta-coral);
	color: var(--bg-dark);
}

/* MEDIA QUERIES FOR COURSES */
@media (max-width: 768px) {
	.courses {
		padding: 60px 0;
	}
}

/* CONTACT SECTION */
.contact {
	padding: 80px 0;
}

.contact__wrapper {
	max-width: 600px;
	margin: 0 auto;
	background-color: var(--accent-blue-dark);
	padding: 40px;
	border-radius: 10px;
	border: 1px solid var(--accent-blue);
}

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

.contact__form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.contact__form-input {
	width: 100%;
	padding: 12px 15px;
	border-radius: 5px;
	border: 1px solid var(--accent-blue);
	background-color: var(--bg-dark);
	color: var(--text-light);
	font-family: var(--font-body);
	font-size: 16px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact__form-input:focus {
	outline: none;
	border-color: var(--cta-coral);
	box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.contact__form-group--checkbox {
	display: flex;
	align-items: center;
	gap: 12px;
}

.contact__form-checkbox {
	appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid var(--accent-blue);
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	transition: background-color 0.3s, border-color 0.3s;
}

.contact__form-checkbox:checked {
	background-color: var(--cta-coral);
	border-color: var(--cta-coral);
}

.contact__form-checkbox:checked::after {
	content: '✔';
	font-size: 14px;
	color: var(--bg-dark);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.contact__form-checkbox-label {
	font-size: 14px;
	color: #a9b3c1;
	cursor: pointer;
}

.contact__form-checkbox-label a {
	color: var(--cta-coral);
	text-decoration: underline;
}

.contact__form-button {
	width: 100%;
	padding: 15px;
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 700;
	background-color: var(--cta-coral);
	color: var(--bg-dark);
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact__form-button:hover {
	background-color: var(--cta-coral-hover);
	transform: translateY(-3px);
}

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

.contact__success-icon {
	color: var(--cta-coral);
	margin-bottom: 20px;
}

.contact__success-icon i {
	width: 60px;
	height: 60px;
}

.contact__success-title {
	font-size: 28px;
	margin-bottom: 10px;
}
.contact__success-text {
	color: #a9b3c1;
}

.contact__success-message.is-visible {
	display: block;
}

/* COOKIE POP-UP */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--accent-blue-dark);
	border-top: 1px solid var(--accent-blue);
	padding: 20px;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
}

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

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

.cookie-popup__text {
	color: #a9b3c1;
}

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

.cookie-popup__button {
	background-color: var(--cta-coral);
	color: var(--bg-dark);
	border: none;
	padding: 10px 25px;
	border-radius: 50px;
	cursor: pointer;
	font-weight: 700;
	flex-shrink: 0;
	transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
	background-color: var(--cta-coral-hover);
}

/* STYLES FOR POLICY PAGES (privacy.html, terms.html, etc.) */
.pages {
	padding: 120px 0 80px; /* Padding top includes header height */
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
	color: var(--cta-coral);
}

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

.pages p,
.pages li {
	font-size: 16px;
	line-height: 1.8;
	color: #a9b3c1;
	margin-bottom: 20px;
}

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

.pages a {
	color: var(--cta-coral);
	font-weight: 600;
	text-decoration: underline;
}

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

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

/* MEDIA QUERIES FOR ADDITIONAL ELEMENTS */
@media (max-width: 768px) {
	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
	}
}
