/* ================================================================
   FRAME DIGITAL - MAIN STYLESHEET
   Version: 1.0
   Last Updated: November 12, 2025
   
   STRUCTURE:
   1. Reset & Base Styles
   2. CSS Variables
   3. Body Styles
   4. DESKTOP STYLES (All Sections)
      - Hero Section
      - Statistics Section
      - Partners Section
      - Diagnostic Form Section
   5. RESPONSIVE STYLES (All Breakpoints)
      - 1440px (Large Tablets)
      - 1024px (Tablets)
      - 768px (Mobile)
      - 480px (Small Mobile)
   ================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Unbounded:wght@400;500;600;700&display=swap");

/* ================================================================
   1. RESET & BASE STYLES
   Universal reset for consistent rendering across browsers
   ================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
}

h1,
h2,
.display {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
}

input,
button,
textarea,
select {
  -webkit-appearance: none;
  appearance: none;
}

/* ================================================================
   2. CSS VARIABLES (Design Tokens)
   Centralized design system - modify here to update globally
   ================================================================ */

:root {
  /* ===== Colors ===== */
  --color-primary: #4c97b2;
  --color-accent: #59adcc;
  --color-dark: #0c0c0c;
  --color-light: #f7f7f7;
  --color-white: #ffffff;
  --color-text-secondary: rgba(0, 0, 0, 0.7);
  --color-border: rgba(0, 0, 0, 0.1);
  /* Background Colors */
  --c-bg: #020203;
  --c-bg-deep: #000000;
  --c-bg-card: #0f0f0f;
  --bg-deep: #050505;
  /* Accent Colors */
  --c-accent: #3b82f6;
  --c-accent-hover: #2563eb;
  --c-accent-primary: #3b82f6;
  --c-accent-secondary: #8b5cf6;
  --c-accent-glow: rgba(59, 130, 246, 0.5);
  --c-purple: #8b5cf6;
  --c-cyan: #06b6d4;
  /* Text Colors */
  --c-text: #ffffff;
  --c-text-muted: #94a3b8;
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  /* Glass & Borders */
  --glass-bg: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-border-top: 1px solid rgba(255, 255, 255, 0.15);
  /* ===== Typography ===== */
  --font-display: "Unbounded", sans-serif;
  --font-main: "Montserrat", sans-serif;
  --font-tech: "Anonymous Pro", monospace;
  --font-heading: "Unbounded-SemiBold", sans-serif;
  --font-body: "Inter-Regular", sans-serif;
  --font-medium: "Inter-Medium", sans-serif;
  --font-nav: "Montserrat-Medium", sans-serif;
  --font-nav-bold: "Montserrat-SemiBold", sans-serif;
  --font-btn: "Unbounded-Medium", sans-serif;
  font-size: 16px;
  --fs-title-section: clamp(2.5rem, 3vw, 3.5rem);
  --fs-subtitle-section: 1.125rem;
  --fs-text-base: 1rem;
  --fs-text-small: 0.875rem;
  --fs-label: 0.75rem;
  --fs-card-title: 1.5rem;
  --fs-big-logo: clamp(5rem, 25vw, 30rem);
  --fs-brand-title: clamp(2rem, 4vw, 3rem);
  --fs-nav-link: clamp(1rem, 1.1vw, 1.15rem);
  /* ===== Button System (ПОЛНАЯ ВЕРСИЯ) ===== */
  --btn-height: 3.75rem;
  --btn-height-small: 3.5rem;
  --btn-padding: 0 2.5rem;
  --btn-padding-small: 0 1rem;
  --btn-padding-y: 0.75rem;
  --btn-radius: 24px;
  --btn-radius-round: 3.125rem;
  --btn-font-size: 1.125rem;
  --btn-font-size-small: 0.9rem;
  --btn-font-weight: 500;
  --btn-font-weight-bold: 700;
  --btn-gap: 0.7rem;
  --btn-gap-small: 0.5rem;
  /* Button Icon */
  --btn-icon-size: 6.75rem;
  /* 60px - размер круга иконки */
  --btn-icon-size-small: 6.625rem;
  --btn-icon-svg: 1.5rem;
  /* 24px - размер самой SVG */
  --btn-icon-bg: rgba(255, 255, 255, 0.2);
  --btn-icon-radius: 50%;
  /* Круглая */
  /* Button Colors */
  --btn-text-color: #ffffff;
  --btn-primary-bg: var(--c-accent);
  --btn-primary-bg-hover: var(--c-accent-hover);
  --btn-primary-shadow: rgba(59, 130, 246, 0.4);
  --btn-primary-shadow-hover: rgba(59, 130, 246, 0.6);
  --btn-secondary-border: #ffffff;
  --btn-secondary-bg-hover: #ffffff;
  --btn-secondary-text: #ffffff;
  --btn-secondary-text-hover: #0c0c0c;
  /* Button Effects */
  --btn-shine-gradient: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  --btn-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* ===== Spacing ===== */
  --section-padding-x: 6.5%;
  --section-padding-y: 4rem;
  --section-gap: 1.5rem;
  --section-gap-large: 3.75rem;
  --spacing-container-x: clamp(1.5rem, 5vw, 5rem);
  --spacing-container-y: clamp(3rem, 8vh, 6rem);
  --spacing-gap: clamp(2rem, 4vw, 5rem);
  --container-gap: 1rem;
  --container-gap-medium: 2rem;
  --container-gap-large: 3rem;
  --card-padding: 1.5rem;
  --card-padding-large: 2rem;
  --card-gap: 0.625rem;
  --content-gap-small: 0.5rem;
  --content-gap: 1rem;
  --content-gap-medium: 1.5rem;
  --content-gap-large: 2rem;
  /* ===== Border Radius ===== */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-card: 1.5rem;
  --radius-round: 50%;
  /* ===== Transitions ===== */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  /* ===== Shadows ===== */
  --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-large: 0 10px 40px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.4);
  --shadow-glow-hover: 0 10px 40px rgba(59, 130, 246, 0.6);
  /* ===== Section-Specific ===== */
  --sol-card-bg: linear-gradient(
    180deg,
    rgba(20, 20, 25, 0.7) 0%,
    rgba(5, 5, 8, 0.9) 100%
  );
  --sol-card-hover: linear-gradient(
    180deg,
    rgba(30, 30, 40, 0.8) 0%,
    rgba(10, 10, 15, 0.95) 100%
  );
  --s-card-bg: #0b0b0f;
  --s-border: rgba(255, 255, 255, 0.1);
  --s-accent: #3b82f6;
  --s-text: #ffffff;
  --rv-spacing-y: clamp(4rem, 10vh, 8rem);
  --rv-title-size: clamp(2rem, 5vw, 3.5rem);
  --rv-card-radius: 1.5rem;
  --rv-bg-glass: rgba(255, 255, 255, 0.03);
  --faq-spacing-y: clamp(4rem, 8vh, 8rem);
  --faq-gap-desktop: clamp(3rem, 5vw, 8rem);
  --faq-sidebar-w: clamp(260px, 20vw, 25rem);
  --faq-title-size: clamp(2rem, 5vw, 3rem);
  --cf-spacing-y: clamp(4rem, 10vh, 8rem);
  --cf-title-size: clamp(2rem, 5vw, 3.5rem);
  --cf-input-height: clamp(3rem, 6vh, 3.5rem);
  --cf-gap: clamp(2rem, 5vw, 6rem);
}

/* ================================================================
   3. BODY STYLES
   ================================================================ */

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
  /* Сглаживание шрифтов для Mac/iOS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- ГЛОБАЛЬНЫЙ ШУМ (NOISE) --- */

/* Добавляет "киношную" текстуру всему сайту, убирая пластиковый блеск */

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  /* Едва заметно */
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* --- АТМОСФЕРНЫЕ ПЯТНА (AMBIENT LIGHTS) --- */

/* Создают глубину на фоне всего сайта */

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(
      circle at 15% 10%,
      rgba(59, 130, 246, 0.08),
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 40%,
      rgba(139, 92, 246, 0.06),
      transparent 40%
    ),
    radial-gradient(circle at 50% 90%, rgba(6, 182, 212, 0.05), transparent 50%);
  pointer-events: none;
}

/* ================================================================
   4. DESKTOP STYLES - ALL SECTIONS
   Default styles for desktop viewport (1920px+)
   ================================================================ */

/* Background Particles */

