/* ====================
   GLOBAL STYLES
   ==================== */
:root {
	--color-bg: #0d0d2b;
	--color-primary: #3671e9;
	--color-text: #ffffff;
	--color-text-secondary: #ebecf2;
	--font-primary: 'Poppins', sans-serif;
	--font-secondary: 'Lato', sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	/* outline: 1px solid red; */
}

html {
	scroll-behavior: smooth;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-primary);
	font-weight: 600;
}

a {
	color: var(--color-text-secondary);
	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;
}

/* ====================
   HEADER
   ==================== */
.header {
	padding: 20px 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color: rgba(13, 13, 43, 0.8);
	backdrop-filter: blur(10px);
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-primary);
	font-weight: 700;
	font-size: 20px;
	color: var(--color-text);
}

.logo:hover {
	color: var(--color-text);
}

.logo__svg {
	transition: transform 0.3s ease-in-out;
}

.logo:hover .logo__svg {
	transform: rotate(360deg);
}

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

.header__nav-link {
	font-weight: 700;
	padding-bottom: 5px;
	position: relative;
}

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

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

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

/* ====================
   FOOTER
   ==================== */
.footer {
	padding: 60px 0;
	background-color: #0a0a1e; /* slightly darker than body */
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer__column--logo {
	margin-right: 40px;
}

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

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

.footer__link {
	font-size: 14px;
}

.footer__address {
	font-size: 14px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/* ====================
   ADAPTIVE STYLES
   ==================== */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100vh;
		background-color: var(--color-bg);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: right 0.4s ease-in-out;
		display: flex;
	}

	.header__nav--open {
		right: 0;
	}

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

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

	.header__burger {
		display: block;
		z-index: 1001;
	}

	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--logo {
		margin-right: 0;
		display: flex;
		justify-content: center;
	}
}

/* ... ваши существующие стили для HEADER, FOOTER, ADAPTIVE ... */

/* ====================
   BUTTON
   ==================== */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 28px;
	background-color: var(--color-primary);
	color: var(--color-text);
	font-family: var(--font-primary);
	font-weight: 600;
	border-radius: 8px;
	border: 2px solid var(--color-primary);
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* ====================
   HERO
   ==================== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 80px; /* Header height offset */
	text-align: center;
	overflow: hidden;
}

.hero__particles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero__container {
	position: relative;
	z-index: 2;
}

.hero__title {
	font-size: 56px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 20px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.hero__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 40px;
	line-height: 1.7;
}

/* ====================
   ADAPTIVE STYLES (дополнения)
   ==================== */
@media (max-width: 768px) {
	/* ... ваши существующие стили ... */

	.hero__title {
		font-size: 36px;
	}

	.hero__subtitle {
		font-size: 16px;
	}

	.button {
		padding: 12px 24px;
	}
}

/* ... ваши существующие стили ... */

/* ====================
   REUSABLE COMPONENTS
   ==================== */
.section-title {
	font-size: 40px;
	font-weight: 700;
	text-align: center;
	margin-bottom: 15px;
}

.section-subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	text-align: center;
	max-width: 600px;
	margin: 0 auto 60px auto;
}

/* ====================
   HOW IT WORKS
   ==================== */
.how-it-works {
	padding: 100px 0;
}

.how-it-works__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.how-it-works__card {
	background-color: #161633;
	padding: 35px 30px;
	border-radius: 12px;
	border: 1px solid transparent;
	transition: transform 0.3s ease, border-color 0.3s ease;
	text-align: center;
}

.how-it-works__card:hover {
	transform: translateY(-8px);
	border-color: var(--color-primary);
}

.how-it-works__card-icon {
	margin-bottom: 25px;
	color: var(--color-primary);
}

.how-it-works__card-icon i {
	width: 48px;
	height: 48px;
}

.how-it-works__card-title {
	font-size: 22px;
	margin-bottom: 15px;
	color: var(--color-text);
}

