/* CSS Reset и базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Убираем синюю подсветку на мобильных устройствах */
a, button, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: visible !important;
  max-width: none !important;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-white);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: visible !important;
  max-width: none !important;
  width: 100% !important;
}

/* BODY CONTAINER - ПОДДЕРЖИВАЕТ SPLINE СЦЕНЫ */
.body-container {
  width: 100vw;
  min-height: 100vh;
  max-width: none; /* Убираем ограничения ширины для Spline */
  overflow-x: visible; /* Разрешаем горизонтальное переполнение для Spline */
  overflow-y: auto;   /* Разрешаем вертикальный скролл */
  position: relative;
  /* Создаём новый stacking context */
  isolation: isolate;
}

/* Улучшенная типографика */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--hero-font-size);
  font-weight: 700;
}

h2 {
  font-size: var(--heading-xl);
}

h3 {
  font-size: var(--heading-lg);
}

h4 {
  font-size: var(--heading-md);
}

p {
  margin-bottom: 1rem;
  color: var(--text-gray);
}

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

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

/* Списки */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-gray);
}

/* Изображения */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Кнопки */
button {
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  outline: none;
}

button:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Формы */
input, textarea, select {
  font-family: var(--font-body);
  border: 1px solid var(--primary-700);
  background-color: var(--primary-800);
  color: var(--text-white);
  padding: 0.75rem;
  border-radius: var(--border-radius-sm);
  transition: border-color var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

/* Утилиты */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  overflow: visible; /* НЕ ОБРЕЗАЕМ КОНТЕНТ */
}

.section {
  padding: var(--section-padding);
}

/* Flex утилиты */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* Grid утилиты */
.grid {
  display: grid;
  overflow: visible; /* НЕ ОБРЕЗАЕМ КОНТЕНТ */
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

.grid-gap-8 {
  gap: 2rem;
}

/* Позиционирование */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-1 {
  z-index: 1;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-50 {
  z-index: 50;
}

.z-100 {
  z-index: 100;
}

/* Размеры */
.w-full {
  width: 100%;
}

.w-20 {
  width: 5rem;
}

.h-full {
  height: 100%;
}

.h-20 {
  height: 5rem;
}

.h-screen {
  height: 100vh;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

/* Текстовые утилиты */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

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

.text-orange {
  color: var(--accent-orange);
}

.text-white {
  color: var(--text-white);
}

.text-gray {
  color: var(--text-gray);
}

/* Дополнительные цветовые классы */
.border-blue-400\/15 {
  border-color: rgba(96, 165, 250, 0.15);
}

.border-blue-400\/10 {
  border-color: rgba(96, 165, 250, 0.1);
}

.border-orange-400\/10 {
  border-color: rgba(251, 146, 60, 0.1);
}

.text-blue-400\/40 {
  color: rgba(96, 165, 250, 0.4);
}

.text-blue-400\/60 {
  color: rgba(96, 165, 250, 0.6);
}

.text-blue-400\/70 {
  color: rgba(96, 165, 250, 0.7);
}

.bg-blue-500\/5 {
  background-color: rgba(59, 130, 246, 0.05);
}

.rounded-full {
  border-radius: var(--border-radius-full);
}

.transform {
  transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1));
}

.-translate-x-1\/2 {
  --tw-translate-x: -50%;
}

.-translate-y-1\/2 {
  --tw-translate-y: -50%;
}

.border-2 {
  border-width: 2px;
}

.border-4 {
  border-width: 4px;
}



/* МОБИЛЬНАЯ ВЕРСИЯ - исправлены проблемы с overflow и позиционированием */
/* SPLINE 3D ИНТЕГРАЦИЯ */
.spline-3d-container {
  transition: opacity 0.5s ease-in-out;
}

.spline-scene {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.spline-scene.loaded {
  opacity: 1;
}



/* Runtime API контейнер и canvas */
#spline-container {
  background: transparent !important;
  border: none !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100% !important;
  height: 100% !important;
}

#spline-canvas {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  
  /* 🚀 WEBFLOW-STYLE PERFORMANCE (как в MDN) */
  will-change: transform;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* GPU layers */
  transform-style: preserve-3d;
  /* Smooth rendering */
  image-rendering: optimizeSpeed;
  /* Disable transparency for performance */
  background: rgba(0,0,0,0);
  /* Hardware acceleration */
  -webkit-transform: translate3d(0,0,0);
  -webkit-font-smoothing: antialiased;
}





/* 🚀 НОВАЯ ЧИСТАЯ HERO-SPLINE СЕКЦИЯ */
.hero-spline-section {
  min-height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  position: relative;
  overflow: visible; /* Критически важно для Spline сцены */
  width: 100%;
  max-width: none; /* Убираем ограничения ширины */
}

.hero-spline-container {
  max-width: none; /* Убираем ограничения для полного пространства */
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Даём больше места для Spline */
  gap: 3rem;
  align-items: center;
  height: 100vh;
  min-height: 700px;
  overflow: visible;
  box-sizing: border-box;
}

/* Левая сторона - текст */
.hero-spline-text {
  color: white;
}

.hero-spline-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.text-accent {
  color: #00d9ff;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.hero-spline-subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-spline-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #00d9ff 0%, #0ea5e9 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid #475569;
}

.btn-secondary:hover {
  border-color: #00d9ff;
  background: rgba(0, 217, 255, 0.1);
}

/* Правая сторона - Spline */
.hero-spline-3d {
  height: 85vh; /* Viewport height для масштабирования */
  min-height: 500px;
  max-height: 800px;
  width: calc(100% + 5rem); /* Расширяем на 5rem для предотвращения обрезания */
  margin-right: -2.5rem; /* Компенсируем центровку */
  position: relative;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-sizing: border-box;
}

/* Чистый Spline viewer без конфликтов */
.clean-spline-viewer {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  overflow: visible !important;
  /* Правильное масштабирование для разных размеров экрана */
  object-fit: contain !important;
  box-sizing: border-box !important;
}

/* Принудительно скрываем hint иконку (рука со стрелками) */
.clean-spline-viewer .spline-hint,
.clean-spline-viewer [class*="hint"],
.clean-spline-viewer [data-hint],
.spline-test-viewer .spline-hint,
.spline-test-viewer [class*="hint"],
.spline-test-viewer [data-hint] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .hero-spline-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    height: auto;
    padding: 2rem 1rem;
  }
  
  .hero-spline-title {
    font-size: 2.5rem;
  }
  
  .hero-spline-3d {
    height: 60vh; /* Возвращаем viewport height */
    min-height: 400px;
    width: 100%; /* На мобильных не расширяем */
    margin-right: 0; /* Убираем компенсацию на мобильных */
    overflow: visible;
  }
  
  .hero-spline-buttons {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  /* СКРЫВАЕМ СТАРЫЙ HERO БЛОК НА МОБИЛЬНЫХ */
  .hero-container {
    display: none !important;
  }
}

/* Анимации загрузки */
.loading {
  opacity: 0;
  transform: translateY(50px);
  transition: all var(--transition-slow);
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Скролл */
.no-scroll {
  overflow: hidden;
}

/* Кнопки Hero блока */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 2.5rem;
  border-radius: 60px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  
  /* Красивая космическая обводка */
  border: 3px solid;
  background-clip: padding-box;
  
  /* Базовые тени */
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ПЕРВИЧНАЯ КНОПКА */
.btn-primary {
  border-color: rgba(59, 130, 246, 0.6);
  color: rgba(255, 255, 255, 0.95);
  
  /* Синий glow */
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.25),
    0 0 25px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ВТОРИЧНАЯ КНОПКА */
.btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
  
  /* Белый glow */
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ШЕСТЕРЕНКИ ВО ВЕСЬ ФОН - ПОД ТЕКСТОМ */
.btn::before {
  
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/btn.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: inherit;
  z-index: -1; /* НИЖЕ ВСЕГО! ПОД ТЕКСТОМ! */
  opacity: 0; /* СКРЫТЫ ИЗНАЧАЛЬНО */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ОТТЕНКИ ШЕСТЕРЕНОК - БЕЛЫЙ ЦВЕТ */
.btn-primary::before {
  filter: brightness(3) saturate(0) invert(1); /* ПОСТОЯННО БЕЛЫЕ ШЕСТЕРЕНКИ */
}

.btn-secondary::before {
  filter: brightness(3) saturate(0) invert(1); /* ПОСТОЯННО БЕЛЫЕ ШЕСТЕРЕНКИ */
}

/* ПЕРЕЛИВЧАТЫЙ ВЕРХНИЙ СЛОЙ - НЕПРОЗРАЧНЫЙ */
.btn::after {
  
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  z-index: -2; /* НИЖЕ ШЕСТЕРЕНОК, НО ПОД ТЕКСТОМ! */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* ПЕРЕЛИВЧАТЫЙ ФОН ПЕРВИЧНОЙ КНОПКИ - БОЛЕЕ ПРОЗРАЧНЫЙ */
.btn-primary::after {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.3) 0%,     /* ПРОЗРАЧНЫЙ */
    rgba(37, 99, 235, 0.35) 25%,    /* ПРОЗРАЧНЫЙ */
    rgba(147, 197, 253, 0.25) 50%,  /* ПРОЗРАЧНЫЙ */
    rgba(59, 130, 246, 0.35) 75%,   /* ПРОЗРАЧНЫЙ */
    rgba(37, 99, 235, 0.3) 100%     /* ПРОЗРАЧНЫЙ */
  );
  background-size: 200% 200%;
  animation: shimmer-blue 3s ease-in-out infinite;
}

/* ПЕРЕЛИВЧАТЫЙ ФОН ВТОРИЧНОЙ КНОПКИ - БОЛЕЕ ПРОЗРАЧНЫЙ */
.btn-secondary::after {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.25) 0%,   /* ПРОЗРАЧНЫЙ */
    rgba(255, 255, 255, 0.2) 25%,   /* ПРОЗРАЧНЫЙ */
    rgba(255, 255, 255, 0.3) 50%,   /* ПРОЗРАЧНЫЙ */
    rgba(255, 255, 255, 0.25) 75%,  /* ПРОЗРАЧНЫЙ */
    rgba(255, 255, 255, 0.22) 100%  /* ПРОЗРАЧНЫЙ */
  );
  background-size: 200% 200%;
  animation: shimmer-white 3s ease-in-out infinite;
}

/* ВСЕ СОДЕРЖИМОЕ КНОПКИ ВЫШЕ ВСЕГО */
.btn,
.btn *,
.btn span,
.btn i,
.btn svg {
  position: relative;
  z-index: 100 !important; /* МАКСИМАЛЬНЫЙ Z-INDEX! ВЫШЕ ВСЕГО! */
}

/* ТЕКСТ НАД ВСЕМ - МАКСИМАЛЬНЫЙ Z-INDEX */
.btn > * {
  position: relative;
  z-index: 100 !important; /* ВЫШЕ ВСЕГО! */
}

/* HOVER ЭФФЕКТЫ - УЛЕТАЮЩИЙ ВЕРХНИЙ СЛОЙ */
.btn-primary:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.8);
  
  /* Усиленный glow */
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(59, 130, 246, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.6);
  
  /* Усиленный glow */
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.3),
    0 0 35px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ВЕРХНИЙ СЛОЙ УЛЕТАЕТ ВНИЗ ПРИ ХОВЕРЕ */
.btn:hover::after {
  transform: translateY(100%); /* УЛЕТАЕТ ВНИЗ! */
  opacity: 0;
}

/* ШЕСТЕРЕНКИ СТАНОВЯТСЯ ЯРЧЕ ПРИ ХОВЕРЕ */
.btn-primary:hover::before {
  opacity: 1;
  filter: brightness(3) saturate(0) invert(1); /* ОСТАЮТСЯ БЕЛЫМИ ПРИ ХОВЕРЕ */
}

.btn-secondary:hover::before {
  opacity: 1;
  filter: brightness(3) saturate(0) invert(1); /* ОСТАЮТСЯ БЕЛЫМИ ПРИ ХОВЕРЕ */
}

/* АКТИВНОЕ СОСТОЯНИЕ */
.btn:active {
  transform: translateY(-1px);
  transition: all 0.1s ease;
}

/* АНИМАЦИИ ПЕРЕЛИВОВ */
@keyframes shimmer-blue {
  0%, 100% { 
    background-position: 0% 0%; 
  }
  50% { 
    background-position: 100% 100%; 
  }
}

@keyframes shimmer-white {
  0%, 100% { 
    background-position: 0% 0%; 
  }
  50% { 
    background-position: 100% 100%; 
  }
}

/* АДАПТИВНОСТЬ КНОПОК */
@media (max-width: 768px) {
  .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    gap: 0.5rem;
  }
  
  .btn::before {
    width: 250%;
    height: 250%;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
  }
}

/* ========== ЧАТ ВИДЖЕТ С ТРЕМЯ ОПЦИЯМИ ========== */

/* Контейнер виджета */
.chat-widget {
  position: fixed !important;
  right: 2rem;
  bottom: 2rem;
  z-index: 49000 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Основная кнопка чата */
.chat-button {
  position: relative;
  width: 50px;
  height: 50px;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 768px) {
  .chat-button {
    width: 52px !important;
    height: 52px !important;
  }
  
  .chat-widget {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

.chat-button:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ИКОНКА ЧАТА */
.chat-icon {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.chat-icon::before {
  content: '';
  width: 28px;
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M16 4C9.373 4 4 8.925 4 15c0 3.074 1.502 5.836 3.926 7.71L6.5 26.5l4.79-1.426C12.796 25.674 14.355 26 16 26c6.627 0 12-4.925 12-11S22.627 4 16 4z' fill='%23f97316' stroke='%23fb923c' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='15' r='1.5' fill='%23fed7aa'/%3E%3Ccircle cx='16' cy='15' r='1.5' fill='%23fed7aa'/%3E%3Ccircle cx='20' cy='15' r='1.5' fill='%23fed7aa'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.4));
}

/* ОРАНЖЕВЫЕ КОСМИЧЕСКИЕ КОЛЬЦА */
.chat-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0.6;
  pointer-events: none;
}

.chat-ring-1 {
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-color: rgba(249, 115, 22, 0.4);
  background: radial-gradient(circle, 
    rgba(249, 115, 22, 0.35) 0%, 
    rgba(249, 115, 22, 0.20) 50%, 
    rgba(249, 115, 22, 0.08) 100%);
  animation: cosmic-pulse-1 2.5s ease-in-out infinite, cosmic-rotate-slow 8s linear infinite;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.chat-ring-2 {
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-color: rgba(251, 146, 60, 0.3);
  background: radial-gradient(circle, 
    rgba(249, 115, 22, 0.12) 0%, 
    rgba(251, 146, 60, 0.08) 40%, 
    transparent 100%);
  animation: cosmic-pulse-2 3s ease-in-out infinite 0.5s, cosmic-rotate-medium 6s linear infinite reverse;
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.2);
}

/* HOVER ЭФФЕКТЫ ОСНОВНОЙ КНОПКИ */
.chat-button:hover {
  transform: scale(1.1);
  background: transparent !important;
  box-shadow: none !important;
}

.chat-button:hover .chat-icon::before {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.8)) brightness(1.1);
}

.chat-button:hover .chat-ring-1 {
  border-color: rgba(249, 115, 22, 0.7);
  background: radial-gradient(circle, 
    rgba(249, 115, 22, 0.50) 0%, 
    rgba(249, 115, 22, 0.30) 50%, 
    rgba(249, 115, 22, 0.12) 100%);
  animation: cosmic-pulse-hover-1 1s ease-in-out infinite, cosmic-rotate-hover 2s linear infinite;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.6);
}

.chat-button:hover .chat-ring-2 {
  border-color: rgba(251, 146, 60, 0.6);
  background: radial-gradient(circle, 
    rgba(249, 115, 22, 0.45) 0%, 
    rgba(251, 146, 60, 0.30) 40%, 
    rgba(249, 115, 22, 0.10) 100%);
  animation: cosmic-pulse-hover-2 1.2s ease-in-out infinite 0.2s, cosmic-rotate-hover 2.5s linear infinite reverse;
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.5);
}

@media (max-width: 768px) {
  .chat-button:hover .chat-icon::before {
    width: 34px !important;
    height: 34px !important;
  }
}

/* ========== ОПЦИИ ЧАТА ========== */

.chat-options {
  position: absolute;
  bottom: 70px; /* Над основной кнопкой */
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chat-options.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Индивидуальная опция чата - точная копия основной кнопки */
.chat-option {
  position: relative;
  width: 50px;
  height: 50px;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transform: scale(0) translateY(20px);
  opacity: 0;
}

/* Резиновая анимация появления */
.chat-options.active .chat-option:nth-child(1) {
  animation: bounceInUp 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s forwards;
}

.chat-options.active .chat-option:nth-child(2) {
  animation: bounceInUp 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s forwards;
}

.chat-options.active .chat-option:nth-child(3) {
  animation: bounceInUp 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s forwards;
}

@keyframes bounceInUp {
  0% {
    transform: scale(0) translateY(20px);
    opacity: 0;
  }
  60% {
    transform: scale(1.1) translateY(-5px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* ========== ИКОНКИ И КОЛЬЦА ОПЦИЙ ========== */

/* Иконка внутри опции чата */
.chat-option-icon {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.chat-option-icon::before {
  content: '';
  width: 28px;
  height: 28px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Кольца для опций */
.chat-option-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0.6;
  pointer-events: none;
}

.chat-option-ring-1 {
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  animation: cosmic-pulse-1 2.5s ease-in-out infinite, cosmic-rotate-slow 8s linear infinite;
}

.chat-option-ring-2 {
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  animation: cosmic-pulse-2 3s ease-in-out infinite 0.5s, cosmic-rotate-medium 6s linear infinite reverse;
}

/* ========== WHATSAPP ОПЦИЯ ========== */
.chat-option-whatsapp .chat-option-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893A11.821 11.821 0 0020.465 3.488' fill='%2325D366'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.4));
}

.chat-option-whatsapp .chat-option-ring-1 {
  border-color: rgba(37, 211, 102, 0.4);
  background: radial-gradient(circle, 
    rgba(37, 211, 102, 0.35) 0%, 
    rgba(37, 211, 102, 0.20) 50%, 
    rgba(37, 211, 102, 0.08) 100%);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.chat-option-whatsapp .chat-option-ring-2 {
  border-color: rgba(37, 211, 102, 0.3);
  background: radial-gradient(circle, 
    rgba(37, 211, 102, 0.12) 0%, 
    rgba(37, 211, 102, 0.08) 40%, 
    transparent 100%);
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.2);
}

.chat-option-whatsapp:hover {
  transform: scale(1.1);
}

.chat-option-whatsapp:hover .chat-option-icon::before {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 15px rgba(37, 211, 102, 0.8)) brightness(1.1);
}

.chat-option-whatsapp:hover .chat-option-ring-1 {
  border-color: rgba(37, 211, 102, 0.7);
  background: radial-gradient(circle, 
    rgba(37, 211, 102, 0.50) 0%, 
    rgba(37, 211, 102, 0.30) 50%, 
    rgba(37, 211, 102, 0.12) 100%);
  animation: cosmic-pulse-hover-1 1s ease-in-out infinite, cosmic-rotate-hover 2s linear infinite;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
}

.chat-option-whatsapp:hover .chat-option-ring-2 {
  border-color: rgba(37, 211, 102, 0.6);
  background: radial-gradient(circle, 
    rgba(37, 211, 102, 0.45) 0%, 
    rgba(37, 211, 102, 0.30) 40%, 
    rgba(37, 211, 102, 0.10) 100%);
  animation: cosmic-pulse-hover-2 1.2s ease-in-out infinite 0.2s, cosmic-rotate-hover 2.5s linear infinite reverse;
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.5);
}

/* ========== TELEGRAM ОПЦИЯ ========== */
.chat-option-telegram .chat-option-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m20.665 3.717-17.73 6.837c-1.21.486-1.203 1.161-.222 1.462l4.552 1.42 10.532-6.645c.498-.303.953-.14.579.192l-8.533 7.701h-.002l.002.001-.314 4.692c.46 0 .663-.211.921-.46l2.211-2.15 4.599 3.397c.848.467 1.457.227 1.668-.787L21.928 4.634c.309-1.239-.473-1.8-1.263-1.917z' fill='%23229ED9'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 8px rgba(0, 136, 204, 0.4));
}

.chat-option-telegram .chat-option-ring-1 {
  border-color: rgba(0, 136, 204, 0.4);
  background: radial-gradient(circle, 
    rgba(0, 136, 204, 0.35) 0%, 
    rgba(0, 136, 204, 0.20) 50%, 
    rgba(0, 136, 204, 0.08) 100%);
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.3);
}