.hero__bg-particle {
  position: absolute;
  width: clamp(12.5rem, 15.67vw, 20.625rem);
  /* 200-330px */
  height: clamp(12.5rem, 15.67vw, 20.625rem);
  border-radius: 50%;
  opacity: 0.78;
  filter: blur(clamp(9rem, 18.628125rem, 18.628125rem));
  /* 144-298px blur */
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero__bg-particle--top {
  left: 0;
  top: 5.75rem;
  /* 92px */
}

.hero__bg-particle--bottom {
  right: 0;
  top: 36.5625rem;
  /* 585px */
}

/* Background Logo */

.hero__bg-logo {
  position: absolute;
  right: 10.21%;
  top: 10.5625rem;
  /* 169px */
  width: clamp(20rem, 33.95vw, 44.6875rem);
  /* 320-715px */
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  pointer-events: none;
  z-index: 2;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  /* Фиксированная высота для стабильности */
  z-index: 1000;
  padding: 0 var(--section-padding-x);
  /* Используем переменную 6.5% */
  /* Glassmorphism Effect */
  background: rgba(5, 5, 5, 0.6);
  /* Полупрозрачный черный */
  backdrop-filter: blur(16px);
  /* Размытие фона */
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* Тонкая граница */
  display: flex;
  align-items: center;
  transition: background 0.3s ease, padding 0.3s ease;
}

.nav__container {
  width: 100%;
  max-width: 1800px;
  /* Ограничитель ширины на больших экранах */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  /* Важно для центрирования меню */
}

/* --- ЛОГОТИП --- */

.nav__logo-link {
  display: flex;
  align-items: center;
  z-index: 1002;
  /* Чтобы лого было поверх мобильного меню */
  position: relative;
}

.nav__logo {
  height: 2.5rem;
  /* Оптимальный размер */
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.nav__logo:hover {
  opacity: 0.8;
}

/* --- МЕНЮ (DESKTOP) --- */

.nav__menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  /* Абсолютное центрирование */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__item {
  font-family: var(--font-nav, sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  padding: 0.5rem 0;
}

/* Эффект при наведении */

.nav__item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background-color: var(--c-accent);
  /* Голубой акцент */
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

.nav__item:hover,
.nav__item--active {
  color: var(--c-text);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.nav__item:hover::after,
.nav__item--active::after {
  transform: translateX(-50%) scaleX(1);
}

/* --- БУРГЕР КНОПКА (Скрыта на ПК) --- */

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  /* Поверх меню */
}

.nav__burger span {
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Анимация крестика бургера */

.nav__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav__burger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* =========================
   ADAPTIVE CSS (Mobile & Tablet)
   ========================= */

@media (max-width: 1200px) {
  /* Уменьшаем отступы между ссылками на средних экранах */
  .nav__menu {
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  /* --- PERFORMANCE OPTIMIZATIONS --- */
  body::before {
    display: none !important; /* Disable Noise Filter */
  }
  .hero__grid,
  .hero__shape,
  .nebula,
  .solutions__card,
  .hero__title-main,
  .guide-pulse {
    animation: none !important; /* Disable continuous animations */
  }
  .solutions__card {
    will-change: auto !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(20, 20, 25, 0.95); /* Solid fallback */
  }
  .nav {
    padding: 0 2rem;
    height: 70px;
    backdrop-filter: none !important; /* Remove blur from nav */
    -webkit-backdrop-filter: none !important;
    background: rgba(5, 5, 5, 0.95); /* Solid background */
  }
  .nav__burger {
    display: flex;
  }
  /* --- МОБИЛЬНОЕ МЕНЮ --- */
  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #050505;
    background-image: radial-gradient(
        circle at 10% 20%,
        rgba(59, 130, 246, 0.15) 0%,
        transparent 20%
      ),
      radial-gradient(
        circle at 90% 80%,
        rgba(139, 92, 246, 0.1) 0%,
        transparent 20%
      );
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    padding-top: 4rem;
  }
  .nav__menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__item {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
  }
  .nav__item:hover,
  .nav__item--active {
    color: #fff;
    transform: scale(1.1);
  }
  .nav__item::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0 1.25rem;
  }
  .nav__logo {
    height: 2rem;
  }
  .nav__item {
    font-size: 1.25rem;
  }
}

/* ================================================================
   HERO: CYBER-LUXE STYLE
   ================================================================ */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  /* ИСПРАВЛЕНИЕ: Добавляем верхний отступ, чтобы Хедер не перекрывал контент */
  /* Сверху 8rem (около 128px), по бокам 6.5%, снизу 2rem */
  padding: 8rem var(--section-padding-x) 2rem;
  display: flex;
  align-items: center;
  /* Центрируем, но padding не даст уехать под хедер */
  background-color: var(--c-bg);
  overflow: hidden;
  perspective: 1000px;
  box-sizing: border-box;
  /* Важно, чтобы padding не ломал ширину */
}

/* =========================
   1. DYNAMIC BACKGROUND (GRID)
   ========================= */

.hero__grid {
  position: absolute;
  top: 50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: linear-gradient(
      rgba(59, 130, 246, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 100px 100px;
  transform: rotateX(45deg);
  /* Наклон пола */
  animation: gridMove 20s linear infinite;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 40%,
    transparent 100%
  );
  /* Видно только в центре */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 40%,
    transparent 100%
  );
}

@keyframes gridMove {
  0% {
    transform: rotateX(45deg) translateY(0);
  }
  100% {
    transform: rotateX(45deg) translateY(100px);
  }
}

/* Шум */

.noise-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.07;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* =========================
   2. FLOATING SHAPES (Абстракция)
   ========================= */

.hero__shape {
  position: absolute;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.6;
  animation: floatShape 10s ease-in-out infinite alternate;
}

.hero__shape--1 {
  top: 10%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--c-accent), transparent 70%);
}

.hero__shape--2 {
  bottom: 0;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--c-purple), transparent 70%);
  animation-delay: -5s;
}

@keyframes floatShape {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

/* =========================
   2.5 ATMOSPHERE & NEBULA
   (Fixing CLS and Missing Styles)
   ========================= */

.atmosphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  /* CLS Fix - Isolate this container from layout */
  contain: strict;
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 1;
  /* CLS Fix */
  contain: layout style;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.nebula--1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--c-accent), transparent 70%);
  animation: bgPulse 10s ease-in-out infinite alternate;
}

.nebula--2 {
  bottom: -10%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--c-purple), transparent 70%);
  animation: bgPulse 12s ease-in-out infinite alternate-reverse;
}

@keyframes bgPulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.1); opacity: 0.6; }
}

.guides-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.guide-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.03);
}

.guide-line--left { left: 15%; }
.guide-line--center { left: 50%; }
.guide-line--right { right: 15%; }

.guide-pulse {
  position: absolute;
  top: -20%;
  left: 0;
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--c-accent), transparent);
  animation: guideDrop 6s infinite ease-in-out;
  opacity: 0;
  /* CLS Fix + Composited Animation */
  contain: layout style;
  will-change: transform, opacity;
  transform: translateY(0) translateZ(0);
}

.guide-pulse--delay {
  animation-delay: 3s;
}

/* Fixed: Using transform instead of top for GPU compositing */
@keyframes guideDrop {
  0% { transform: translateY(0) translateZ(0); opacity: 0; }
  20% { opacity: 0.5; }
  80% { opacity: 0.5; }
  100% { transform: translateY(140vh) translateZ(0); opacity: 0; }
}

.floating-dust, .noise-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* =========================
   3. VIDEO INTEGRATION
   ========================= */

.hero__video-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 0;
  opacity: 0.8;
  mix-blend-mode: screen;
  /* Видео светится на черном фоне */
  mask-image: linear-gradient(to right, transparent 0%, black 30%);
  /* Плавное появление слева */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

.hero__bg-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   4. TYPOGRAPHY ANIMATIONS
   ========================= */

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero__title-main {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  display: block;
  position: relative;
  color: transparent;
  /* Эффект: Текст вырезан, внутри бежит градиент */
  background: linear-gradient(
    110deg,
    #ffffff 10%,
    #8b5cf6 40%,
    #3b82f6 50%,
    #ffffff 90%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  /* Анимация перелива */
  animation: shineText 5s linear infinite;
  /* Тень для объема */
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.4));
}

@keyframes shineText {
  to {
    background-position: 200% center;
  }
}

.hero__title-accent {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin-top: 1rem;
  display: block;
  /* Появление снизу */
  opacity: 0;
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.text-highlight {
  color: var(--c-accent-light);
  position: relative;
  display: inline-block;
}

/* Подчеркивание, которое рисуется само */

  /* Подчеркивание, которое рисуется само */
  
  .text-highlight::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    height: 3px;
    background: var(--c-accent);
    box-shadow: 0 0 10px var(--c-accent);
    animation: drawLine 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1s;
    will-change: transform;
  }
  
  @keyframes drawLine {
    to {
      transform: scaleX(1);
    }
  }

.hero__subtitle {
  font-family: var(--font-main);
  font-size: 1.125rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 600px;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

/* =========================
   5. BUTTONS (NEXT GEN)
   ========================= */

/* Анимация появления для элементов */

.anim-entry {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay);
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================
   STATS SECTION (LEFT ALIGNED & PREMIUM GLASS)
   ================================================================ */

.stats {
  /* Сетка */
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  /* Позиционирование */
  width: 100%;
  padding: var(--section-padding-y) var(--section-padding-x);
  margin-top: 4rem;
  position: relative;
  z-index: 5;
  /* Выравнивание */
  justify-content: flex-start;
  align-items: stretch;
}

/* ФОНОВОЕ СВЕЧЕНИЕ ПОД СТАТИСТИКОЙ */

.stats__glow {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  height: 120%;
  background: radial-gradient(
    ellipse at left,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 70%
  );
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

/* =========================
   ITEM CARD
   ========================= */

.stats__item {
  /* Desktop: все карточки в одну строку */
  flex: 1 1 auto;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Glass Effect */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.005) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Границы */
  border: 1px solid var(--c-border);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Hover Effect: Подсветка и поднятие */

.stats__item:hover {
  transform: translateY(-4px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Светящаяся полоска сверху (Top Highlight) */

.stats__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.5),
    transparent
  );
  opacity: 0.5;
  transition: opacity 0.3s;
}

.stats__item:hover::before {
  opacity: 1;
}

/* =========================
   NUMBERS
   ========================= */

.stats__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 100%;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.stats__number-plus {
  color: var(--c-accent);
  font-weight: 400;
  margin-left: 2px;
  vertical-align: top;
  font-size: 0.8em;
}

/* =========================
   DIVIDER
   ========================= */

.stats__divider {
  width: 100%;
  height: 1px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--c-accent), transparent);
  opacity: 0.3;
}

/* =========================
   DESCRIPTION
   ========================= */

.stats__description {
  font-family: var(--font-main);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--c-text-muted);
}

.stats__description-accent {
  display: block;
  color: var(--c-text);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.stats__description-text {
  font-weight: 400;
}

/* ================================================================
   PARTNERS SECTION (OPTIMIZED)
   ================================================================ */

.partners {
  width: 100%;
  padding: 4rem 6.5%;
  position: relative;
  z-index: 5;
  background-color: var(--bg-deep, #000);
  /* Fallback на черный */
  display: flex;
  justify-content: center;
  align-items: center;
  /* ОПТИМИЗАЦИЯ: Изолируем перерисовку секции */
  contain: layout paint;
}

/* ФОНОВОЕ СВЕЧЕНИЕ */

.partners__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  /* ОПТИМИЗАЦИЯ: translate3d включает GPU ускорение */
  transform: translate3d(-50%, -50%, 0);
  width: 90%;
  height: 150%;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.15) 0%,
    transparent 60%
  );
  /* ОПТИМИЗАЦИЯ: Blur тяжелый, но will-change помогает браузеру подготовиться */
  filter: blur(60px);
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* GLASS PANEL */