.how-it-works__card-text {
	font-size: 16px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/* ====================
   ADAPTIVE STYLES (дополнения)
   ==================== */
@media (max-width: 992px) {
	.how-it-works__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	/* ... */
	.section-title {
		font-size: 32px;
	}
	.section-subtitle {
		font-size: 16px;
		margin-bottom: 40px;
	}
	.how-it-works {
		padding: 80px 0;
	}
	/* ... */
}

/* ... ваши существующие стили ... */

/* ====================
   TECHNOLOGIES
   ==================== */
.technologies {
	padding: 100px 0;
	background-color: #10102c; /* Slightly different background to separate sections */
}

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

.technologies__list-item {
	padding: 20px;
	font-family: var(--font-primary);
	font-weight: 600;
	font-size: 18px;
	border: 2px solid transparent;
	border-left: 2px solid #333;
	border-radius: 0 8px 8px 0;
	margin-bottom: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.technologies__list-item:hover {
	background-color: #161633;
	border-left-color: var(--color-primary);
}

.technologies__list-item--active {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-text);
}

.technologies__list-item--active:hover {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}

.technologies__display-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 30px;
	background-color: #0d0d2b;
}

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

.technologies__display-text {
	display: none;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.technologies__display-text--active {
	display: block;
	opacity: 1;
	transform: translateY(0);
}

.technologies__display-title {
	font-size: 28px;
	margin-bottom: 15px;
}

.technologies__display-text p {
	font-size: 16px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/* ====================
   ADAPTIVE STYLES (дополнения)
   ==================== */
@media (max-width: 992px) {
	/* ... */
	.technologies__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

/* ... ваши существующие стили ... */

/* ====================
   BREAKDOWNS (SLIDER)
   ==================== */
.breakdowns {
	padding: 100px 0;
}

.breakdowns-slider {
	padding: 20px 0 60px 0; /* Extra padding for pagination */
	position: relative;
}

.breakdowns__card {
	background-color: #161633;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.3s ease;
}

.breakdowns__card:hover {
	transform: translateY(-8px);
}

.breakdowns__card-img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

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

.breakdowns__card-category {
	display: inline-block;
	padding: 4px 12px;
	background-color: rgba(54, 113, 233, 0.1);
	color: var(--color-primary);
	font-size: 12px;
	font-weight: 700;
	border-radius: 20px;
	margin-bottom: 15px;
	align-self: flex-start;
}

.breakdowns__card-title {
	font-size: 20px;
	margin-bottom: 10px;
}

.breakdowns__card-text {
	font-size: 15px;
	color: var(--color-text-secondary);
	line-height: 1.6;
}

/* Swiper Controls */
.slider-controls {
	bottom: -40px;
	position: relative;
	width: 120px;
	margin: 0 auto;
}

.swiper-button-next,
.swiper-button-prev {
	color: var(--color-primary);
	background-color: rgba(54, 113, 233, 0.1);
	border-radius: 50%;
	width: 50px !important;
	height: 50px !important;
	transition: background-color 0.3s ease;
}

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

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

.swiper-pagination-bullet {
	background: var(--color-text-secondary);
	width: 10px;
	height: 10px;
	opacity: 0.5;
}

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

/* ====================
   ADAPTIVE STYLES (дополнения)
   ==================== */
@media (max-width: 768px) {
	/* ... */
	.slider-controls {
		display: none; /* Hide arrows on mobile, rely on swipe */
	}
}

/* ... ваши существующие стили ... */

/* ====================
   CONCEPTS (ACCORDION)
   ==================== */
.concepts {
	padding: 100px 0;
	background-color: #0d0d2b; /* Return to main background */
}

.accordion {
	max-width: 800px;
	margin: 0 auto;
}

.accordion__item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion__item:last-child {
	border-bottom: none;
}

.accordion__header {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 25px 0;
	background: none;
	border: none;
	color: var(--color-text);
	font-family: var(--font-primary);
	font-size: 20px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.accordion__icon {
	transition: transform 0.3s ease-in-out;
	flex-shrink: 0;
	margin-left: 20px;
}

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

.accordion__text {
	padding-bottom: 25px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/* Active state for accordion */
.accordion__item.accordion__item--active .accordion__header {
	color: var(--color-primary);
}

.accordion__item.accordion__item--active .accordion__icon {
	transform: rotate(180deg);
}

/* ====================
   ADAPTIVE STYLES (дополнения)
   ==================== */
@media (max-width: 768px) {
	/* ... */
	.accordion__header {
		font-size: 18px;
	}
}

/* ... ваши существующие стили ... */

/* ====================
   CONTACT FORM
   ==================== */
.contact {
	padding: 100px 0;
}

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

.contact__title,
.contact__subtitle {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.contact__form-wrapper {
	position: relative;
}

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

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

	position: relative;
}

.form__input {
	width: 100%;
	padding: 15px;
	background-color: #161633;
	border: 1px solid #333;
	border-radius: 8px;
	color: var(--color-text);
	font-size: 16px;
	font-family: var(--font-secondary);
	transition: border-color 0.3s ease;
}

.form__input:focus {
	outline: none;
	border-color: var(--color-primary);
}

.form__input::placeholder {
	color: var(--color-text-secondary);
	opacity: 0.7;
}

/* Hide label, but make it accessible. Used for floating label effect if needed */
.form__label {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* Custom Checkbox */
.form__group--checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
}

.form__checkbox-input {
	display: none; /* Hide default checkbox */
}

.form__checkbox-label {
	position: relative;
	padding-left: 30px;
	cursor: pointer;
	font-size: 14px;
	color: var(--color-text-secondary);
}

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

.form__checkbox-label::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background-color: #161633;
	border: 1px solid #333;
	border-radius: 4px;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form__checkbox-label::after {
	content: '✓';
	position: absolute;
	left: 4px;
	top: 50%;
	transform: translateY(-50%) scale(0);
	font-size: 16px;
	font-weight: bold;
	color: var(--color-text);
	transition: transform 0.3s ease;
}

.form__checkbox-input:checked + .form__checkbox-label::before {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}

.form__checkbox-input:checked + .form__checkbox-label::after {
	transform: translateY(-50%) scale(1);
}

.contact__button {
	width: 100%;
	padding: 16px;
}

/* Success Message */
.form-success {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 40px;
	background-color: #161633;
	border-radius: 8px;
}

.form-success i {
	color: #28a745; /* Success Green */
	width: 60px;
	height: 60px;
	margin-bottom: 20px;
}

.form-success__title {
	font-size: 24px;
	margin-bottom: 10px;
}

.form-success__text {
	color: var(--color-text-secondary);
}

/* ====================
   ADAPTIVE STYLES (дополнения)
   ==================== */
@media (max-width: 992px) {
	/* ... */
	.contact__grid {
		grid-template-columns: 1fr;
	}
	.contact__title,
	.contact__subtitle {
		text-align: center;
		max-width: 600px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* ... ваши существующие стили ... */

/* ====================
   COOKIE POPUP
   ==================== */
.cookie-popup {
	position: fixed;
	bottom: -150px; /* Initially hidden below the screen */
	left: 0;
	width: 100%;
	background-color: #161633;
	padding: 20px 0;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup--show {
	bottom: 0; /* Slides into view */
}

.cookie-popup__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.cookie-popup__text {
	color: var(--color-text-secondary);
	font-size: 15px;
}

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

.cookie-popup__button {
	flex-shrink: 0; /* Prevents the button from shrinking */
	padding: 10px 25px;
}

/* ====================
   ADAPTIVE STYLES (дополнения)
   ==================== */
@media (max-width: 768px) {
	/* ... */
	.cookie-popup__container {
		flex-direction: column;
		text-align: center;
	}
}

/* ... ваши существующие стили ... */

/* ====================
   STATIC PAGES (POLICIES, etc.)
   ==================== */
.pages {
	padding: 100px 0;
}

.pages h1 {
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 25px;
	color: var(--color-primary);
}

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

.pages p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--color-text-secondary);
	margin-bottom: 20px;
}

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

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

.pages ul li {
	position: relative;
	padding-left: 15px;
	margin-bottom: 10px;
	line-height: 1.6;
}

.pages ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--color-primary);
}

.pages ul li a {
	text-decoration: underline;
}
