/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;700&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

/* GLOBAL STYLES & VARIABLES */
:root {
	--font-heading: 'Plus Jakarta Sans', sans-serif;
	--font-body: 'Manrope', sans-serif;

	--color-dark: #0d1b2a;
	--color-light: #f8f9fa;
	--color-accent: #3a86ff;
	--color-secondary: #6c757d;
	--color-white: #ffffff;

	--header-height: 80px;
}

*,
*::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(--color-light);
	color: var(--color-dark);
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

ul {
	list-style: none;
}

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

/* ОБЩИЙ КЛАСС ДЛЯ КНОПОК */
.btn {
	display: inline-block;
	padding: 14px 28px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 16px;
	color: var(--color-white);
	background-color: var(--color-accent);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	text-align: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
	background-color: #1e6de8;
	transform: translateY(-2px);
}

/* HEADER */
.header {
	background-color: var(--color-light);
	height: var(--header-height);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: background-color 0.3s ease;
}

.header.is-menu-open {
	background-color: var(--color-dark);
}

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

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

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

.header__nav-link {
	font-weight: 700;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--color-dark);
	position: relative;
}

.header.is-menu-open .header__nav-link {
	color: var(--color-light);
}

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

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

.header__nav-link--button {
	background-color: var(--color-accent);
	color: var(--color-white) !important;
}

.header__nav-link--button:hover {
	background-color: #1e6de8;
}

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

.header__burger {
	display: block; /* Visible on mobile */
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-dark);
	position: relative;
	z-index: 1001; /* Выше чем .header__nav */
	width: 32px;
	height: 32px;
}
.header.is-menu-open .header__burger {
	color: var(--color-light);
}

.header__burger svg {
	width: 32px;
	height: 32px;
}

.header__burger-icon--close {
	display: none;
}
.header.is-menu-open .header__burger-icon--open {
	display: none;
}
.header.is-menu-open .header__burger-icon--close {
	display: block;
}

/* MOBILE MENU */
.mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: 2000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
	opacity: 1;
	visibility: visible;
}

.mobile-menu__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(13, 27, 42, 0.8);
	backdrop-filter: blur(5px);
}

.mobile-menu__content {
	position: absolute;
	top: 0;
	right: 0;
	width: 320px;
	height: 100%;
	background-color: var(--color-light);
	box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
}

.mobile-menu.active .mobile-menu__content {
	transform: translateX(0);
}

.mobile-menu__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid rgba(13, 27, 42, 0.1);
}

.mobile-menu__logo {
	font-size: 20px;
}

.mobile-menu__close {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-dark);
	padding: 8px;
	border-radius: 8px;
	transition: background-color 0.3s ease;
}

.mobile-menu__close:hover {
	background-color: rgba(13, 27, 42, 0.1);
}

.mobile-menu__close svg {
	width: 24px;
	height: 24px;
}

.mobile-menu__nav {
	padding: 20px;
}

.mobile-menu__nav-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mobile-menu__nav-item {
	list-style: none;
}

.mobile-menu__nav-link {
	display: block;
	padding: 16px 20px;
	font-weight: 700;
	font-size: 18px;
	border-radius: 12px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.mobile-menu__nav-link::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(58, 134, 255, 0.1),
		transparent
	);
	transition: left 0.5s ease;
}

.mobile-menu__nav-link:hover::before {
	left: 100%;
}

.mobile-menu__nav-link:hover {
	background-color: rgba(58, 134, 255, 0.1);
	color: var(--color-accent);
	transform: translateX(8px);
}

.mobile-menu__nav-link--button {
	background-color: var(--color-accent);
	color: var(--color-white);
	text-align: center;
	margin-top: 20px;
}

.mobile-menu__nav-link--button:hover {
	background-color: #1e6de8;
	color: var(--color-white);
	transform: translateX(0) scale(1.05);
}

.mobile-menu__nav-link--button::before {
	display: none;
}

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

/* HERO SECTION */
.hero {
	padding-top: var(--header-height);
	display: flex;
	align-items: center;
	min-height: 100vh;
	background: radial-gradient(
		circle at 10% 20%,
		rgba(58, 134, 255, 0.05),
		transparent 40%
	);
}

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

.hero__title {
	font-family: var(--font-heading);
	font-size: 1.5rem; /* 40px */
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 20px;
	color: var(--color-dark);
}
/* Для анимации */
.hero__title .letter {
	display: inline-block;
	opacity: 0;
}

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

.hero__visual {
	position: relative;
}