.partners__glass {
  position: relative;
  width: 100%;
  max-width: 1440px;
  z-index: 2;
  background: var(--glass-bg);
  /* ОПТИМИЗАЦИЯ: backdrop-filter очень тяжелый. Если можно убрать - уберите. 
     Если нет, оставляем, но фиксируем слой */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
  border-top: var(--glass-border-top);
  border-radius: 1.5rem;
  padding: 2rem 3rem;
  /* Тени тоже переносим на композицию */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateZ(0);
  /* Hack для GPU */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.partners__glass:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 130, 246, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* GRID */

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

.partners__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  height: 80px;
}

/* LOGOS (SUPER FAST) */

.partners__logo {
  max-width: 160px;
  max-height: 60px;
  width: 100%;
  height: auto;
  /* ВАЖНО: Управляем цветом через fill, а не фильтры */
  fill: #ffffff;
  /* Логотипы сразу белые */
  opacity: 0.5;
  /* Полупрозрачные */
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.3s ease;
  cursor: pointer;
  /* Убираем лишние layout сдвиги */
  display: block;
}

/* Hover Effect */

.partners__logo:hover {
  opacity: 1;
  transform: scale(1.05);
  /* Drop-shadow добавляем только при наведении */
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/* DIVIDER */

.partners__divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
}

/* ================================================================
   2. DIAGNOSTIC SECTION (UPDATED)
   ================================================================ */

.diagnostic {
  position: relative;
  width: 100%;
  min-height: 800px;
  padding: 6rem var(--section-padding-x);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-main);
  z-index: 1;
}

/* Контейнер (Стекло) */

.diagnostic__container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1100px;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 30, 0.6) 0%,
    rgba(10, 10, 15, 0.8) 100%
  );
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 24px;
  padding: 4rem;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.diagnostic__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  font-family: var(--font-display, sans-serif);
  text-align: center;
  margin-bottom: 1rem;
  color: white;
}

.diagnostic__subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: #94a3b8;
  /* text-muted */
  font-weight: 400;
  margin-bottom: 3.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* СЕТКА ФОРМЫ */

.diagnostic__form {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: center;
}

.diagnostic__field {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.diagnostic__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
  padding-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- CUSTOM SELECT (НОВЫЙ СТИЛЬ) --- */

.diagnostic__select {
  position: relative;
  width: 100%;
}

/* Кнопка селекта */

.diagnostic__select-display {
  width: 100%;
  height: 3.75rem;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;
  /* Убираем стандартную обводку */
}

.diagnostic__select-display:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.diagnostic__select.active .diagnostic__select-display {
  background: rgba(0, 0, 0, 0.4);
  border-color: #3b82f6;
  /* accent color */
  box-shadow: 0 0 0 1px #3b82f6;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Стрелка */

.diagnostic__select-arrow {
  width: 1rem;
  height: 1rem;
  opacity: 0.6;
  transition: transform 0.3s ease;
  pointer-events: none;
  filter: invert(1);
  /* Делаем svg белой */
}

.diagnostic__select.active .diagnostic__select-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* Выпадающий список */

.diagnostic__select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #1a1a20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  /* Анимация открытия */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.diagnostic__select.active .diagnostic__select-dropdown {
  max-height: 300px;
  opacity: 1;
  padding: 0.5rem;
}

/* Опции */

.diagnostic__option {
  padding: 0.8rem 1rem;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.2s;
  font-size: 0.95rem;
}

.diagnostic__option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Поле ввода контакта (появляется) */

.form-field__input {
  width: 100%;
  height: 3.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0 1.25rem;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-main);
  outline: none;
  transition: 0.3s;
}

.form-field__input:focus {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

/* Кнопка */

.diagnostic__action {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
}

.diagnostic__action .btn {
  width: 100%;
  height: 3.75rem;
  justify-content: center;
}

/* Чекбокс */

.diagnostic__brief-checkbox-row {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox__input {
  display: none;
  /* Скрываем стандартный */
}

.checkbox__checkmark {
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  transition: 0.3s;
}

.checkbox__input:checked + .checkbox__checkmark {
  background: #3b82f6;
  border-color: #3b82f6;
}

/* Галочка */

.checkbox__input:checked + .checkbox__checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox__label {
  color: #94a3b8;
  font-size: 0.95rem;
}

/* Адаптив */

@media (max-width: 768px) {
  .diagnostic__container {
    padding: 2rem 1.5rem;
  }
  .diagnostic__field,
  .diagnostic__action {
    max-width: 100%;
    min-width: 100%;
  }
}

/* --- CSS PATCH FOR DROPDOWNS --- */

/* Убедимся, что dropdown скрыт по умолчанию */

.diagnostic__select-dropdown {
  display: block;
  /* Скрываем через height, а не display none */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #1a1a20;
  z-index: 100;
  transition: all 0.3s ease;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Когда добавлен класс active JS-ом */

.diagnostic__select.active .diagnostic__select-dropdown {
  max-height: 400px !important;
  /* Форсируем открытие */
  opacity: 1 !important;
  padding: 10px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Стилизация опций */

.diagnostic__select-dropdown li,
.diagnostic__select-dropdown .diagnostic__option {
  padding: 10px 20px;
  cursor: pointer;
  color: #9ca3af;
  transition: 0.2s;
  list-style: none;
  /* Убираем точки */
}

.diagnostic__select-dropdown li:hover,
.diagnostic__select-dropdown .diagnostic__option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Поворот стрелки */

.diagnostic__select.active .diagnostic__select-arrow {
  transform: rotate(180deg);
}

/* ================================================================
   SOLUTIONS SECTION - CIRCULAR LAYOUT (DESKTOP ONLY)
   
   Структура секции:
   - Круговое расположение из 6 карточек вокруг центрального заголовка
   - Карточки 1,3 на одной горизонтали (верх)
   - Карточка 2 выше всех (top center)
   - Карточки 4,6 на одной горизонтали (низ)
   - Карточка 5 ниже всех (bottom center)
   - Центральный заголовок с выделенным текстом
   ================================================================ */

/* ================================================================
   GLOBAL FIX: UNIFIED ATMOSPHERE
   Убираем сплошные фоны у секций, чтобы видеть глобальный body-фон
   ================================================================ */

.hero,
.stats,
.partners,
.diagnostic,
.services,
.team,
.reviews,
.results,
.stages,
.faq,
.contact-form {
  background-color: transparent !important;
  /* Прозрачный фон */
  box-shadow: none !important;
  /* Убираем лишние тени границ, если есть */
}

/* 
   Если где-то внутри секций (например, в FAQ) 
   нужно затемнение, чтобы текст читался лучше,
   используем локальные градиенты, а не сплошной цвет.
*/

/* ================================================================
   2. TYPOGRAPHY UTILITIES
   ================================================================ */

/* Применяем Unbounded ко всем заголовкам */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-text);
  margin: 0;
}

/* Класс для технического текста (Anonymous Pro) */

.font-tech,
.tag,
.metric-label,
.footer__label {
  font-family: var(--font-tech);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Выделение текста (Selection) */

::selection {
  background: var(--c-accent);
  color: #ffffff;
  text-shadow: none;
}

/* ================================================================
   3. CUSTOM SCROLLBAR (CHROME/SAFARI/EDGE)
   ================================================================ */

::-webkit-scrollbar {
  width: 10px;
  background: var(--c-bg);
}

::-webkit-scrollbar-track {
  background: #0a0a0c;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
  border: 2px solid #0a0a0c;
  /* Отступ от края */
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-accent);
  /* Синий при наведении */
}

/* ================================================================
   MAIN SECTION (OPTIMIZED)
   ================================================================ */

.solutions {
  width: 100%;
  padding: var(--section-padding-y) var(--section-padding-x);
  margin-top: 6.25rem;
  position: relative;
  z-index: 5;
  overflow: hidden;
  /* ОПТИМИЗАЦИЯ: Изоляция верстки. Браузер не пересчитывает страницу, когда внутри что-то меняется */
  contain: layout paint style;
}

/* Фоновое пятно */

.solutions__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  /* ОПТИМИЗАЦИЯ: translate3d включает GPU слой */
  transform: translate3d(-50%, -50%, 0);
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.12) 0%,
    transparent 65%
  );
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  /* Говорим браузеру не перерисовывать это */
  will-change: transform;
}

.solutions__container {
  position: relative;
  height: 56.25rem;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  z-index: 2;
  /* Изолируем контекст наложения для 3D элементов внутри */
  transform-style: preserve-3d;
}

/* ================================================================
   WEB / LINES (SVG OPTIMIZED)
   ================================================================ */

.solutions__web {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
  /* Оптимизация отрисовки SVG */
  shape-rendering: geometricPrecision;
}

.connection-line {
  fill: none;
  stroke-linecap: round;
  /* Важно для плавной анимации линий */
  vector-effect: non-scaling-stroke;
}

/* 1. БАЗОВАЯ ЛИНИЯ */

