/* Goggle Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&family=Space+Grotesk:wght@500;700&display=swap');

/* CSS Variables */
:root {
	--bg-color: #0d1b2a;
	--text-color: #e0e1dd;
	--secondary-text-color: #778da9;
	--accent-color: #00a896;
	--card-bg-color: #1b263b;
	--border-color: #415a77;

	--font-primary: 'Roboto', sans-serif;
	--font-secondary: 'Space Grotesk', sans-serif;

	--header-height: 70px;
}

/* Global Styles */
*,
*::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-primary);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-secondary);
	color: var(--text-color);
	line-height: 1.2;
	margin-bottom: 0.5em;
}

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

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

ul {
	list-style: none;
}

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

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

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

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

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 1.5rem;
}

.logo img {
	height: 32px;
	width: 32px;
}

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

.header__nav-link {
	font-family: var(--font-secondary);
	font-weight: 500;
	font-size: 1rem;
	position: relative;
	padding: 5px 0;
}

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

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

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

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

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

.footer__description {
	color: var(--secondary-text-color);
	margin-top: 15px;
	font-size: 0.9rem;
	max-width: 250px;
}

.footer__title {
	font-family: var(--font-secondary);
	font-size: 1.2rem;
	margin-bottom: 20px;
	color: var(--text-color);
}

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

.footer__link {
	color: var(--secondary-text-color);
	font-size: 0.95rem;
}

