/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Manrope:wght@600;700&display=swap');

/* --- CSS Variables --- */
:root {
	--color-background: #111827;
	--color-text: #f3f4f6;
	--color-primary: #38bdf8;
	--color-secondary: #4b5563;
	--font-heading: 'Manrope', sans-serif;
	--font-body: 'Inter', sans-serif;
	--header-height: 70px;
}

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

html {
	scroll-behavior: smooth;
}

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

/* Class to disable scrolling when menu is open */
.no-scroll {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--color-text);
	line-height: 1.3;
}

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

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

ul {
	list-style: none;
}

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

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

/* --- Header --- */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: rgba(17, 24, 39, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-secondary);
	z-index: 1000;
	display: flex;
	align-items: center;
}

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

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

.header__burger {
	display: block; /* Show burger on mobile */
	background: none;
	border: none;
	color: var(--color-text);
	cursor: pointer;
	z-index: 1001;
	padding: 5px;
	transition: transform 0.3s ease;
}

.header__burger.is-active {
	transform: rotate(90deg);
}

/* --- Navigation --- */
.header__nav {
	/* Mobile styles (overlay menu) */
	position: fixed;
	top: var(--header-height);
	left: 0;
	width: 100%;
	height: calc(100vh - var(--header-height));
	background-color: var(--color-background);

	display: flex;
	justify-content: center;
	align-items: center;

	transform: translateY(-100%);
	transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
	visibility: hidden;
}

.header__nav.is-active {
	transform: translateY(0);
	visibility: visible;
}

.header__nav-list {
	display: flex;
	flex-direction: column; /* Mobile: vertical list */
	align-items: center;
	gap: 40px;
}

.header__nav-link {
	font-weight: 500;
	position: relative;
	padding: 5px 0;
	font-size: 24px; /* Larger font for mobile overlay */
}

.header__nav-link::after {
	display: none; /* Hide line hover effect on mobile */
}

.header__nav-link--cta {
	background-color: var(--color-primary);
	color: var(--color-background);
	padding: 12px 24px;
	border-radius: 6px;
	transition: background-color 0.3s, color 0.3s;
	font-size: 20px;
}

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

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

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

.footer__column--brand {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.footer__tagline {
	color: var(--color-secondary);
	max-width: 250px;
}

.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-secondary);
}
.footer__link:hover {
	color: var(--color-primary);
}

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

.footer__contact-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--color-secondary);
}

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

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

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

	/* Reset mobile menu styles for desktop */
	.header__nav {
		position: static;
		width: auto;
		height: auto;
		background-color: transparent;
		transform: none;
		transition: none;
		visibility: visible;
		display: block;
	}

	.header__nav-list {
		flex-direction: row; /* Desktop: horizontal list */
		gap: 30px;
	}

	.header__nav-link {
		font-size: 16px; /* Reset font size for desktop */
	}

	.header__nav-link::after {
		display: block; /* Re-enable line hover effect on desktop */
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 2px;
		background-color: var(--color-primary);
		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 {
		padding: 8px 18px;
		font-size: 16px;
	}

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

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

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

/* --- Buttons --- */
.btn {
	display: inline-block;
	padding: 12px 28px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 16px;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
	transition: transform 0.3s ease, background-color 0.3s ease;
	border: none;
}

.btn:hover {
	transform: translateY(-3px);
}

.btn--primary {
	background-color: var(--color-primary);
	color: var(--color-background);
}

.btn--primary:hover {
	background-color: #67d4fe; /* A lighter shade of primary for hover */
	color: var(--color-background);
}

/* --- Hero Section --- */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: var(--header-height); /* Offset for the fixed header */
}

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

.hero__content {
	text-align: center; /* Center text on mobile */
}

.hero__title {
	font-size: clamp(1.5rem, 6vw, 3rem); /* Responsive font size */
	margin-bottom: 20px;
	font-weight: 700;
}

.hero__highlight {
	color: var(--color-primary);
}

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

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

.hero__image {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	object-fit: cover;
}

/* --- Responsive for Hero --- */
@media (min-width: 992px) {
	.hero__container {
		grid-template-columns: 1.2fr 1fr; /* Give more space to text */
		gap: 60px;
	}

	.hero__content {
		text-align: left; /* Align text to the left on desktop */
	}

	.hero__description {
		margin: 0 0 40px;
	}
}

/* --- Reusable Section Header --- */
.section-header {
	text-align: center;
	margin-bottom: 50px;
}