.connection-line--base {
  stroke: var(--c-accent, #3b82f6);
  stroke-width: 1px;
  opacity: 0.15;
}

/* 2. ИМПУЛЬС (Бегущий огонек) */

.connection-line--pulse {
  stroke: url(#pulseGradient);
  stroke-width: 3px;
  opacity: 1;
  /* ОПТИМИЗАЦИЯ: Убрали тяжелый CSS drop-shadow, теперь он внутри SVG <defs> */
  filter: url(#glow-filter);
  stroke-dasharray: 100 800;
  stroke-dashoffset: 900;
  /* will-change помогает браузеру подготовиться к постоянной анимации */
  will-change: stroke-dashoffset;
  animation: fiberFlow 4s linear infinite;
}

/* Тайминги остались прежними */

.connection-line--pulse:nth-child(2) {
  animation-duration: 5s;
  animation-delay: 0s;
}

.connection-line--pulse:nth-child(4) {
  animation-duration: 6s;
  animation-delay: 1s;
}

.connection-line--pulse:nth-child(6) {
  animation-duration: 4.5s;
  animation-delay: 0.5s;
}

.connection-line--pulse:nth-child(8) {
  animation-duration: 5.5s;
  animation-delay: 1.5s;
}

.connection-line--pulse:nth-child(10) {
  animation-duration: 4.8s;
  animation-delay: 0.2s;
}

.connection-line--pulse:nth-child(12) {
  animation-duration: 6.2s;
  animation-delay: 0.8s;
}

@keyframes fiberFlow {
  to {
    stroke-dashoffset: 0;
  }
}

/* ================================================================
   HEADER CENTER
   ================================================================ */

.solutions__header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  /* GPU */
  z-index: 10;
  width: 100%;
  max-width: 50rem;
  text-align: center;
  pointer-events: none;
}

.solutions__header-title {
  font-family: var(--font-display, sans-serif);
  font-size: var(--fs-title-section);
  line-height: 120%;
  font-weight: 600;
  color: var(--c-text, #fff);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.solutions__header-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--c-accent, #3b82f6);
  padding: 0.2em 0.6em;
  border-radius: 0.4em;
  margin: 0 0.2em;
  box-shadow: 0 0 20px var(--c-accent-glow, rgba(59, 130, 246, 0.5));
  vertical-align: middle;
  transform: translateY(-2px);
}

/* ================================================================
   CARDS (GLASS & ANIMATION OPTIMIZED)
   ================================================================ */

.solutions__card {
  position: absolute;
  width: 28%;
  min-width: 22rem;
  max-width: 28rem;
  background: var(--sol-card-bg);
  /* Оставляем blur, но он теперь на изолированном слое */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--c-border, rgba(255, 255, 255, 0.1));
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 2;
  /* ОПТИМИЗАЦИЯ АНИМАЦИИ */
  will-change: transform;
  /* Используем translate3d для GPU, заменяя translate */
  animation: floatCard 6s ease-in-out infinite;
}

/* Асинхронная левитация */

.solutions__card--1,
.solutions__card--3,
.solutions__card--5 {
  animation-delay: 0s;
}

.solutions__card--2,
.solutions__card--4,
.solutions__card--6 {
  animation-delay: 3s;
}

/* Используем translate3d(0, Y, 0) вместо translateY для принудительного GPU */

@keyframes floatCard {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

/* Hover Effect */

.solutions__card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--sol-card-hover);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.15);
  animation-play-state: paused;
}

/* Badge */

.solutions__badge {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--c-accent, #3b82f6),
    var(--c-purple, #7000ff)
  );
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 0 15px var(--c-accent-glow, rgba(59, 130, 246, 0.5));
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.solutions__title {
  color: var(--c-text, #fff);
  font-family: var(--font-display, sans-serif);
  font-size: 1.125rem;
  line-height: 130%;
  font-weight: 600;
}

.solutions__text {
  color: var(--c-text-muted, #aaa);
  font-family: var(--font-main, sans-serif);
  font-size: 0.875rem;
  line-height: 150%;
}

/* ================================================================
   POSITIONS
   ================================================================ */

.solutions__card--1 {
  left: 0;
  top: 5%;
}

.solutions__card--2 {
  left: 50%;
  margin-left: -14%;
  top: 0;
}

.solutions__card--3 {
  right: 0;
  top: 5%;
}

.solutions__card--4 {
  right: 0;
  bottom: 5%;
}

.solutions__card--5 {
  left: 50%;
  margin-left: -14%;
  bottom: 0;
}

.solutions__card--6 {
  left: 0;
  bottom: 5%;
}

/* --- Обновление существующих стилей карточки --- */

/* Ссылка-обертка */

.service-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Изменяем высоту картинки, чтобы дать место списку */

.service-card__image-wrapper {
  width: 100%;
  height: 35%;
  /* Было 60%, уменьшили для текста */
  min-height: 160px;
  background-color: #000;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card__content {
  padding: 1.5rem 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  /* Убираем justify-content: space-between, чтобы контролировать отступы вручную */
  justify-content: flex-start;
  gap: 1rem;
}

.service-card__title {
  font-size: var(--fs-card-title);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
  margin-bottom: 0.5rem;
}

/* Футер прижимаем к низу */

.service-card__footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

/* --- Новые стили для списка услуг --- */

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-card__list li {
  font-family: var(--font-body);
  font-size: 0.9rem;
  /* Чуть меньше базового, чтобы влезло */
  color: var(--c-text-muted);
  line-height: 1.4;
  position: relative;
  padding-left: 1rem;
  transition: color 0.3s ease;
}

/* Буллит (точка) перед пунктом */

.service-card__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0px;
  color: var(--s-accent);
  /* Голубой акцент */
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Эффект при наведении на карточку: текст становится белее */

.service-card:hover .service-card__list li {
  color: rgba(255, 255, 255, 0.9);
}

/* ================================================================
RESULTS SECTION
Slider с кейсами и результатами работы
Desktop: горизонтальный слайдер, видно несколько карточек
Mobile: горизонтальный слайдер, видно 1 карточку
================================================================ */

/* =========================
DESKTOP STYLES
========================= */

.results {
  width: 100%;
  padding-left: 6.25rem;
  padding-right: 6.5%;
  margin-top: 6.25rem;
  position: relative;
  z-index: 5;
}

.results__container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* =========================
HEADER WITH TITLE & NAVIGATION
========================= */

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

.results__title {
  font-family: var(--font-heading);
  font-size: var(--fs-title-section);
  line-height: 110%;
  font-weight: 600;
  color: var(--color-dark);
}

/* =========================
NAVIGATION ARROWS
========================= */

.results__navigation {
  display: flex;
  gap: 0.875rem;
}

/* =========================
SLIDER WRAPPER
========================= */

.results__slider-wrapper {
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.results__slider-wrapper:active {
  cursor: grabbing;
}

.results__slider {
  display: flex;
  gap: 1.375rem;
  transition: transform 0.5s ease;
  will-change: transform;
}

/* =========================
RESULT CARD - ВЫРОВНЕНЫ КНОПКИ
========================= */

.result-card {
  background: #d0e8f0;
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  flex-shrink: 0;
  width: 56.9375rem;
  min-height: 45rem;
  /* ДОБАВЛЕНО: минимальная высота для выравнивания */
  transition: all 0.3s ease;
}

.result-card:hover {
  box-shadow: 0 0.75rem 2rem rgba(12, 12, 12, 0.1);
}

/* Client Title */

.result-card__client {
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 110%;
  font-weight: 600;
}

/* Card Content Layout */

.result-card__content {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  flex: 1;
  /* ИЗМЕНЕНО: занимает доступное пространство */
}

.result-card__image {
  border-radius: 1.0625rem;
  width: 30.1875rem;
  height: 22.375rem;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.result-card__info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

/* Problem/Solution Blocks */

.result-card__block {
  background: var(--color-white);
  border-radius: 1rem;
  border: 0.0625rem solid rgba(12, 12, 12, 0.02);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 0.25rem 1.25rem rgba(12, 12, 12, 0.03);
  flex: 1;
  /* ДОБАВЛЕНО: равномерное распределение */
}

.result-card__subtitle {
  color: var(--color-dark);
  font-family: "Unbounded-Medium", sans-serif;
  font-size: 1.5rem;
  line-height: 110%;
  font-weight: 500;
}

.result-card__text {
  color: var(--color-dark);
  font-family: var(--font-nav);
  font-size: 1.125rem;
  line-height: 140%;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* Download Button - ПРИЖАТА К НИЗУ */

.result-card__download {
  background: var(--color-primary);
  border: none;
  border-radius: 0.75rem;
  padding: 0.875rem 1.5rem;
  color: var(--color-white);
  font-family: var(--font-btn);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: auto;
  /* ВАЖНО: прижимает кнопку к низу */
}

.result-card__download:hover {
  background: #3a7a8f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 151, 178, 0.3);
}

.result-card__download svg {
  stroke: var(--color-white);
}

/* =========================
   SLIDER
   ========================= */

.services__navigation {
  display: flex;
  gap: 0.875rem;
}

.services__slider-wrapper {
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.services__slider-wrapper:active {
  cursor: grabbing;
}

.services__slider {
  display: flex;
  gap: 0.625rem;
  transition: transform 0.5s ease;
  will-change: transform;
}

/* ================================================================
   SERVICES SECTION (NEON & GLASS)
   ================================================================ */

/* Глобальные настройки секции */

.services {
  width: 100%;
  padding: var(--section-padding-y) var(--section-padding-x);
  margin-top: 6.25rem;
  position: relative;
  z-index: 5;
  overflow: hidden;
  background-color: var(--c-bg);
}

/* ФОНОВОЕ СВЕЧЕНИЕ */

.services__glow {
  position: absolute;
  top: 50%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(112, 0, 255, 0.1) 0%,
    transparent 70%
  );
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

.services__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* =========================
   HEADER
   ========================= */

.services__header {
  display: flex;
  align-items: flex-end;
  /* Выравнивание по низу */
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.services__title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.services__title {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* =========================
   FILTERS (NEON TABS)
   ========================= */

.services__filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.services__filter {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  color: var(--c-text-muted);
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.services__filter:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.services__filter--active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  box-shadow: 0 0 15px var(--c-accent-glow);
}

/* =========================
   NAVIGATION (ARROWS)
   ========================= */

.services__navigation {
  display: flex;
  gap: 1rem;
}

.slider-nav {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-nav:not(:disabled):hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: 0 0 15px var(--c-accent-glow);
  transform: scale(1.1);
}

.slider-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* =========================
   SLIDER & CARDS
   ========================= */

.services__slider-wrapper {
  cursor: grab;
  overflow: hidden;
  padding: 1rem 0 3rem;
  /* Отступы для теней */
}

.services__slider-wrapper:active {
  cursor: grabbing;
}

.services__slider {
  display: flex;
  gap: 2rem;
  /* Отступ между карточками */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Важно для производительности */
  will-change: transform;
}

/* КАРТОЧКА */

.service-card {
  flex-shrink: 0;
  width: 22rem;
  /* 350px */
  height: 32rem;
  /* 500px */
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  /* Стекло */
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  user-select: none;
}

/* Изображение */

.service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  /* Затемняем картинку по умолчанию */
  transition: all 0.5s ease;
}

/* Градиент поверх картинки */

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000 0%, transparent 60%);
  z-index: 1;
}

/* Контент */

.service-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  z-index: 2;
  transform: translateY(20px);
  /* Слегка сдвинут вниз */
  transition: transform 0.4s ease;
}

.service-card__title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  /* Скрыто по умолчанию */
  max-height: 0;
  /* Для анимации высоты */
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card__list li {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  font-family: var(--font-main);
  position: relative;
  padding-left: 1rem;
}

.service-card__list li::before {
  content: "•";
  color: var(--c-accent);
  position: absolute;
  left: 0;
}

/* Стрелка */

.service-card__arrow {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  opacity: 1;
  transition: all 0.3s ease;
  z-index: 3;
}

/* --- HOVER EFFECTS --- */

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--c-accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 20px rgba(59, 130, 246, 0.2);
}

.service-card:hover .service-card__image {
  opacity: 0.3;
  /* Еще темнее, чтобы текст читался */
  transform: scale(1.1);
  /* Зум картинки */
}

.service-card:hover .service-card__content {
  transform: translateY(0);
}

.service-card:hover .service-card__list {
  opacity: 1;
  max-height: 200px;
  /* Раскрываем список */
  margin-top: 1rem;
}

.service-card:hover .service-card__arrow {
  background: var(--c-accent);
  transform: rotate(-45deg);
  /* Стрелка поворачивается вверх-вправо */
}

/* Hide filtered items */

.service-card.hidden {
  display: none;
}

/* ================================================================
   STAGES SECTION: CYBER-PIPELINE
   ================================================================ */

.stages {
  width: 100%;
  padding: var(--section-padding-y) var(--section-padding-x);
  margin-top: 8rem;
  position: relative;
  z-index: 5;
  background-color: var(--c-bg);
  overflow: hidden;
}

/* Фоновое свечение */

.stages__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.06) 0%,
    transparent 60%
  );
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

/* Сетка на фоне для техно-стиля */

.stages__grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}

/* Контейнер ограничивает ширину контента */

.stages__container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* =========================
   HEADER
   ========================= */

.stages__header {
  text-align: center;
  position: relative;
  z-index: 2;
}

.stages__title {
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-title-section);
  font-weight: 600;
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.stages__title-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent);
  /* Синий */
  color: #fff;
  width: 1.2em;
  height: 1.2em;
  border-radius: 0.3em;
  transform: skewX(-10deg);
  box-shadow: 0 0 20px var(--c-accent-glow);
  margin-right: 0.2em;
}