.chat-option-telegram .chat-option-ring-2 {
  border-color: rgba(0, 136, 204, 0.3);
  background: radial-gradient(circle, 
    rgba(0, 136, 204, 0.12) 0%, 
    rgba(0, 136, 204, 0.08) 40%, 
    transparent 100%);
  box-shadow: 0 0 18px rgba(0, 136, 204, 0.2);
}

.chat-option-telegram:hover {
  transform: scale(1.1);
}

.chat-option-telegram:hover .chat-option-icon::before {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 15px rgba(0, 136, 204, 0.8)) brightness(1.1);
}

.chat-option-telegram:hover .chat-option-ring-1 {
  border-color: rgba(0, 136, 204, 0.7);
  background: radial-gradient(circle, 
    rgba(0, 136, 204, 0.50) 0%, 
    rgba(0, 136, 204, 0.30) 50%, 
    rgba(0, 136, 204, 0.12) 100%);
  animation: cosmic-pulse-hover-1 1s ease-in-out infinite, cosmic-rotate-hover 2s linear infinite;
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.6);
}

.chat-option-telegram:hover .chat-option-ring-2 {
  border-color: rgba(0, 136, 204, 0.6);
  background: radial-gradient(circle, 
    rgba(0, 136, 204, 0.45) 0%, 
    rgba(0, 136, 204, 0.30) 40%, 
    rgba(0, 136, 204, 0.10) 100%);
  animation: cosmic-pulse-hover-2 1.2s ease-in-out infinite 0.2s, cosmic-rotate-hover 2.5s linear infinite reverse;
  box-shadow: 0 0 18px rgba(0, 136, 204, 0.5);
}

/* ========== ФОРМА ОПЦИЯ ========== */
.chat-option-form .chat-option-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z' stroke='%23475569' stroke-width='2' fill='%23f8fafc'/%3E%3Cpolyline points='22,6 12,13 2,6' stroke='%23475569' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 8px rgba(148, 163, 184, 0.4));
}

.chat-option-form .chat-option-ring-1 {
  border-color: rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle, 
    rgba(148, 163, 184, 0.35) 0%, 
    rgba(148, 163, 184, 0.20) 50%, 
    rgba(148, 163, 184, 0.08) 100%);
  box-shadow: 0 0 15px rgba(148, 163, 184, 0.3);
}

.chat-option-form .chat-option-ring-2 {
  border-color: rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle, 
    rgba(148, 163, 184, 0.12) 0%, 
    rgba(148, 163, 184, 0.08) 40%, 
    transparent 100%);
  box-shadow: 0 0 18px rgba(148, 163, 184, 0.2);
}

.chat-option-form:hover {
  transform: scale(1.1);
}

.chat-option-form:hover .chat-option-icon::before {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 15px rgba(148, 163, 184, 0.8)) brightness(1.1);
}

.chat-option-form:hover .chat-option-ring-1 {
  border-color: rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle, 
    rgba(148, 163, 184, 0.50) 0%, 
    rgba(148, 163, 184, 0.30) 50%, 
    rgba(148, 163, 184, 0.12) 100%);
  animation: cosmic-pulse-hover-1 1s ease-in-out infinite, cosmic-rotate-hover 2s linear infinite;
  box-shadow: 0 0 15px rgba(148, 163, 184, 0.6);
}

.chat-option-form:hover .chat-option-ring-2 {
  border-color: rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle, 
    rgba(148, 163, 184, 0.45) 0%, 
    rgba(148, 163, 184, 0.30) 40%, 
    rgba(148, 163, 184, 0.10) 100%);
  animation: cosmic-pulse-hover-2 1.2s ease-in-out infinite 0.2s, cosmic-rotate-hover 2.5s linear infinite reverse;
  box-shadow: 0 0 18px rgba(148, 163, 184, 0.5);
}

/* Иконки опций */
.chat-option-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-option-icon svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.chat-option:hover .chat-option-icon svg {
  transform: scale(1.1);
}

/* Лейблы опций */
.chat-option-label {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.chat-option:hover .chat-option-label {
  transform: translateX(2px);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .chat-options {
    bottom: 75px;
    gap: 10px;
  }
  
  .chat-option {
    padding: 10px 14px;
    min-width: 120px;
    gap: 10px;
  }
  
  .chat-option-label {
    font-size: 13px;
  }
  
  .chat-option-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Анимация закрытия */
.chat-options:not(.active) .chat-option {
  animation: bounceOutDown 0.4s ease-in forwards;
}

@keyframes bounceOutDown {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(0) translateY(20px);
    opacity: 0;
  }
}

/* Фон */
.main-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* КРУТАЯ СЕКЦИЯ ПРЕИМУЩЕСТВ - ПРАВИЛЬНАЯ АДАПТИВНАЯ АРХИТЕКТУРА */
.advantages-section {
  position: relative;
  background: #ffffff; /* Чистый белый фон без картинки */
  padding: 40px 0;
  overflow: hidden;
  z-index: 1;
}

.advantages-section::before {
  /* Remove the overlay since we have white background */
}

.advantages-section .container {
  height: 100%; /* Контейнер заполняет всю секцию */
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* ВЕРХНИЙ БЛОК - заголовок и подзаголовок */
.advantages-header {
  flex: 0 0 auto; /* Фиксированный размер для заголовка */
  display: flex;
  flex-direction: column; /* Вертикальное расположение заголовка и подзаголовка */
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 40px;
}

/* НИЖНИЙ БЛОК - карточки */
.advantages-content {
  flex: 1; /* Заполняет оставшееся место */
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title {
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 4vw; /* Адаптивный размер в vw */
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, 
    var(--accent-blue) 0%, 
    #60a5fa 25%, 
    #3b82f6 50%, 
    #2563eb 75%, 
    var(--accent-blue) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease-in-out infinite;
  position: relative;
  margin-bottom: 1rem;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.section-title::after {
  
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  border-radius: 2px;
  animation: pulse-line 3s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.5; width: 100px; }
  50% { opacity: 1; width: 200px; }
}

.section-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  text-align: center;
  opacity: 0.8;
  margin: 0; /* Убираем нижний отступ чтобы не съезжал */
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  align-items: stretch; /* Все карточки растягиваются до одинаковой высоты */
}

@media (min-width: 768px) {
  .advantages-section {
    padding: 30px; /* Больше отступов на планшетах */
  }
  
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* Больше гэп на планшетах */
  }
}

@media (min-width: 1200px) {
  .advantages-section {
    padding: 40px; /* Максимальные отступы на десктопе */
  }
  
  .advantages-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Комфортный гэп на десктопе */
  }

  .section-title {
    font-size: 4rem; /* Фиксированный размер на больших экранах */
  }
}

@media (max-width: 768px) {
  .advantages-section {
    padding: 20px 0;
  }
  
  .advantages-header {
    margin-bottom: 25px;
    padding: 0 15px;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 15px;
  }
  
  .advantage-card {
    padding: 20px 15px;
    min-height: 180px;
  }
  
  .advantage-title {
    font-size: 1.1rem;
  }
  
  .advantage-description {
    font-size: 0.8rem;
  }
  
  .advantage-description p {
    margin-bottom: 0;
  }
  
  .advantage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
  }
  
  .icon-svg {
    width: 35px;
    height: 35px;
  }

  .section-title {
    font-size: 6vw; /* Больший размер на мобильных */
    min-font-size: 2rem;
  }
}

/* Футуристичные карточки преимуществ - ГОЛУБАЯ ВЕРСИЯ С ПРАВИЛЬНЫМИ ОТСТУПАМИ */
.advantage-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px; /* Минимальная высота для контента */
}

/* Анимированный border - ТОЛЬКО ГОЛУБЫЕ ОТТЕНКИ */
.advantage-card::before {
  
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1px;
  background: linear-gradient(135deg, 
    transparent 0%, 
    rgba(59, 130, 246, 0.6) 25%, 
    rgba(96, 165, 250, 0.8) 50%, 
    rgba(59, 130, 246, 0.6) 75%, 
    transparent 100%);
  background-size: 200% 200%;
  border-radius: 24px;
  mask: linear-gradient(white 0 0) content-box, linear-gradient(white 0 0);
  mask-composite: exclude;
  animation: border-spin 6s linear infinite paused;
  z-index: 1;
}

@keyframes border-spin {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.advantage-card:hover::before {
  animation-play-state: running;
}

/* Глитч эффект на hover - ГОЛУБОЙ */
.advantage-card::after {
  
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(59, 130, 246, 0.15), 
    transparent);
  transition: left 0.5s ease;
  z-index: 2;
}

.advantage-card:hover::after {
  left: 100%;
}

.advantage-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 
    0 20px 60px rgba(59, 130, 246, 0.2),
    0 0 0 1px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

/* ИКОНКИ ПРЕИМУЩЕСТВ - ОРАНЖЕВЫЕ НА ВСЕХ БРЕЙКПОИНТАХ! */
.advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.advantage-icon::before {
  
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, 
    rgba(249, 115, 22, 0.15) 0%, 
    rgba(249, 115, 22, 0.08) 50%, 
    transparent 70%);
  border-radius: 50%;
  animation: pulse-glow-orange 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulse-glow-orange {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* ОРАНЖЕВЫЕ ИКОНКИ - НА ВСЕХ УСТРОЙСТВАХ! */
.icon-svg {
  width: 50px;
  height: 50px;
  filter: 
    brightness(0) 
    saturate(100%) 
    invert(65%) 
    sepia(99%) 
    saturate(3207%) 
    hue-rotate(15deg) 
    brightness(100%) 
    contrast(91%);
  transition: all 0.4s ease;
  position: relative;
  z-index: 4;
  margin: 15px auto;
  display: block;
}

.advantage-card:hover .icon-svg {
  filter: 
    brightness(0) 
    saturate(100%) 
    invert(65%) 
    sepia(99%) 
    saturate(3207%) 
    hue-rotate(15deg) 
    brightness(120%) 
    contrast(91%);
  transform: scale(1.15) rotate(5deg);
}

/* Заголовок карточки - НА ВСЮ ШИРИНУ С ПЕРЕНОСОМ ПО СЛОВАМ */
.advantage-title {
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 3;
  text-align: center; /* Центрирование */
  width: 100%; /* На всю ширину */
  word-break: normal; /* Нормальный перенос */
  overflow-wrap: break-word; /* Перенос длинных слов при необходимости */
  white-space: normal; /* Разрешаем перенос строк */
  hyphens: none; /* Убираем автоматические дефисы для красоты */
  flex-shrink: 0;
}

.advantage-title::after {
  
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange), #f97316);
  transition: width 0.4s ease;
}

.advantage-card:hover .advantage-title::after {
  width: 60px;
}

.advantage-description {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  position: relative;
  z-index: 3;
  opacity: 0.85;
}

/* Убираем отступы между абзацами в описании карточек */
.advantage-description p {
  margin-bottom: 0;
}

.advantage-card:hover .advantage-description {
  opacity: 1;
  color: #374151;
}

/* Анимация появления карточек */
.advantage-card.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ */
@media (min-width: 768px) and (max-width: 1199px) {
  .advantages-section {
    padding: 30px 0;
  }
  
  .advantages-header {
    margin-bottom: 30px;
  }
  
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 20px;
  }
  
  .advantage-card {
    padding: 25px 20px;
    min-height: 220px;
  }
  
  .advantage-title {
    font-size: 1.2rem;
  }
  
  .advantage-description {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .advantage-description p {
    margin-bottom: 0;
  }
  
  .advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.2rem;
  }
  
  .icon-svg {
    width: 45px;
    height: 45px;
  }
}

/* СЕКЦИЯ КЛИЕНТОВ С АНИМИРОВАННЫМИ ЛЕНТАМИ */
.clients-section {
  height: 70vh; /* Увеличена высота для больших логотипов */
  background: #ffffff;
    position: relative;
  overflow: hidden;
  padding: 40px 0;
  margin-bottom: 0 !important; /* Убираем нижний отступ */
}

/* Анимированный фон с голубыми частицами */
.clients-section::before {
  
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(96, 165, 250, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(147, 197, 253, 0.02) 0%, transparent 60%);
  animation: bg-shift-clients 25s ease-in-out infinite;
  z-index: 0;
}

@keyframes bg-shift-clients {
  0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
  33% { transform: translateX(-10px) translateY(-15px) rotate(1deg); }
  66% { transform: translateX(20px) translateY(10px) rotate(-1deg); }
}

.clients-container {
  height: 100%;
  width: 100vw;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* Заголовок секции клиентов */
.clients-header {
  text-align: center;
  margin-bottom: 2rem;
  flex-shrink: 0;
}

.clients-title {
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, 
    var(--accent-blue) 0%, 
    #60a5fa 25%, 
    #3b82f6 50%, 
    #2563eb 75%, 
    var(--accent-blue) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease-in-out infinite;
  position: relative;
  margin-bottom: 0.5rem;
}

.clients-title::after {
  
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  border-radius: 2px;
  animation: pulse-line 3s ease-in-out infinite;
}

.clients-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  text-align: center;
  opacity: 0.8;
  margin: 0;
}

/* Контейнер для анимированных лент */
.clients-belts-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  overflow: hidden;
}

/* Ленты логотипов */
.clients-belt {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: auto;
  padding: 1rem 0;
  /* Добавляем плавный переход для остановки анимации */
  transition: all 0.3s ease;
}

/* ОСТАНОВКА АНИМАЦИИ при ховере на ряд */
.clients-belt:hover .clients-track {
  animation-play-state: paused;
}

.clients-belt::before {
  
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.clients-belt::after {
  
  position: absolute;
  right: 0;
  top: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(270deg, #ffffff 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Дорожки с логотипами */
.clients-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  /* Плавная остановка/запуск анимации */
  transition: animation-play-state 0.3s ease;
}

/* МЕДЛЕННАЯ лента - 35 секунд */
.clients-track-slow {
  animation-name: scroll-slow;
  animation-duration: 35s;
}

/* БЫСТРАЯ лента - 25 секунд */
.clients-track-fast {
  animation-name: scroll-fast;
  animation-duration: 25s;
}

/* Логотипы клиентов */
.client-logo {
  height: 168px; /* Увеличено с 112px на 50% */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.client-logo:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.client-logo img {
  height: 115px; /* Увеличено с 77px на 50% */
  max-width: 336px; /* Увеличено с 224px на 50% */
  object-fit: contain;
  /* ИЗНАЧАЛЬНО ЧЁРНО-БЕЛЫЕ логотипы */
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.4s ease;
}

/* ЦВЕТНОСТЬ при ховере на конкретный логотип */
.client-logo:hover img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.1);
}

/* Стили для индикатора загрузки клиентов */
.clients-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 168px;
  gap: 1rem;
  opacity: 0.7;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(59, 130, 246, 0.1);
  border-top: 3px solid var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.clients-loading p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

/* Стили для заглушки клиентов */
.client-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 115px;
  font-size: 0.9rem;
  color: #9ca3af;
  text-align: center;
  padding: 1rem;
}

/* Стили для ссылок клиентов */
.client-logo a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.client-logo a:hover {
  text-decoration: none;
}

/* Анимации скролла */
@keyframes scroll-slow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scroll-fast {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Responsive для секции клиентов */
@media (max-width: 768px) {
  .clients-title {
    font-size: 2.5rem;
  }
  
  .clients-subtitle {
    font-size: 1rem;
  }
  
  .client-logo {
    height: 137px; /* Увеличено с 91px на 50% */
    padding: 0.4rem 1rem;
  }
  
  .client-logo img {
    height: 89px; /* Увеличено с 59px на 50% */
    max-width: 231px; /* Увеличено с 154px на 50% */
  }
  
  .clients-track {
    gap: 2rem;
  }
  
  .clients-belts-container {
    gap: 1rem;
  }
}

/* СЕКЦИЯ ПЕРЕХОДА С ГРАНИЦЕЙ */
.border-transition-section {
  width: 100vw !important; /* Принудительно 100vw */
  height: auto; /* Высота подстраивается под картинку */
  position: relative;
  overflow: hidden;
  margin: 0 !important; /* Убираем ВСЕ отступы */
  padding: 0 !important; /* Убираем padding */
  left: 50%; /* Центрируем относительно родителя */
  right: 50%; /* Центрируем относительно родителя */
  margin-left: -50vw !important; /* Компенсируем центрирование */
  margin-right: -50vw !important; /* Компенсируем центрирование */
  display: block;
}

/* Картинка границы - 100vw в ширину, высота по пропорциям */
.border-transition-image {
  width: 100vw !important; /* Принудительно полная ширина экрана */
  height: auto !important; /* Высота подстраивается по пропорциям */
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover; /* Сохраняем пропорции, заполняем ширину */
  object-position: center; /* Центрируем по горизонтали */
  max-width: none !important; /* Убираем ограничения ширины */
  min-width: 100vw !important; /* Минимальная ширина 100vw */
  vertical-align: top; /* Убираем зазор под картинкой */
  transform: translateY(-2px); /* Сдвигаем на 2px вверх для перекрытия стыка */
}

/* Дополнительные стили для устранения зазоров */
section {
  display: block;
  margin: 0 !important;
}

/* Убираем зазоры между секциями */
.clients-section + .border-transition-section {
  margin-top: 0 !important;
}

.clients-section + .border-transition-section {
  z-index: 1;
}

.clients-section + .border-transition-section .border-transition-image {
  margin-top: -2px;
}

/* ВИДЕО БЛОК С ВРАЩАЮЩИМСЯ 3D КУБОМ */
.video-section {
  height: 100vh; /* ВСЕГДА 100vh */
  background: transparent; /* Убираем фон */
  position: relative;
  padding: 0; /* Убираем padding */
  overflow: hidden;
}

.video-container {
  width: 100%;
  height: 100vh; /* Всегда 100vh */
  max-width: none;
  margin: 0;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 50vw 1fr; /* Куб 50% ширины на desktop */
  grid-template-rows: 1fr;
  align-items: center;
  gap: 20px; /* Уменьшил gap для больших текстовых блоков */
}

/* Космические текстовые блоки */
.video-text {
  color: var(--text-white);
  text-align: center;
  padding: 15px 10px; /* Уменьшил padding для больше места */
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 40vh; /* ОГРАНИЧИВАЮ высоту до 40% */
  max-height: 40vh; /* Максимальная высота */
  width: 100%; /* Полная ширина контейнера */
  max-width: 100%; /* Не выходит за границы */
  position: relative;
  
  /* Предотвращаем переполнение */
  overflow: hidden;
  box-sizing: border-box;
  
  /* Космический фон с анимированным переливом */
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15) 0%,
    rgba(96, 165, 250, 0.10) 25%,
    rgba(147, 197, 253, 0.08) 50%,
    rgba(59, 130, 246, 0.12) 75%,
    rgba(30, 64, 175, 0.18) 100%);
  background-size: 300% 300%;
  animation: cosmicShimmer 8s ease-in-out infinite;
  
  /* Красивая обводка с glow */
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px; /* Уменьшил радиус */
  backdrop-filter: blur(10px);
  
  /* Glow эффект и тени */
  box-shadow: 
    0 0 20px rgba(59, 130, 246, 0.3),
    0 0 40px rgba(59, 130, 246, 0.15),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  
  /* 3D эффект */
  transform-style: preserve-3d;
}

