/* Mobile 2025 Styles for Main Page and Models Page */
/* For index.html and models.html on mobile devices (max-width: 768px) */

/* Mobile-specific variables */
:root {
  --mobile-primary: #6366f1;
  --mobile-secondary: #8b5cf6;
  --mobile-accent: #06b6d4;
  --mobile-light: #ffffff;
  --mobile-dark: #0f172a;
  --mobile-text: #334155;
  --mobile-border: #e2e8f0;
  --mobile-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --mobile-glass: rgba(255, 255, 255, 0.95);
  --mobile-backdrop: blur(25px);
  --mobile-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --mobile-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.16);
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  /* Base mobile styles */
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--mobile-dark);
    background: var(--mobile-light);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }
  

  

  

  

  
  /* Уменьшаем размер hero video на 40% в мобильной версии */
  .hero video {
    height: 44.1vh !important; /* 49vh - 10% = 44.1vh */
    margin-top: 1cm !important; /* Приспускаем на 1см под шапку */
  }
  
  /* Для очень маленьких экранов */
  @media (max-width: 575px) {
    .hero video {
      height: 37.8vh !important; /* 42vh - 10% = 37.8vh */
      margin-top: 1cm !important; /* Приспускаем на 1см под шапку */
    }
  }
  
  /* Современная мобильная шапка 2025 */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--mobile-glass);
    backdrop-filter: var(--mobile-backdrop);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: var(--mobile-shadow);
    padding: 0;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    max-width: 100%;
    position: relative;
  }
  
  /* Логотип */
  .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
    transition: all 0.3s ease;
  }
  
  .logo img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.2));
    transition: all 0.3s ease;
  }
  
  .logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(99, 102, 241, 0.3));
  }
  
  /* Скрываем десктопную навигацию */
  .nav-links {
    display: none;
  }
  
  /* Правая часть с контролами */
  .right-controls {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .mobile-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
  }
  
  .right-controls .btn.ghost {
    display: none;
  }
  
  /* Языковые кнопки */
  .mobile-lang-switcher {
    display: flex;
    gap: 8px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(99, 102, 241, 0.1);
  }
  
  .mobile-lang-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--mobile-text);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  
  .mobile-lang-btn span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mobile-text);
    transition: all 0.3s ease;
  }
  
  .mobile-lang-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
  }
  
  .mobile-lang-btn.active span {
    color: white;
  }
  
  .mobile-lang-btn:hover:not(.active) {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
  }
  
  /* Современный бургер-меню 2025 */
  .nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1001;
  }
  
  .nav-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .nav-toggle:hover::before {
    opacity: 1;
  }
  
  .nav-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  }
  
  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  .nav-toggle span:nth-child(1) {
    transform-origin: center;
  }
  
  .nav-toggle span:nth-child(2) {
    transform-origin: center;
  }
  
  .nav-toggle span:nth-child(3) {
    transform-origin: center;
  }
  
  /* Анимация бургера при открытии */
  .nav-toggle.is-active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
  }
  
  .nav-toggle.is-active span {
    background: white;
  }
  
  .nav-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  
  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }
  
  .nav-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }
  
  /* Скрываем текст под бургером */
  .nav-toggle .menu-text {
    display: none;
  }
  
  /* Современное мобильное меню */
  .mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mobile-drawer.open {
    left: 0;
  }
  
  .drawer-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 95%;
    max-width: 380px;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    backdrop-filter: var(--mobile-backdrop);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3);
  }
  
  .drawer-head {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .drawer-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  
  .drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .drawer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
  }
  
  .drawer-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
  }
  
  .drawer-nav a {
    color: white;
    text-decoration: none;
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    overflow: hidden;
  }
  
  .drawer-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
  }
  
  .drawer-nav a:hover::before {
    left: 100%;
  }
  
  .drawer-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  .drawer-contacts {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .drawer-phone {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .drawer-phone:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
  }
  
  .social-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .social-row a {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
  }
  
  .social-row a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
  }
  
  .drawer-cta {
    display: block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: white;
    text-decoration: none;
    padding: 20px 28px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 20px;
  }
  
  .drawer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
  }
  
  /* Отступ для контента под фиксированной шапкой */
  .hero {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: relative;
    background: transparent !important;
    overflow: hidden;
    padding: 0 !important;
    top: 0 !important;
  }
  

  

  
  /* Дополнительные улучшения для мобильной версии 2025 */
  
  /* Плавные переходы для всех интерактивных элементов */
  * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Улучшенные тени для карточек */
  .service-card, .stat-card, .achievement-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
  }
  
  /* Анимация загрузки страницы */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .services, .statistics, .achievements, .logos {
    animation: fadeInUp 0.8s ease-out;
  }
  
  /* Улучшенные hover эффекты для мобильных устройств */
  @media (hover: hover) {
    .service-card:hover, .stat-card:hover, .achievement-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    }
  }
  
  /* Адаптивные отступы для мобильных устройств */
  .section-header {
    padding: 0 20px;
    margin-bottom: 32px;
  }
  
  .service-cards, .stats-grid, .achievements-grid {
    padding: 0 20px;
    gap: 20px;
  }
  
  /* Улучшенная типографика для мобильных устройств */
  h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  
  p {
    line-height: 1.6;
    color: var(--mobile-text);
  }
  
  /* Оптимизация для устройств с высоким DPI */
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
      image-rendering: -webkit-optimize-contrast;
      image-rendering: crisp-edges;
    }
  }
  
  /* Улучшенная доступность */
  .nav-toggle:focus,
  .mobile-lang-btn:focus,
  .icon-link:focus {
    outline: 2px solid var(--mobile-primary);
    outline-offset: 2px;
  }
  
  /* Дополнительные анимации для шапки */
  @keyframes slideInFromTop {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Анимация появления шапки */
  .header {
    animation: slideInFromTop 0.6s ease-out;
  }
  
  /* Улучшенные тени для глубины */
  .header {
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.08),
      0 1px 3px rgba(0, 0, 0, 0.1);
  }

   .contact-dock.interactive-futuristic a:hover + a i,
   .contact-dock.interactive-futuristic a:hover ~ a i {
     animation: neighborPulse 0.6s ease-in-out;
   }

   /* ===== КОНТАКТНАЯ ПАНЕЛЬ 2025 - ВАРИАНТ 5: ГОЛОГРАФИЧЕСКИЙ КРИСТАЛЛ ===== */
   .contact-dock.holographic-crystal {
     position: fixed;
     bottom: 20px;
     left: 50%;
     transform: translateX(-50%);
     background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(59, 130, 246, 0.1));
     padding: 16px 20px;
     border-radius: 20px;
     display: flex;
     gap: 12px;
     z-index: 9998;
     box-shadow: 
       0 0 50px rgba(147, 51, 234, 0.3),
       0 8px 32px rgba(0, 0, 0, 0.4);
     backdrop-filter: blur(20px);
     border: 1px solid rgba(147, 51, 234, 0.3);
     animation: holographicFloat 6s ease-in-out infinite;
   }

   .contact-dock.holographic-crystal a {
     width: 48px;
     height: 48px;
     display: flex;
     align-items: center;
     justify-content: center;
     background: rgba(147, 51, 234, 0.15);
     border-radius: 12px;
     color: #a855f7;
     text-decoration: none;
     transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     border: 1px solid rgba(147, 51, 234, 0.2);
     overflow: hidden;
     cursor: pointer;
   }

   .contact-dock.holographic-crystal a::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
     transform: translateX(-100%);
     transition: transform 0.6s ease;
   }

   .contact-dock.holographic-crystal a::after {
     content: '';
     position: absolute;
     top: -1px;
     left: -1px;
     right: -1px;
     bottom: -1px;
     background: conic-gradient(from 0deg, #a855f7, #3b82f6, #06b6d4, #10b981, #f59e0b, #ef4444, #a855f7);
     border-radius: 13px;
     z-index: -1;
     opacity: 0;
     transition: opacity 0.4s ease;
     animation: conicRotate 3s linear infinite;
   }

   .contact-dock.holographic-crystal a:hover {
     background: rgba(147, 51, 234, 0.3);
     color: #fbbf24;
     transform: translateY(-6px) scale(1.15) rotateY(15deg);
     box-shadow: 
       0 0 40px rgba(147, 51, 234, 0.6),
       0 12px 32px rgba(0, 0, 0, 0.4);
     border-color: rgba(147, 51, 234, 0.8);
   }

   .contact-dock.holographic-crystal a:hover::before {
     transform: translateX(100%);
   }

   .contact-dock.holographic-crystal a:hover::after {
     opacity: 0.8;
   }

   .contact-dock.holographic-crystal a i {
     font-size: 18px;
     filter: drop-shadow(0 0 12px rgba(147, 51, 234, 0.7));
     transition: all 0.5s ease;
     z-index: 1;
     position: relative;
   }

   .contact-dock.holographic-crystal a:hover i {
     transform: scale(1.3) rotate(10deg);
     filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.9));
   }

   /* ===== КОНТАКТНАЯ ПАНЕЛЬ 2025 - ВАРИАНТ 6: НЕОНОВЫЙ КИБЕРПАНК ===== */
   .contact-dock.cyberpunk-neon {
     position: fixed;
     bottom: 20px;
     left: 50%;
     transform: translateX(-50%);
     background: rgba(0, 0, 0, 0.9);
     padding: 16px 20px;
     border-radius: 16px;
     display: flex;
     gap: 12px;
     z-index: 9998;
     box-shadow: 
       0 0 60px rgba(0, 255, 255, 0.4),
       0 0 30px rgba(255, 0, 255, 0.3),
       0 8px 32px rgba(0, 0, 0, 0.6);
     backdrop-filter: blur(20px);
     border: 2px solid rgba(0, 255, 255, 0.5);
     animation: cyberpunkGlow 4s ease-in-out infinite alternate;
   }

   .contact-dock.cyberpunk-neon a {
     width: 48px;
     height: 48px;
     display: flex;
     align-items: center;
     justify-content: center;
     background: rgba(0, 255, 255, 0.1);
     border-radius: 8px;
     color: #00ffff;
     text-decoration: none;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     border: 1px solid rgba(0, 255, 255, 0.3);
     overflow: hidden;
     cursor: pointer;
   }

   .contact-dock.cyberpunk-neon a::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
     transform: translateX(-100%);
     transition: transform 0.5s ease;
   }

   .contact-dock.cyberpunk-neon a::after {
     content: '';
     position: absolute;
     top: -2px;
     left: -2px;
     right: -2px;
     bottom: -2px;
     background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ffff);
     border-radius: 10px;
     z-index: -1;
     opacity: 0;
     transition: opacity 0.4s ease;
     background-size: 300% 300%;
     animation: neonScan 2s linear infinite;
   }

   .contact-dock.cyberpunk-neon a:hover {
     background: rgba(0, 255, 255, 0.3);
     color: #ffffff;
     transform: translateY(-4px) scale(1.1);
     box-shadow: 
       0 0 30px rgba(0, 255, 255, 0.8),
       0 0 15px rgba(255, 0, 255, 0.6);
     border-color: rgba(0, 255, 255, 0.8);
   }

   .contact-dock.cyberpunk-neon a:hover::before {
     transform: translateX(100%);
   }

   .contact-dock.cyberpunk-neon a:hover::after {
     opacity: 0.9;
   }

   .contact-dock.cyberpunk-neon a i {
     font-size: 18px;
     filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.8));
     transition: all 0.4s ease;
     z-index: 1;
     position: relative;
   }

   .contact-dock.cyberpunk-neon a:hover i {
     transform: scale(1.2);
     filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1));
   }

   /* ===== КОНТАКТНАЯ ПАНЕЛЬ 2025 - ВАРИАНТ 7: ЖИДКИЙ МЕТАЛЛ ===== */
   .contact-dock.liquid-metal {
     position: fixed;
     bottom: 20px;
     left: 50%;
     transform: translateX(-50%);
     background: linear-gradient(135deg, rgba(75, 85, 99, 0.9), rgba(31, 41, 55, 0.9));
     padding: 16px 20px;
     border-radius: 50px;
     display: flex;
     gap: 12px;
     z-index: 9998;
     box-shadow: 
       0 0 40px rgba(156, 163, 175, 0.4),
       0 8px 32px rgba(0, 0, 0, 0.5);
     backdrop-filter: blur(20px);
     border: 1px solid rgba(156, 163, 175, 0.3);
     animation: liquidFlow 8s ease-in-out infinite;
   }

   .contact-dock.liquid-metal a {
     width: 48px;
     height: 48px;
     display: flex;
     align-items: center;
     justify-content: center;
     background: linear-gradient(135deg, rgba(156, 163, 175, 0.2), rgba(75, 85, 99, 0.2));
     border-radius: 50%;
     color: #d1d5db;
     text-decoration: none;
     transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     border: 1px solid rgba(156, 163, 175, 0.2);
     overflow: hidden;
     cursor: pointer;
   }

   .contact-dock.liquid-metal a::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
     opacity: 0;
     transition: opacity 0.6s ease;
   }

   .contact-dock.liquid-metal a::after {
     content: '';
     position: absolute;
     top: -1px;
     left: -1px;
     right: -1px;
     bottom: -1px;
     background: linear-gradient(45deg, #9ca3af, #6b7280, #4b5563, #374151, #9ca3af);
     border-radius: 50%;
     z-index: -1;
     opacity: 0;
     transition: opacity 0.6s ease;
     background-size: 400% 400%;
     animation: metalShine 3s linear infinite;
   }

   .contact-dock.liquid-metal a:hover {
     background: linear-gradient(135deg, rgba(156, 163, 175, 0.4), rgba(75, 85, 99, 0.4));
     color: #fbbf24;
     transform: translateY(-8px) scale(1.2);
     box-shadow: 
       0 0 30px rgba(156, 163, 175, 0.6),
       0 12px 32px rgba(0, 0, 0, 0.4);
     border-color: rgba(156, 163, 175, 0.6);
   }

   .contact-dock.liquid-metal a:hover::before {
     opacity: 1;
   }

   .contact-dock.liquid-metal a:hover::after {
     opacity: 0.8;
   }

   .contact-dock.liquid-metal a i {
     font-size: 18px;
     filter: drop-shadow(0 0 6px rgba(156, 163, 175, 0.6));
     transition: all 0.6s ease;
     z-index: 1;
     position: relative;
   }

   .contact-dock.liquid-metal a:hover i {
     transform: scale(1.4) rotate(15deg);
     filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.8));
   }

   /* ===== КОНТАКТНАЯ ПАНЕЛЬ 2025 - ВАРИАНТ 8: КВАНТОВЫЙ ПОРТАЛ ===== */
   .contact-dock.quantum-portal {
     position: fixed;
     bottom: 20px;
     left: 50%;
     transform: translateX(-50%);
     background: radial-gradient(circle, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
     padding: 16px 20px;
     border-radius: 24px;
     display: flex;
     gap: 12px;
     z-index: 9998;
     box-shadow: 
       0 0 80px rgba(99, 102, 241, 0.5),
       0 0 40px rgba(139, 92, 246, 0.3),
       0 8px 32px rgba(0, 0, 0, 0.6);
     backdrop-filter: blur(20px);
     border: 1px solid rgba(99, 102, 241, 0.4);
     animation: quantumPulse 5s ease-in-out infinite;
   }

   .contact-dock.quantum-portal a {
     width: 48px;
     height: 48px;
     display: flex;
     align-items: center;
     justify-content: center;
     background: rgba(99, 102, 241, 0.15);
     border-radius: 16px;
     color: #818cf8;
     text-decoration: none;
     transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     border: 1px solid rgba(99, 102, 241, 0.2);
     overflow: hidden;
     cursor: pointer;
   }

   .contact-dock.quantum-portal a::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.4), transparent);
     opacity: 0;
     transition: opacity 0.7s ease;
     animation: quantumSpin 4s linear infinite;
   }

   .contact-dock.quantum-portal a::after {
     content: '';
     position: absolute;
     top: -2px;
     left: -2px;
     right: -2px;
     bottom: -2px;
     background: radial-gradient(circle, rgba(99, 102, 241, 0.8), transparent 70%);
     border-radius: 18px;
     z-index: -1;
     opacity: 0;
     transition: opacity 0.7s ease;
     animation: quantumRipple 3s ease-in-out infinite;
   }

   .contact-dock.quantum-portal a:hover {
     background: rgba(99, 102, 241, 0.4);
     color: #fbbf24;
     transform: translateY(-6px) scale(1.15) rotateZ(10deg);
     box-shadow: 
       0 0 50px rgba(99, 102, 241, 0.8),
       0 0 25px rgba(139, 92, 246, 0.6);
     border-color: rgba(99, 102, 241, 0.8);
   }

   .contact-dock.quantum-portal a:hover::before {
     opacity: 1;
   }

   .contact-dock.quantum-portal a:hover::after {
     opacity: 0.9;
   }

   .contact-dock.quantum-portal a i {
     font-size: 18px;
     filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.7));
     transition: all 0.7s ease;
     z-index: 1;
     position: relative;
   }

   .contact-dock.quantum-portal a:hover i {
     transform: scale(1.3) rotate(20deg);
     filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.9));
   }

   /* ===== КОНТАКТНАЯ ПАНЕЛЬ 2025 - ВАРИАНТ 9: БИОЛЮМИНЕСЦЕНЦИЯ ===== */
   .contact-dock.bioluminescence {
     position: fixed;
     bottom: 20px;
     left: 50%;
     transform: translateX(-50%);
     background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
     padding: 16px 20px;
     border-radius: 28px;
     display: flex;
     gap: 12px;
     z-index: 9998;
     box-shadow: 
       0 0 60px rgba(34, 197, 94, 0.4),
       0 0 30px rgba(16, 185, 129, 0.3),
       0 8px 32px rgba(0, 0, 0, 0.5);
     backdrop-filter: blur(20px);
     border: 1px solid rgba(34, 197, 94, 0.3);
     animation: bioGlow 6s ease-in-out infinite alternate;
   }

   .contact-dock.bioluminescence a {
     width: 48px;
     height: 48px;
     display: flex;
     align-items: center;
     justify-content: center;
     background: rgba(34, 197, 94, 0.15);
     border-radius: 20px;
     color: #4ade80;
     text-decoration: none;
     transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     border: 1px solid rgba(34, 197, 94, 0.2);
     overflow: hidden;
     cursor: pointer;
   }

   .contact-dock.bioluminescence a::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: radial-gradient(circle at center, rgba(34, 197, 94, 0.4) 0%, transparent 70%);
     opacity: 0;
     transition: opacity 0.8s ease;
     animation: bioPulse 4s ease-in-out infinite;
   }

   .contact-dock.bioluminescence a::after {
     content: '';
     position: absolute;
     top: -1px;
     left: -1px;
     right: -1px;
     bottom: -1px;
     background: linear-gradient(45deg, #22c55e, #16a34a, #15803d, #166534, #22c55e);
     border-radius: 21px;
     z-index: -1;
     opacity: 0;
     transition: opacity 0.8s ease;
     background-size: 300% 300%;
     animation: bioFlow 5s linear infinite;
   }

   .contact-dock.bioluminescence a:hover {
     background: rgba(34, 197, 94, 0.4);
     color: #fbbf24;
     transform: translateY(-8px) scale(1.2);
     box-shadow: 
       0 0 40px rgba(34, 197, 94, 0.8),
       0 0 20px rgba(16, 185, 129, 0.6);
     border-color: rgba(34, 197, 94, 0.8);
   }

   .contact-dock.bioluminescence a:hover::before {
     opacity: 1;
   }

   .contact-dock.bioluminescence a:hover::after {
     opacity: 0.9;
   }

   .contact-dock.bioluminescence a i {
     font-size: 18px;
     filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.7));
     transition: all 0.8s ease;
     z-index: 1;
     position: relative;
   }

   .contact-dock.bioluminescence a:hover i {
     transform: scale(1.4) rotate(25deg);
     filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.9));
   }

   /* ===== АНИМАЦИИ ДЛЯ ВСЕХ ВАРИАНТОВ ===== */
   @keyframes float {
     0%, 100% {
       transform: translateX(-50%) translateY(0px);
     }
     50% {
       transform: translateX(-50%) translateY(-8px);
     }
   }

   @keyframes glow {
     from {
       box-shadow: 
         0 0 30px rgba(59, 130, 246, 0.3),
         0 8px 32px rgba(0, 0, 0, 0.4);
     }
     to {
       box-shadow: 
         0 0 40px rgba(59, 130, 246, 0.5),
         0 8px 32px rgba(0, 0, 0, 0.4);
     }
   }

   @keyframes interactiveGlow {
     from {
       box-shadow: 
         0 0 40px rgba(139, 92, 246, 0.4),
         0 8px 32px rgba(0, 0, 0, 0.5);
     }
     to {
       box-shadow: 
         0 0 50px rgba(139, 92, 246, 0.6),
         0 8px 32px rgba(0, 0, 0, 0.5);
     }
   }

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

   @keyframes neighborGlow {
     0%, 100% {
       background: rgba(139, 92, 246, 0.1);
       transform: translateY(0) scale(1);
     }
     50% {
       background: rgba(236, 72, 153, 0.2);
       transform: translateY(-2px) scale(1.05);
     }
   }

   @keyframes neighborPulse {
     0%, 100% {
       transform: scale(1);
       filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
     }
     50% {
       transform: scale(1.1);
       filter: drop-shadow(0 0 15px rgba(236, 72, 153, 0.8));
     }
   }

   /* Новые анимации для вариантов 5-9 */
   @keyframes holographicFloat {
     0%, 100% {
       transform: translateX(-50%) translateY(0px) rotateZ(0deg);
     }
     25% {
       transform: translateX(-50%) translateY(-6px) rotateZ(1deg);
     }
     50% {
       transform: translateX(-50%) translateY(-12px) rotateZ(0deg);
     }
     75% {
       transform: translateX(-50%) translateY(-6px) rotateZ(-1deg);
     }
   }

   @keyframes conicRotate {
     from {
       transform: rotate(0deg);
     }
     to {
       transform: rotate(360deg);
     }
   }

   @keyframes cyberpunkGlow {
     from {
       box-shadow: 
         0 0 60px rgba(0, 255, 255, 0.4),
         0 0 30px rgba(255, 0, 255, 0.3),
         0 8px 32px rgba(0, 0, 0, 0.6);
     }
     to {
       box-shadow: 
         0 0 80px rgba(0, 255, 255, 0.6),
         0 0 40px rgba(255, 0, 255, 0.5),
         0 8px 32px rgba(0, 0, 0, 0.6);
     }
   }

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

   @keyframes liquidFlow {
     0%, 100% {
       transform: translateX(-50%) translateY(0px);
       border-radius: 50px;
     }
     25% {
       transform: translateX(-50%) translateY(-4px);
       border-radius: 45px;
     }
     50% {
       transform: translateX(-50%) translateY(-8px);
       border-radius: 40px;
     }
     75% {
       transform: translateX(-50%) translateY(-4px);
       border-radius: 45px;
     }
   }

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

   @keyframes quantumPulse {
     0%, 100% {
       box-shadow: 
         0 0 80px rgba(99, 102, 241, 0.5),
         0 0 40px rgba(139, 92, 246, 0.3),
         0 8px 32px rgba(0, 0, 0, 0.6);
       transform: translateX(-50%) scale(1);
     }
     50% {
       box-shadow: 
         0 0 100px rgba(99, 102, 241, 0.7),
         0 0 60px rgba(139, 92, 246, 0.5),
         0 8px 32px rgba(0, 0, 0, 0.6);
       transform: translateX(-50%) scale(1.02);
     }
   }

   @keyframes quantumSpin {
     from {
       transform: rotate(0deg);
     }
     to {
       transform: rotate(360deg);
     }
   }

   @keyframes quantumRipple {
     0%, 100% {
       opacity: 0;
       transform: scale(1);
     }
     50% {
       opacity: 0.3;
       transform: scale(1.1);
     }
   }

   @keyframes bioGlow {
     from {
       box-shadow: 
         0 0 60px rgba(34, 197, 94, 0.4),
         0 0 30px rgba(16, 185, 129, 0.3),
         0 8px 32px rgba(0, 0, 0, 0.5);
     }
     to {
       box-shadow: 
         0 0 80px rgba(34, 197, 94, 0.6),
         0 0 50px rgba(16, 185, 129, 0.5),
         0 8px 32px rgba(0, 0, 0, 0.5);
     }
   }

   @keyframes bioPulse {
     0%, 100% {
       opacity: 0;
       transform: scale(1);
     }
     50% {
       opacity: 0.6;
       transform: scale(1.2);
     }
   }

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

   /* ===== АДАПТИВНОСТЬ ДЛЯ РАЗНЫХ РАЗМЕРОВ ===== */
   @media (max-width: 480px) {
     .contact-dock.neo-gradient,
     .contact-dock.minimal,
     .contact-dock.futuristic,
     .contact-dock.interactive-futuristic,
     .contact-dock.holographic-crystal,
     .contact-dock.cyberpunk-neon,
     .contact-dock.liquid-metal,
     .contact-dock.quantum-portal,
     .contact-dock.bioluminescence {
       bottom: 16px;
       padding: 12px 16px;
       gap: 8px;
     }

     .contact-dock.neo-gradient a,
     .contact-dock.minimal a,
     .contact-dock.futuristic a,
     .contact-dock.interactive-futuristic a,
     .contact-dock.holographic-crystal a,
     .contact-dock.cyberpunk-neon a,
     .contact-dock.liquid-metal a,
     .contact-dock.quantum-portal a,
     .contact-dock.bioluminescence a {
       width: 44px;
       height: 44px;
     }

     .contact-dock.neo-gradient a i,
     .contact-dock.minimal a i,
     .contact-dock.futuristic a i,
     .contact-dock.interactive-futuristic a i,
     .contact-dock.holographic-crystal a i,
     .contact-dock.cyberpunk-neon a i,
     .contact-dock.liquid-metal a i,
     .contact-dock.quantum-portal a i,
     .contact-dock.bioluminescence a i {
       font-size: 16px;
     }
   }

   @media (max-width: 375px) {
     .contact-dock.neo-gradient,
     .contact-dock.minimal,
     .contact-dock.futuristic,
     .contact-dock.interactive-futuristic,
     .contact-dock.holographic-crystal,
     .contact-dock.cyberpunk-neon,
     .contact-dock.liquid-metal,
     .contact-dock.quantum-portal,
     .contact-dock.bioluminescence {
       bottom: 12px;
       padding: 10px 14px;
       gap: 6px;
     }

     .contact-dock.neo-gradient a,
     .contact-dock.minimal a,
     .contact-dock.futuristic a,
     .contact-dock.interactive-futuristic a,
     .contact-dock.holographic-crystal a,
     .contact-dock.cyberpunk-neon a,
     .contact-dock.liquid-metal a,
     .contact-dock.quantum-portal a,
     .contact-dock.bioluminescence a {
       width: 40px;
       height: 40px;
     }

     .contact-dock.neo-gradient a i,
     .contact-dock.minimal a i,
     .contact-dock.futuristic a i,
     .contact-dock.interactive-futuristic a i,
     .contact-dock.holographic-crystal a i,
     .contact-dock.cyberpunk-neon a i,
     .contact-dock.liquid-metal a i,
     .contact-dock.quantum-portal a i,
     .contact-dock.bioluminescence a i {
       font-size: 15px;
     }
   }

     /* ===== БАЗОВЫЕ СТИЛИ CONTACT DOCK ===== */
  .contact-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 16px 20px;
    border-radius: 20px;
    display: flex;
    gap: 12px;
    z-index: 9998;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
    overflow: hidden;
  }

  .contact-dock a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
  }

  .contact-dock a:hover {
    background: rgba(255, 255, 255, 1);
    color: #4c51bf;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .contact-dock a i {
    font-size: 18px;
  }

  /* Дополнительные исправления для мобильных устройств */
  @supports (-webkit-touch-callout: none) {
    .contact-dock {
      max-width: calc(100vw - 20px);
      left: 50% !important;
      transform: translateX(-50%) !important;
      right: auto !important;
    }
  }

  @media (max-width: 375px) {
    .contact-dock {
      max-width: calc(100vw - 16px);
      padding: 12px 16px;
      gap: 8px;
    }
    .contact-dock a {
      width: 44px !important;
      height: 44px !important;
    }
    .contact-dock a i {
      font-size: 16px !important;
    }
  }

  @media (max-width: 430px) and (max-height: 932px) {
    .contact-dock {
      max-width: calc(100vw - 24px);
      bottom: 16px;
    }
  }

  /* ===== ПЕРЕХОДЫ МЕЖДУ ВАРИАНТАМИ ===== */

   .contact-dock.neo-gradient,
   .contact-dock.minimal,
   .contact-dock.futuristic,
   .contact-dock.interactive-futuristic,
   .contact-dock.holographic-crystal,
   .contact-dock.cyberpunk-neon,
   .contact-dock.liquid-metal,
   .contact-dock.quantum-portal,
   .contact-dock.bioluminescence {
     animation-delay: 0.2s;
   }

   /* ===== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ===== */
   .contact-dock.neo-gradient::after {
     content: '';
     position: absolute;
     top: -2px;
     left: -2px;
     right: -2px;
     bottom: -2px;
     background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
     border-radius: 26px;
     z-index: -1;
     opacity: 0;
     transition: opacity 0.3s ease;
   }

   .contact-dock.neo-gradient:hover::after {
     opacity: 0.3;
   }

   .contact-dock.minimal::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
     border-radius: 50px;
     opacity: 0;
     transition: opacity 0.3s ease;
   }

   .contact-dock.minimal:hover::before {
     opacity: 1;
   }

   .contact-dock.futuristic::before {
     content: '';
     position: absolute;
     top: -1px;
     left: -1px;
     right: -1px;
     bottom: -1px;
     background: linear-gradient(45deg, #3b82f6, #8b5cf6, #3b82f6);
     border-radius: 21px;
     z-index: -1;
     opacity: 0.5;
     animation: borderGlow 2s linear infinite;
   }

     @keyframes borderGlow {
    0%, 100% {
      opacity: 0.5;
    }
    50% {
      opacity: 0.8;
    }
  }
}

  /* Member description mobile styles */
  .member-description {
    margin-top: 16px;
    text-align: left;
  }

  .member-description p {
    margin: 0 0 10px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    text-align: left;
  }

  .member-description p:last-child {
    margin-bottom: 0;
  }
}