/* =========================
   GRID WRAPPER & LINE
   ========================= */

.stages__wrapper {
  position: relative;
  width: 100%;
}

/* Линия процесса (серая база) */

.stages__process-line {
  position: absolute;
  top: 3.5rem;
  /* Высота центра иконки */
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

/* Бегущий луч (синий) */

/* Бегущий луч (синий) - GPU Optimized */

.stages__process-beam {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  filter: drop-shadow(0 0 5px var(--c-accent));
  animation: beamMove 4s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

@keyframes beamMove {
  0% {
    transform: translateX(-100%) translateZ(0);
  }
  100% {
    transform: translateX(600%) translateZ(0); /* 120% / 20% = 6 */
  }
}

.stages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
}

/* =========================
   STAGE CARD
   ========================= */

.stage-card {
  position: relative;
  /* Стекло */
  background: linear-gradient(
    180deg,
    rgba(30, 30, 35, 0.6) 0%,
    rgba(10, 10, 15, 0.9) 100%
  );
  backdrop-filter: blur(10px);
  border: 1px solid var(--c-border);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.4s ease;
  overflow: hidden;
}

.stage-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 130, 246, 0.1);
}

/* Фоновая цифра */

.stage-card__bg-number {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  transition: all 0.4s ease;
}

.stage-card:hover .stage-card__bg-number {
  color: rgba(59, 130, 246, 0.1);
  transform: scale(1.1);
}

/* Контент карточки */

.stage-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Обертка иконки (для позиционирования) */

.stage-card__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
}

/* Сама иконка */

.stage-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  position: relative;
  /* Чтобы перекрывать линию */
  z-index: 2;
}

.stage-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.stage-card:hover .stage-card__icon {
  background: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: 0 0 20px var(--c-accent-glow);
  transform: scale(1.1);
}

.stage-card__title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.stage-card__text {
  color: var(--c-text-muted);
  font-family: var(--font-main);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* =========================
   BUTTON ACTION (CENTERED)
   ========================= */

.stages__action {
  display: flex;
  justify-content: center;
  /* Центрируем кнопку */
  margin-bottom: 2rem;
  width: 100%;
}

/* ================================================================
   RESULTS: CYBER-TECH EDITION
   ================================================================ */

.results {
  width: 100%;
  padding: 0 6.5%;
  margin-top: 8rem;
  position: relative;
  z-index: 5;
  background-color: var(--c-bg);
  overflow: hidden;
}

/* Техно-сетка на фоне */

.results__bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black, transparent 90%);
  z-index: 0;
  pointer-events: none;
}

/* =========================
   HEADER
   ========================= */

.results__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.results__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  line-height: 1;
}

.text-highlight {
  color: var(--c-accent);
  text-shadow: 0 0 20px var(--c-accent-glow);
}

/* Навигация */

.results__nav {
  display: flex;
  gap: 1rem;
}

.nav-btn {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  /* Скос угла (Cyber shape) */
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
}

.nav-btn:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: 0 0 15px var(--c-accent-glow);
}

/* =========================
   SLIDER
   ========================= */

.results__slider-wrapper {
  padding-bottom: 3rem;
  cursor: grab;
}

.results__slider {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================
   RESULT CARD (THE TERMINAL)
   ========================= */

.result-card {
  flex-shrink: 0;
  width: 100%;
  max-width: 65rem;
  /* 1040px */
  position: relative;
  background: #050507;
  /* Очень темный фон */
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px;
  /* Отступ для рамки */
  transition: 0.4s ease;
}

/* Декоративные уголки (HUD style) */

.tech-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--c-accent);
  z-index: 5;
  transition: 0.3s;
}

.tech-corner--tl {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.tech-corner--br {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.result-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.result-card:hover .tech-corner {
  width: 100%;
  height: 100%;
  opacity: 0.1;
  /* Уголки превращаются в рамку */
}

.result-card__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  /* Картинка больше */
  background: rgba(255, 255, 255, 0.02);
  height: 100%;
  min-height: 400px;
}

/* --- MEDIA SECTION --- */

.result-card__media {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.result-card__image-box {
  width: 100%;
  height: 100%;
  position: relative;
}

.result-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: 0.5s;
}

.result-card:hover .result-card__image {
  transform: scale(1.05);
  opacity: 0.4;
  /* Затемняем, чтобы цифра читалась */
}

/* Линия сканера */

/* Линия сканера - GPU Optimized */

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Занимает всю высоту для корректного translate */
  pointer-events: none;
  opacity: 0;
  animation: scan 3s linear infinite;
  will-change: transform;
  z-index: 10;
  overflow: hidden;
}

/* Сама линия через псевдоэлемент снизу */
.scan-line::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 15px var(--c-accent);
}

.result-card:hover .scan-line {
  opacity: 1;
}

@keyframes scan {
  0% {
    transform: translateY(-100%) translateZ(0);
  }
  100% {
    transform: translateY(100%) translateZ(0); /* Проходит через весь контейнер */
  }
}

/* ГЛАВНАЯ ЦИФРА */

.result-card__metric {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--c-accent);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.metric-label {
  font-family: var(--font-main);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.05em;
}

/* --- INFO SECTION --- */

.result-card__info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Теги */

.result-card__tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--c-text-muted);
  border-radius: 2px;
}

/* Клиент */