/* Анимация космического перелива */
@keyframes cosmicShimmer {
  0%, 100% {
    background-position: 0% 50%;
    box-shadow: 
      0 0 20px rgba(59, 130, 246, 0.3),
      0 0 40px rgba(59, 130, 246, 0.15),
      inset 0 0 20px rgba(255, 255, 255, 0.05);
  }
  25% { 
    background-position: 25% 25%;
    box-shadow: 
      0 0 25px rgba(96, 165, 250, 0.4),
      0 0 50px rgba(96, 165, 250, 0.2),
      inset 0 0 25px rgba(255, 255, 255, 0.08);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 
      0 0 30px rgba(147, 197, 253, 0.5),
      0 0 60px rgba(147, 197, 253, 0.25),
      inset 0 0 30px rgba(255, 255, 255, 0.1);
  }
  75% { 
    background-position: 75% 75%;
    box-shadow: 
      0 0 22px rgba(30, 64, 175, 0.4),
      0 0 45px rgba(30, 64, 175, 0.18),
      inset 0 0 22px rgba(255, 255, 255, 0.06);
  }
}

/* Hover эффект для текстовых блоков */
.video-text:hover {
  transform: translateY(-3px) scale(1.01); /* Меньший подъем */
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 8px 25px rgba(59, 130, 246, 0.4),
    0 15px 50px rgba(59, 130, 246, 0.2),
    inset 0 0 25px rgba(255, 255, 255, 0.1);
}

.video-text h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem; /* Уменьшено с 1.4rem */
  font-weight: 700;
  line-height: 1.0;
  margin-bottom: 0.6rem;
  line-height: 1.0; /* Еще компактнее */
  margin-bottom: 0.8rem; /* Уменьшил отступ */
  background: linear-gradient(135deg, #ffffff, #93c5fd, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5); /* Уменьшил glow */
  position: relative;
  text-align: center; /* Центрирование */
  word-break: break-word; /* Перенос длинных слов */
  hyphens: auto; /* Автоматическая расстановка дефисов */
  overflow-wrap: break-word; /* Принудительный перенос */
}

/* Дополнительный glow для заголовков */
.video-text h2::after {
  
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ffffff, #93c5fd, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(6px); /* Уменьшил blur */
  z-index: -1;
  opacity: 0.5; /* Уменьшил интенсивность */
}

.video-text p {
  font-family: var(--font-body);
  font-size: 0.8rem; /* Компактный размер */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.6rem; /* Уменьшил отступы */
  line-height: 1.4; /* Компактнее */
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3); /* Мягче тень */
}

/* Контейнер для 3D куба */
.video-cube-container {
  perspective: 1200px;
  perspective-origin: center center;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.video-cube-container:active {
  cursor: grabbing;
}

/* 3D куб - уменьшенный размер */
.video-cube {
  width: min(50vw, 50vh); /* Уменьшено с 70vw, 70vh */
  height: min(50vw, 50vh);
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 30s infinite linear;
  transform-origin: center center;
  transition: transform 0.3s ease-out;
}

/* Анимация постоянного вращения куба */
@keyframes rotateCube {
  0% { transform: rotateX(15deg) rotateY(0deg); }
  100% { transform: rotateX(15deg) rotateY(360deg); }
}

/* Грани куба */
.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 0 30px rgba(59, 130, 246, 0.2),
    inset 0 0 30px rgba(59, 130, 246, 0.1);
}

/* Позиционирование граней в 3D пространстве */
.cube-front {
  transform: translateZ(calc(min(50vw, 50vh) / 2));
}

.cube-back {
  transform: translateZ(calc(min(50vw, 50vh) / -2)) rotateY(180deg);
}

.cube-right {
  transform: rotateY(90deg) translateZ(calc(min(50vw, 50vh) / 2));
}

.cube-left {
  transform: rotateY(-90deg) translateZ(calc(min(50vw, 50vh) / 2));
}

/* Видео на гранях */
.cube-face video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  filter: brightness(0.9) contrast(1.1);
  transition: all 0.3s ease;
  /* Полная блокировка всех контролов и взаимодействий */
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Отключаем контекстное меню */
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile layout */
@media (max-width: 1200px) {
  .video-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 45vh 1fr; /* Куб 45% высоты на mobile */
    padding: 15px; /* Уменьшил padding */
    gap: 10px;
  }
  
  .video-text {
    height: 25vh; /* Уменьшено с 30vh чтобы не вылезало */
    max-height: 25vh;
    padding: 12px 10px; /* Уменьшил padding */
    border-radius: 12px;
  }
  
  .video-text h2 {
    font-size: 1.4rem; /* Уменьшено с 1.6rem */
    margin-bottom: 0.6rem;
    line-height: 1.0;
  }
  
  .video-text p {
    font-size: 0.75rem; /* Уменьшено с 0.8rem */
    margin-bottom: 0.4rem;
    line-height: 1.2;
  }
  
  .video-cube {
    width: min(70vw, 45vh); /* Уменьшено с 80vw, 60vh */
    height: min(70vw, 45vh);
  }
  
  .cube-front {
    transform: translateZ(calc(min(70vw, 45vh) / 2));
  }
  
  .cube-back {
    transform: translateZ(calc(min(70vw, 45vh) / -2)) rotateY(180deg);
  }
  
  .cube-right {
    transform: rotateY(90deg) translateZ(calc(min(70vw, 45vh) / 2));
  }
  
  .cube-left {
    transform: rotateY(-90deg) translateZ(calc(min(70vw, 45vh) / 2));
  }
}

@media (max-width: 768px) {
  .video-container {
    padding: 10px;
  }
  
  .video-text {
    height: 22vh; /* Еще компактнее на малых экранах */
    max-height: 22vh;
    padding: 10px 6px; /* Уменьшил padding */
    border-radius: 10px;
  }
  
  .video-text h2 {
    font-size: 1.2rem; /* Уменьшено с 1.4rem */
    margin-bottom: 0.5rem;
    line-height: 0.95; /* Максимально компактно */
  }
  
  .video-text p {
    font-size: 0.7rem; /* Уменьшено с 0.75rem */
    margin-bottom: 0.3rem;
    line-height: 1.1;
  }
  
  .video-cube {
    width: min(75vw, 40vh); /* Еще меньше на очень маленьких экранах */
    height: min(75vw, 40vh);
  }
  
  .cube-front {
    transform: translateZ(calc(min(75vw, 40vh) / 2));
  }
  
  .cube-back {
    transform: translateZ(calc(min(75vw, 40vh) / -2)) rotateY(180deg);
  }
  
  .cube-right {
    transform: rotateY(90deg) translateZ(calc(min(75vw, 40vh) / 2));
  }
  
  .cube-left {
    transform: rotateY(-90deg) translateZ(calc(min(75vw, 40vh) / 2));
  }
}

/* ГАЛЕРЕЯ ПРОЕКТОВ - ХАОТИЧНАЯ СЕТКА */
.projects-section {
  background: transparent; /* Убираем белый фон */
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Анимированный фон для проектов - УБРАН */
.projects-section::before {
  content: '';


  display: none; /* Убираем фон */
}
@keyframes bg-shift-projects {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(1deg) scale(1.02); }
}

.projects-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Заголовок секции проектов */
.projects-header {
  text-align: center;
  margin-bottom: 4rem;
}

.projects-title {
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, 
    #ffffff 0%,
    #93c5fd 25%, 
    var(--accent-blue) 50%, 
    #60a5fa 75%, 
    #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease-in-out infinite;
  position: relative;
  margin-bottom: 1rem;
  /* Добавляем glow для темного фона */
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.projects-title::after {
  content: '';



  
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  border-radius: 2px;
  animation: pulse-line 3s ease-in-out infinite;
}

.projects-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8); /* Белый цвет для темного фона */
  text-align: center;
  opacity: 0.8;
  margin: 0;
}

/* ФИЛЬТРЫ ПОКАЗЫВАЕМ ТОЛЬКО В КАТАЛОГЕ */
.catalog-projects-section .projects-filters {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 4rem !important;
  margin-bottom: 2rem !important;
  margin-top: 2rem !important;
}

.catalog-projects-section .filters-labels {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 4rem !important;
  margin-bottom: 3rem !important;
  margin-top: 1rem !important;
}

/* СКРЫВАЕМ ФИЛЬТРЫ НА ГЛАВНОЙ СТРАНИЦЕ */
.projects-section .projects-filters,
.projects-section .filters-labels {
  display: none !important;
}

.filter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  outline: none;
}

.filter-btn:focus {
  outline: none;
}

/* Кнопка ВСЕ - синяя с stroke и glow */
.filter-btn-all {
  width: 160px; 
  height: 160px;
}

