/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

/* CSS Variables */
:root {
	--bg-dark: #0d1b2a;
	--text-light: #e0e1dd;
	--text-muted: #778da9;
	--accent-blue: #00a6fb;
	--card-bg: #1b263b;
	--border-color: #415a77;

	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Open Sans', sans-serif;
}

/* 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(--bg-dark);
	color: var(--text-light);
	line-height: 1.6;
	font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--text-light);
	font-weight: 700;
}

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

a:hover {
	color: var(--text-light);
}

ul {
	list-style: none;
}

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

/* Header */
.header {
	background-color: var(--bg-dark);
	padding: 20px 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	border-bottom: 1px solid var(--border-color);
}

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

.header__logo-text {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 700;
	color: var(--text-light);
}

.header__nav {
	display: none;
}

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

.header__nav-link {
	color: var(--text-light);
	font-weight: 600;
	position: relative;
	padding-bottom: 5px;
}

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

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

.header__nav-link--button {
	background-color: var(--accent-blue);
	color: var(--bg-dark);
	padding: 10px 20px;
	border-radius: 5px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.header__nav-link--button:hover {
	background-color: var(--text-light);
	color: var(--bg-dark);
}

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

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

/* Mobile Menu - Active State */
.header__nav--mobile {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background-color: var(--bg-dark);
	border-top: 1px solid var(--border-color);
	padding: 20px;
}

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

/* Footer */
.footer {
	background-color: var(--card-bg);
	padding-top: 60px;
	border-top: 1px solid var(--border-color);
}

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

.footer__logo-text {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 700;
	color: var(--text-light);
	display: block;
	margin-bottom: 15px;
}

.footer__description {
	color: var(--text-muted);
	max-width: 300px;
}

.footer__title {
	font-size: 18px;
	margin-bottom: 15px;
	font-weight: 600;
}

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

.footer__link {
	color: var(--text-muted);
}

.footer__link:hover {
	color: var(--accent-blue);
}

.footer__list--contact li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text-muted);
}

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

/* Media Queries for Responsiveness */

/* Tablet */
@media (min-width: 768px) {
	.header__nav {
		display: block;
	}
	.header__burger {
		display: none;
	}
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* --- Hero Section --- */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: 100px; /* Отступ от фиксированного хедера */
	padding-bottom: 60px;
}

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

.hero__title {
	font-size: 1.5rem; /* 40px */
	line-height: 1.2;
	margin-bottom: 20px;
	max-width: 600px;
}

.hero__subtitle {
	font-size: 1.125rem; /* 18px */
	color: var(--text-muted);
	margin-bottom: 30px;
	max-width: 550px;
}

.button {
	display: inline-block;
	background-color: var(--accent-blue);
	color: var(--bg-dark);
	font-family: var(--font-heading);
	font-weight: 600;
	padding: 15px 30px;
	border-radius: 5px;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
	background-color: var(--text-light);
	transform: translateY(-3px);
	color: var(--bg-dark);
}

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

.hero__image {
	border-radius: 10px;
	border: 1px solid var(--border-color);
}

/* Animation styles */
[data-animate='hero-element'] {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate='hero-element'].is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Media Queries for Hero Section */

/* Tablet and larger */
@media (min-width: 768px) {
	.hero__title {
		font-size: 2.5rem; /* 56px */
	}
}

/* Desktop */
@media (min-width: 1024px) {
	.hero__container {
		grid-template-columns: 1fr 1fr;
		gap: 60px;
		text-align: left;
	}
}

/* --- Shared Section Styles --- */
.section-title,
.section-subtitle {
	text-align: center;
}

.section-title {
	font-size: 2.25rem; /* 36px */
	margin-bottom: 15px;
}

.section-subtitle {
	font-size: 1.125rem; /* 18px */
	color: var(--text-muted);
	max-width: 700px;
	margin: 0 auto 50px;
}

/* --- Features Section --- */
.features {
	padding: 80px 0;
	background-color: var(--card-bg);
}

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