.result-card__client {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

/* Сетка Проблема/Решение */

.result-card__grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.info-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.info-icon--red {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.info-icon--green {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.info-text p {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.info-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

/* Кнопка-ссылка */

.btn-download {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.btn-download:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

.btn-download svg {
  transition: transform 0.3s;
}

.btn-download:hover svg {
  transform: translateX(5px);
}

/* ================================================================
   REVIEWS SECTION: ADAPTIVE CORE
   ================================================================ */

.reviews {
  width: 100%;
  padding: 0;
  margin-top: var(--rv-spacing-y);
  position: relative;
  z-index: 5;
  overflow: hidden;
  /* Скрываем вылеты слайдера */
  isolation: isolate;
}

/* --- ATMOSPHERE --- */

.reviews__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

.reviews__container {
  /* Умная ширина: 100% минус отступы, макс 1600px */
  width: min(100% - 2rem, 1600px);
  margin-inline: auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vh, 4rem);
}

.reviews__title {
  font-family: var(--font-display, sans-serif);
  font-size: var(--fs-title-section);
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0 1rem;
  text-wrap: balance;
}

.text-highlight {
  color: var(--c-accent, #3b82f6);
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* =========================
   TRACK (GRID VS SLIDER)
   ========================= */

.reviews__wrapper {
  width: 100%;
  position: relative;
}

.reviews__track {
  width: 100%;
  /* По умолчанию (Desktop) - это GRID */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
}

/* =========================
   REVIEW CARD STYLE
   ========================= */

.review-card {
  position: relative;
  background: linear-gradient(
    180deg,
    var(--rv-bg-glass) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--rv-card-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  /* Чтобы все карточки были одной высоты */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
  -webkit-user-select: none;
  /* Убираем выделение текста при свайпе */
}

/* Иконка цитаты */

.icon-quote {
  position: absolute;
  top: 0.5rem;
  right: 1.5rem;
  font-family: serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  transition: 0.3s;
}

/* Header */

.review-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-card__avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--c-accent, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: var(--font-display, sans-serif);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
  flex-shrink: 0;
}

.avatar--purple {
  border-color: var(--c-purple, #8b5cf6);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.review-card__info {
  display: flex;
  flex-direction: column;
}

.review-card__name {
  font-family: var(--font-display, sans-serif);
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

.review-card__role {
  font-size: 0.8rem;
  color: var(--c-text-muted, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.review-card__text {
  font-family: var(--font-main, sans-serif);
  font-size: 1rem;
  color: #d1d5db;
  line-height: 1.6;
  margin: 0;
  /* Важно для слайдера, чтобы текст не обрезался криво */
  flex-grow: 1;
}

/* ================================================================
   FAQ SECTION: DARK DATA CORE (CENTERED & FIXED)
   ================================================================ */

.faq {
  width: 100%;
  margin-top: var(--faq-spacing-y);
  position: relative;
  z-index: 5;
  /* Изоляция от остальной страницы */
  isolation: isolate;
  /* Предотвращаем горизонтальный скролл на уровне секции */
  overflow: hidden;
}

/* --- BACKGROUND FX --- */

.faq__glow {
  position: absolute;
  top: 20%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(112, 0, 255, 0.1) 0%,
    transparent 65%
  );
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

/* --- MAIN CONTAINER --- */

.faq__container {
  /* Умная ширина: 100% ширины, но с отступами по бокам */
  width: min(100% - 2.5rem, 1400px);
  margin-inline: auto;
  /* Центрируем сам контейнер */
  position: relative;
  z-index: 2;
  /* Desktop Layout: Grid */
  display: grid;
  grid-template-columns: var(--faq-sidebar-w) 1fr;
  gap: var(--faq-gap-desktop);
  align-items: start;
}

/* =========================
   SIDEBAR (LEFT COLUMN)
   ========================= */

.faq__sidebar {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: sticky;
  top: 100px;
}

.faq__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* На десктопе выравнивание влево */
  align-items: flex-start;
  text-align: left;
}

.faq__title {
  color: #fff;
  font-family: var(--font-display, sans-serif);
  font-size: var(--fs-title-section);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

.text-highlight {
  color: var(--c-accent, #3b82f6);
  text-shadow: 0 0 25px var(--c-accent-glow, rgba(59, 130, 246, 0.5));
}

.faq__subtitle {
  color: var(--c-text-muted, #94a3b8);
  font-family: var(--font-main, sans-serif);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.6;
  margin: 0;
  max-width: 32ch;
}

.faq__subtitle-highlight {
  color: #fff;
  font-weight: 600;
}

/* =========================
   CATEGORIES (NAVIGATION)
   ========================= */

.faq__categories {
  display: flex;
  flex-direction: column;
  /* Вертикальный список по умолчанию */
  gap: 0.5rem;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.2rem;
  padding: 0.5rem;
}

/* Неоновая плашка (только Desktop) */

.faq__categories::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  width: calc(100% - 1rem);
  height: 4rem;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), transparent);
  border-left: 3px solid var(--c-accent, #3b82f6);
  border-radius: 0.8rem;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

/* Позиции плашки */

.faq__categories[data-active="0"]::before {
  transform: translateY(0);
}

.faq__categories[data-active="1"]::before {
  transform: translateY(calc(4rem + 0.5rem));
}

.faq__categories[data-active="2"]::before {
  transform: translateY(calc((4rem + 0.5rem) * 2));
}

.faq__category {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 4rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  /* На десктопе текст слева */
  justify-content: flex-start;
  background: transparent;
  border: none;
  border-radius: 0.8rem;
  cursor: pointer;
  color: var(--c-text-muted, #94a3b8);
  font-family: var(--font-display, sans-serif);
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  /* Убираем подсветку при тапе на мобильных */
  -webkit-tap-highlight-color: transparent;
}

.faq__category--active .faq__category-text {
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Hover только на ПК */

/* =========================
   CONTENT (RIGHT COLUMN)
   ========================= */

.faq__content {
  /* Защита от распирания сетки */
  min-width: 0;
  width: 100%;
}

.faq__group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeSlideUp 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.faq__group--hidden {
  display: none;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ACCORDION ITEM */

.faq-item {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--c-accent, #3b82f6);
  background: linear-gradient(
    180deg,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-item__header {
  width: 100%;
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-item__question {
  color: #fff;
  font-family: var(--font-display, sans-serif);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  flex: 1;
  /* Текст занимает всё место */
}

.faq-item.active .faq-item__question {
  color: var(--c-accent, #3b82f6);
}

.faq-item__icon {
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  flex-shrink: 0;
  color: var(--c-text-muted, #94a3b8);
}

.faq-item__icon-plus,
.faq-item__icon-minus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  transition: 0.3s;
}

.faq-item__icon-minus {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.faq-item.active .faq-item__icon-plus {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.active .faq-item__icon-minus {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0);
  color: var(--c-accent);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
}

.faq-item__text {
  color: var(--c-text-muted, #94a3b8);
  font-family: var(--font-main, sans-serif);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 1.8rem 1.8rem 1.8rem;
  margin: 0;
}

/* ================================================================
   CONTACT FORM: CYBER COMMAND CENTER (MODERN RESPONSIVE)
   ================================================================ */

.contact-form {
  width: 100%;
  /* Убираем жесткие паддинги, контейнер сам справится */
  padding: 0;
  margin-top: var(--cf-spacing-y);
  margin-bottom: clamp(2rem, 5vh, 4rem);
  position: relative;
  z-index: 20; /* Higher than footer */
  overflow: visible; /* Allow dropdown to overflow */
  isolation: isolate;
  /* Создает новый контекст стекирования */
}

/* --- BACKGROUND FX --- */

/* Фоновое свечение (Фиолетово-синее) */

.contact__glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(300px, 80%, 1000px);
  /* Ограничиваем ширину пятна */
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.15) 0%,
    transparent 70%
  );
  filter: blur(80px);
  /* Чуть меньше блюра для производительности */
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

/* Сетка на фоне */

.contact__grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: clamp(30px, 4vw, 50px) clamp(30px, 4vw, 50px);
  /* Адаптивная клетка */
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 40%,
    transparent 85%
  );
  z-index: -1;
  pointer-events: none;
}

/* --- MAIN CONTAINER --- */

.contact-form__container {
  /* Современная центровка с безопасными отступами */
  width: min(100% - 3rem, 1440px);
  margin-inline: auto;
  display: flex;
  gap: var(--cf-gap);
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* =========================
   LEFT SIDE: INFO
   ========================= */

.contact-form__info {
  flex: 1;
  /* На десктопе ширина ограничена, на мобильном растянется */
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vh, 3rem);
}

.contact-form__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form__title {
  color: #fff;
  font-family: var(--font-display, sans-serif);
  font-size: var(--fs-title-section);
  line-height: 1.1;
  /* Балансировка текста, чтобы не висело одно слово */
  text-wrap: balance;
}

.text-highlight {
  color: var(--c-accent, #3b82f6);
  text-shadow: 0 0 20px var(--c-accent-glow, rgba(59, 130, 246, 0.5));
  white-space: nowrap;
  /* Не разрывать ключевые фразы */
}

.contact-form__text {
  color: var(--c-text-muted, #94a3b8);
  font-family: var(--font-main, sans-serif);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.6;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 1.5rem;
  /* Умный перенос */
  text-wrap: pretty;
}

/* Контакты */

.contact-form__contact {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.icon-box {
  width: clamp(3rem, 5vw, 3.5rem);
  height: clamp(3rem, 5vw, 3.5rem);
  flex-shrink: 0;
  /* Чтобы круг не сжимался */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent, #3b82f6);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
  font-size: 1.2rem;
}

.contact-form__email {
  color: #fff;
  font-family: var(--font-display, sans-serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.contact-form__email:hover {
  color: var(--c-accent, #3b82f6);
  text-shadow: 0 0 15px var(--c-accent-glow, rgba(59, 130, 246, 0.5));
}

/* =========================
   RIGHT SIDE: FORM (GLASS)
   ========================= */

.contact-form__wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  /* Прижимаем вправо на десктопе */
  width: 100%;
}

.contact-form__form {
  position: relative;
  width: 100%;
  max-width: 34rem;
  /* Чуть шире стандартных 512px */
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vh, 1.5rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  /* Важно для мобильных, чтобы не вылезало */
  box-sizing: border-box;
}

/* Стеклянный фон формы */

.form-glass-bg {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 25, 0.8) 0%,
    rgba(10, 10, 15, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* Safari fix */
  z-index: -1;
}

/* Поля ввода */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-field__label {
  color: #fff;
  font-family: var(--font-main, sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 0.5rem;
  letter-spacing: 0.02em;
}

.form-field__input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0 1.2rem;
  height: var(--cf-input-height);
  color: #fff;
  font-family: var(--font-main, sans-serif);
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  /* Убирает дефолтные стили iOS */
  appearance: none;
  -webkit-appearance: none;
}

.form-field__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-field__input:focus {
  outline: none;
  border-color: var(--c-accent, #3b82f6);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

/* CUSTOM SELECT */

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select__trigger {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0 1.2rem;
  height: var(--cf-input-height);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-main, sans-serif);
  font-size: 1rem;
  transition: all 0.3s ease;
  user-select: none;
}

/* Эффект нажатия на мобильных */

.custom-select__trigger:active {
  background: rgba(255, 255, 255, 0.08);
}

.custom-select.active .custom-select__trigger {
  border-color: var(--c-accent, #3b82f6);
  background: rgba(59, 130, 246, 0.05);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select__value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px;
}

.custom-select__arrow {
  transition: transform 0.3s ease;
  opacity: 0.7;
  flex-shrink: 0;
}

.custom-select.active .custom-select__arrow {
  transform: rotate(180deg);
  color: var(--c-accent, #3b82f6);
  opacity: 1;
}

/* Dropdown Menu */

.custom-select__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1f;
  /* Сплошной цвет для читаемости */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  /* Плавная анимация */
  z-index: 100;
}

.custom-select.active .custom-select__dropdown {
  max-height: 300px;
  /* Достаточно места для скролла */
  opacity: 1;
  overflow-y: auto;
}

/* Scrollbar styling for dropdown */

.custom-select__dropdown::-webkit-scrollbar {
  width: 6px;
}

.custom-select__dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.custom-select__option {
  padding: 0.9rem 1.2rem;
  /* Чуть больше паддинг для пальцев */
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.custom-select__option:first-child {
  border-top: none;
}

.custom-select__option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.custom-select__option.selected {
  background: rgba(59, 130, 246, 0.15);
  color: #fff;
  font-weight: 500;
}

/* Button override */

/* ================================================================
   FOOTER: PREMIUM HUB (3 COLUMNS NO HTML CHANGE)
   ================================================================ */

.footer {
  background: #050507;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  flex-direction: column;
  /* Убираем нижний отступ, чтобы marquee прилип к краю */
  padding-bottom: 0;
  isolation: isolate;
  margin-top: auto;
}

/* =========================
   1. GRID LAYOUT (THE MAGIC)
   ========================= */

.footer__container {
  width: min(100% - 3rem, 1400px);
  margin-inline: auto;
  margin-top: clamp(3rem, 8vh, 5rem);
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
  display: grid;
  /* Создаем 3 колонки: Бренд | Меню | Соцсети */
  grid-template-columns: 1.3fr 0.7fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

/* ВАЖНО: Игнорируем обертку .footer__left, 
   чтобы ее дети стали частью общей сетки .footer__container 
*/

.footer__left {
  display: contents;
}

/* Колонка 1: Бренд */

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 450px;
}

.brand-title {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  background: linear-gradient(90deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1;
}

.brand-desc {
  font-family: var(--font-main, sans-serif);
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* Колонка 2: Меню */

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Добавляем разделитель слева для красоты */
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-label {
  font-family: var(--font-display, sans-serif);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-main, sans-serif);
  font-size: 1.1rem;
  font-weight: 500;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--c-accent, #3b82f6);
  transform: translateX(5px);
}

/* Колонка 3: Соцсети (.footer__right) */

.footer__right {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 колонки внутри соцсетей */
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.social-icon {
  width: 24px;
  height: 24px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.social-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.social-sub {
  font-size: 0.75rem;
  color: var(--c-accent, #3b82f6);
}

.linktree-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 0.8rem;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.linktree-card:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

.linktree-icon {
  font-size: 1.2rem;
  margin-right: 1rem;
}

.linktree-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.linktree-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.linktree-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================
   2. BOTTOM BAR & MARQUEE
   ========================= */

.footer__bottom {
  width: 100%;
  padding: 1.5rem 0;
  background: #050507;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 10;
  /* Важно: порядок Flexbox, чтобы он был перед бегущей строкой */
  order: 10;
}

.bottom-container {
  width: min(100% - 3rem, 1400px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: #64748b;
  font-size: 0.85rem;
}

.legal {
  display: flex;
  gap: 2rem;
}

.legal a {
  color: #64748b;
  text-decoration: none;
  transition: 0.3s;
}

.legal a:hover {
  color: #fff;
}

/* БЕГУЩАЯ СТРОКА */

.footer__marquee {
  background: var(--c-accent, #3b82f6);
  padding: 0.8rem 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 5;
  display: flex;
  margin: 0;
  /* Ставим в самый конец */
  order: 20;
  box-shadow: 0 -10px 40px rgba(59, 130, 246, 0.2);
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: scroll 20s linear infinite;
  width: fit-content;
  will-change: transform;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-content span {
  font-family: var(--font-display, sans-serif);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
}

.marquee-content .dot {
  margin: 0 2rem;
  opacity: 0.5;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================
   3. BACKGROUND DECOR
   ========================= */

.footer__big-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  font-family: var(--font-display, sans-serif);
  font-size: 25vw;
  /* Огромный размер */
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.02);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.footer__grid-floor {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to top, black 40%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

/* =========================
   4. RESPONSIVE (TABLET & MOBILE)
   ========================= */

@media (max-width: 1024px) {
  .footer__container {
    /* Планшет: 2 колонки. Бренд сверху, остальное снизу */
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .footer__left {
    /* На планшете убираем contents, чтобы управлять группировкой */
    display: block;
    grid-column: 1 / -1;
    /* На всю ширину */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer__brand {
    max-width: 50%;
  }
  .footer__nav {
    border-left: none;
    padding-left: 0;
  }
  .footer__right {
    grid-column: 1 / -1;
  }
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .footer__left {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }
  .footer__container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
  }
  .footer__brand {
    max-width: 100%;
    align-items: center;
  }
  .footer__nav {
    width: 100%;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
  }
  .social-grid {
    grid-template-columns: 1fr;
    /* Одна колонка на мобильном */
  }
  .bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .footer__big-logo {
    font-size: 35vw;
    top: 40%;
  }
}

/* =========================
   1. DYNAMIC BACKGROUND (GRID)
   ========================= */

.hero__grid {
  position: absolute;
  top: 50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: linear-gradient(
      rgba(59, 130, 246, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 100px 100px;
  transform: rotateX(45deg);
  animation: gridMove 20s linear infinite;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 40%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 40%,
    transparent 100%
  );
}

@keyframes gridMove {
  0% {
    transform: rotateX(45deg) translateY(0);
  }
  100% {
    transform: rotateX(45deg) translateY(100px);
  }
}

.noise-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.07;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* =========================
   2. FLOATING SHAPES
   ========================= */

.hero__shape {
  position: absolute;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.6;
  animation: floatShape 10s ease-in-out infinite alternate;
}

.hero__shape--1 {
  top: 10%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--c-accent), transparent 70%);
}

.hero__shape--2 {
  bottom: 0;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--c-purple), transparent 70%);
  animation-delay: -5s;
}

@keyframes floatShape {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

/* =========================
   3. VIDEO & CONTENT LAYOUT
   ========================= */

.hero__video-wrapper {
  position: absolute;
  top: 104px;
  right: -240px;
  width: 55%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  mix-blend-mode: screen;
  mask-image: linear-gradient(to right, transparent 0%, black 30%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

.hero__bg-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* MOBILE FIX */

@media (max-width: 768px) {
  .hero__video-wrapper {
    top: 40px;
    right: 0;
    width: 100%;
    height: 60vh;
    opacity: 0.25;
    mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
  }
}

/* =========================
   4. TYPOGRAPHY ANIMATIONS
   ========================= */

.hero__text-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__title-main {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  display: block;
  position: relative;
  color: transparent;
  background: linear-gradient(
    110deg,
    #ffffff 10%,
    #8b5cf6 40%,
    #3b82f6 50%,
    #ffffff 90%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shineText 5s linear infinite;
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.4));
}

@keyframes shineText {
  to {
    background-position: 200% center;
  }
}

.hero__title-accent {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin-top: 1rem;
  display: block;
  opacity: 0;
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.text-highlight {
  color: var(--c-accent-light);
  position: relative;
  display: inline-block;
}

.text-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--c-accent);
  box-shadow: 0 0 10px var(--c-accent);
  animation: drawLine 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1s;
}

@keyframes drawLine {
  to {
    width: 100%;
  }
}

.hero__subtitle {
  font-family: var(--font-main);
  font-size: var(--fs-subtitle-section);
  color: #94a3b8;
  line-height: 1.6;
  max-width: 600px;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.anim-entry {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay);
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================
   UNIFIED SLIDER NAVIGATION BUTTONS
   ================================================================ */

/* Базовый класс для всех navigation кнопок */

.slider-nav {
  background: var(--color-white);
  border: 0.0625rem solid var(--color-dark);
  /* 1px */
  border-radius: 1.91875rem;
  /* 30.7px */
  width: 3.625rem;
  /* 58px */
  height: 3.625rem;
  /* 58px */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0.25rem 1.25rem rgba(12, 12, 12, 0.03);
  flex-shrink: 0;
  padding: 0;
}

.slider-nav:hover {
  background: #f5f5f5;
  transform: scale(1);
}

.slider-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Next кнопка (синяя) */

.slider-nav--next {
  background: var(--color-accent);
  /* #59adcc */
  border-color: transparent;
  color: var(--color-white);
}

.slider-nav--next:hover {
  background: #4890ab;
  transform: scale(1);
}

/* SVG иконки внутри кнопок */

.slider-nav svg {
  width: 1.5rem;
  /* 24px */
  height: 1.5rem;
  transition: transform 0.3s ease;
}

.slider-nav:hover svg {
  transform: translateX(1px);
  /* Лёгкий сдвиг */
}

.slider-nav--next svg {
  stroke: var(--color-white);
}

/* ================================================================
   FIXED PREMIUM ANIMATIONS (SAFE MODE)
   Вставить в конец style.css
   ================================================================ */

/* 1. LENIS (Плавный скролл) - Обязательно для "дорогого" ощущения */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* 2. БЕЗОПАСНОЕ ПОЯВЛЕНИЕ (Optimized - GPU Composited)
   Используем только transform и opacity - единственные GPU-компонуемые свойства */

.reveal-safe {
  opacity: 0;
  /* Сдвиг всего на 15px - это безопасно для верстки */
  transform: translateY(15px) translateZ(0);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.reveal-safe.is-visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

/* Специальный класс для элементов, которые уже имеют transform (например, центрированные absolute) */

.reveal-static {
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: opacity;
}

.reveal-static.is-visible {
  opacity: 1;
}

/* 3. ПУЛЬСАЦИЯ ФОНА (Атмосфера) */

@keyframes atmosphere {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}

.hero__bg-particle {
  animation: atmosphere 8s infinite ease-in-out;
}

/* 4. ГЛУБИНА ПРИ НАВЕДЕНИИ (Только тени и легкий подъем) */

.result-card,
.team-card,
.service-card,
.stage-card {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease;
}

/* !important нужен, чтобы перебить старые стили, если они конфликтуют */

.result-card:hover,
.team-card:hover,
.service-card:hover,
.stage-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(76, 151, 178, 0.15) !important;
  z-index: 2;
}

/* ================================================================
   PREMIUM ATMOSPHERE: THE ETHER
   ================================================================ */

/* Основной контейнер, зафиксированный на экране */

.atmosphere {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Лежит под контентом */
  pointer-events: none;
  overflow: hidden;
  background-color: #020203;
  /* Базовый черный */
}

/* --- 1. NEBULA (ЖИВОЙ СВЕТ) --- */

/* Пятна, которые медленно плавают, создавая ощущение объема */

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: breathe 15s infinite alternate ease-in-out;
}

.nebula--1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15),
    transparent 70%
  );
}

.nebula--2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
  animation-delay: -5s;
}

@keyframes breathe {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.1) translate(20px, -20px);
    opacity: 0.5;
  }
}

/* --- 2. GUIDES (СТРУНЫ/ПАУТИНА) --- */

/* Тонкие линии, которые держат структуру сайта */

.guides-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  /* Ширина контента */
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.guide-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.03);
}

.guide-line--left {
  left: 25%;
}

.guide-line--center {
  left: 50%;
  opacity: 0.02;
}

/* Центральная ось едва видна */

.guide-line--right {
  right: 25%;
}

/* Импульсы энергии, бегущие по струнам */

.guide-pulse {
  position: absolute;
  top: 0;
  left: -1px;
  /* Центрируем на линии */
  width: 3px;
  height: 150px;
  /* Длина хвоста */
  background: linear-gradient(
    to bottom,
    transparent,
    var(--c-accent),
    transparent
  );
  opacity: 0;
  animation: flowDown 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 15px var(--c-accent);
}

.guide-pulse--delay {
  animation-delay: 4s;
  background: linear-gradient(to bottom, transparent, #fff, transparent);
  height: 100px;
  opacity: 0.5;
}

@keyframes flowDown {
  0% {
    top: -20%;
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    top: 120%;
    opacity: 0;
  }
}

/* --- 3. FLOATING DUST (ЧАСТИЦЫ) --- */

/* Статичный шум + медленное движение точек */

.floating-dust {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    );
  background-size: 120px 120px;
  animation: dustMove 60s linear infinite;
  opacity: 0.6;
}

@keyframes dustMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 -120px;
  }
  /* Медленно вверх */
}

/* --- 4. NOISE (ТЕКСТУРА) --- */

.noise-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
}

/* ================================================================
   FIX VISIBILITY (ОБЯЗАТЕЛЬНО)
   ================================================================ */

/* Делаем все секции прозрачными, чтобы видеть атмосферу */

.hero,
.stats,
.partners,
.diagnostic,
.services,
.team,
.reviews,
.results,
.stages,
.faq,
.contact-form,
.footer {
  position: relative;
  z-index: 10;
  background-color: transparent !important;
}

/* Скрываем старые фоны внутри секций */

.hero__bg-particle,
.hero__grid,
.results__bg-grid,
.contact__grid-bg {
  display: none !important;
  /* Отключаем локальные фоны, чтобы работал глобальный */
}

/* ================================================================
   UNIFIED BUTTON SYSTEM - ИКОНКА В КРАЙ БЕЗ ИЗМЕНЕНИЯ РАЗМЕРА
   ================================================================ */

/* --- BASE BUTTON --- */

.btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: var(--btn-height);
  padding: var(--btn-padding-y) 0 var(--btn-padding-y) 2.5rem;
  /* ПРАВЫЙ = 0 */
  font-family: var(--font-display);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  text-decoration: none;
  border: none;
  border-radius: var(--btn-radius-round);
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--btn-transition);
  white-space: nowrap;
}

/* --- PRIMARY BUTTON --- */

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-text-color);
  font-weight: var(--btn-font-weight-bold);
  box-shadow: var(--shadow-glow);
}

/* Блик при наведении */

.btn--primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--btn-shine-gradient);
  transition: var(--transition-slow);
  pointer-events: none;
  z-index: 1;
}

.btn--primary:hover {
  background: var(--btn-primary-bg-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow-hover);
}

.btn--primary:hover::before {
  left: 100%;
}

.btn--primary:active {
  transform: translateY(0);
}

/* --- SECONDARY BUTTON (БЕЗ ИКОНКИ) --- */

.btn--secondary {
  background: transparent;
  border: 1px solid var(--btn-secondary-border);
  border-radius: var(--btn-radius-round);
  padding: var(--btn-padding-y) 2.5rem;
  /* СИММЕТРИЧНЫЙ */
  color: var(--btn-secondary-text);
  justify-content: center;
  /* ЦЕНТРИРУЕМ ТЕКСТ */
}

.btn--secondary:hover {
  background: var(--btn-secondary-bg-hover);
  color: var(--btn-secondary-text-hover);
}

.btn--secondary .btn__text {
  color: inherit;
  padding-right: 0;
  /* БЕЗ КОМПЕНСАЦИИ */
}

/* --- BUTTON CONTENT --- */

.btn__content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 2.75rem;
  gap: var(--btn-gap);
  position: relative;
  z-index: 2;
}

.btn__text {
  color: var(--btn-text-color);
  font-family: var(--font-display);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 100%;
  flex: 1;
  text-align: center;
  transition: color var(--transition-normal);
  padding-right: 1rem;
  /* КОМПЕНСАЦИЯ ДЛЯ PRIMARY */
}

/* --- BUTTON ICON (В КРАЙ, РАЗМЕР НЕ МЕНЯЕТСЯ) --- */

.btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--btn-icon-size);
  /* НЕ ТРОГАЕМ */
  height: var(--btn-icon-size);
  /* НЕ ТРОГАЕМ */
  flex-shrink: 0;
  border-radius: var(--radius-round);
  position: relative;
  overflow: visible;
  transition: transform var(--transition-slow) var(--transition-bounce);
  margin-left: auto;
  margin-right: 0;
  /* В КРАЙ! */
}

.btn__icon img,
.btn__icon svg {
  width: 50%;
  height: 50%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.btn__icon svg {
  stroke: var(--btn-text-color);
  fill: none;
}

/* Анимация иконки при наведении */

.btn--primary:hover .btn__icon {
  transform: rotate(45deg) scale(1.05);
}

.btn--primary:hover .btn__icon img,
.btn--primary:hover .btn__icon svg {
  transform: translate(3px, -3px);
}

/* --- BUTTON CONTAINERS --- */

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--section-gap-large);
  align-items: center;
  margin-top: var(--content-gap);
}

/* --- CONTEXT-SPECIFIC --- */

.modal__form .btn {
  width: 100%;
  margin-top: var(--content-gap);
  height: var(--btn-height-small);
}

.stages__action .btn {
  width: auto;
  flex-shrink: 0;
}

.contact-form__form .btn {
  width: 100%;
  margin-top: var(--content-gap);
}

/* =========================
   HOTFIX: CONTACT FORM VISIBILITY
   ========================= */
.contact-form {
    z-index: 50 !important;
    overflow: visible !important;
}

.developer-credit {
  position: relative;
  z-index: 5;
  width: 100%;
  /* Flexbox для идеального центрирования */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  /* Отступ между элементами */
  padding: 2rem 0 1rem;
  /* Воздух сверху и снизу */
  margin-top: 1rem;
  /* Элегантный разделитель (градиентная линия сверху) */
  background-image: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top center;
  /* Типографика */
  font-family: "Anonymous Pro", monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Ссылка на студию */

.nfm-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
}

/* Эффект при наведении (Неоновая вспышка + Разъезжание букв) */

.nfm-link:hover {
  color: var(--f-accent, #3b82f6);
  /* Неоновый синий */
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.8),
    0 0 20px rgba(59, 130, 246, 0.4);
  letter-spacing: 0.15em;
  /* Легкое движение текста */
  transform: scale(1.05);
}

/* Год (чуть темнее) */

.dev-year {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 400;
  margin-left: 4px;
}

/* Адаптив для мобильных */

@media (max-width: 768px) {
  .developer-credit {
    flex-direction: row;
    /* Оставляем в строку */
    font-size: 0.65rem;
    padding-top: 1.5rem;
  }
}

/* =========================================
   IMAGE OPTIMIZATION
   ========================================= */

/* Service Card Images - Optimized for container size */
.service-card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 350 / 438;
  overflow: hidden;
  background-color: var(--c-bg-card, #0f0f0f);
}

.service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__image {
  transform: scale(1.05);
}

/* Result Card Images */
.result-card__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* Team Card Images */
.team-card__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

/* Review Card Avatar */
.review-card__avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

/* Generic lazy loading placeholder */
img[loading="lazy"] {
  background-color: rgba(255, 255, 255, 0.05);
}

/* ================================================================
   GPU ANIMATION PERFORMANCE FIXES (APPENDED)
   ================================================================ */

/* 1. Optimized SlideUpFade */
.anim-entry,
.hero__subtitle,
.hero__title-accent,
.hero__title-main {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* 2. Optimized Floating Dust (Replacing background-position with transform) */
.floating-dust {
  /* Увеличиваем высоту контейнера пыли, чтобы двигать его целиком, а не background */
  height: 200% !important; 
  top: -50% !important;
  /* Отключаем старую анимацию на background-position */
  background-position: 0 0 !important; 
  will-change: transform;
  /* Новая GPU-ускоренная анимация */
  animation: dustMoveGPU 60s linear infinite !important;
  pointer-events: none;
}

@keyframes dustMoveGPU {
  0% { transform: translateY(0) translateZ(0); }
  100% { transform: translateY(25%) translateZ(0); } /* Двигаем на 50% экрана */
}

/* 3. Optimized Navigation Buttons (Avoid background-color animation triggers if possible) */
.nav-btn,
.services__nav-btn,
.slider-nav {
  will-change: transform, background-color, border-color;
}

/* 4. Fix for SVG Connection Lines (Solutions) */
path.connection-line,
.connection-line {
  will-change: stroke-dashoffset;
}