.filter-btn-all .filter-text {
  width: 160px; 
  height: 160px;
  border: 3px solid rgba(59, 130, 246, 0.6); /* Синий stroke */
  background: rgba(59, 130, 246, 0.05); /* Легкий синий фон */
  color: rgba(59, 130, 246, 0.9);
  border-radius: 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  box-shadow: 
    0 0 20px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.filter-btn-all:hover .filter-text {
  border-color: rgba(59, 130, 246, 0.8);
  background: rgba(59, 130, 246, 0.1);
  color: rgba(59, 130, 246, 1);
  transform: translateY(-4px);
  box-shadow: 
    0 0 30px rgba(59, 130, 246, 0.4),
    0 8px 25px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.filter-btn-all.active .filter-text {
  border-color: rgba(249, 115, 22, 0.8); /* Оранжевый при активации */
  background: rgba(249, 115, 22, 0.1);
  color: rgba(249, 115, 22, 1);
  box-shadow: 
    0 0 25px rgba(249, 115, 22, 0.4),
    0 4px 20px rgba(249, 115, 22, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Кнопки с иконками - синие с stroke и glow */
.filter-btn-icon {
  width: 160px;
  height: 160px;
}

.filter-icon-default,
.filter-icon-hover {
  width: 160px;
  height: 160px;
  border-radius: 32px;
  border: 3px solid rgba(59, 130, 246, 0.6); /* Синий stroke */
  background: rgba(59, 130, 246, 0.08); /* Легкий синий фон */
  padding: 24px;
  box-sizing: border-box;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 
    0 0 20px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.filter-icon-default {
  opacity: 1;
  z-index: 2;
}

.filter-icon-hover {
  opacity: 0;
  z-index: 3;
  border-color: rgba(59, 130, 246, 0.8);
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 
    0 0 30px rgba(59, 130, 246, 0.4),
    0 8px 25px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.filter-btn-icon:hover .filter-icon-default {
  opacity: 0;
}

.filter-btn-icon:hover .filter-icon-hover {
  opacity: 1;
  transform: translateY(-4px);
}

/* Активное состояние - оранжевое */
.filter-btn-icon.active .filter-icon-default {
  opacity: 0;
}

.filter-btn-icon.active .filter-icon-hover {
  opacity: 1;
  border-color: rgba(249, 115, 22, 0.8); /* Оранжевый при активации */
  background: rgba(249, 115, 22, 0.1);
  box-shadow: 
    0 0 25px rgba(249, 115, 22, 0.4),
    0 4px 20px rgba(249, 115, 22, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Блок с подписями - выносим отдельно */
.filters-labels {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4rem; /* Такой же gap как у фильтров */
  margin-bottom: 3rem; /* Отступ до проектов */
  margin-top: 1rem; /* Отступ от фильтров */
}

.filter-label {
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: rgba(59, 130, 246, 0.6); /* Синий цвет по умолчанию */
  text-align: center;
  width: 160px; /* Точно под размер кнопок */
  transition: all 0.3s ease;
}

.filter-btn:hover + .filter-label,
.filter-btn.active + .filter-label {
  color: rgba(249, 115, 22, 0.9); /* Оранжевый при hover и активном состоянии */
}

@media (min-width: 768px) and (max-width: 1199px) {
  .projects-filters {
    gap: 3rem;
  }
  
  .filters-labels {
    gap: 3rem;
  }
  
  .filter-btn-all,
  .filter-btn-icon {
    width: 140px;
    height: 140px;
  }
  
  .filter-btn-all .filter-text,
  .filter-icon-default,
  .filter-icon-hover {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    padding: 20px;
  }
  
  .filter-btn-all .filter-text {
    border-width: 5px;
    font-size: 1.6rem;
  }
  
  .filter-label {
    font-size: 0.8rem;
    width: 140px;
  }
}

@media (max-width: 768px) {
  .projects-filters {
    justify-content: space-between;
    gap: 1rem;
  }
  
  .filters-labels {
    justify-content: space-between;
    gap: 1rem;
  }
  
  .filter-btn-all,
  .filter-btn-icon {
    width: 120px;
    height: 120px;
  }
  
  .filter-btn-all .filter-text,
  .filter-icon-default,
  .filter-icon-hover {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    padding: 16px;
  }
  
  .filter-btn-all .filter-text {
    border-width: 4px;
    font-size: 1.4rem;
  }
  
  .filter-label {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 0.7rem;
    color: rgba(59, 130, 246, 0.6);
    width: 120px;
  }
}

/* Сетка проектов */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Фиксированно 3 колонки для desktop */
  gap: 2rem;
  margin-top: 2rem;
  justify-content: start;
}

/* Карточки проектов */
.project-card {
  background: rgba(255, 255, 255, 0.95); /* Немного более прозрачные */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  position: relative;
  display: flex;
  flex-direction: column;
  /* Убрал max-width - карточки заполняют ширину колонок */
}

.project-card::before {
  
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    rgba(255, 255, 255, 0.03) 50%, 
    rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Изображение проекта */
.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #f8fafc;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

/* Оверлей с кнопкой */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 0, 0, 0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.view-project-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-orange);
  border: none;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateY(20px);
  backdrop-filter: blur(10px);
}

.project-card:hover .view-project-btn {
  transform: translateY(0);
}

.view-project-btn:hover {
  background: white;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Информация о проекте */
.project-info {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.project-title {
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-description {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Теги проекта */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 4px 12px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent-orange);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Анимации появления проектов */
.project-card {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.project-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Фильтрация проектов */

/* НОВАЯ ХАОТИЧНАЯ СЕТКА С CSS GRID */
.projects-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; /* 3 колонки на ПК */
  grid-auto-rows: 200px !important; /* Базовая высота ячейки */
  gap: 1.5rem !important;
  margin-top: 2rem !important;
}

/* Хаотичные размеры для создания "беспорядка" */
/* MASONRY LAYOUT ТОЛЬКО ДЛЯ ГЛАВНОЙ СТРАНИЦЫ */
.projects-section .project-card-1 { grid-row: span 1; } /* Обычная высота */
.projects-section .project-card-2 { grid-row: span 2; } /* Высокая */
.projects-section .project-card-3 { grid-row: span 1; } /* Обычная */
.projects-section .project-card-4 { grid-row: span 1; } /* Обычная */
.projects-section .project-card-5 { grid-row: span 2; } /* Высокая */
.projects-section .project-card-6 { grid-row: span 1; } /* Обычная */
.projects-section .project-card-7 { grid-row: span 1; } /* Обычная */
.projects-section .project-card-8 { grid-row: span 2; } /* Высокая */

/* Убираем старые стили info блоков только для главной страницы - теперь только фото */
.projects-section .project-info {
  display: none !important;
}

/* Обновляем стили project-image для полного заполнения карточки */
.project-image {
  width: 100% !important;
  height: 100% !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  position: relative !important;
}

.project-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1) !important;
}

/* Hover эффекты для карточек */
.project-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

/* Планшеты - 2 колонки */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 колонки на планшете */
    grid-auto-rows: 180px !important; /* Немного меньше высота */
  }
  
  /* Перераспределяем span для 2 колонок */
  .projects-section .project-card-1 { grid-row: span 1; }
  .projects-section .project-card-2 { grid-row: span 2; }
  .projects-section .project-card-3 { grid-row: span 1; }
  .projects-section .project-card-4 { grid-row: span 2; }
  .projects-section .project-card-5 { grid-row: span 1; }
  .projects-section .project-card-6 { grid-row: span 1; }
  .projects-section .project-card-7 { grid-row: span 2; }
  .projects-section .project-card-8 { grid-row: span 1; }
}

/* Мобильные - 1 колонка */
@media (max-width: 768px) {
  .projects-title {
    font-size: 2.5rem;
  }
  
  .projects-subtitle {
    font-size: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr !important; /* 1 колонка на мобильных */
    grid-auto-rows: 250px !important; /* Увеличиваем высоту для мобильных */
  }
  
  /* На мобильных все карточки ГЛАВНОЙ СТРАНИЦЫ одинаковой высоты */
  .projects-section .project-card-1,
  .projects-section .project-card-2,
  .projects-section .project-card-3,
  .projects-section .project-card-4,
  .projects-section .project-card-5,
  .projects-section .project-card-6,
  .projects-section .project-card-7,
  .projects-section .project-card-8 {
    grid-row: span 1;
  }
}

/* ИНТЕРАКТИВНАЯ FAQ СЕКЦИЯ */
.faq-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Заголовок FAQ секции */
.faq-header {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 100;
  width: 100%;
  max-width: 800px;
  padding: 0 2rem;
}

.faq-title {
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  position: relative;
  background: linear-gradient(45deg, #ffffff 0%, #3b82f6 50%, #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease-in-out infinite;
}

.faq-title::after {
  
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #3b82f6 50%, transparent 100%);
  border-radius: 2px;
  animation: pulse-line 2s ease-in-out infinite;
}

.faq-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-weight: 400;
  margin-bottom: 0;
}

.faq-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.faq-item {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 0;
  max-width: 400px;
  min-width: 320px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.faq-question-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(20px);
  position: relative;
  
  /* Космический эффект с правильными цветами */
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cosmicGlow 4s ease-in-out infinite;
  overflow: hidden;
}

@keyframes cosmicGlow {
  0%, 100% {
    box-shadow: 
      0 10px 30px rgba(59, 130, 246, 0.1),
      0 5px 15px rgba(0, 0, 0, 0.1),
      inset 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
  }
  
  25% {
    box-shadow: 
      0 15px 40px rgba(249, 115, 22, 0.15),
      0 8px 20px rgba(0, 0, 0, 0.15),
      inset 0 0 25px rgba(255, 255, 255, 0.08);
    border-color: rgba(249, 115, 22, 0.3);
  }
  
  50% {
    box-shadow: 
      0 20px 50px rgba(59, 130, 246, 0.2),
      0 10px 25px rgba(0, 0, 0, 0.2),
      inset 0 0 30px rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
  }
  
  75% {
    box-shadow: 
      0 15px 40px rgba(249, 115, 22, 0.15),
      0 8px 20px rgba(0, 0, 0, 0.15),
      inset 0 0 25px rgba(255, 255, 255, 0.08);
    border-color: rgba(249, 115, 22, 0.3);
  }
}

.faq-question-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  line-height: 1.4;
  flex: 1;
  margin-right: 1rem;
}

.faq-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(249, 115, 22, 0.6) 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  perspective: 100px;
  flex-shrink: 0;
}

.faq-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(249, 115, 22, 0.8) 100%);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateZ(10px);
  box-shadow: 
    0 10px 20px rgba(59, 130, 246, 0.3),
    0 5px 10px rgba(0, 0, 0, 0.2);
}

.toggle-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.toggle-icon .line {
  position: absolute;
  background: white;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.line-1 {
  top: 50%;
  left: 0;
  width: 16px;
  height: 2px;
  transform: translateY(-50%);
}

.line-2 {
  top: 0;
  left: 50%;
  width: 2px;
  height: 16px;
  transform: translateX(-50%);
}

.faq-item.expanded .line-1 {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item.expanded .line-2 {
  transform: translateX(-50%) rotate(45deg);
}

.faq-answer-block {
  padding: 0 1.5rem 1.5rem 1.5rem;
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 0 20px 20px;
}

.faq-answer-block p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.faq-answer-block ul {
  margin: 1rem 0;
  padding-left: 0;
  list-style: none;
}

.faq-answer-block li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.faq-answer-block li::before {
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-size: 0.8rem;
}

.faq-answer-block strong {
  color: #f97316;
  font-weight: 600;
}

/* Анимации плавания FAQ блоков */
.faq-item.floating {
  animation-duration: 15s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
}

/* Универсальные позиции для FAQ блоков - поддержка любого количества */
/* 🚀 ДИНАМИЧЕСКАЯ ГЕНЕРАЦИЯ СТИЛЕЙ! 
   Позиции и анимации для FAQ блоков теперь генерируются автоматически через JavaScript
   в зависимости от количества FAQ в базе данных. Больше никаких ограничений! */

/* Универсальная позиция для FAQ блоков 9+ */
.faq-item:nth-child(n+9) {
  position: absolute;
  animation-duration: 20s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
}

/* Анимации плавания */
@keyframes float1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(100px, 30px) rotate(2deg); } /* Изменено с -50px на +30px */
  50% { transform: translate(200px, 60px) rotate(-1deg); } /* Изменено с 20px на 60px */
  75% { transform: translate(50px, 100px) rotate(1deg); } /* Увеличено с 80px на 100px */
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-80px, 20px) rotate(-2deg); } /* Изменено с -60px на +20px */
  40% { transform: translate(-160px, 50px) rotate(1deg); } /* Увеличено с 10px на 50px */
  60% { transform: translate(-100px, 90px) rotate(-1deg); } /* Увеличено с 70px на 90px */
  80% { transform: translate(-30px, 30px) rotate(1deg); } /* Изменено с -20px на +30px */
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(-120px, 80px) rotate(2deg); } /* Увеличено с 60px на 80px */
  60% { transform: translate(80px, 120px) rotate(-2deg); } /* Увеличено с 100px на 120px */
  90% { transform: translate(150px, 40px) rotate(1deg); } /* Изменено с -40px на +40px */
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float4 {
  0% { transform: translate(0, 0) rotate(0deg); }
  15% { transform: translate(90px, -60px) rotate(-1deg); } /* Изменено с -80px на -60px (меньше подъем) */
  35% { transform: translate(180px, -20px) rotate(2deg); } /* Изменено с -40px на -20px */
  55% { transform: translate(120px, 50px) rotate(-1deg); } /* Увеличено с 30px на 50px */
  75% { transform: translate(40px, 20px) rotate(1deg); } /* Изменено с -10px на +20px */
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Анимации для дополнительных FAQ блоков 5-8 */
@keyframes float5 {
  0% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-70px, 40px) rotate(1deg); }
  45% { transform: translate(120px, 80px) rotate(-2deg); }
  70% { transform: translate(-40px, 120px) rotate(1deg); }
  90% { transform: translate(80px, 60px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float6 {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(60px, -40px) rotate(-1deg); }
  50% { transform: translate(-90px, 30px) rotate(2deg); }
  75% { transform: translate(140px, -60px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float7 {
  0% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(-110px, 70px) rotate(2deg); }
  60% { transform: translate(70px, -40px) rotate(-1deg); }
  85% { transform: translate(-30px, 90px) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float8 {
  0% { transform: translate(0, 0) rotate(0deg); }
  18% { transform: translate(100px, 50px) rotate(1deg); }
  40% { transform: translate(-60px, 100px) rotate(-2deg); }
  65% { transform: translate(130px, -30px) rotate(1deg); }
  88% { transform: translate(-20px, 70px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Состояния FAQ блоков */

/* Hover эффект - ИСПРАВЛЕНО: убран scale который вызывал дрожание */
.faq-item:hover {
  animation-play-state: paused !important;
}

.faq-item:hover .faq-question-block {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 
    0 20px 50px rgba(59, 130, 246, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.15),
    inset 0 0 25px rgba(255, 255, 255, 0.08);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
}

/* Расширенное состояние FAQ */
.faq-item.expanded {
  position: fixed !important;
  top: 10% !important;
  left: 10% !important;
  width: 80% !important;
  max-width: 80% !important;
  z-index: 1000 !important;
  animation: none !important;
  transform: none !important;
}

.faq-item.expanded .faq-answer-block {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  max-height: 1000px;
}

/* Скрытые FAQ блоки (разлетаются) */
.faq-item.hidden {
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
  animation: none !important;
}

.faq-item.hidden[data-faq="1"] {
  transform: translate(-150vw, -50vh) rotate(45deg) scale(0.5) !important;
}

.faq-item.hidden[data-faq="2"] {
  transform: translate(150vw, -50vh) rotate(-45deg) scale(0.5) !important;
}

.faq-item.hidden[data-faq="3"] {
  transform: translate(-150vw, 150vh) rotate(90deg) scale(0.5) !important;
}

.faq-item.hidden[data-faq="4"] {
  transform: translateX(200vw) translateY(50vh) rotate(180deg);
}

/* Мобильные стили для скрытых FAQ блоков 5-8 */
.faq-item.hidden[data-faq="5"] {
  transform: translateX(-180vw) translateY(-40vh) rotate(-150deg);
}

.faq-item.hidden[data-faq="6"] {
  transform: translateX(180vw) translateY(-40vh) rotate(150deg);
}

.faq-item.hidden[data-faq="7"] {
  transform: translateX(-180vw) translateY(40vh) rotate(-150deg);
}

.faq-item.hidden[data-faq="8"] {
  transform: translateX(180vw) translateY(40vh) rotate(150deg);
}

/* Overlay для закрытия FAQ */
.faq-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.faq-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-item.hidden[data-faq="1"] {
    transform: translateX(-200vw) translateY(-50vh) rotate(-180deg);
  }

  .faq-item.hidden[data-faq="2"] {
    transform: translateX(200vw) translateY(-50vh) rotate(180deg);
  }

  .faq-item.hidden[data-faq="3"] {
    transform: translateX(-200vw) translateY(50vh) rotate(-180deg);
  }

  .faq-item.hidden[data-faq="4"] {
    transform: translateX(200vw) translateY(50vh) rotate(180deg);
  }

  .faq-item {
    margin: 8px auto;
    width: 280px;
  }

  .faq-item.expanded {
    width: 95%;
    height: auto;
  }

  .faq-question-text {
    font-size: 0.9rem;
  }

  .faq-toggle-btn {
    width: 30px;
    height: 30px;
  }

  .toggle-icon {
    width: 14px;
    height: 14px;
  }

  /* ИСПРАВЛЕНИЕ ПЛЮСИКОВ И КРЕСТИКОВ - ИСПОЛЬЗУЕМ ПРАВИЛЬНОЕ ЦЕНТРИРОВАНИЕ */
  .line-1 {
    top: 50%;               /* Центрирование по вертикали */
    left: 0;
    width: 14px;
    height: 2px;
    transform: translateY(-50%);  /* Точное центрирование */
  }

  .line-2 {
    top: 0;
    left: 50%;              /* Центрирование по горизонтали */
    width: 2px;
    height: 14px;
    transform: translateX(-50%);  /* Точное центрирование */
  }
}

/* КОСМИЧЕСКИЙ БУРГЕР-МЕНЮ - УНИВЕРСАЛЬНАЯ ВЕРСИЯ БЕЗ МЕДИА-ЗАПРОСОВ */
.burger-menu {
  /* Базовые стили */
  position: fixed !important;
  width: 50px;
  height: 50px;
  background: transparent !important; /* УБРАЛ КРАСНЫЙ ФОН */
  border: none !important; /* УБРАЛ КРАСНУЮ ГРАНИЦУ */
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50000 !important; /* МАКСИМАЛЬНЫЙ z-index - ВЫШЕ HEADER */
  outline: none !important;
  
  /* АДАПТИВНОЕ ПОЗИЦИОНИРОВАНИЕ БЕЗ МЕДИА-ЗАПРОСОВ */
  /* Desktop: top-right */
  top: 2rem;
  right: 2rem;
  bottom: auto;
  left: auto;
  
  /* Принудительная видимость */
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  
  /* Принудительный размер */
  min-width: 50px !important;
  min-height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
}

/* Мобильное позиционирование через CSS-переменные и calc() */
@media (max-width: 768px) {
  .burger-menu {
    /* МОБИЛЬНОЕ ПОЗИЦИОНИРОВАНИЕ */
    top: auto !important;
    right: 2rem !important;
    bottom: 7rem !important;
    left: auto !important;
    
    /* Увеличенный размер на мобильных */
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
  }
}

.burger-menu:focus {
  outline: none !important;
  box-shadow: none !important;
}

.burger-icon {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.burger-line {
  width: 24px;
  height: 2px;
  /* ГОЛУБЫЕ ПОЛОСКИ С ИНТЕРЕСНЫМ ЭФФЕКТОМ */
  background: linear-gradient(45deg, 
    rgba(59, 130, 246, 0.8) 0%, 
    rgba(147, 197, 253, 1) 25%,
    rgba(59, 130, 246, 1) 50%,
    rgba(147, 197, 253, 1) 75%,
    rgba(59, 130, 246, 0.8) 100%) !important;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* Добавляем свечение */
  box-shadow: 
    0 0 8px rgba(59, 130, 246, 0.6),
    0 0 16px rgba(59, 130, 246, 0.3);
  /* Анимация фона */
  background-size: 200% 100%;
  animation: burger-line-flow 2s ease-in-out infinite;
}

/* Мобильные линии */
@media (max-width: 768px) {
  .burger-line {
    width: 26px !important;
    height: 2.5px !important;
    background: rgba(255, 255, 255, 0.95) !important;
  }
}

.cosmic-rings {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  pointer-events: none;
}

.cosmic-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0.6;
}

.ring-1 {
  top: -11px;
  left: -11px;
  right: -11px;
  bottom: -11px;
  border-color: rgba(59, 130, 246, 0.4);
  /* ОЧЕНЬ ЗАМЕТНЫЙ ГОЛУБОВАТЫЙ ФОН */
  background: radial-gradient(circle, 
    rgba(59, 130, 246, 0.35) 0%, 
    rgba(59, 130, 246, 0.20) 50%, 
    rgba(59, 130, 246, 0.15) 0%, 
    rgba(59, 130, 246, 0.08) 50%, 
    transparent 100%);
  animation: cosmic-pulse-1 2.5s ease-in-out infinite, cosmic-rotate-slow 8s linear infinite;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.ring-2 {
  top: -14px;
  left: -14px;
  right: -14px;
  bottom: -14px;
  border-color: rgba(16, 185, 129, 0.3);
  /* БОЛЕЕ ЗАМЕТНЫЙ ГОЛУБОВАТЫЙ ФОН С ЗЕЛЕНОВАТЫМ ОТТЕНКОМ */
  background: radial-gradient(circle, 
    rgba(59, 130, 246, 0.12) 0%, 
    rgba(16, 185, 129, 0.08) 40%, 
    transparent 100%);
  animation: cosmic-pulse-2 3s ease-in-out infinite 0.5s, cosmic-rotate-medium 6s linear infinite reverse;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.2);
}

.ring-3 {
  display: none;
}

/* ======= HOVER ЭФФЕКТЫ ======= */
.burger-menu:hover {
  transform: scale(1.1);
  /* УБИРАЕМ ПРЯМОУГОЛЬНЫЙ ФОН */
  background: transparent !important;
  box-shadow: none !important;
}

.burger-menu:hover .burger-line {
  background: linear-gradient(90deg, 
    rgba(59, 130, 246, 0.9) 0%, 
    rgba(147, 197, 253, 1) 50%, 
    rgba(59, 130, 246, 0.9) 100%) !important;
  box-shadow: 
    0 0 12px rgba(59, 130, 246, 0.8),
    0 0 20px rgba(147, 197, 253, 0.4);
  width: 28px;
}

/* Мобильный hover */
@media (max-width: 768px) {
  .burger-menu:hover .burger-line {
    width: 30px !important;
  }
}

.burger-menu:hover .ring-1 {
  border-color: rgba(59, 130, 246, 0.7);
  /* МАКСИМАЛЬНО ЗАМЕТНЫЙ ГОЛУБОВАТЫЙ ФОН ПРИ ХОВЕРЕ */
  background: radial-gradient(circle, 
    rgba(59, 130, 246, 0.50) 0%, 
    rgba(59, 130, 246, 0.30) 50%, 
    rgba(59, 130, 246, 0.12) 100%);
  animation: cosmic-pulse-hover-1 1s ease-in-out infinite, cosmic-rotate-hover 2s linear infinite;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

.burger-menu:hover .ring-2 {
  border-color: rgba(16, 185, 129, 0.6);
  /* МАКСИМАЛЬНО ЗАМЕТНЫЙ ГОЛУБОВАТЫЙ ФОН С ЗЕЛЕНОВАТЫМ ОТТЕНКОМ ПРИ ХОВЕРЕ */
  background: radial-gradient(circle, 
    rgba(59, 130, 246, 0.45) 0%, 
    rgba(16, 185, 129, 0.30) 40%, 
    rgba(59, 130, 246, 0.10) 100%);
  animation: cosmic-pulse-hover-2 1.2s ease-in-out infinite 0.2s, cosmic-rotate-hover 2.5s linear infinite reverse;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.5);
}

.burger-menu:hover .ring-3 {
  border-color: rgba(249, 115, 22, 0.5);
  /* МАКСИМАЛЬНО ЗАМЕТНЫЙ ГОЛУБОВАТЫЙ ФОН ПРИ ХОВЕРЕ */
  background: radial-gradient(circle, 
    rgba(59, 130, 246, 0.40) 0%, 
    rgba(59, 130, 246, 0.25) 50%, 
    rgba(59, 130, 246, 0.08) 100%);
  animation: cosmic-pulse-hover-3 1.4s ease-in-out infinite 0.4s, cosmic-rotate-hover 3s linear infinite;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

/* ========================================= */
/* 🌌 ПОЛНОЦЕННОЕ КОСМИЧЕСКОЕ МЕНЮ */
/* ========================================= */

.cosmic-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(0px);
}

.cosmic-nav.active {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(20px);
}

.cosmic-nav-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(22, 33, 62, 0.95) 0%,
    rgba(59, 130, 246, 0.15) 30%,
    rgba(26, 26, 46, 0.99) 100%
  );
  /* анимация смены цветов убрана */
}

/* КОМПАКТНЫЙ КОНТЕЙНЕР С ОТСТУПАМИ 30PX */
.cosmic-nav-compact {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  bottom: 30px;
  background: rgba(26, 26, 46, 0.9);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  
  /* КОСМИЧЕСКАЯ ОБВОДКА И GLOW */
  box-shadow: 
    0 0 30px rgba(59, 130, 246, 0.4),
    inset 0 0 30px rgba(59, 130, 246, 0.1),
    0 0 60px rgba(59, 130, 246, 0.2);
  
  /* FLEX КОНТЕЙНЕР - ГОРИЗОНТАЛЬНЫЙ НА DESKTOP */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  gap: 40px;
  
  opacity: 0;
  transform: scale(0.8) translateY(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.cosmic-nav.active .cosmic-nav-compact {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ПЕРВЫЙ БЛОК: LOGO SECTION */
.cosmic-nav-logo-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.logo-animation-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-animation-container::before {
  
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  animation: cosmic-rotate-slow 20s linear infinite;
}

.logo-animation-container::after {
  
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 50%;
  animation: cosmic-rotate-medium 15s linear infinite reverse;
}

/* КРАСИВЫЙ РАЗДЕЛИТЕЛЬ */
.cosmic-nav-divider {
  position: relative;
  width: 2px;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(59, 130, 246, 0.6) 20%,
    rgba(59, 130, 246, 0.8) 50%,
    rgba(59, 130, 246, 0.6) 80%,
    transparent 100%
  );
  border-radius: 2px;
}

.divider-glow {
  position: absolute;
  width: 20px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(59, 130, 246, 0.2) 20%,
    rgba(59, 130, 246, 0.3) 50%,
    rgba(59, 130, 246, 0.2) 80%,
    transparent 100%
  );
  border-radius: 10px;
  filter: blur(8px);
}

/* ВТОРОЙ БЛОК: LINKS SECTION */
.cosmic-nav-links-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ======= НАВИГАЦИОННЫЕ ССЫЛКИ ======= */
.cosmic-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  width: 100%;
  max-width: 400px;
}

.cosmic-nav-item {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 15px;
}

.cosmic-nav.active .cosmic-nav-item {
  opacity: 1;
  transform: translateX(0);
}

/* Последовательная анимация элементов */
.cosmic-nav.active .cosmic-nav-item[data-index="0"] { transition-delay: 0.4s; }
.cosmic-nav.active .cosmic-nav-item[data-index="1"] { transition-delay: 0.5s; }
.cosmic-nav.active .cosmic-nav-item[data-index="2"] { transition-delay: 0.6s; }
.cosmic-nav.active .cosmic-nav-item[data-index="3"] { transition-delay: 0.7s; }

.cosmic-nav-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.cosmic-nav-link::before {
  
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.1) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.cosmic-nav-link:hover::before {
  left: 100%;
}

.cosmic-nav-link:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateX(10px);
  box-shadow: 
    0 5px 20px rgba(59, 130, 246, 0.3),
    0 0 30px rgba(59, 130, 246, 0.2);
}

.nav-icon {
  width: 24px;
  height: 24px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(249, 115, 22, 0.8);
  transition: all 0.3s ease;
}

.cosmic-nav-link:hover .nav-icon {
  color: rgba(249, 115, 22, 1);
  transform: scale(1.2);
}

.nav-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
  flex: 1;
}

.nav-glow {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cosmic-nav-link:hover .nav-glow {
  opacity: 1;
  animation: cosmic-pulse-nav 1.5s ease-in-out infinite;
}

@keyframes cosmic-pulse-nav {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateY(-50%) scale(1.5); opacity: 0.4; }
}

/* КОНТАКТЫ В МЕНЮ */
.cosmic-nav-contacts {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.8s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.cosmic-nav.active .cosmic-nav-contacts {
  opacity: 1;
  transform: translateY(0);
}

.cosmic-nav-contact-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cosmic-nav-contact-item:hover {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.2);
}

.cosmic-nav-contact-item i {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  color: rgba(249, 115, 22, 0.7);
}

.cosmic-nav-contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.cosmic-nav-contact-item:hover a {
  color: rgba(255, 255, 255, 1);
}

/* МОБИЛЬНАЯ ВЕРСИЯ - ВЕРТИКАЛЬНОЕ РАСПОЛОЖЕНИЕ */
@media (max-width: 768px) {
  .cosmic-nav-compact {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    flex-direction: column;
    padding: 30px 20px;
    gap: 30px;
    overflow-y: auto;
  }
  
  .cosmic-nav-logo-section {
    flex: none;
    min-height: 200px;
  }
  
  .logo-animation-container lottie-player {
    width: 150px !important;
    height: 150px !important;
  }
  
  .logo-animation-container::before {
    width: 200px;
    height: 200px;
  }
  
  .logo-animation-container::after {
    width: 230px;
    height: 230px;
  }
  
  /* ГОРИЗОНТАЛЬНЫЙ РАЗДЕЛИТЕЛЬ НА МОБИЛЬНЫХ */
  .cosmic-nav-divider {
    width: 80%;
    height: 2px;
  }
  
  .divider-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(
      to right,
      transparent 0%,
      rgba(59, 130, 246, 0.6) 20%,
      rgba(59, 130, 246, 0.8) 50%,
      rgba(59, 130, 246, 0.6) 80%,
      transparent 100%
    );
  }
  
  .divider-glow {
    width: 100%;
    height: 20px;
    background: linear-gradient(
      to right,
      transparent 0%,
      rgba(59, 130, 246, 0.2) 20%,
      rgba(59, 130, 246, 0.3) 50%,
      rgba(59, 130, 246, 0.2) 80%,
      transparent 100%
    );
    border-radius: 10px;
  }
  
  .cosmic-nav-links-section {
    flex: none;
  }
  
  .cosmic-nav-link {
    padding: 12px 16px;
  }
  
  .nav-text {
    font-size: 1rem;
  }
}

/* ========================================= */
/* 🌌 HEADER СТИЛИ */
/* ========================================= */

/* Основной header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(180deg, 
    rgba(75, 85, 99, 0.9) 0%,
    rgba(75, 85, 99, 0.7) 30%,
    rgba(75, 85, 99, 0.3) 70%,
    transparent 100%);
  backdrop-filter: blur(10px);
  z-index: 10000 !important; /* ПОВЫШАЮ z-index ДЛЯ РЕШЕНИЯ ПРОБЛЕМЫ С БУРГЕР КНОПКОЙ */
  transition: all 0.3s ease;
}

/* Контейнер header */
.header-container {
  position: relative;
  max-width: 1140px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

/* Логотип слева */
.header-logo {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 50px;
  z-index: 5;
}

.header-logo .logo-image {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Контейнер с телефоном и почтой по центру */
.header-contacts {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  padding: 3px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  z-index: 3;
  /* УБИРАЕМ ВСЕ ФОНЫ */
}

/* Телефон */
.header-phone {
  font-size: 2rem; /* Изменяю с 3rem на 2.3rem */
  font-weight: 700;
  color: white;
  line-height: 1;
  /* УБИРАЕМ ВСЕ ФОНЫ И СВЕЧЕНИЯ */
  -webkit-tap-highlight-color: transparent; /* Убираем синюю подсветку на мобильных */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  box-shadow: none !important; /* Принудительно убираем любые тени */
}

.header-phone a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  /* УБИРАЕМ ВСЕ ФОНЫ И СВЕЧЕНИЯ */
  -webkit-tap-highlight-color: transparent; /* Убираем синюю подсветку на мобильных */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  box-shadow: none !important; /* Принудительно убираем любые тени */
  outline: none; /* Убираем outline при фокусе */
}

.header-phone:hover a {
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Пульсация телефона - УБИРАЕМ ФОНЫ */
@keyframes pulse-glow {
  0%, 100% {
    /* УБИРАЕМ box-shadow и background */
    transform: scale(1);
  }
  50% {
    /* УБИРАЕМ box-shadow и background */
    transform: scale(1.02);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
  /* УБИРАЕМ border-radius, padding и любые фоны */
}

/* Почта */
.header-email {
  font-size: 1.3rem;
  color: var(--accent-blue);
  line-height: 1;
  font-weight: 700; /* Жирный шрифт для почты */
}

.header-email a {
  color: inherit;
  text-decoration: underline;
  transition: all 0.3s ease;
}

.header-email:hover a {
  color: rgba(59, 130, 246, 0.8);
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* ========================================= */
/* 🌌 МОБИЛЬНАЯ ВЕРСИЯ HEADER */
/* ========================================= */

@media (max-width: 768px) {
  .header-logo {
    height: auto; /* Убираем фиксированную высоту */
    width: 20vw; /* Оптимальный размер для мобильных устройств */
    max-width: 120px; /* Максимальная ширина для очень больших экранов */
  }
  
  .header-logo .logo-image {
    width: 100%;
    height: auto; /* Сохраняем пропорции */
  }
  
  .header-contacts {
    position: absolute;
    left: auto;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-end;
    text-align: right;
  }
  
  .header-phone {
    font-size: 1.8rem; /* Пропорционально уменьшено с 2.2rem */
  }
  
  .header-email {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .header-logo {
    width: 20vw; /* Согласованно с 768px брейкпоинтом */
    max-width: 100px;
  }
  
  .header-phone {
    font-size: 1.5rem; /* Пропорционально уменьшено с 1.8rem */
  }
  
  .header-email {
    font-size: 1rem;
  }
}



/* ========================================= */
/* 🌌 ПРОДВИНУТЫЙ FOOTER С КОСМИЧЕСКИМИ ЭФФЕКТАМИ */
/* ========================================= */

.footer-section {
  /* БЕЛЫЙ ФОН ВВЕРХУ для бесшовной стыковки с переходной секцией */
  background: linear-gradient(180deg, 
    #ffffff 0%,
    #ffffff 25%,
    #f8fafc 35%,
    #f1f5f9 45%,
    #e2e8f0 60%,
    #cbd5e1 75%,
    #94a3b8 90%,
    #64748b 100%);
  color: var(--primary-900);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
  margin-top: -5px;
}

/* Множественные космические слои */
.footer-section::before {
  
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(249, 115, 22, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 45% 85%, rgba(147, 197, 253, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 75% 65%, rgba(168, 85, 247, 0.04) 0%, transparent 35%);
  pointer-events: none;
  animation: cosmic-flow 25s ease-in-out infinite;
}

.footer-section::after {
  
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 75%, rgba(34, 197, 94, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 65% 25%, rgba(239, 68, 68, 0.04) 0%, transparent 45%);
  pointer-events: none;
  animation: cosmic-flow-reverse 30s ease-in-out infinite;
}

@keyframes cosmic-flow {
  0%, 100% { 
    background: 
      radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
      radial-gradient(circle at 85% 15%, rgba(249, 115, 22, 0.06) 0%, transparent 45%),
      radial-gradient(circle at 45% 85%, rgba(147, 197, 253, 0.07) 0%, transparent 50%);
  }
  33% { 
    background: 
      radial-gradient(circle at 35% 60%, rgba(59, 130, 246, 0.10) 0%, transparent 50%),
      radial-gradient(circle at 70% 40%, rgba(249, 115, 22, 0.08) 0%, transparent 55%),
      radial-gradient(circle at 20% 20%, rgba(147, 197, 253, 0.09) 0%, transparent 45%);
  }
  66% { 
    background: 
      radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 35%),
      radial-gradient(circle at 25% 70%, rgba(249, 115, 22, 0.07) 0%, transparent 50%),
      radial-gradient(circle at 75% 30%, rgba(147, 197, 253, 0.08) 0%, transparent 40%);
  }
}

@keyframes cosmic-flow-reverse {
  0%, 100% { 
    background: 
      radial-gradient(circle at 25% 75%, rgba(34, 197, 94, 0.03) 0%, transparent 40%),
      radial-gradient(circle at 65% 25%, rgba(239, 68, 68, 0.04) 0%, transparent 45%);
  }
  50% { 
    background: 
      radial-gradient(circle at 75% 25%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 35% 75%, rgba(239, 68, 68, 0.06) 0%, transparent 55%);
  }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

/* ======= ЛОГОТИП С КОСМИЧЕСКИМИ ЭФФЕКТАМИ ======= */
.footer-logo {
  position: relative;
  margin-bottom: 2rem;
}

.footer-logo::before {
  
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: 
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.footer-logo:hover::before {
  opacity: 1;
}

.footer-logo-image {
  height: 60px;
  width: auto;
  margin-bottom: 0.8rem;
  filter: brightness(0.8);
  transition: all 0.3s ease;
  position: relative;
  z-index: 3;
}

.footer-logo-image:hover {
  filter: brightness(1);
  transform: scale(1.05);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, 
    var(--accent-blue) 0%, 
    var(--accent-orange) 30%,
    var(--primary-800) 60%, 
    var(--accent-blue) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease-in-out infinite;
  position: relative;
  z-index: 3;
}

.footer-logo-text::after {
  
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shine-sweep 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine-sweep {
  0%, 100% { background-position: -100% 0; }
  50% { background-position: 100% 0; }
}

.footer-logo-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--accent-blue) 0%, 
    var(--accent-orange) 50%, 
    var(--accent-blue) 100%);
  background-size: 200% 100%;
  margin-bottom: 1.5rem;
  border-radius: 3px;
  animation: line-flow 3s ease-in-out infinite;
  position: relative;
}

.footer-logo-line::after {
  
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, 
    rgba(59, 130, 246, 0.3), 
    rgba(249, 115, 22, 0.3), 
    rgba(59, 130, 246, 0.3));
  border-radius: 5px;
  opacity: 0;
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes line-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.footer-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--primary-800);
  margin-bottom: 2.5rem;
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.4) 0%, 
    rgba(248,250,252,0.6) 50%, 
    rgba(241,245,249,0.4) 100%);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.footer-description:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

/* ======= ПРОДВИНУТЫЕ СОЦИАЛЬНЫЕ СЕТИ ======= */
.footer-social {
  margin-top: 2rem;
}

.social-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-900);
  margin-bottom: 1.5rem;
  position: relative;
}

.social-title::after {
  
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  border-radius: 2px;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.6) 0%, 
    rgba(248,250,252,0.8) 50%, 
    rgba(241,245,249,0.6) 100%);
  border-radius: 8px;
  text-decoration: none;
  color: var(--primary-800);
  transition: all 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.15);
  position: relative;
  overflow: hidden;
  font-size: 0.8rem;
}