.section-header__title {
	font-size: clamp(2rem, 5vw, 2.75rem);
	margin-bottom: 15px;
}

.section-header__subtitle {
	font-size: 1.125rem;
	color: var(--color-secondary);
	max-width: 700px;
	margin: 0 auto;
}

/* --- Concepts Section --- */
.concepts {
	padding: 80px 0;
	background-color: #0c111c; /* Slightly different background to separate sections */
}

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

.concepts__tabs-nav {
	display: flex;
	flex-direction: row; /* Horizontal on mobile */
	gap: 10px;
	overflow-x: auto; /* Allow scrolling if tabs don't fit */
	padding-bottom: 15px;
}

.concepts__tab-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 15px;
	background-color: transparent;
	border: 1px solid var(--color-secondary);
	border-radius: 8px;
	color: var(--color-secondary);
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: left;
	white-space: nowrap; /* Prevent text wrapping */
}

.concepts__tab-btn:hover {
	color: var(--color-text);
	border-color: var(--color-text);
}

.concepts__tab-btn.is-active {
	background-color: var(--color-primary);
	color: var(--color-background);
	border-color: var(--color-primary);
}

.concepts__tab-pane {
	display: none; /* Hide all panes by default */
	animation: fadeIn 0.5s ease-in-out;
}

.concepts__tab-pane.is-active {
	display: grid; /* Show active pane */
	grid-template-columns: 1fr;
	gap: 30px;
	align-items: center;
}

.concepts__pane-title {
	font-size: 1.75rem;
	margin-bottom: 15px;
}

.concepts__pane-description {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--color-secondary);
}

.concepts__pane-image img {
	border-radius: 12px;
	width: 100%;
	height: auto;
}

/* --- Keyframe for fade-in effect --- */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* --- Responsive for Concepts Section --- */
@media (min-width: 992px) {
	.concepts {
		padding: 120px 0;
	}

	.concepts__layout {
		grid-template-columns: 1fr 3fr; /* 1 part for nav, 3 for content */
		gap: 50px;
	}

	.concepts__tabs-nav {
		flex-direction: column; /* Vertical on desktop */
		overflow-x: visible;
		padding-bottom: 0;
	}

	.concepts__tab-pane.is-active {
		grid-template-columns: 1fr 1fr; /* Two columns for content and image */
	}
}

/* --- Tech Section --- */
.tech {
	padding: 80px 0;
	/* Uses the default background color from body */
}

.tech__grid {
	display: grid;
	/* A modern, responsive grid without media queries */
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.tech-card {
	background-color: #1a2333; /* A slightly lighter shade */
	border: 1px solid var(--color-secondary);
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
	border-color: var(--color-primary);
}

.tech-card__icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: rgba(56, 189, 248, 0.1); /* Transparent primary color */
	margin-bottom: 20px;
}

.tech-card__icon i {
	width: 32px;
	height: 32px;
	color: var(--color-primary);
}

.tech-card__title {
	font-size: 1.5rem;
	margin-bottom: 15px;
}

.tech-card__description {
	color: var(--color-secondary);
	font-size: 1rem;
	line-height: 1.6;
}

/* --- Responsive for Tech Section --- */
@media (min-width: 992px) {
	.tech {
		padding: 120px 0;
	}
}

/* --- Cases Section (Swiper) --- */
.cases {
	padding: 80px 0;
	background-color: #0c111c; /* Alternating background color */
}

.swiper {
	width: 100%;
	height: 100%;
	padding-bottom: 50px; /* Space for pagination */
}

.swiper-slide {
	display: flex;
	justify-content: center;
}

.case-card {
	background-color: #1a2333;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	width: 100%;
	border: 1px solid var(--color-secondary);
}

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

.case-card__content {
	padding: 25px;
	flex-grow: 1;
}

.case-card__tag {
	display: inline-block;
	background-color: rgba(56, 189, 248, 0.1);
	color: var(--color-primary);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 15px;
}

.case-card__title {
	font-size: 1.3rem;
	margin-bottom: 10px;
	line-height: 1.4;
}

.case-card__description {
	color: var(--color-secondary);
}

/* Swiper Navigation Customization */
.swiper-button-next,
.swiper-button-prev {
	color: var(--color-primary);
	width: 50px;
	height: 50px;
	background-color: rgba(17, 24, 39, 0.7);
	border-radius: 50%;
	backdrop-filter: blur(5px);
	transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
	background-color: var(--color-primary);
	color: var(--color-background);
}