.features__card {
	background-color: var(--bg-dark);
	padding: 30px;
	border-radius: 10px;
	border: 1px solid var(--border-color);
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.features__card:hover {
	transform: translateY(-5px);
	border-color: var(--accent-blue);
}

.features__card-icon {
	margin-bottom: 20px;
}

.features__card-icon i {
	width: 40px;
	height: 40px;
	color: var(--accent-blue);
}

.features__card-title {
	font-size: 1.5rem; /* 24px */
	margin-bottom: 10px;
}

.features__card-description {
	color: var(--text-muted);
}

/* Media Queries for Features Section */
@media (min-width: 768px) {
	.features__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.features__grid {
		grid-template-columns: repeat(4, 1fr);
	}
	.features {
		padding: 100px 0;
	}
}

/* --- Technology Section --- */
.tech {
	padding: 100px 0;
}

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

/* Модификаторы для выравнивания текста по левому краю */
.section-title--left,
.section-subtitle--left {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.tech__list {
	list-style: none;
	margin-top: 40px;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

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

.tech__item-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	color: var(--accent-blue);
	margin-top: 5px;
}

.tech__item-title {
	font-size: 1.25rem; /* 20px */
	margin-bottom: 5px;
}

.tech__item-description {
	color: var(--text-muted);
}

.tech__image {
	border-radius: 10px;
	border: 1px solid var(--border-color);
}

/* Media Queries for Tech Section */
@media (min-width: 1024px) {
	.tech__container {
		grid-template-columns: 1fr 1fr;
	}
}

/* --- Process Section --- */
.process {
	padding: 100px 0;
	background-color: var(--card-bg);
}

.process__steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	margin-top: 60px;
	position: relative;
}

.process__step {
	background-color: var(--bg-dark);
	border: 1px solid var(--border-color);
	padding: 30px;
	border-radius: 10px;
	position: relative;
	overflow: hidden; /* To contain the number */
}

.process__step-number {
	position: absolute;
	top: -10px;
	right: 20px;
	font-size: 5rem; /* 80px */
	font-weight: 700;
	color: var(--border-color);
	opacity: 0.3;
	z-index: 0;
	line-height: 1;
}

.process__step-content {
	position: relative;
	z-index: 1;
}

.process__step-title {
	font-size: 1.5rem; /* 24px */
	margin-bottom: 15px;
}

.process__step-description {
	color: var(--text-muted);
}

/* Media Queries for Process Section */
@media (min-width: 1024px) {
	.process__steps {
		grid-template-columns: repeat(3, 1fr);
		gap: 60px;
	}

	/* Decorative connecting line */
	.process__step:not(:last-child)::after {
		content: '';
		position: absolute;
		top: 50%;
		right: -45px; /* (gap - line width) / 2 */
		transform: translateY(-50%);
		width: 30px;
		height: 2px;
		background-color: var(--accent-blue);
	}
}

/* --- Cases Section --- */
.cases {
	padding: 100px 0;
}

.cases__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	margin-top: 50px;
}

.cases__card {
	background-color: var(--card-bg);
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cases__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cases__card-image-wrapper {
	width: 100%;
	height: 200px;
}

.cases__card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cases__card-content {
	padding: 25px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.cases__card-tag {
	display: inline-block;
	background-color: var(--accent-blue);
	color: var(--bg-dark);
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 15px;
	align-self: flex-start;
}

.cases__card-title {
	font-size: 1.5rem; /* 24px */
	margin-bottom: 10px;
}

.cases__card-description {
	color: var(--text-muted);
	margin-bottom: 20px;
	flex-grow: 1;
}

.cases__card-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--accent-blue);
	font-weight: 600;
	margin-top: auto; /* Pushes the link to the bottom */
}

.cases__card-link i {
	transition: transform 0.3s ease;
}

.cases__card-link:hover i {
	transform: translateX(5px);
}

/* Media Queries for Cases Section */
@media (min-width: 768px) {
	.cases__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* --- Contact Section --- */
.contact {
	padding: 100px 0;
	background-color: var(--card-bg);
}

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

.contact__info-notice {
	margin-top: 20px;
	color: var(--text-muted);
	background-color: var(--bg-dark);
	border: 1px solid var(--border-color);
	padding: 15px;
	border-radius: 5px;
	display: inline-block;
}

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

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

.form__label {
	color: var(--text-muted);
	margin-bottom: 8px;
	font-size: 0.875rem;
}

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

.form__input::placeholder {
	color: var(--text-muted);
}

.form__input:focus {
	outline: none;
	border-color: var(--accent-blue);
	box-shadow: 0 0 0 3px rgba(0, 166, 251, 0.2);
}

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

.form__checkbox {
	margin-top: 5px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.form__checkbox-label {
	color: var(--text-muted);
	font-size: 0.875rem;
}

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

.contact__form-button {
	width: 100%;
	border: none;
	cursor: pointer;
}

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

.contact__success-message i {
	color: var(--accent-blue);
	width: 48px;
	height: 48px;
	margin-bottom: 20px;
}

.contact__success-message h3 {
	font-size: 1.5rem;
	margin-bottom: 10px;
}

/* Media Queries for Contact Section */
@media (min-width: 1024px) {
	.contact__container {
		grid-template-columns: 1fr 1fr;
	}
}

/* --- Cookie Popup --- */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--card-bg);
	border-top: 1px solid var(--border-color);
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	z-index: 2000;
	transform: translateY(150%);
	transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__text {
	color: var(--text-muted);
	font-size: 0.875rem;
}

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

.cookie-popup__button {
	padding: 10px 20px;
	flex-shrink: 0; /* Чтобы кнопка не сжималась */
}

/* Адаптивность для Cookie Popup */
@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
	}
}

/* --- Static Legal Pages Styles (privacy.html, etc.) --- */
.pages {
	padding: 120px 0 80px; /* Отступы сверху (под хедер) и снизу */
}

.pages .container {
	max-width: 800px; /* Ограничиваем ширину для лучшей читаемости */
}

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

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

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

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

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

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

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

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