.hero__img {
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* FOOTER */
.footer {
	background-color: var(--color-dark);
	color: var(--color-light);
	padding: 60px 0 20px;
}

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

.footer__column--brand {
	text-align: center;
}

.footer__logo {
	justify-content: center;
	margin-bottom: 15px;
}

.footer__title {
	font-family: var(--font-heading);
	font-size: 18px;
	margin-bottom: 20px;
	color: var(--color-white);
}

.footer__list li {
	margin-bottom: 10px;
}

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

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

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

.footer__bottom {
	text-align: center;
	border-top: 1px solid var(--color-secondary);
	padding-top: 20px;
	font-size: 14px;
	color: var(--color-secondary);
}

/* RESPONSIVE STYLES */

/* Tablet and up */
@media (min-width: 768px) {
	.header__burger {
		display: none;
	}

	.header__nav {
		display: block;
		position: static;
		height: auto;
		width: auto;
		background-color: transparent;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.header__nav-list {
		display: flex;
		align-items: center;
		gap: 20px;
		flex-direction: row;
		padding: 0;
	}

	.header__nav-item {
		margin: 0;
	}

	.header__nav-link {
		font-size: 16px;
		color: var(--color-dark) !important;
	}

	.header__nav-link--button {
		color: var(--color-white) !important;
	}

	.mobile-menu {
		display: none;
	}

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

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

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

	.footer__column--brand {
		grid-column: 1 / -1; /* Span full width */
		text-align: center;
	}
}

/* Mobile Nav Overlay */
@media (max-width: 767.98px) {
	.header__nav {
		display: flex;
		justify-content: center;
		align-items: center;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: var(--color-dark);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	.header.is-menu-open .header__nav {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.header__nav-list {
		flex-direction: column;
		gap: 20px;
	}

	.header__nav-link {
		font-size: 24px;
		padding: 10px;
	}

	.mobile-menu {
		display: block;
	}
}

/* Desktop and up */
@media (min-width: 1024px) {
	.hero__title {
		font-size: 2.5rem; /* 56px */
	}

	.hero__container {
		gap: 60px;
	}

	.footer__container {
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 30px;
	}

	.footer__column--brand {
		grid-column: auto;
		text-align: left;
	}

	.footer__logo {
		justify-content: flex-start;
	}
}

/* UTILITY CLASSES FOR SECTIONS */
.section-eyebrow {
	display: block;
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--color-accent);
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.section-title {
	font-family: var(--font-heading);
	font-size: 2.25rem; /* 36px */
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 20px;
}

.section-description {
	font-size: 1.1rem; /* 17.6px */
	color: var(--color-secondary);
	margin-bottom: 30px;
}

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

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

.about__img {
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about__features-list {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.feature-item {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.feature-item__icon {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: rgba(58, 134, 255, 0.1);
	color: var(--color-accent);
}

.feature-item__icon svg {
	width: 24px;
	height: 24px;
}

.feature-item__title {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	margin-bottom: 5px;
}

/* RESPONSIVE ADDITIONS FOR ABOUT SECTION */
@media (min-width: 768px) {
	.about__container {
		grid-template-columns: 1fr 1fr;
		gap: 50px;
	}
}

@media (min-width: 1024px) {
	.section-title {
		font-size: 2.75rem; /* 44px */
	}
}

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

.courses__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 50px;
}

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

.course-card {
	background-color: var(--color-white);
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-card__link-wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
}

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

.course-card__content {
	padding: 20px;
	flex-grow: 1;
}

.course-card__tag {
	display: inline-block;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 700;
	background-color: rgba(58, 134, 255, 0.1);
	color: var(--color-accent);
	border-radius: 20px;
	margin-bottom: 15px;
}

.course-card__title {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	margin-bottom: 10px;
}

.course-card__description {
	font-size: 1rem;
	color: var(--color-secondary);
}

.course-card__footer {
	padding: 20px;
	border-top: 1px solid #e9ecef;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 700;
	color: var(--color-accent);
	transition: background-color 0.3s;
}

.course-card:hover .course-card__footer {
	background-color: rgba(58, 134, 255, 0.05);
}

/* RESPONSIVE ADDITIONS FOR COURSES SECTION */
@media (min-width: 768px) {
	.courses__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.courses__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* TECHNOLOGIES SECTION */
.tech {
	padding: 80px 0;
	background-color: var(--color-white);
}

.tech__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px;
}

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

.tech__visual {
	order: -1; /* On mobile, image comes first */
}

.tech__img {
	border-radius: 50%;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	margin: 0 auto;
}

.tech__features-column {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.feature-point {
	position: relative;
	padding-left: 30px;
}

.feature-point::before {
	content: '';
	position: absolute;
	left: 0;
	top: 5px;
	width: 16px;
	height: 16px;
	background-color: var(--color-accent);
	border-radius: 50%;
	opacity: 0.3;
}

.feature-point::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 9px;
	width: 8px;
	height: 8px;
	background-color: var(--color-accent);
	border-radius: 50%;
}

.feature-point__title {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	margin-bottom: 5px;
}

.feature-point__description {
	color: var(--color-secondary);
}

/* RESPONSIVE ADDITIONS FOR TECHNOLOGIES SECTION */
@media (min-width: 768px) {
	.tech__main {
		grid-template-columns: 1fr 2fr 1fr;
		gap: 50px;
	}

	.tech__visual {
		order: 0; /* Reset order for desktop */
	}

	.tech__features-column:first-of-type .feature-point {
		text-align: right;
		padding-left: 0;
		padding-right: 30px;
	}

	.tech__features-column:first-of-type .feature-point::before {
		left: auto;
		right: 0;
	}

	.tech__features-column:first-of-type .feature-point::after {
		left: auto;
		right: 4px;
	}
}

/* CASES SECTION */
.cases {
	padding: 80px 0;
	background-color: var(--color-light);
}

.cases__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 50px;
}

.section-title-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 20px;
}

.award-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	font-size: 14px;
	font-weight: 700;
	background-color: #fffbe6;
	color: #f59e0b;
	border: 1px solid #fde68a;
	border-radius: 20px;
}

.award-badge svg {
	width: 16px;
	height: 16px;
}

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

.testimonial-card {
	background-color: var(--color-white);
	padding: 30px;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.testimonial-card__text {
	font-size: 1.1rem;
	font-style: italic;
	color: var(--color-secondary);
	flex-grow: 1;
	margin-bottom: 20px;
}

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

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

.testimonial-card__name {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	margin: 0;
}

.testimonial-card__role {
	color: var(--color-secondary);
}

.cases__disclaimer {
	text-align: center;
	margin-top: 40px;
	color: var(--color-secondary);
	font-size: 14px;
}

/* Swiper custom styles */
.swiper-pagination-bullet {
	background-color: var(--color-secondary);
	opacity: 0.5;
}

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

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

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

.contact__perks {
	list-style: none;
	padding: 0;
	margin-top: 30px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.contact__perks li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.contact__perks svg {
	color: var(--color-accent);
	width: 20px;
	height: 20px;
}

.contact__form-wrapper {
	background: var(--color-white);
	padding: 30px;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.form-label {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
	font-size: 14px;
}

.input-wrapper {
	position: relative;
}

.input-wrapper svg {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-secondary);
	width: 20px;
}

.form-input {
	width: 100%;
	padding: 12px 15px 12px 45px;
	border: 1px solid #ced4da;
	border-radius: 8px;
	font-size: 16px;
	font-family: var(--font-body);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
}

.form-group--checkbox input {
	margin-top: 4px;
	flex-shrink: 0;
}

.form-group--checkbox a {
	color: var(--color-accent);
	text-decoration: underline;
}

.contact-form__submit {
	width: 100%;
	padding: 16px;
}

.form-success-message {
	display: none; /* Initially hidden */
	margin-top: 20px;
	padding: 15px;
	background-color: #d1e7dd;
	color: #0f5132;
	border: 1px solid #badbcc;
	border-radius: 8px;
	text-align: center;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.form-success-message.is-visible {
	display: flex;
}

/* RESPONSIVE ADDITIONS FOR CONTACT SECTION */
@media (min-width: 1024px) {
	.contact__container {
		grid-template-columns: 1fr 1fr;
	}
}

/* COOKIE POP-UP */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--color-dark);
	color: var(--color-light);
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	z-index: 1100;
	transition: bottom 0.5s ease-in-out;
}

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

.cookie-popup__content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 15px;
}

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

.btn--small {
	padding: 8px 16px;
	font-size: 14px;
}

/* STYLES FOR POLICY PAGES (privacy.html, etc.) */
.pages {
	padding: 120px 0 80px;
	background-color: var(--color-white);
}

.pages h1,
.pages h2 {
	font-family: var(--font-heading);
	margin-bottom: 20px;
}

.pages h1 {
	font-size: 1.5rem;
	border-bottom: 2px solid var(--color-accent);
	padding-bottom: 15px;
	margin-bottom: 30px;
}

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

.pages p,
.pages li {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--color-secondary);
	margin-bottom: 15px;
}

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

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

.pages strong {
	color: var(--color-dark);
}

/* RESPONSIVE ADDITIONS FOR COOKIE POP-UP */
@media (min-width: 768px) {
	.cookie-popup__content {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}