.swiper-button-next::after,
.swiper-button-prev::after {
	font-size: 20px !important;
	font-weight: 900;
}

/* --- Responsive for Cases Section --- */
@media (min-width: 992px) {
	.cases {
		padding: 120px 0;
	}
}

/* --- Process Section --- */
.process {
	padding: 80px 0;
	/* Uses default body background */
}

.process__steps {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 50px;
}

/* The timeline connecting line */
.process__steps::before {
	content: '';
	position: absolute;
	top: 20px;
	bottom: 20px;
	left: 50%;
	width: 2px;
	background-color: var(--color-secondary);
	transform: translateX(-50%);
	display: none; /* Hidden on mobile */
}

.process-step {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	align-items: center;
}

.process-step__image {
	border-radius: 12px;
	overflow: hidden;
}

.process-step__number {
	font-size: 3rem;
	font-weight: 700;
	color: var(--color-primary);
	opacity: 0.3;
	line-height: 1;
}

.process-step__title {
	font-size: 1.75rem;
	margin: 10px 0 15px;
}

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

/* --- Responsive for Process Section --- */
@media (min-width: 992px) {
	.process {
		padding: 120px 0;
	}

	.process__steps::before {
		display: block; /* Show timeline on desktop */
	}

	.process__steps {
		gap: 0;
	}

	.process-step {
		grid-template-columns: 1fr 1fr;
		gap: 80px;
		padding: 40px 0;
	}

	/* Even items have reversed order */
	.process-step:nth-child(even) {
		direction: rtl; /* Reverses the grid column order */
	}

	.process-step:nth-child(even) * {
		direction: ltr; /* Resets text direction for content */
	}

	.process-step__content {
		padding: 20px;
	}
}

/* --- Contact Section --- */
.contact {
	padding: 80px 0;
	background-color: #0c111c;
}

.contact__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	background-color: #1a2333;
	padding: 30px;
	border-radius: 12px;
	border: 1px solid var(--color-secondary);
}

.contact__info-title {
	font-size: 1.75rem;
	margin-bottom: 15px;
}

.contact__info-text {
	color: var(--color-secondary);
	margin-bottom: 30px;
}

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

/* Form styles */
.contact__form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

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

.form-label {
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--color-secondary);
}

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

.form-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-group--checkbox {
	flex-direction: row;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: var(--color-secondary);
}
.form-group--checkbox input[type='checkbox'] {
	width: 18px;
	height: 18px;
}
.form-group--checkbox a {
	color: var(--color-primary);
	text-decoration: underline;
}

.contact__form-btn {
	width: 100%;
}

/* Success Message */
.success-message {
	display: none; /* Hidden by default */
	align-items: center;
	gap: 15px;
	padding: 20px;
	background-color: rgba(22, 163, 74, 0.1);
	border: 1px solid #16a34a;
	border-radius: 8px;
	color: #4ade80;
	animation: fadeIn 0.5s ease;
}

.success-message.is-visible {
	display: flex; /* Shown via JS */
}

/* --- Responsive for Contact Section --- */
@media (min-width: 992px) {
	.contact {
		padding: 120px 0;
	}
	.contact__layout {
		grid-template-columns: 1fr 1.5fr;
		gap: 60px;
		padding: 50px;
	}
}

/* --- Buttons (дополнение для вторичной кнопки) --- */
.btn--secondary {
	background-color: var(--color-secondary);
	color: var(--color-text);
}

.btn--secondary:hover {
	background-color: #6b7280; /* A lighter shade of secondary */
	color: var(--color-text);
}

/* --- Cookie Pop-up --- */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Start hidden below the viewport */
	left: 0;
	width: 100%;
	background-color: #1a2333;
	border-top: 1px solid var(--color-secondary);
	padding: 20px;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 15px;
	transition: bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.cookie-popup.is-visible {
	bottom: 0; /* Slide in */
}

.cookie-popup__text {
	color: var(--color-secondary);
}

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

/* --- Policy & Text Pages --- */
.pages {
	padding: calc(var(--header-height) + 40px) 0 80px;
}

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

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

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

.pages p {
	margin-bottom: 20px;
	line-height: 1.7;
	color: var(--color-secondary);
}

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

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

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

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

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

/* --- Responsive for Cookie Pop-up --- */
@media (min-width: 768px) {
	.cookie-popup {
		flex-direction: row;
		justify-content: space-between;
		padding: 20px 40px;
		text-align: left;
	}
}