.social-link::before {
  
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(59, 130, 246, 0.1), 
    transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, 
    var(--accent-blue) 0%, 
    var(--accent-orange) 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.social-link img {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.social-link:hover img {
  filter: brightness(0) invert(1);
  transform: scale(1.1);
}

.social-nickname {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ======= ЗАГОЛОВКИ КОЛОНОК С ЭФФЕКТАМИ ======= */
.footer-column-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-900);
  margin-bottom: 2rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-bottom: 0.5rem;
}

.footer-column-title::after {
  
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--accent-blue) 0%, 
    var(--accent-orange) 50%, 
    var(--accent-blue) 100%);
  background-size: 200% 100%;
  border-radius: 3px;
  animation: title-glow 2s ease-in-out infinite;
}

@keyframes title-glow {
  0%, 100% { 
    background-position: 0% 50%;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
  }
  50% { 
    background-position: 100% 50%;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
  }
}

/* ======= ИНТЕРАКТИВНЫЕ ССЫЛКИ ======= */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.footer-links a {
  color: var(--primary-800);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  display: block;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.3) 0%, 
    rgba(248,250,252,0.5) 100%);
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.footer-links a::before {
  
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    var(--accent-blue), 
    var(--accent-orange));
  transition: left 0.3s ease;
  z-index: -1;
}

.footer-links a:hover::before {
  left: 0;
}

.footer-links a:hover {
  color: white;
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

/* ======= КОНТАКТЫ С ИКОНКАМИ ======= */
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.5) 0%, 
    rgba(248,250,252,0.7) 50%, 
    rgba(241,245,249,0.5) 100%);
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, 
    var(--accent-blue), 
    var(--accent-orange));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-item:hover::before {
  opacity: 1;
}

.contact-item:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.8) 0%, 
    rgba(248,250,252,0.9) 100%);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

.contact-icon {
  color: var(--accent-blue);
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.1), 
    rgba(249, 115, 22, 0.1));
  padding: 0.5rem;
  border-radius: 8px;
  min-width: 24px;
  min-height: 24px;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  background: linear-gradient(135deg, 
    var(--accent-blue), 
    var(--accent-orange));
  color: white;
  transform: scale(1.1);
}

.contact-details strong {
  color: var(--primary-900);
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-details a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-details a:hover {
  color: var(--accent-orange);
  text-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

.contact-details span {
  color: var(--primary-800);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ======= ПРОДВИНУТЫЙ FOOTER BOTTOM ======= */
.footer-bottom {
  border-top: 2px solid rgba(59, 130, 246, 0.2);
  padding-top: 2.5rem;
  position: relative;
}

.footer-bottom::before {
  
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--accent-blue) 25%, 
    var(--accent-orange) 50%, 
    var(--accent-blue) 75%, 
    transparent 100%);
  animation: border-flow 3s linear infinite;
}

@keyframes border-flow {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-copyright {
  flex: 1;
}

.footer-copyright p {
  font-size: 0.9rem;
  color: var(--primary-800);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.footer-subtitle {
  font-size: 0.85rem;
  color: var(--primary-700);
  font-style: italic;
  opacity: 0.8;
}

.footer-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, 
    var(--accent-blue) 0%, 
    var(--accent-orange) 100%);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.footer-cta-button::before {
  
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,0.2), 
    transparent);
  transition: left 0.6s ease;
}

.footer-cta-button:hover::before {
  left: 100%;
}

.footer-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, 
    var(--accent-orange) 0%, 
    var(--accent-blue) 100%);
}

/* ======= ПЛАНШЕТНАЯ АДАПТИВНОСТЬ (768px - 1199px) ======= */
@media (min-width: 768px) and (max-width: 1199px) {
  .footer-section {
    padding: 3.5rem 0 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }
  
  .footer-logo-text {
    font-size: 2rem;
    margin-bottom: 0.6rem;
  }
  
  .footer-description {
    font-size: 0.9rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .social-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  
  .social-link {
    padding: 0.6rem;
    font-size: 0.75rem;
  }
  
  .social-link img {
    width: 18px;
    height: 18px;
  }
  
  .social-nickname {
    font-size: 0.7rem;
  }
  
  .footer-column-title {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
  }
  
  .footer-links a {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .contact-item {
    padding: 0.8rem;
    gap: 0.8rem;
  }
  
  .contact-details strong {
    font-size: 0.85rem;
  }
  
  .contact-details span {
    font-size: 0.8rem;
  }
  
  .footer-cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ======= МОБИЛЬНАЯ ВЕРСИЯ (до 767px) ======= */
@media (max-width: 768px) {
  .footer-section {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .social-links {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .social-link {
    justify-content: center;
    padding: 0.8rem;
    font-size: 0.85rem;
  }
  
  .social-link img {
    width: 22px;
    height: 22px;
  }
  
  .social-nickname {
    font-size: 0.8rem;
  }
  
  .footer-logo-image {
    height: 50px;
  }
  
  .footer-logo-text {
    font-size: 2.2rem;
  }
  
  .footer-description {
    text-align: left;
    font-size: 0.9rem;
    padding: 1rem;
  }
  
  .contact-item {
    text-align: left;
    padding: 1rem;
  }
  
  .footer-column-title {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
  }
  
  .footer-links a {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
  
  .footer-cta-button {
    padding: 1rem 1.8rem;
    font-size: 1rem;
  }
}

/* ======= АКТИВНОЕ СОСТОЯНИЕ ======= */
.burger-menu.active .burger-line-1 {
  transform: rotate(45deg) translate(5px, 5px);
  background: rgba(249, 115, 22, 1) !important;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.6);
}

.burger-menu.active .burger-line-2 {
  opacity: 0;
  transform: scale(0);
}

.burger-menu.active .burger-line-3 {
  transform: rotate(-45deg) translate(7px, -6px);
  background: rgba(249, 115, 22, 1) !important;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.6);
}

.burger-menu.active .cosmic-ring {
  animation: cosmic-active-spin 0.8s linear infinite;
  border-color: rgba(249, 115, 22, 0.8) !important;
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.6) !important;
}

/* ======= KEYFRAME АНИМАЦИИ ======= */
@keyframes cosmic-pulse-1 {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
  }
  50% { 
    transform: scale(1.1);
    opacity: 0.9;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
  }
}

@keyframes cosmic-pulse-2 {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.5;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  }
  50% { 
    transform: scale(1.15);
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
  }
}

@keyframes cosmic-pulse-3 {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.4;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.2);
  }
  50% { 
    transform: scale(1.2);
    opacity: 0.7;
    box-shadow: 0 0 35px rgba(249, 115, 22, 0.4);
  }
}

@keyframes cosmic-pulse-hover-1 {
  0%, 100% { 
    transform: scale(1.1);
    opacity: 0.8;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
  }
  50% { 
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.8);
  }
}

@keyframes cosmic-pulse-hover-2 {
  0%, 100% { 
    transform: scale(1.15);
    opacity: 0.7;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
  }
  50% { 
    transform: scale(1.35);
    opacity: 0.9;
    box-shadow: 0 0 45px rgba(16, 185, 129, 0.7);
  }
}

@keyframes cosmic-pulse-hover-3 {
  0%, 100% { 
    transform: scale(1.2);
    opacity: 0.6;
    box-shadow: 0 0 35px rgba(249, 115, 22, 0.4);
  }
  50% { 
    transform: scale(1.4);
    opacity: 0.8;
    box-shadow: 0 0 50px rgba(249, 115, 22, 0.6);
  }
}