.footer__list--contacts .footer__link {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer__list--contacts i {
	width: 18px;
	height: 18px;
	color: var(--accent-color);
}

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

/* Mobile (Media Queries) */
@media (max-width: 768px) {
	.header__nav {
		display: none;
		position: absolute;
		top: var(--header-height);
		left: 0;
		width: 100%;
		background-color: var(--bg-color);
		border-bottom: 1px solid var(--border-color);
	}

	.header__nav.is-active {
		display: block;
	}

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

	.header__burger {
		display: block;
	}
}

/* Button Component */
.button {
	display: inline-block;
	padding: 12px 28px;
	background-color: var(--accent-color);
	color: var(--bg-color);
	font-family: var(--font-secondary);
	font-weight: 700;
	text-align: center;
	border: 2px solid var(--accent-color);
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.button:hover {
	background-color: transparent;
	color: var(--accent-color);
}

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

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

.hero__title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 20px;
	height: 144px;
}

/* Typing animation cursor */
.hero__title::after {
	content: '|';
	animation: blink 1s step-end infinite;
	color: var(--accent-color);
	margin-left: 5px;
}

@keyframes blink {
	from,
	to {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

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

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

.hero__image {
	max-width: 100%;
	border-radius: 10px;
	opacity: 0.8;
}

/* Responsive adjustments for Hero */
@media (max-width: 992px) {
	.hero__title {
		font-size: 2rem;
	}
}

@media (max-width: 768px) {
	.hero {
		text-align: center;
		padding-top: calc(var(--header-height) + 40px);
		padding-bottom: 40px;
		min-height: auto;
	}
	.hero__container {
		grid-template-columns: 1fr;
		gap: 50px;
	}

	.hero__content {
		order: 2; /* Текст будет под картинкой */
	}

	.hero__image-wrapper {
		order: 1;
	}

	.hero__title {
		font-size: 1.5rem;
		height: 87px;
	}

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

/* Section Base Styles */
.section {
	padding: 80px 0;
}

.section__title {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 15px;
}

.section__subtitle {
	font-size: 1.1rem;
	color: var(--secondary-text-color);
	text-align: center;
	max-width: 600px;
	margin: 0 auto 50px auto;
}

/* Platforms Section */
.platforms__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 30px;
}

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

.platform-card:hover {
	transform: translateY(-8px);
	border-color: var(--accent-color);
}

.platform-card__icon {
	margin-bottom: 20px;
}

.platform-card__icon i {
	width: 48px;
	height: 48px;
	color: var(--accent-color);
}

.platform-card__title {
	font-size: 1.5rem;
	margin-bottom: 10px;
}

.platform-card__description {
	color: var(--secondary-text-color);
	font-size: 0.95rem;
}

/* Responsive adjustments for Section */
@media (max-width: 768px) {
	.section {
		padding: 60px 0;
	}
	.section__title {
		font-size: 2rem;
	}
}

/* Tech Section */
.tech {
	background-color: var(--card-bg-color);
}

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

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

.accordion__item {
	border-bottom: 1px solid var(--border-color);
}
.accordion__item:first-child {
	border-top: 1px solid var(--border-color);
}

.accordion__button {
	width: 100%;
	background: none;
	border: none;
	color: var(--text-color);
	padding: 20px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: left;
	font-family: var(--font-secondary);
	font-size: 1.2rem;
	cursor: pointer;
	transition: color 0.3s ease;
}

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

.accordion__icon {
	transition: transform 0.3s ease;
	flex-shrink: 0; /* Предотвращает сжатие иконки */
	margin-left: 15px;
}

.accordion__button[aria-expanded='true'] .accordion__icon {
	transform: rotate(180deg);
}

.accordion__content {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.4s ease-out;
}

.accordion__content p {
	padding: 0 0 20px;
	color: var(--secondary-text-color);
	font-size: 0.95rem;
}

.tech__visual {
	display: flex;
	justify-content: center;
	align-items: center;
}
.tech__visual img {
	border-radius: 10px;
	opacity: 0.7;
}

/* Responsive adjustments for Tech Section */
@media (max-width: 768px) {
	.tech__container {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.section__title--left,
	.section__subtitle--left {
		text-align: center;
	}
	.tech__visual {
		display: none; /* Скрываем картинку на мобильных для экономии места */
	}
}

/* Cases Section */
.cases {
	position: relative;
	overflow: hidden;
}

.case-slide {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 40px;
	background-color: var(--card-bg-color);
	border-radius: 10px;
	overflow: hidden;
}

.case-slide__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.case-slide__content {
	padding: 40px;
}

.case-slide__tag {
	display: inline-block;
	padding: 5px 12px;
	background-color: var(--accent-color);
	color: var(--bg-color);
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 700;
	margin-bottom: 15px;
	font-family: var(--font-secondary);
}

.case-slide__title {
	font-size: 1.8rem;
	margin-bottom: 15px;
}

.case-slide__description {
	color: var(--secondary-text-color);
	margin-bottom: 25px;
}

.case-slide__link {
	font-family: var(--font-secondary);
	font-weight: 700;
	color: var(--accent-color);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.case-slide__link i {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.case-slide__link:hover i {
	transform: translateX(5px);
}

/* Reversed layout for even slides */
.case-slide--reversed .case-slide__image {
	order: 2;
}
.case-slide--reversed .case-slide__content {
	order: 1;
}

/* Swiper Navigation */
.cases__navigation {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 40px;
	gap: 30px;
}

.swiper-button-prev,
.swiper-button-next {
	position: static;
	margin: 0;
	width: 44px !important;
	height: 44px !important;
	background-color: transparent;
	border: 1px solid var(--border-color);
	border-radius: 50%;
	color: var(--accent-color);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
	background-color: var(--card-bg-color);
	border-color: var(--accent-color);
}

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

.swiper-pagination {
	position: static;
	width: auto;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
	.case-slide,
	.case-slide--reversed {
		grid-template-columns: 1fr;
	}
	.case-slide--reversed .case-slide__image,
	.case-slide .case-slide__image {
		order: 1;
	}
	.case-slide--reversed .case-slide__content,
	.case-slide .case-slide__content {
		order: 2;
	}
	.case-slide__title {
		font-size: 1.5rem;
	}
}

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

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

/* The connecting line */
.process__timeline::before {
	content: '';
	position: absolute;
	top: 0;
	left: 45px;
	height: 100%;
	width: 2px;
	background-color: var(--border-color);
}

.process__step {
	position: relative;
	display: flex;
	gap: 30px;
	padding-left: 100px;
	margin-bottom: 40px;
}

.process__step:last-child {
	margin-bottom: 0;
}

.process__step-header {
	position: absolute;
	left: 0;
	top: 5px;
	display: flex;
	align-items: center;
}

.process__step-number {
	font-family: var(--font-secondary);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--secondary-text-color);
}

.process__step-icon {
	width: 44px;
	height: 44px;
	background-color: var(--bg-color);
	border: 2px solid var(--border-color);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.process__step-icon i {
	color: var(--accent-color);
	width: 24px;
	height: 24px;
}

.process__step-title {
	font-size: 1.5rem;
	margin-bottom: 10px;
}

.process__step-content p {
	color: var(--secondary-text-color);
}

/* Responsive adjustments for Process Section */
@media (max-width: 768px) {
	.process__timeline::before {
		left: 22px;
	}
	.process__step {
		padding-left: 60px;
		gap: 20px;
	}
	.process__step-header {
		top: 0;
	}

	.process__step-number {
		display: none; /* Hide number on mobile to save space */
	}
	.process__step-title {
		font-size: 1.3rem;
	}
}

/* Contact Section */
.contact__container {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 60px;
	background-color: var(--card-bg-color);
	padding: 50px;
	border-radius: 10px;
	border: 1px solid var(--border-color);
}

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

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

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

.contact__info-list li {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	color: var(--secondary-text-color);
}

.contact__info-list i {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--accent-color);
	margin-top: 3px;
}
.contact__info-list a {
	color: var(--secondary-text-color);
}
.contact__info-list a:hover {
	color: var(--accent-color);
}

/* Form Styles */
.contact__form-wrapper {
	position: relative;
}

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

.form-label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.9rem;
	color: var(--secondary-text-color);
}

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

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

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 10px;
}
.form-group--checkbox input[type='checkbox'] {
	margin-top: 5px;
	flex-shrink: 0;
}
.form-group--checkbox label {
	font-size: 0.9rem;
	color: var(--secondary-text-color);
}
.form-group--checkbox label a {
	color: var(--accent-color);
	text-decoration: underline;
}

.contact__form-button {
	width: 100%;
	padding: 15px;
	font-size: 1.1rem;
}

.form-message {
	display: none;
	text-align: center;
	padding: 40px;
}
.form-message h4 {
	font-size: 1.8rem;
	color: var(--accent-color);
	margin-bottom: 15px;
}

/* Responsive adjustments for Contact */
@media (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.contact__container {
		padding: 30px;
	}
}

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

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

.cookie-popup__text {
	color: var(--secondary-text-color);
	font-size: 0.9rem;
	text-align: center;
}

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

.cookie-popup__button {
	padding: 8px 20px;
	flex-shrink: 0;
}

/* Styles for Policy Pages (privacy.html, terms.html, etc.) */
.pages {
	padding: calc(var(--header-height) + 60px) 0 60px;
}

.pages .container {
	max-width: 800px;
}

.pages h1 {
	font-size: 1.8rem;
	margin-bottom: 30px;
	text-align: center;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 40px;
	margin-bottom: 15px;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 10px;
}

.pages p,
.pages ul,
.pages li {
	color: var(--secondary-text-color);
	font-size: 1.1rem;
	line-height: 1.7;
}

.pages p {
	margin-bottom: 20px;
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
	}
	.pages h1 {
		font-size: 2.2rem;
	}
	.pages h2 {
		font-size: 1.5rem;
	}
}