@keyframes cosmic-rotate-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes cosmic-rotate-medium {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes cosmic-rotate-fast {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes cosmic-rotate-hover {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes cosmic-active-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Мобильные линии */
@media (max-width: 768px) {
  .burger-line {
    width: 26px !important;
    height: 2.5px !important;
    /* Сохраняем тот же голубой эффект на мобильных */
    background: linear-gradient(45deg, 
      rgba(59, 130, 246, 0.8) 0%, 
      rgba(147, 197, 253, 1) 25%,
      rgba(59, 130, 246, 1) 50%,
      rgba(147, 197, 253, 1) 75%,
      rgba(59, 130, 246, 0.8) 100%) !important;
    box-shadow: 
      0 0 10px rgba(59, 130, 246, 0.7),
      0 0 20px rgba(59, 130, 246, 0.4);
  }
}

@keyframes burger-line-flow {
  0%, 100% { 
    background-position: 0% 50%; 
    box-shadow: 
      0 0 8px rgba(59, 130, 246, 0.6),
      0 0 16px rgba(59, 130, 246, 0.3);
  }
  50% { 
    background-position: 100% 50%; 
    box-shadow: 
      0 0 12px rgba(147, 197, 253, 0.8),
      0 0 24px rgba(147, 197, 253, 0.4);
  }
}

/* ======= HOVER ЭФФЕКТЫ (БЕЗ КВАДРАТНОГО ФОНА) ======= */
.burger-menu:hover {
  transform: scale(1.1);
  /* УБИРАЕМ ВСЕ ПРЯМОУГОЛЬНЫЕ ФОНЫ - только космическое свечение */
  background: transparent !important;
  box-shadow: none !important;
}

.burger-menu:hover .burger-line {
  /* Усиленный голубой эффект при ховере */
  background: linear-gradient(45deg, 
    rgba(59, 130, 246, 1) 0%, 
    rgba(147, 197, 253, 1) 25%,
    rgba(99, 179, 255, 1) 50%,
    rgba(147, 197, 253, 1) 75%,
    rgba(59, 130, 246, 1) 100%) !important;
  box-shadow: 
    0 0 16px rgba(59, 130, 246, 0.9),
    0 0 32px rgba(59, 130, 246, 0.6),
    0 0 48px rgba(59, 130, 246, 0.3);
  width: 28px;
  animation: burger-line-flow-hover 1s ease-in-out infinite;
}

@keyframes burger-line-flow-hover {
  0%, 100% { 
    background-position: 0% 50%; 
    box-shadow: 
      0 0 16px rgba(59, 130, 246, 0.9),
      0 0 32px rgba(59, 130, 246, 0.6);
  }
  50% { 
    background-position: 100% 50%; 
    box-shadow: 
      0 0 20px rgba(147, 197, 253, 1),
      0 0 40px rgba(147, 197, 253, 0.8);
  }
}

/* HOVER SCALE ЭФФЕКТ ДЛЯ КНОПОК */
.hover-scale:hover {
  /* Эффект уже включен в hover стили кнопок выше */
}

@keyframes cosmic-pulse-nav {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

/* Социальные кнопки в меню */
.cosmic-nav-social {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 20px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease 0.5s;
}

.cosmic-nav.active .cosmic-nav-social {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

.cosmic-nav-social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.cosmic-nav-social-link::before {
  
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  transition: left 0.5s ease;
}

.cosmic-nav-social-link:hover::before {
  left: 100%;
}

.cosmic-nav-social-link:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.6);
  transform: scale(1.1);
  box-shadow: 
    0 0 20px rgba(59, 130, 246, 0.3),
    0 0 40px rgba(59, 130, 246, 0.1);
}

.nav-social-icon {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-social-icon img {
  width: 100%;
  height: 100%;
  /* Оранжевый цвет для SVG иконок */
  fill: #f97316;
  color: #f97316;
  transition: all 0.3s ease;
}

.cosmic-nav-social-link:hover .nav-social-icon img {
  fill: #ea580c;
  color: #ea580c;
  transform: scale(1.1);
}

.cosmic-nav-social-link:hover .nav-glow {
  opacity: 0.6;
  transform: scale(1.2);
}

.cosmic-nav-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

@media (max-width: 768px) {
  .cosmic-nav-compact {
    min-height: 180px;
    padding: 25px 15px;
    gap: 20px;
  }

  .cosmic-nav-logo-section {
    min-height: auto;
  }

  .logo-animation-container lottie-player {
    width: 105px !important;
    height: 105px !important;
  }

  .logo-animation-container::before {
    width: 140px;
    height: 140px;
  }

  .logo-animation-container::after {
    width: 161px;
    height: 161px;
  }

  .cosmic-nav-divider {
    margin: 10px 0;
  }

  .divider-line {
    height: 1px;
    background: linear-gradient(
      90deg, 
      transparent 0%, 
      rgba(59, 130, 246, 0.3) 25%, 
      rgba(249, 115, 22, 0.4) 75%, 
      transparent 100%
    );
  }

  .divider-glow {
    height: 8px;
    background: radial-gradient(
      ellipse 50% 100% at 50% 0%, 
      rgba(59, 130, 246, 0.1) 0%, 
      rgba(249, 115, 22, 0.1) 50%,
      transparent 100%
    );
  }

  .cosmic-nav-links-section {
    gap: 15px;
  }

  .cosmic-nav-links {
    gap: 10px;
  }

  .cosmic-nav-link {
    padding: 8px;
  }

  .nav-text {
    font-size: 0.85rem;
    font-weight: 500;
  }

  /* Мобильные стили для социальных кнопок */
  .cosmic-nav-social {
    gap: 6px;
    padding: 15px 0;
  }

  .cosmic-nav-social-link {
    width: 45px;
    height: 45px;
  }

  .nav-social-icon {
    width: 22px;
    height: 22px;
  }
}

/* Прямые стили для SVG иконок соцсетей */
.cosmic-nav-social-link svg {
  fill: #f97316 !important;
  color: #f97316 !important;
}

.cosmic-nav-social-link:hover svg {
  fill: #ea580c !important;
  color: #ea580c !important;
}

.cosmic-nav-social-link svg path {
  fill: #f97316 !important;
  color: #f97316 !important;
}

.cosmic-nav-social-link:hover svg path {
  fill: #ea580c !important;
  color: #ea580c !important;
}

@media (max-width: 768px) {
  .cosmic-nav-compact {
    min-height: 180px;
    padding: 25px 15px;
    gap: 20px;
  }

  .cosmic-nav-logo-section {
    min-height: auto;
  }

  .logo-animation-container lottie-player {
    width: 105px !important;
    height: 105px !important;
  }

  .logo-animation-container::before {
    width: 140px;
    height: 140px;
  }

  .logo-animation-container::after {
    width: 161px;
    height: 161px;
  }

  .cosmic-nav-divider {
    margin: 10px 0;
  }

  .divider-line {
    height: 1px;
    background: linear-gradient(
      90deg, 
      transparent 0%, 
      rgba(59, 130, 246, 0.3) 25%, 
      rgba(249, 115, 22, 0.4) 75%, 
      transparent 100%
    );
  }

  .divider-glow {
    height: 8px;
    background: radial-gradient(
      ellipse 50% 100% at 50% 0%, 
      rgba(59, 130, 246, 0.1) 0%, 
      rgba(249, 115, 22, 0.1) 50%,
      transparent 100%
    );
  }

  .cosmic-nav-links-section {
    gap: 15px;
  }

  .cosmic-nav-links {
    gap: 10px;
  }

  .cosmic-nav-link {
    padding: 8px;
  }

  .nav-text {
    font-size: 0.85rem;
    font-weight: 500;
  }

  /* Мобильные стили для социальных кнопок */
  .cosmic-nav-social {
    gap: 6px;
    padding: 15px 0;
  }

  .cosmic-nav-social-link {
    width: 45px;
    height: 45px;
  }

  .nav-social-icon {
    width: 22px;
    height: 22px;
  }
}/* === ОРАНЖЕВЫЕ SVG ИКОНКИ СОЦСЕТЕЙ === */

/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ОРАНЖЕВЫХ SVG ИКОНОК */



/* Убрано агрессивное исправление - создавало визуальные артефакты */

/* 🎯 ИСПРАВЛЕНИЕ ПРОБЛЕМЫ С МАСШТАБИРОВАНИЕМ SPLINE */
@media screen {
  /* Убираем проблемы с масштабированием DPI */
  .hero-spline-section,
  .hero-spline-container,
  .hero-spline-3d {
    transform: translateZ(0); /* Включаем hardware acceleration */
    will-change: transform; /* Оптимизация рендеринга */
  }
  
  /* Исправляем viewport units на разных масштабах */
  .hero-spline-section {
    min-height: 700px;
    padding: 2rem 0;
  }
  
  /* Принудительные правила для Spline canvas */
  .clean-spline-viewer canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    /* Исправляем проблемы с DPI scaling */
    image-rendering: auto !important;
    image-rendering: crisp-edges !important;
    image-rendering: -webkit-optimize-contrast !important;
  }
}

/* Правила для высокого DPI (Retina и подобные) */
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
  .clean-spline-viewer {
    transform: scale(1) !important;
    zoom: 1 !important;
  }
}

/* 🚀 НОВАЯ ПРАВИЛЬНАЯ АРХИТЕКТУРА HERO-SPLINE СЕКЦИИ */

/* Основная секция - 100vw ширина, overflow clip для sticky */
.hero-spline-section-new {
  width: 100vw;
  position: relative;
  overflow-x: clip; /* Clip вместо hidden для корректной работы sticky */
  overflow-y: visible;
  height: auto; /* Высота подстраивается под контент */
}

/* STICKY SPLINE BACKGROUND - фиксированный фон */
.spline-sticky-background {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* Выше фона, но ниже контента */
  overflow: hidden;
  /* СКРУГЛЕНИЕ для обрезки логотипа Spline */
  border-bottom-right-radius: 50%;
  
  /* Аппаратное ускорение для sticky */
  transform: translateZ(0);
  will-change: transform;
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Spline viewer как фон + аппаратное ускорение */
.spline-background-viewer {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  overflow: visible !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
  
  /* Аппаратное ускорение GPU */
  transform: translateZ(0) !important;
  will-change: transform !important;
  -webkit-transform: translateZ(0) !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  -webkit-perspective: 1000 !important;
  perspective: 1000 !important;
}

/* Скрываем логотип Spline и ВСЕ подсказки принудительно */
.spline-background-viewer .built-with-spline,
.spline-background-viewer [aria-label*="Built with Spline"],
.spline-background-viewer [title*="Built with Spline"],
.spline-background-viewer div[style*="spline"],
/* Убираем подсказки интерактивности */
spline-viewer .hint,
spline-viewer .interaction-hint,
spline-viewer .orbit-hint,
spline-viewer .mouse-hint,
spline-viewer [class*="hint"],
spline-viewer [class*="interaction"],
spline-viewer [class*="tutorial"],
spline-viewer [class*="guide"],
/* Убираем стрелки и руки */
spline-viewer [class*="arrow"],
spline-viewer [class*="hand"],
spline-viewer [class*="cursor"],
spline-viewer [class*="gesture"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Принудительные правила для Spline canvas в фоне */
.spline-background-viewer canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  image-rendering: auto !important;
  image-rendering: crisp-edges !important;
  image-rendering: -webkit-optimize-contrast !important;
}

/* ТЕКСТОВЫЕ БЛОКИ */
.hero-text-block {
  height: 100vh;
  width: 100% !important;
  position: relative;
  z-index: 10; /* Выше Spline фона */
  display: flex;
  align-items: center; /* Вертикальное центрирование */
  max-width: none !important; /* Убираем ограничение ширины */
  margin: 0 !important; /* Убираем все margin */
  min-height: 100vh !important; /* Строго 100vh */
  padding: 0; /* Убираем возможные padding */
}

/* ПЕРВЫЙ БЛОК - убираем сдвиг вверх */
.hero-text-block-first {
  margin-top: 0 !important; /* Убираем сдвиг - блок должен быть видимым */
}

/* ВТОРОЙ БЛОК - идет сразу после первого */
.hero-text-block-second {
  margin-top: 0 !important; /* Убираем margin чтобы шел сразу за первым */
}

/* Контейнеры для текста */
.hero-text-container {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

/* ПЕРВЫЙ БЛОК - текст+кнопки с padding слева 20px */
.hero-text-block-first .hero-text-container {
  text-align: left !important;
  padding-left: 20px !important;
  padding-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
  position: relative; /* Добавляем для позиционирования 3D ротора */
}

/* ВТОРОЙ БЛОК - текст с padding справа 20px */
.hero-text-block-second .hero-text-container {
  text-align: right !important;
  padding-right: 20px !important;
  padding-left: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* ПРИНУДИТЕЛЬНОЕ ПОЗИЦИОНИРОВАНИЕ НА БОЛЬШИХ ЭКРАНАХ */
@media (min-width: 481px) {
  .hero-text-block-first,
  .hero-text-block-second {
    max-width: 1140px !important;
    margin-left: auto !important; /* Центрируем по горизонтали */
    margin-right: auto !important; /* Центрируем по горизонтали */
  }
  
  .hero-text-block-first {
    margin-top: 0 !important; /* Сохраняем вертикальное позиционирование */
  }
  
  .hero-text-block-second {
    margin-top: 0 !important; /* Сохраняем вертикальное позиционирование */
  }
  
  .hero-text-block-first .hero-text-container {
    text-align: left !important;
    padding-left: 20px !important;
    padding-right: 0 !important;
  }
  
  .hero-text-block-second .hero-text-container {
    text-align: right !important;
    padding-right: 20px !important;
    padding-left: 0 !important;
  }
  
  .hero-text-block-first .hero-title {
    text-align: left !important;
  }
  
  .hero-text-block-second .hero-title {
    text-align: right !important;
  }
}

  /* СТИЛИ ТЕКСТА */
  .hero-title {
    font-size: 7vw;
    font-weight: 700;
    line-height: 0.85;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat Alternates', sans-serif; /* Как в старом коде */
    color: white;
    text-align: inherit !important; /* Наследует от родителя */
  }

  /* СПЕЦИФИЧНЫЕ СТИЛИ ДЛЯ ПОЗИЦИОНИРОВАНИЯ ТЕКСТА */
  .hero-text-block-first .hero-title {
    text-align: left !important;
  }

  .hero-text-block-second .hero-title {
    text-align: right !important;
  }

.hero-subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ВЫДЕЛЕНИЕ СЛОВ - используем старые стили из animations.css */
.text-accent {
  color: #ffffff; /* Белые четкие буквы */
  font-weight: 900;
  /* Многослойная тень для glow эффекта */
  text-shadow: 
    0 0 5px rgba(59, 130, 246, 1),
    0 0 10px rgba(59, 130, 246, 0.9),
    0 0 15px rgba(59, 130, 246, 0.8),
    0 0 25px rgba(59, 130, 246, 0.7),
    0 0 35px rgba(59, 130, 246, 0.6),
    0 0 50px rgba(59, 130, 246, 0.4),
    0 0 75px rgba(59, 130, 246, 0.2);
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8));
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3);
  animation: glow-pulse 3s ease-in-out infinite alternate;
}

.text-glow-equals {
  color: #ffffff; /* Белые четкие буквы */
  font-weight: 900;
  font-size: 1.2em; /* Немного больше остальных */
  letter-spacing: 0.1em; /* Разреженные буквы для мощности */
  /* МОЩНЕЙШАЯ многослойная тень для супер glow эффекта */
  text-shadow: 
    0 0 8px rgba(59, 130, 246, 1),
    0 0 15px rgba(59, 130, 246, 1),
    0 0 25px rgba(59, 130, 246, 0.9),
    0 0 35px rgba(59, 130, 246, 0.8),
    0 0 50px rgba(59, 130, 246, 0.7),
    0 0 75px rgba(59, 130, 246, 0.6),
    0 0 100px rgba(59, 130, 246, 0.4),
    0 0 125px rgba(59, 130, 246, 0.2);
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 1));
  -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.4);
  animation: equals-glow-pulse 2s ease-in-out infinite alternate;
}

/* КНОПКИ */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Анимации для glow эффектов */
@keyframes glow-pulse {
  0% {
    text-shadow: 
      0 0 5px rgba(59, 130, 246, 1),
      0 0 10px rgba(59, 130, 246, 0.9),
      0 0 15px rgba(59, 130, 246, 0.8),
      0 0 25px rgba(59, 130, 246, 0.7),
      0 0 35px rgba(59, 130, 246, 0.6),
      0 0 50px rgba(59, 130, 246, 0.4),
      0 0 75px rgba(59, 130, 246, 0.2);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8));
  }
  100% {
    text-shadow: 
      0 0 8px rgba(59, 130, 246, 1),
      0 0 15px rgba(59, 130, 246, 1),
      0 0 20px rgba(59, 130, 246, 0.9),
      0 0 30px rgba(59, 130, 246, 0.8),
      0 0 45px rgba(59, 130, 246, 0.7),
      0 0 60px rgba(59, 130, 246, 0.5),
      0 0 90px rgba(59, 130, 246, 0.3);
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 1));
  }
}

@keyframes equals-glow-pulse {
  0% {
    text-shadow: 
      0 0 8px rgba(59, 130, 246, 1),
      0 0 15px rgba(59, 130, 246, 1),
      0 0 25px rgba(59, 130, 246, 0.9),
      0 0 35px rgba(59, 130, 246, 0.8),
      0 0 50px rgba(59, 130, 246, 0.7),
      0 0 75px rgba(59, 130, 246, 0.6),
      0 0 100px rgba(59, 130, 246, 0.4),
      0 0 125px rgba(59, 130, 246, 0.2);
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, 1));
    transform: scale(1);
  }
  100% {
    text-shadow: 
      0 0 12px rgba(59, 130, 246, 1),
      0 0 20px rgba(59, 130, 246, 1),
      0 0 35px rgba(59, 130, 246, 1),
      0 0 50px rgba(59, 130, 246, 0.9),
      0 0 75px rgba(59, 130, 246, 0.8),
      0 0 100px rgba(59, 130, 246, 0.7),
      0 0 150px rgba(59, 130, 246, 0.5),
      0 0 200px rgba(59, 130, 246, 0.3);
    filter: drop-shadow(0 0 60px rgba(59, 130, 246, 1));
    transform: scale(1.05);
  }
}

/* Адаптация для мобильных (только для очень маленьких экранов) */
@media (max-width: 480px) {
  .hero-text-block-first {
    margin-top: 0 !important; /* Сохраняем позиционирование на мобильных */
  }
  
  .hero-text-block-second {
    margin-top: 0 !important; /* Сохраняем позиционирование на мобильных */
  }
  
  .hero-title {
    font-size: 2.5rem;
    text-align: center !important; /* На мобильных центрируем заголовки */
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-text-container {
    max-width: 100% !important;
    padding: 0 15px !important;
    text-align: center !important; /* На мобильных центрируем контейнер */
  }
  
  .hero-text-block-first .hero-text-container,
  .hero-text-block-second .hero-text-container {
    text-align: center !important; /* На мобильных центрируем */
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .hero-text-block-first .hero-title,
  .hero-text-block-second .hero-title {
    text-align: center !important; /* На мобильных центрируем заголовки */
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

/* ===================================
   СТИЛИ ДЛЯ КАТАЛОГА
   =================================== */

/* ПРАВИЛЬНЫЕ СТИЛИ КАТАЛОГА С MONTSERRAT ALTERNATES */
.catalog-hero-section {
  min-height: 60vh;
  background: var(--background-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.catalog-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.catalog-hero-title {
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
  /* Добавляем эффекты как на главной странице */
  text-shadow: 
    0 0 5px rgba(59, 130, 246, 0.8),
    0 0 10px rgba(59, 130, 246, 0.6),
    0 0 15px rgba(59, 130, 246, 0.4);
  animation: glow-pulse 3s ease-in-out infinite alternate;
}

.catalog-hero-subtitle {
  font-size: 1.3rem;
  color: #cbd5e1;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Каталог проекты */
.catalog-projects-section {
  padding-top: 3rem;
  background: var(--background-dark);
  margin-top: 40px !important; /* Принудительный отступ от header */
}

.catalog-info {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.catalog-info-text {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.catalog-cta-btn {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* Адаптация каталога для мобильных */
@media (max-width: 768px) {
  .catalog-hero-title {
    font-size: 2.5rem;
  }
  
  .catalog-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .catalog-hero-section {
    min-height: 50vh;
    padding: 2rem 0;
  }
  
  .catalog-info {
    margin-top: 2rem;
    padding: 2rem 1rem;
  }
  
  .catalog-info-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .catalog-hero-title {
    font-size: 2rem;
  }
  
  .catalog-hero-subtitle {
    font-size: 1rem;
  }
}

/* MASONRY LAYOUT - СТОЛБЦЫ ОДИНАКОВОЙ ВЫСОТЫ */
.projects-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; /* 3 колонки на ПК */
  grid-template-rows: repeat(8, 1fr) !important; /* 8 строк для распределения */
  gap: 1.5rem !important;
  margin-top: 2rem !important;
  height: 200vh !important; /* Увеличена высота для описаний */
  max-height: none !important; /* Убрал ограничение */
}

/* ПК ВЕРСИЯ: 1-й столбец 3 карточки, 2-й - 2 карточки, 3-й - 3 карточки */
/* УДАЛЕНЫ ДУБЛИРУЮЩИЕ СТИЛИ - КАТАЛОГ ИСПОЛЬЗУЕТ СВОИ КЛАССЫ */

/* Стили для карточек проектов */
.project-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  position: relative;
  cursor: pointer;
}

/* Изображения проектов */
.project-image {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

/* Блюр изображения при ховере */
.project-card:hover .project-image img {
  filter: blur(8px);
  transform: scale(1.05);
}

/* Белый оверлей с описанием проекта */
.project-description-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 6px;
  border-radius: 0 0 12px 12px;
  transform: translateY(100%);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  z-index: 10;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Показ оверлея при ховере */
.project-card:hover .project-description-overlay {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Контент описания */
.project-description-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

/* Заголовок проекта */
.project-description-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Текст описания */
.project-description-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Кнопка действия */
.project-action-button {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  align-self: flex-end;
  min-width: 140px;
}

.project-action-button:hover {
  background: linear-gradient(135deg, #2980b9, #1f4e79);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.project-action-button svg {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.project-action-button:hover svg {
  transform: translateX(4px) translateY(-2px);
}

/* Hover эффекты для карточек */
.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* ПЛАНШЕТЫ - 2 колонки по 4 карточки */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 колонки на планшете */
    grid-template-rows: repeat(8, 1fr) !important; /* 8 строк для распределения */
    height: 150vh !important; /* Немного меньше высота */
  }
  
  /* Каждый столбец по 4 карточки */
    /* УДАЛЕНЫ ДУБЛИРУЮЩИЕ СТИЛИ - КАТАЛОГ ИСПОЛЬЗУЕТ СВОИ КЛАССЫ */
  
  .project-description-title {
    font-size: 1.1rem;
  }
  
  .project-description-text {
    font-size: 0.85rem;
  }
}

/* МОБИЛЬНЫЕ - 1 колонка с одинаковыми ячейками */
@media (max-width: 768px) {
  .projects-title {
    font-size: 2.5rem;
  }
  
  .projects-subtitle {
    font-size: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr !important; /* 1 колонка на мобильных */
    grid-template-rows: repeat(8, 300px) !important; /* 8 строк по 300px для описаний */
    height: auto !important; /* Автоматическая высота */
    max-height: none !important;
  }
  
  /* На мобильных все карточки идут друг за другом в один столбец */
  /* УДАЛЕНЫ ДУБЛИРУЮЩИЕ СТИЛИ - КАТАЛОГ ИСПОЛЬЗУЕТ СВОИ КЛАССЫ */
  
  .project-description-title {
    font-size: 1rem;
  }
  
  .project-description-text {
    font-size: 0.8rem;
  }
  
  .project-action-button {
    padding: 10px 16px;
    font-size: 0.8rem;
    min-width: 120px;
  }
}

/* ========== ЕДИНЫЙ СТИЛЬ КАТАЛОГА - ГОТОВ ДЛЯ БАЗЫ ДАННЫХ ========== */

/* ССЫЛКА КАРТОЧКИ КАТАЛОГА */
.catalog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.catalog-card-link:hover {
  transform: translateY(-5px);
}

/* ЕДИНАЯ КАРТОЧКА КАТАЛОГА */
.catalog-card {
  height: 50vh;
  border-radius: 12px;
  overflow: hidden;
  background: #1e293b;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

/* Убираем дублирующий hover эффект, он теперь на .catalog-card-link */

/* ИЗОБРАЖЕНИЕ КАРТОЧКИ */
.catalog-card-image {
  height: 70%;
  overflow: hidden;
  position: relative;
  flex: 0 0 70%;
  transition: opacity 0.4s ease;
}

.catalog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.catalog-card:hover .catalog-card-image img {
  transform: scale(1.05);
}

/* HOVER КОНТЕНТ С ОПИСАНИЕМ */
.catalog-card-hover-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(135deg, 
    #4facfe 0%, 
    #00f2fe 25%, 
    #667eea 50%, 
    #a8e6cf 75%, 
    #ffffff 100%);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  display: flex;
  flex-direction: column;
  padding: 20px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  border-radius: 12px 12px 0 0;
  z-index: 5;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.catalog-card:hover .catalog-card-hover-content {
  opacity: 1;
  transform: translateY(0);
}

.catalog-card:hover .catalog-card-image {
  opacity: 0;
}

.catalog-card-description {
  flex: 1;
  color: white;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  margin-bottom: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  z-index: 10;
  position: relative;
}

.catalog-card-btn {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #1e293b;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  align-self: flex-start;
  z-index: 15;
  position: relative;
}

.catalog-card-btn:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ИНФОРМАЦИЯ КАРТОЧКИ */
.catalog-card-info {
  height: 30%;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  flex: 0 0 30%;
}

.catalog-card-title {
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* СЕТКА КАТАЛОГА */
.catalog-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.catalog-projects-container {
  width: 100vw;
  padding: 0 10vw;
  max-width: none;
  margin: 0;
}

/* АДАПТИВНОСТЬ */
/* Планшетная версия (768px - 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; /* Сокращаем расстояние в два раза: с 20px до 10px */
  }
  
  .catalog-card {
    height: 40vh; /* Увеличиваем высоту карточек с 50vh до 60vh */
  }
}

@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-projects-container {
    padding: 0 5vw;
  }
  
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  
  .catalog-card {
    height: 45vh;
  }
}

.faq-item.hidden[data-faq="4"] {
  transform: translate(150vw, 150vh) rotate(-90deg) scale(0.5) !important;
}

/* Стили для скрытых FAQ блоков 5-8 */
.faq-item.hidden[data-faq="5"] {
  transform: translate(-120vw, -80vh) rotate(135deg) scale(0.4) !important;
}

.faq-item.hidden[data-faq="6"] {
  transform: translate(180vw, -40vh) rotate(-135deg) scale(0.4) !important;
}

.faq-item.hidden[data-faq="7"] {
  transform: translate(-160vw, 120vh) rotate(225deg) scale(0.4) !important;
}

.faq-item.hidden[data-faq="8"] {
  transform: translate(140vw, 180vh) rotate(-225deg) scale(0.4) !important;
}

/* 3D РОТОР КОНТЕЙНЕР - позиционирование справа */
#main-rotor-container {
  display: none; /* Временно скрываем для оптимизации */
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  z-index: 1; /* Ниже текста, но выше фона */
  pointer-events: none; /* Не блокируем клики по тексту */
  overflow: visible; /* НЕ обрезаем контент */
}

#main-rotor-container canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  image-rendering: auto !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  #main-rotor-container {
  display: none; /* Временно скрываем для оптимизации */
    width: 60%;
    right: 5%;
  }
}

@media (max-width: 480px) {
  #main-rotor-container {
  display: none; /* Временно скрываем для оптимизации */
    width: 50%;
    right: 10%;
  }
  
  .hero-text-block-first .hero-text-container {
    padding-left: 15px !important;
  }
}



/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  #main-rotor-container {
  display: none; /* Временно скрываем для оптимизации */
    width: 60%;
    right: 5%;
  }
}

@media (max-width: 480px) {
  #main-rotor-container {
  display: none; /* Временно скрываем для оптимизации */
    width: 50%;
    right: 10%;
  }
  
  .hero-text-block-first .hero-text-container {
    padding-left: 15px !important;
  }
}

/* 🏆 AVITO RATING SECTION - СЕКЦИЯ РЕЙТИНГА АВИТО */
.avito-rating-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    /* Убираем фон - теперь как в первых блоках */
}

.avito-rating-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.avito-rating-image {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Расширяем для неонового свечения */
    padding: 40px;
    margin: -40px;
    overflow: visible;
}

/* ===== НОВЫЙ АНИМИРОВАННЫЙ AVITO ЛОГОТИП ===== */
.avito-logo-animated {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: avitoFloat 8s ease-in-out infinite;
}

.avito-svg-new {
    max-width: 100%;
    height: auto;
    width: 400px;
    height: 400px;
    /* Убираем границы SVG для свечения */
    overflow: visible;
    filter: drop-shadow(0 0 40px rgba(0, 191, 255, 0.4));
    transition: all 0.4s ease;
    animation: avitoMainGlow 6s ease-in-out infinite;
}

.avito-svg-new:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 80px rgba(0, 191, 255, 0.8))
            drop-shadow(0 0 120px rgba(0, 150, 255, 0.6))
            drop-shadow(0 0 160px rgba(64, 224, 255, 0.4));
}

/* Белый фон с контурной подсветкой */
.avito-bg {
    animation: avitoBackgroundPulse 6s ease-in-out infinite;
}

/* Основные круги с неоновым эффектом */
.avito-circle {
    transition: all 0.6s ease;
    transform-origin: center;
}

.avito-circle-1 {
    animation: avitoCircleContour1 6s ease-in-out infinite;
    animation-delay: 0s;
}

.avito-circle-2 {
    animation: avitoCircleContour2 6s ease-in-out infinite;
    animation-delay: 1.5s;
}

.avito-circle-3 {
    animation: avitoCircleContour3 6s ease-in-out infinite;
    animation-delay: 3s;
}

.avito-circle-4 {
    animation: avitoCircleContour4 6s ease-in-out infinite;
    animation-delay: 4.5s;
}



/* ===== НОВЫЕ ЗАВОРАЖИВАЮЩИЕ АНИМАЦИИ ===== */

/* Плавающее движение всего логотипа */
@keyframes avitoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(1.5deg);
    }
    50% {
        transform: translateY(-8px) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) rotate(-1.5deg);
    }
}

/* Основное неоновое свечение */
@keyframes avitoMainGlow {
    0%, 100% {
        filter: drop-shadow(0 0 40px rgba(0, 191, 255, 0.4))
                drop-shadow(0 0 80px rgba(0, 150, 255, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 80px rgba(0, 191, 255, 0.8))
                drop-shadow(0 0 120px rgba(64, 224, 255, 0.5))
                drop-shadow(0 0 160px rgba(0, 255, 255, 0.3));
    }
}



/* Настоящий неоновый эффект белого фона */
@keyframes avitoBackgroundPulse {
    0%, 30%, 70%, 100% {
        fill: white;
        fill-opacity: 1;
        stroke: none;
        stroke-width: 0;
        filter: none;
    }
    40%, 60% {
        fill: transparent;
        fill-opacity: 0;
        stroke: #00FFFF;
        stroke-width: 6;
        filter: drop-shadow(0 0 5px #00FFFF) 
                drop-shadow(0 0 10px #00FFFF) 
                drop-shadow(0 0 15px #00FFFF)
                drop-shadow(0 0 20px #00FFFF)
                drop-shadow(0 0 30px rgba(0, 255, 255, 0.8))
                drop-shadow(0 0 40px rgba(0, 255, 255, 0.6));
    }
}

/* Настоящий неоновый эффект кругов */
@keyframes avitoCircleContour1 {
    0%, 30%, 70%, 100% {
        fill: #16E342;
        fill-opacity: 1;
        stroke: none;
        stroke-width: 0;
        transform: scale(1);
        filter: none;
    }
    40%, 60% {
        fill: transparent;
        fill-opacity: 0;
        stroke: #00FFFF;
        stroke-width: 4;
        transform: scale(1);
        filter: drop-shadow(0 0 4px #00FFFF) 
                drop-shadow(0 0 8px #00FFFF) 
                drop-shadow(0 0 12px #00FFFF)
                drop-shadow(0 0 16px #00FFFF) 
                drop-shadow(0 0 25px rgba(0, 255, 255, 0.9))
                drop-shadow(0 0 35px rgba(0, 255, 255, 0.7));
    }
    80% {
        transform: scale(1.05);
    }
}

@keyframes avitoCircleContour2 {
    0%, 30%, 70%, 100% {
        fill: #1D94E4;
        fill-opacity: 1;
        stroke: none;
        stroke-width: 0;
        transform: scale(1);
        filter: none;
    }
    40%, 60% {
        fill: transparent;
        fill-opacity: 0;
        stroke: #00BFFF;
        stroke-width: 3;
        transform: scale(1);
        filter: drop-shadow(0 0 3px #00BFFF) 
                drop-shadow(0 0 6px #00BFFF) 
                drop-shadow(0 0 10px #00BFFF)
                drop-shadow(0 0 15px #00BFFF) 
                drop-shadow(0 0 22px rgba(0, 191, 255, 0.9))
                drop-shadow(0 0 30px rgba(0, 191, 255, 0.7));
    }
    80% {
        transform: scale(1.04);
    }
}

@keyframes avitoCircleContour3 {
    0%, 30%, 70%, 100% {
        fill: #DD1DE4;
        fill-opacity: 1;
        stroke: none;
        stroke-width: 0;
        transform: scale(1);
        filter: none;
    }
    40%, 60% {
        fill: transparent;
        fill-opacity: 0;
        stroke: #40E0FF;
        stroke-width: 2;
        transform: scale(1);
        filter: drop-shadow(0 0 2px #40E0FF) 
                drop-shadow(0 0 4px #40E0FF) 
                drop-shadow(0 0 8px #40E0FF)
                drop-shadow(0 0 12px #40E0FF) 
                drop-shadow(0 0 18px rgba(64, 224, 255, 0.9))
                drop-shadow(0 0 25px rgba(64, 224, 255, 0.7));
    }
    80% {
        transform: scale(1.06);
    }
}

@keyframes avitoCircleContour4 {
    0%, 30%, 70%, 100% {
        fill: #E41D1D;
        fill-opacity: 1;
        stroke: none;
        stroke-width: 0;
        transform: scale(1);
        filter: none;
    }
    40%, 60% {
        fill: transparent;
        fill-opacity: 0;
        stroke: #0080FF;
        stroke-width: 3;
        transform: scale(1);
        filter: drop-shadow(0 0 3px #0080FF) 
                drop-shadow(0 0 6px #0080FF) 
                drop-shadow(0 0 10px #0080FF)
                drop-shadow(0 0 15px #0080FF) 
                drop-shadow(0 0 22px rgba(0, 128, 255, 0.9))
                drop-shadow(0 0 30px rgba(0, 128, 255, 0.7));
    }
    80% {
        transform: scale(1.04);
    }
}

/* Контент секции */
.avito-rating-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-left: 2rem;
}

.avito-rating-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 6vw; /* Как вы просили */
    font-weight: 700; /* Как в hero секции */
    line-height: 0.85; /* Как в hero секции */
    margin-bottom: 1.5rem;
    color: white; /* Белый цвет как в hero секции */
    text-align: inherit !important; /* Наследует от родителя */
}



/* НЕОНОВАЯ СТЕКЛЯННАЯ КНОПКА С АНИМИРОВАННЫМИ ПЕРЕЛИВАМИ */
.avito-rating-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, 
        rgba(51, 153, 255, 0.2), 
        rgba(0, 102, 255, 0.3), 
        rgba(51, 153, 255, 0.2)
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(51, 153, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 0 30px rgba(51, 153, 255, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: glassShimmer 4s ease-in-out infinite;
    cursor: pointer;
}

.avito-rating-btn:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, 
        rgba(51, 153, 255, 0.3), 
        rgba(0, 102, 255, 0.4), 
        rgba(51, 153, 255, 0.3)
    );
    border: 2px solid rgba(51, 153, 255, 0.6);
    box-shadow: 
        0 0 50px rgba(51, 153, 255, 0.8),
        0 0 100px rgba(51, 153, 255, 0.4),
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: glassShimmer 2s ease-in-out infinite;
}

.avito-rating-btn:active {
    transform: translateY(-2px) scale(1.01);
}

.btn-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* СТЕКЛЯННОЕ НЕОНОВОЕ СВЕЧЕНИЕ */
.btn-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        rgba(0, 255, 255, 0.6), 
        rgba(0, 128, 255, 0.6), 
        rgba(51, 153, 255, 0.6), 
        rgba(0, 255, 255, 0.6)
    );
    background-size: 400% 400%;
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    animation: neonGlassGlow 3s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.avito-rating-btn:hover .btn-glow {
    opacity: 1;
    filter: blur(20px);
    animation: neonGlassGlow 1.5s ease-in-out infinite;
}

/* ДОПОЛНИТЕЛЬНЫЙ ВНУТРЕННИЙ БЛИК */
.avito-rating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    transition: left 0.7s ease;
    z-index: 1;
}

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

/* АНИМАЦИИ КНОПКИ */
@keyframes glassShimmer {
    0%, 100% {
        background-position: 0% 50%;
        border-color: rgba(51, 153, 255, 0.3);
    }
    50% {
        background-position: 100% 50%;
        border-color: rgba(51, 153, 255, 0.5);
    }
}

@keyframes neonGlassGlow {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    25% {
        background-position: 100% 50%;
        transform: scale(1.02);
    }
    50% {
        background-position: 200% 50%;
        transform: scale(1);
    }
    75% {
        background-position: 300% 50%;
        transform: scale(1.02);
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .avito-rating-container {
        gap: 3rem;
    }
    
    .avito-rating-content {
        padding-left: 1rem;
        gap: 2.5rem;
    }
    
    .avito-svg-new {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .avito-rating-section {
        padding: 2rem 1rem;
    }
    
    .avito-rating-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .avito-rating-content {
        padding-left: 0;
        gap: 2rem;
    align-items: center;
    }
    
    .avito-rating-title {
        text-align: center;
        font-size: 8vw; /* Больше на мобильных */
    }
    
    .avito-svg-new {
        width: 250px;
        height: 250px;
    }
    
    .avito-rating-btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .avito-rating-section {
        min-height: 90vh;
        padding: 1rem;
    }
    
    .avito-rating-container {
        gap: 1.5rem;
    }
    
    .avito-rating-content {
        gap: 1.5rem;
    }
    
    .avito-svg-new {
        width: 200px;
        height: 200px;
    }
    
    .avito-rating-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .avito-rating-title {
        font-size: 10vw; /* Еще больше на очень маленьких экранах */
    }
}


/* ========================================
   НОВЫЕ СТИЛИ КНОПОК С ЭФФЕКТАМИ AVITO
======================================== */

/* КНОПКА КАТАЛОГ - СИНИЙ СТИЛЬ КАК У AVITO */
.btn-catalog-glass {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, 
        rgba(51, 153, 255, 0.2), 
        rgba(0, 102, 255, 0.3), 
        rgba(51, 153, 255, 0.2)
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(51, 153, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 0 30px rgba(51, 153, 255, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: glassShimmerBlue 4s ease-in-out infinite;
    cursor: pointer;
}

.btn-catalog-glass:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, 
        rgba(51, 153, 255, 0.3), 
        rgba(0, 102, 255, 0.4), 
        rgba(51, 153, 255, 0.3)
    );
    border: 2px solid rgba(51, 153, 255, 0.6);
    box-shadow: 
        0 0 50px rgba(51, 153, 255, 0.8),
        0 0 100px rgba(51, 153, 255, 0.4),
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: glassShimmerBlue 2s ease-in-out infinite;
}

.btn-catalog-glass:active {
    transform: translateY(-2px) scale(1.01);
}

/* КНОПКА СВЯЗАТЬСЯ - ОРАНЖЕВЫЙ СТИЛЬ */
.btn-contact-glass {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, 
        rgba(255, 153, 51, 0.2), 
        rgba(255, 102, 0, 0.3), 
        rgba(255, 153, 51, 0.2)
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 153, 51, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 0 30px rgba(255, 153, 51, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: glassShimmerOrange 4s ease-in-out infinite;
    cursor: pointer;
}

.btn-contact-glass:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, 
        rgba(255, 153, 51, 0.3), 
        rgba(255, 102, 0, 0.4), 
        rgba(255, 153, 51, 0.3)
    );
    border: 2px solid rgba(255, 153, 51, 0.6);
    box-shadow: 
        0 0 50px rgba(255, 153, 51, 0.8),
        0 0 100px rgba(255, 153, 51, 0.4),
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: glassShimmerOrange 2s ease-in-out infinite;
}

.btn-contact-glass:active {
    transform: translateY(-2px) scale(1.01);
}

/* ОБЩИЕ СТИЛИ ДЛЯ ТЕКСТА КНОПОК */
.btn-catalog-glass .btn-text,
.btn-contact-glass .btn-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* СИНЕЕ НЕОНОВОЕ СВЕЧЕНИЕ ДЛЯ КАТАЛОГА */
.btn-catalog-glass .btn-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        rgba(0, 255, 255, 0.6), 
        rgba(0, 128, 255, 0.6), 
        rgba(51, 153, 255, 0.6), 
        rgba(0, 255, 255, 0.6)
    );
    background-size: 400% 400%;
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    animation: neonGlassGlowBlue 3s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.btn-catalog-glass:hover .btn-glow {
    opacity: 1;
    filter: blur(20px);
    animation: neonGlassGlowBlue 1.5s ease-in-out infinite;
}

/* ОРАНЖЕВОЕ НЕОНОВОЕ СВЕЧЕНИЕ ДЛЯ СВЯЗАТЬСЯ */
.btn-contact-glass .btn-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        rgba(255, 165, 0, 0.6), 
        rgba(255, 140, 0, 0.6), 
        rgba(255, 153, 51, 0.6), 
        rgba(255, 165, 0, 0.6)
    );
    background-size: 400% 400%;
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    animation: neonGlassGlowOrange 3s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.btn-contact-glass:hover .btn-glow {
    opacity: 1;
    filter: blur(20px);
    animation: neonGlassGlowOrange 1.5s ease-in-out infinite;
}

/* ВНУТРЕННИЙ БЛИК ДЛЯ ОБЕИХ КНОПОК */
.btn-catalog-glass::before,
.btn-contact-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    transition: left 0.7s ease;
    z-index: 1;
}

.btn-catalog-glass:hover::before,
.btn-contact-glass:hover::before {
    left: 100%;
}

/* АНИМАЦИИ ДЛЯ СИНЕЙ КНОПКИ */
@keyframes glassShimmerBlue {
    0%, 100% {
        background-position: 0% 50%;
        border-color: rgba(51, 153, 255, 0.3);
    }
    50% {
        background-position: 100% 50%;
        border-color: rgba(51, 153, 255, 0.5);
    }
}

@keyframes neonGlassGlowBlue {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    25% {
        background-position: 100% 50%;
        transform: scale(1.02);
    }
    50% {
        background-position: 200% 50%;
        transform: scale(1);
    }
    75% {
        background-position: 300% 50%;
        transform: scale(1.02);
    }
}

/* АНИМАЦИИ ДЛЯ ОРАНЖЕВОЙ КНОПКИ */
@keyframes glassShimmerOrange {
    0%, 100% {
        background-position: 0% 50%;
        border-color: rgba(255, 153, 51, 0.3);
    }
    50% {
        background-position: 100% 50%;
        border-color: rgba(255, 153, 51, 0.5);
    }
}

@keyframes neonGlassGlowOrange {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    25% {
        background-position: 100% 50%;
        transform: scale(1.02);
    }
    50% {
        background-position: 200% 50%;
        transform: scale(1);
    }
    75% {
        background-position: 300% 50%;
        transform: scale(1.02);
    }
}

/* АДАПТИВНОСТЬ НОВЫХ КНОПОК */
@media (max-width: 768px) {
    .btn-catalog-glass,
    .btn-contact-glass {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .btn-catalog-glass,
    .btn-contact-glass {
        padding: 1rem 2rem;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}





/* ========================================
   НОВЫЕ СТИЛИ КНОПОК С ЭФФЕКТАМИ AVITO
======================================== */

/* КНОПКА КАТАЛОГ - СИНИЙ СТИЛЬ КАК У AVITO */
.btn-catalog-glass {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, 
        rgba(51, 153, 255, 0.2), 
        rgba(0, 102, 255, 0.3), 
        rgba(51, 153, 255, 0.2)
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(51, 153, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 0 30px rgba(51, 153, 255, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: glassShimmerBlue 4s ease-in-out infinite;
    cursor: pointer;
}

.btn-catalog-glass:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, 
        rgba(51, 153, 255, 0.3), 
        rgba(0, 102, 255, 0.4), 
        rgba(51, 153, 255, 0.3)
    );
    border: 2px solid rgba(51, 153, 255, 0.6);
    box-shadow: 
        0 0 50px rgba(51, 153, 255, 0.8),
        0 0 100px rgba(51, 153, 255, 0.4),
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: glassShimmerBlue 2s ease-in-out infinite;
}

.btn-catalog-glass:active {
    transform: translateY(-2px) scale(1.01);
}

/* КНОПКА СВЯЗАТЬСЯ - ОРАНЖЕВЫЙ СТИЛЬ */
.btn-contact-glass {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, 
        rgba(255, 153, 51, 0.2), 
        rgba(255, 102, 0, 0.3), 
        rgba(255, 153, 51, 0.2)
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 153, 51, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 0 30px rgba(255, 153, 51, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: glassShimmerOrange 4s ease-in-out infinite;
    cursor: pointer;
}

.btn-contact-glass:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, 
        rgba(255, 153, 51, 0.3), 
        rgba(255, 102, 0, 0.4), 
        rgba(255, 153, 51, 0.3)
    );
    border: 2px solid rgba(255, 153, 51, 0.6);
    box-shadow: 
        0 0 50px rgba(255, 153, 51, 0.8),
        0 0 100px rgba(255, 153, 51, 0.4),
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: glassShimmerOrange 2s ease-in-out infinite;
}

.btn-contact-glass:active {
    transform: translateY(-2px) scale(1.01);
}

/* ОБЩИЕ СТИЛИ ДЛЯ ТЕКСТА КНОПОК */
.btn-catalog-glass .btn-text,
.btn-contact-glass .btn-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* СИНЕЕ НЕОНОВОЕ СВЕЧЕНИЕ ДЛЯ КАТАЛОГА */
.btn-catalog-glass .btn-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        rgba(0, 255, 255, 0.6), 
        rgba(0, 128, 255, 0.6), 
        rgba(51, 153, 255, 0.6), 
        rgba(0, 255, 255, 0.6)
    );
    background-size: 400% 400%;
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    animation: neonGlassGlowBlue 3s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.btn-catalog-glass:hover .btn-glow {
    opacity: 1;
    filter: blur(20px);
    animation: neonGlassGlowBlue 1.5s ease-in-out infinite;
}

/* ОРАНЖЕВОЕ НЕОНОВОЕ СВЕЧЕНИЕ ДЛЯ СВЯЗАТЬСЯ */
.btn-contact-glass .btn-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        rgba(255, 165, 0, 0.6), 
        rgba(255, 140, 0, 0.6), 
        rgba(255, 153, 51, 0.6), 
        rgba(255, 165, 0, 0.6)
    );
    background-size: 400% 400%;
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    animation: neonGlassGlowOrange 3s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.btn-contact-glass:hover .btn-glow {
    opacity: 1;
    filter: blur(20px);
    animation: neonGlassGlowOrange 1.5s ease-in-out infinite;
}

/* ВНУТРЕННИЙ БЛИК ДЛЯ ОБЕИХ КНОПОК */
.btn-catalog-glass::before,
.btn-contact-glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    transition: left 0.7s ease;
    z-index: 1;
}

.btn-catalog-glass:hover::before,
.btn-contact-glass:hover::before {
    left: 100%;
}

/* АНИМАЦИИ ДЛЯ СИНЕЙ КНОПКИ */
@keyframes glassShimmerBlue {
    0%, 100% {
        background-position: 0% 50%;
        border-color: rgba(51, 153, 255, 0.3);
    }
    50% {
        background-position: 100% 50%;
        border-color: rgba(51, 153, 255, 0.5);
    }
}

@keyframes neonGlassGlowBlue {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    25% {
        background-position: 100% 50%;
        transform: scale(1.02);
    }
    50% {
        background-position: 200% 50%;
        transform: scale(1);
    }
    75% {
        background-position: 300% 50%;
        transform: scale(1.02);
    }
}

/* АНИМАЦИИ ДЛЯ ОРАНЖЕВОЙ КНОПКИ */
@keyframes glassShimmerOrange {
    0%, 100% {
        background-position: 0% 50%;
        border-color: rgba(255, 153, 51, 0.3);
    }
    50% {
        background-position: 100% 50%;
        border-color: rgba(255, 153, 51, 0.5);
    }
}

@keyframes neonGlassGlowOrange {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    25% {
        background-position: 100% 50%;
        transform: scale(1.02);
    }
    50% {
        background-position: 200% 50%;
        transform: scale(1);
    }
    75% {
        background-position: 300% 50%;
        transform: scale(1.02);
    }
}

/* АДАПТИВНОСТЬ НОВЫХ КНОПОК */
@media (max-width: 768px) {
    .btn-catalog-glass,
    .btn-contact-glass {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .btn-catalog-glass,
    .btn-contact-glass {
        padding: 1rem 2rem;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}


/* ========================================
   СЕКЦИЯ КНОПКИ "ВЕСЬ КАТАЛОГ"
======================================== */

.catalog-button-section {
    width: 100%;
    padding: 0 0 4rem 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.catalog-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    width: 100%;
    max-width: 1200px;
}

/* Дополнительные стили для кнопки в этой секции */
.catalog-button-section .btn-catalog-glass {
    /* Увеличиваем размер кнопки в этой секции */
    padding: 1.8rem 4rem;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    
    /* Добавляем дополнительное свечение */
    box-shadow: 
        0 0 40px rgba(51, 153, 255, 0.5),
        0 15px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.catalog-button-section .btn-catalog-glass:hover {
    box-shadow: 
        0 0 60px rgba(51, 153, 255, 0.9),
        0 0 120px rgba(51, 153, 255, 0.5),
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* АДАПТИВНОСТЬ СЕКЦИИ */
@media (max-width: 768px) {
    .catalog-button-section {
        padding: 0 0 3rem 0;
    }
    
    .catalog-button-container {
        padding: 0 1.5rem;
    }
    
    .catalog-button-section .btn-catalog-glass {
        padding: 1.5rem 3rem;
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .catalog-button-section {
        padding: 0 0 2.5rem 0;
    }
    
    .catalog-button-container {
        padding: 0 1rem;
    }
    
    .catalog-button-section .btn-catalog-glass {
        padding: 1.3rem 2.5rem;
        font-size: 1.1rem;
        letter-spacing: 0.8px;
    }
}

@media (max-width: 360px) {
    .catalog-button-section .btn-catalog-glass {
        padding: 1.2rem 2rem;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}

/* ========================================
   АДАПТИВНЫЕ СТИЛИ ДЛЯ FLOATING PROJECTS
   Превращение парящих карточек в обычный grid на планшетах и мобильных
   ======================================== */

/* ПЛАНШЕТЫ - 2 КОЛОНКИ */
@media (max-width: 1024px) {
    .floating-projects-section {
        min-height: auto !important;
        padding: 4rem 0 !important;
        height: auto !important;
    }
    
    .floating-projects-header {
        height: auto !important;
        padding: 0 2rem 3rem 2rem !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }
    
    .floating-projects-cloud {
        height: auto !important;
        padding: 0 2rem !important;
        position: static !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
    }
    
    .floating-project-card {
        position: static !important;
        transform: none !important;
        animation: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 320px !important;
        margin: 0 !important;
    }
    
    .floating-cards-container {
        display: contents !important;
        height: auto !important;
    }
}

/* МОБИЛЬНЫЕ - 1 КОЛОНКА для floating projects */
@media (max-width: 768px) {
    .floating-projects-section {
        min-height: auto !important;
        padding: 3rem 0 !important;
        height: auto !important;
    }
    
    .floating-projects-header {
        height: auto !important;
        padding: 0 1rem 2rem 1rem !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }
    
    .floating-projects-cloud {
        height: auto !important;
        padding: 0 1rem !important;
        position: static !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        max-width: 600px !important;
        margin: 0 auto !important;
    }
    
    .floating-project-card {
        position: static !important;
        transform: none !important;
        animation: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 280px !important;
        margin: 0 !important;
        padding: 1rem !important;
    }
    
    .floating-cards-container {
        display: contents !important;
        height: auto !important;
    }
}

/* ========================================
   АДАПТИВНЫЕ СТИЛИ ДЛЯ FAQ СЕКЦИИ
   Превращение парящих FAQ элементов в обычный grid на планшетах и мобильных
   ======================================== */

/* ПЛАНШЕТЫ - 2 КОЛОНКИ для FAQ */
@media (max-width: 1024px) {
    .faq-section {
        min-height: auto !important;
        padding: 4rem 0 !important;
        height: auto !important;
        display: block !important;
    }
    
    .faq-header {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        padding: 0 2rem 3rem 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .faq-container {
        position: static !important;
        height: auto !important;
        width: 100% !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 2rem !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    
    .faq-item {
        position: static !important;
        transform: none !important;
        animation: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: auto !important;
    }
}

/* МОБИЛЬНЫЕ - 1 КОЛОНКА для FAQ */
@media (max-width: 768px) {
    .faq-section {
        min-height: auto !important;
        padding: 3rem 0 !important;
        height: auto !important;
        display: block !important;
    }
    
    .faq-header {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        padding: 0 1rem 2rem 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .faq-container {
        position: static !important;
        height: auto !important;
        width: 100% !important;
        max-width: 600px !important;
        margin: 0 auto !important;
        padding: 0 1rem !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .faq-item {
        position: static !important;
        transform: none !important;
        animation: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: auto !important;
    }
}

/* ========================================
   ТЕХНИЧЕСКИЕ РЕШЕНИЯ - ОРГАНИЧЕСКИЙ СТИЛЬ
   ======================================== */

/* Секция технических решений */
.solutions-section {
    padding: 4rem 0;
    background: transparent;
}

.solutions-header {
    text-align: center;
    margin-bottom: 3rem;
}

.solutions-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.solutions-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Карточки технических решений - ОРГАНИЧЕСКИЙ СТИЛЬ */
.solution-card {
    /* Органический фон с природными цветами */
    background: radial-gradient(circle at 30% 70%, 
        rgba(168, 230, 207, 0.9),   /* Светло-зеленый */ 
        rgba(220, 237, 193, 0.8),   /* Салатовый */
        rgba(255, 211, 165, 0.7),   /* Персиковый */
        rgba(253, 152, 83, 0.6));   /* Оранжевый */
    
    /* Органические закругления, которые меняются */
    border-radius: 50px 20px 50px 20px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    
    /* Плавные переходы */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(15px);
    
    /* Легкая тень */
    box-shadow: 
        0 10px 30px rgba(168, 230, 207, 0.3),
        0 5px 15px rgba(220, 237, 193, 0.2);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    
    /* Анимация органического изменения формы */
    animation: organicMorph 6s ease-in-out infinite alternate;
    
    /* Природная граница */
    border: 2px solid rgba(45, 80, 22, 0.2);
}

/* Анимация органического изменения формы */
@keyframes organicMorph {
    0% { 
        border-radius: 50px 20px 50px 20px;
        transform: scale(1);
    }
    33% { 
        border-radius: 20px 50px 30px 40px;
        transform: scale(1.02);
    }
    66% { 
        border-radius: 40px 30px 50px 20px;
        transform: scale(0.98);
    }
    100% { 
        border-radius: 20px 50px 20px 50px;
        transform: scale(1);
    }
}

/* Органический эффект при наведении */
.solution-card:hover {
    /* Усиление цветов при наведении */
    background: radial-gradient(circle at 40% 60%, 
        rgba(168, 230, 207, 1),
        rgba(220, 237, 193, 0.95),
        rgba(255, 211, 165, 0.9),
        rgba(253, 152, 83, 0.8));
    
    transform: translateY(-15px) scale(1.05);
    
    /* Более яркая тень */
    box-shadow: 
        0 25px 50px rgba(168, 230, 207, 0.4),
        0 15px 30px rgba(220, 237, 193, 0.3),
        0 0 0 3px rgba(45, 80, 22, 0.1);
    
    /* Ускорение анимации при наведении */
    animation-duration: 3s;
}

/* Иконки решений - ОРГАНИЧЕСКИЙ СТИЛЬ */
.solution-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Плавающая анимация */
    animation: organicFloat 4s ease-in-out infinite;
    
    /* Цвет иконок - природный темно-зеленый */
    color: #2d5016;
}

/* Органическое свечение вокруг иконки */
.solution-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    
    /* Органическое свечение с природными цветами */
    background: radial-gradient(circle, 
        rgba(168, 230, 207, 0.4) 0%,
        rgba(220, 237, 193, 0.3) 30%,
        rgba(255, 211, 165, 0.2) 60%,
        transparent 80%);
    
    border-radius: 50%;
    animation: organicGlow 5s ease-in-out infinite alternate;
    z-index: -1;
}

/* Анимация плавающего движения */
@keyframes organicFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% { 
        transform: translateY(-8px) rotate(1deg) scale(1.05);
    }
    50% { 
        transform: translateY(-12px) rotate(-1deg) scale(1.08);
    }
    75% { 
        transform: translateY(-6px) rotate(2deg) scale(1.03);
    }
}

/* Анимация органического свечения */
@keyframes organicGlow {
    0% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.3) rotate(180deg);
        opacity: 0.8;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.1) rotate(360deg);
        opacity: 0.4;
    }
}

.solution-card:hover .solution-icon {
    /* Усиленная анимация при наведении */
    animation-duration: 2s;
    transform: scale(1.2) rotate(5deg);
    color: #1a3d0f; /* Более темный зеленый при наведении */
}

.solution-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d5016; /* Природный темно-зеленый */
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
    hyphens: none;
    flex-shrink: 0;
    
    /* Текстовая тень для лучшей читаемости */
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* Органическая подчеркивающая линия */
.solution-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    
    /* Градиент природных цветов */
    background: linear-gradient(90deg, 
        #2d5016,
        #4a7c59,
        #6b8e23,
        #8fbc8f);
    
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card:hover .solution-title::after {
    width: 80px;
}

.solution-description {
    font-size: 1rem;
    color: #2d5016; /* Темно-зеленый для лучшей читаемости */
    line-height: 1.7;
    position: relative;
    z-index: 3;
    opacity: 0.9;
    font-weight: 500;
    
    /* Текстовая тень для контраста */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
}

.solution-card:hover .solution-description {
    color: #1a3d0f; /* Еще темнее при наведении */
    opacity: 1;
}

/* Дополнительные органические элементы */
.solution-card::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    
    /* Маленький органический элемент */
    background: radial-gradient(circle, 
        rgba(253, 152, 83, 0.6),
        rgba(255, 211, 165, 0.4),
        transparent);
    
    border-radius: 50% 20% 50% 20%;
    animation: organicPulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes organicPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.3) rotate(180deg);
        opacity: 0.9;
    }
}

/* Стили для SVG иконок */
.solution-icon svg {
    width: 100%;
    height: 100%;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(45, 80, 22, 0.2));
}

.solution-card:hover .solution-icon svg {
    filter: drop-shadow(0 6px 12px rgba(45, 80, 22, 0.4));
    transform: scale(1.1) rotate(3deg);
}

/* Дополнительные органические частицы вокруг иконок */
.solution-icon::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, 
        rgba(168, 230, 207, 0.8),
        rgba(220, 237, 193, 0.6),
        transparent);
    border-radius: 60% 40% 60% 40%;
    animation: organicParticle 7s ease-in-out infinite;
    z-index: -1;
}

@keyframes organicParticle {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.4;
    }
    25% { 
        transform: translate(10px, -5px) scale(1.2) rotate(90deg);
        opacity: 0.7;
    }
    50% { 
        transform: translate(-5px, -10px) scale(0.8) rotate(180deg);
        opacity: 0.9;
    }
    75% { 
        transform: translate(-10px, 5px) scale(1.1) rotate(270deg);
        opacity: 0.6;
    }
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .solution-card {
        min-height: 200px;
        padding: 25px 15px;
    }
    
    .solution-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .solution-title {
        font-size: 1.2rem;
    }
    
    .solution-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .solutions-section {
        padding: 3rem 0;
    }
    
    .solutions-title {
        font-size: 2rem;
    }
    
    .solution-card {
        min-height: 180px;
        padding: 20px 15px;
    }
    
    .solution-icon {
        width: 60px;
        height: 60px;
    }
}

/* ========================================
   КОНЕЦ СТИЛЕЙ ТЕХНИЧЕСКИХ РЕШЕНИЙ
   ======================================== */

/* Стили для изображений иконок технических решений */
.solution-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(45, 80, 22, 0.2));
}

.solution-card:hover .solution-icon-img {
    filter: drop-shadow(0 6px 12px rgba(45, 80, 22, 0.4));
    transform: scale(1.1) rotate(3deg);
}


/* Стили для изображений иконок технических решений */
.solution-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(45, 80, 22, 0.2));
}

.solution-card:hover .solution-icon-img {
    filter: drop-shadow(0 6px 12px rgba(45, 80, 22, 0.4));
    transform: scale(1.1) rotate(3deg);
}

/* ========================================
   НОВАЯ HERO СЕКЦИЯ СО SPLINE
   По структуре из test-simple-spline.html
   ======================================== */

/* Hero секция - контейнер для sticky Spline */
.hero {
    position: relative;
    height: 200vh; /* Два блока по 100vh */
}

/* Spline Container - sticky внутри hero */
.spline-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    /* ✂️ БОЛЬШОЕ СКРУГЛЕНИЕ ПРАВОГО НИЖНЕГО УГЛА ДЛЯ СКРЫТИЯ SPLINE ЛОГОТИПА */
    border-bottom-right-radius: 330px;
    overflow: hidden;
}

/* Первый блок hero - поверх Spline */
.hero-block-1 {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    padding: 0 5%;
}

/* Второй блок hero - поверх Spline */
.hero-block-2 {
    position: absolute;
    top: 100vh;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 2;
    padding: 0 5%;
}

/* Контент внутри блоков */
.hero-content {
    text-align: left;
    color: white;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
}

/* Заголовки */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

/* Стили для второго блока - справа */
.hero-block-2 .hero-content {
    text-align: right;
    margin-left: auto;
}

/* Адаптивность - отключаем Spline на всех устройствах кроме десктопа */
@media (max-width: 1024px) {
    /* Скрываем Spline на планшетах и мобильных */
    .spline-container {
        display: none;
    }
    
    /* Убираем sticky positioning и делаем hero обычной секцией */
    .hero {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        position: relative;
    }
    
    /* Делаем блоки обычными, не absolute */
    .hero-block-1,
    .hero-block-2 {
        position: relative;
        top: auto;
        height: 100vh; /* КАЖДЫЙ БЛОК 100vh */
        width: 100%;
        display: flex;
        align-items: center; /* ЦЕНТРИРУЕМ ПО ВЕРТИКАЛИ */
        justify-content: center; /* ЦЕНТРИРУЕМ ПО ГОРИЗОНТАЛИ */
        z-index: 2;
        padding: 2rem 5%;
    }
    
    /* Центрируем ВЕСЬ контент в hero блоках */
    .hero-content {
        text-align: center !important; /* ЦЕНТРИРУЕМ ТЕКСТЫ */
        margin: 0 auto !important;
    }
    
    /* Центрируем кнопки */
    .hero-buttons {
        justify-content: center !important; /* ЦЕНТРИРУЕМ КНОПКИ */
    }
    
    /* Исправляем обрезание эффекта свечения на мобильных */
    .hero-block-1,
    .hero-block-2,
    .hero-content,
    .hero-title,
    .text-glow-blue,
    .text-glow-equals {
        overflow: visible !important; /* УБИРАЕМ ОБРЕЗАНИЕ СВЕЧЕНИЯ */
    }
}

/* Дополнительная адаптивность для мобильных */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-block-1,
    .hero-block-2 {
        max-width: 100% !important;
        padding: 2rem 1rem;
        height: 100vh; /* КАЖДЫЙ БЛОК 100vh НА МОБИЛЬНЫХ ТОЖЕ */
    }
}

/* Spline viewer стили */
spline-viewer {
    width: 100%;
    height: 100%;
    display: block;
    /* ✂️ БОЛЬШОЕ СКРУГЛЕНИЕ ДЛЯ КОРРЕКТНОГО ОБРЕЗАНИЯ ЛОГОТИПА */
    border-bottom-right-radius: 330px;
    overflow: hidden;
}

/* ========================================
   ПРОСТАЯ СЕКЦИЯ С ГАРМОШКОЙ
   Статичная секция без анимаций
   ======================================== */

/* Секция гармошки - простая статичная */
.garmoshka-section {
    width: 100vw;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Изображение гармошки - меняет пропорции под размер секции */
.garmoshka-image {
    width: 100%;
    height: 100%;
    object-fit: fill; /* ЗАПОЛНЯЕТ секцию полностью, изменяя пропорции */
    object-position: center;
    display: block;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .garmoshka-section {
        height: 50vh; /* Немного меньше на мобильных */
    }
}
