/* ДИЗАЙН В СТИЛЕ MAGNUMFOCUS С ЧЁРНЫМ ФОНОМ */

/* CSS переменные в стиле MagnumFocus с чёрным фоном */
:root {
    --primary: #ffffff;
    --secondary: #000000;
    --accent: #00d4ff;
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-light: #9ca3af;
    --background: #000000;
    --background-secondary: #111111;
    --border: #333333;
    --border-light: #222222;
    --shadow: 0 1px 3px 0 rgba(255, 255, 255, 0.1), 0 1px 2px 0 rgba(255, 255, 255, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(255, 255, 255, 0.1), 0 4px 6px -2px rgba(255, 255, 255, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(255, 255, 255, 0.1), 0 10px 10px -5px rgba(255, 255, 255, 0.04);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
  }
  
  /* Базовые стили */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    padding: 0;
  }
  
  /* Контейнеры в стиле MagnumFocus */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }
  
  /* Адаптивность контейнера для мобильных устройств */
  @media (max-width: 768px) {
    .container {
      padding: 0 16px;
    }
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 0 12px;
    }
  }
  
  @media (max-width: 360px) {
    .container {
      padding: 0 8px;
    }
  }
  
  /* Минималистичный заголовок */
  header {
    background: #344256;
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  
  /* Информационные блоки в стиле MagnumFocus */
  .info-block {
    background: var(--background-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    opacity: 1;
    transform: none;
  }
  
  /* Блок "Как это работает" */
  .how-it-works {
    opacity: 1;
    transform: none;
  }
  
  /* Стили для верхнего блока приветствия */
  header .info-block-title,
  header .info-block-text {
    color: #000000 !important;
  }
  
  /* Стили для главной страницы - текст должен быть виден */
  .hero .info-block-title,
  .hero .info-block-text {
    color: #000000 !important;
  }
  
  /* Фон для главной страницы с легким градиентом */
  .hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 40px 0 !important;
  }
  
  .info-block-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #000000;
    letter-spacing: -0.025em;
  }
  
  .info-block-text {
    font-size: 1rem;
    color: #000000;
    line-height: 1.7;
    font-weight: 400;
  }
  
  /* Навигация в стиле MagnumFocus */
  .hero-top-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    scroll-behavior: smooth;
  }
  
  /* Адаптивность для навигации на мобильных устройствах */
  @media (max-width: 768px) {
    .hero-top-links {
      gap: 10px;
      padding: 8px 0;
      justify-content: center;
      flex-wrap: wrap;
    }
  
    .hero-top-links a {
      padding: 10px 16px;
      font-size: 0.85rem;
      min-width: auto;
      white-space: nowrap;
      border-radius: 10px;
      font-weight: 500;
    }
  }
  
  @media (max-width: 480px) {
    .hero-top-links {
      gap: 8px;
      padding: 6px 0;
      justify-content: center;
      flex-wrap: wrap;
    }
  
    .hero-top-links a {
      padding: 8px 12px;
      font-size: 0.8rem;
      min-width: auto;
      border-radius: 8px;
      font-weight: 500;
    }
  }
  
  @media (max-width: 360px) {
    .hero-top-links {
      gap: 6px;
      padding: 4px 0;
      justify-content: center;
      flex-wrap: wrap;
    }
  
    .hero-top-links a {
      padding: 6px 10px;
      font-size: 0.75rem;
      min-width: auto;
      border-radius: 6px;
      font-weight: 500;
    }
  }
  
  /* Стили для скроллбара WebKit (Chrome, Safari, Edge) */
  .hero-top-links::-webkit-scrollbar {
    height: 4px;
  }
  
  .hero-top-links::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .hero-top-links::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
  }
  
  .hero-top-links::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
  
  .hero-top-links a {
    background: linear-gradient(45deg, #0f172a, #1e293b, #334155, #0f172a);
    background-size: 300% 300%;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.025em;
    flex-shrink: 0;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: buttonDarkGradient 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
  }
  
  /* Улучшенные стили для мобильных устройств */
  @media (max-width: 768px) {
    .hero-top-links a {
      background: linear-gradient(135deg, #1e293b, #334155);
      background-size: 200% 200%;
      border: 1px solid rgba(71, 85, 105, 0.3);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
      animation: none;
    }
    
    .hero-top-links a:hover {
      background: linear-gradient(135deg, #334155, #475569);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
  }
  
  @media (max-width: 480px) {
    .hero-top-links a {
      background: linear-gradient(135deg, #1e293b, #334155);
      background-size: 200% 200%;
      border: 1px solid rgba(71, 85, 105, 0.3);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
      animation: none;
    }
    
    .hero-top-links a:hover {
      background: linear-gradient(135deg, #334155, #475569);
      transform: translateY(-1px);
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    }
  }
  
  /* Специальные стили для кнопки регистрации под блоком приветствия */
  .hero .hero-top-links a {
    padding: 20px 40px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    min-width: 280px !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border: 3px solid rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(45deg, #1e293b, #334155, #475569, #1e293b) !important;
    background-size: 400% 400% !important;
    animation: buttonDarkGradient 3s ease-in-out infinite !important;
  }

  /* Изначально скрываем CTA регистрации на главной до окончания анимации слов */
  .delayed-register {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease !important;
  }

  /* Появление CTA после анимации слов */
  .delayed-register.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  
  .hero .hero-top-links a:hover {
    transform: translateY(-5px) scale(1.08) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background: linear-gradient(45deg, #334155, #475569, #64748b, #334155) !important;
    background-size: 300% 300% !important;
    animation: buttonDarkGradient 1.5s ease-in-out infinite !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
  }
  
  .hero .hero-top-links a:active {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: none !important;
    background: linear-gradient(45deg, #0f172a, #1e293b, #334155, #0f172a) !important;
    background-size: 400% 400% !important;
    animation: buttonDarkGradient 0.8s ease-in-out infinite !important;
  }
  
  .hero-top-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmerFlow 3s ease-in-out infinite;
  }
  
  @keyframes shimmerFlow {
    0% {
      left: -100%;
    }
    100% {
      left: 100%;
    }
  }
  
  .hero-top-links a:hover {
    background: linear-gradient(45deg, #1e293b, #334155, #475569, #1e293b);
    background-size: 200% 200%;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(51, 65, 85, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: buttonDarkGradient 1s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  /* Основная секция в стиле MagnumFocus */
  .hero {
    padding: 10px 0;
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
  }
  
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    max-width: 1200px;
    width: 100%;
  }
  
  /* Заголовок в стиле MagnumFocus */
  .hero-title-container {
    margin-bottom: 0;
    opacity: 1;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    max-width: none;
    width: 100%;
  }
  
  .hero-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    height: auto;
    min-height: 100px;
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInUpButton {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  

  
  /* Кнопка регистрации в стиле MagnumFocus */
  .hero-cta-magnum {
    margin-top: 40px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 60px;
    opacity: 1 !important;
    transform: translateY(0);
    transition: all 0.8s ease;
    visibility: visible !important;
  }
  
  .hero-btn-magnum {
    display: inline-block !important;
    background: linear-gradient(45deg, #0f172a, #1e293b, #334155, #0f172a);
    background-size: 300% 300%;
    color: #ffffff !important;
    border: 2px solid transparent;
    padding: 18px 36px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    animation: buttonDarkGradient 4s ease-in-out infinite;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 100 !important;
  }
  
  .hero-btn-magnum::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmerFlow 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
  }
  
  .hero-btn-magnum:hover {
    background: linear-gradient(45deg, #1e293b, #334155, #475569, #1e293b);
    background-size: 200% 200%;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(51, 65, 85, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: buttonDarkGradient 1s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  .hero-btn-magnum:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    animation: buttonDarkGradient 0.5s ease-in-out infinite;
    background: linear-gradient(45deg, #0f172a, #1e293b, #334155, #0f172a);
    background-size: 300% 300%;
  }
  
  /* Скрываем все остальные элементы */
  .how-it-works {
    display: block;
  }
  
  .modern-status-panel,
  .hero-cta,
  .additional-links,
  .status,
  .msg {
    display: block;
  }
  
  /* Стили для статусных сообщений */
  .status, .msg {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin: 8px 0 !important;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    font-size: 1rem !important;
  }
  
  .status:hover, .msg:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Стили для кнопок автоотслеживания */
  .hero-top-links a[href*="tracking"], 
  .hero-top-links a[href*="auto"] {
    background: #3b82f6 !important;
    background: linear-gradient(45deg, #ff0080, #00ffff, #ff8000, #8000ff, #ffff00, #ff0080) !important;
    background-size: 600% 600% !important;
    color: white !important;
    border-color: #3b82f6 !important;
    font-weight: 600 !important;
    border-color: transparent !important;
    font-weight: 700 !important;
    animation: buttonDarkGradient 2s ease-in-out infinite !important;
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.4) !important;
  }
  
  /* Стили для кнопки автоотслеживания */
  .btn-toggle {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    margin: 12px auto !important;
    display: block !important;
    min-width: 240px !important;
  }
  
  .btn-toggle:hover {
    background: #f8fafc !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1) !important;
  }
  
  .btn-toggle:active {
    transform: translateY(-1px) !important;
  }
  
  .btn-toggle.off {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #dc2626 !important;
  }
  
  .btn-toggle.off:hover {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
    color: #b91c1c !important;
  }
  
  .hero-top-links a[href*="tracking"]:hover, 
  .hero-top-links a[href*="auto"]:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    transform: translateY(-2px) !important;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff0080, #8000ff, #ff00ff) !important;
    background-size: 800% 800% !important;
    border-color: transparent !important;
    transform: translateY(-4px) scale(1.08) !important;
    animation: buttonDarkGradient 0.5s ease-in-out infinite !important;
    box-shadow: 0 15px 35px rgba(255, 0, 255, 0.5), 0 10px 25px rgba(0, 255, 255, 0.4) !important;
  }
  
  /* Стили для дополнительных ссылок */
  .additional-links {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-top: 20px !important;
    flex-wrap: wrap !important;
  }
  
  .additional-links a {
    background: #f8fafc !important;
    color: #475569 !important;
    text-decoration: none !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    font-weight: 600 !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: none !important;
  }

  /* Ссылки в additional-links, которые являются кнопками (.btn),
     должны выглядеть как обычные кнопки, а не как серые ссылки */
  .additional-links a.btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #ffffff !important;
  }
  .additional-links a.btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4) !important;
  }
  
  .additional-links a:hover {
    background: #eef2ff !important;
    color: #1d4ed8 !important;
    border-color: #c7d2fe !important;
    transform: none !important;
  }
  
  /* Стили для панели статуса водителя */
  .modern-status-panel {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin: 16px auto !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e2e8f0 !important;
    max-width: 600px !important;
  }
  
  /* Стили для карточки статуса */
  .status-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important;
  }
  
  .status-icon {
    font-size: 2rem !important;
    color: #3b82f6 !important;
  }
  
  .status-content {
    flex: 1 !important;
  }
  
  .status-indicator {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #9ca3af !important;
    animation: pulse 2s infinite !important;
  }
  
  .status-indicator.at-work {
    background: #10b981 !important;
  }
  
  .status-indicator.moving {
    background: #f59e0b !important;
  }
  
  @keyframes pulse {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.7;
      transform: scale(1.1);
    }
  }
  
  /* Стили для текста в панели статуса */
  .modern-status-panel .status-label,
  .modern-status-panel .status-value {
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
  }
  
  .modern-status-panel .status-label {
    font-size: 1rem !important;
    color: #374151 !important;
    margin-bottom: 8px !important;
  }
  
  .modern-status-panel .status-value {
    font-size: 1.2rem !important;
    color: #000000 !important;
    font-weight: 700 !important;
  }
  
  /* Стили для блока "Как это работает" */
  .how-it-works {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin: 16px auto !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    max-width: 800px !important;
  }
  
  .how-it-works .info-block-title {
    color: #000000 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
  }
  
  .how-it-works .info-block-text {
    color: #000000 !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
    text-align: center !important;
  }
  
  /* Стили для главной страницы - текст должен быть виден */
  .hero .info-block-title,
  .hero .info-block-text {
    color: #000000 !important;
  }
  
  /* Стили для индивидуальных кнопок в современном стиле */
  .hero-cta {
    display: flex !important;
    justify-content: center !important;
    margin-top: 16px !important;
  }
  
  .hero-cta-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 16px !important;
    max-width: 800px !important;
    width: 100% !important;
  }
  
  /* Стили для иконок и текста в кнопках */
  .btn-icon {
    font-size: 1.2rem !important;
    margin-right: 8px !important;
    display: inline-block !important;
  }
  
  .btn-text {
    display: inline-block !important;
    vertical-align: middle !important;
  }
  
  /* Улучшенные стили для кнопок с иконками */
  .hero-btn {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.4 !important;
    gap: 8px !important;
  }
  
  .hero-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent) !important;
    transition: left 0.5s ease !important;
  }
  
  .hero-btn:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15) !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
  }
  
  .hero-btn:hover::before {
    left: 100% !important;
  }
  
  .hero-btn:active {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Специальные стили для кнопки "Ожидаю у подъезда" */
  .hero-btn:first-child {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 14px -2px rgba(16, 185, 129, 0.3) !important;
  }
  
  .hero-btn:first-child:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.4) !important;
    color: #ffffff !important;
  }
  
  /* Адаптивность для кнопок */
  @media (max-width: 768px) {
    .hero-cta-row {
      grid-template-columns: 1fr !important;
      gap: 12px !important;
      padding: 0 16px !important;
    }
  
    .hero-btn {
      padding: 14px 20px !important;
      font-size: 0.9rem !important;
      min-height: 48px !important;
    }
  }
  
  @media (max-width: 480px) {
    .hero-cta-row {
      padding: 0 8px !important;
    }
  
    .hero-btn {
      padding: 12px 16px !important;
      font-size: 0.85rem !important;
      min-height: 44px !important;
    }
  }
  
  /* Дополнительная адаптивность для очень маленьких экранов */
  @media (max-width: 360px) {
    .hero-top-links {
      gap: 4px;
      padding: 1px 0;
    }
  
    .hero-top-links a {
      padding: 4px 6px;
      font-size: 0.65rem;
      border-radius: 6px;
    }
  }
  
  /* Подвал в стиле MagnumFocus */
  footer {
    background: var(--background);
    border-top: none;
    padding: 32px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0;
  }

  /* ====== Testimonials (Отзывы) ====== */
  .testimonials {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin: 24px auto !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    max-width: 1000px !important;
  }

  .testimonials-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    margin-bottom: 16px !important;
  }

  .testimonials-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
  }

  .overall-rating {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
  }

  .overall-rating-text {
    color: #0f172a !important;
    font-weight: 600 !important;
  }

  .overall-rating-value {
    font-weight: 800 !important;
    color: #111827 !important;
  }

  .overall-rating-count {
    color: #475569 !important;
    margin-left: 6px !important;
  }

  .testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }

  @media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr) !important; }
  }
  @media (max-width: 600px) {
    .testimonials-grid { grid-template-columns: 1fr !important; }
  }

  .testimonial-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 18px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
    text-align: left !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
  }

  .testimonial-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08) !important;
  }

  .testimonial-top { display:flex !important; align-items:center !important; justify-content:space-between !important; gap:12px !important; margin-bottom:10px !important; }
  .testimonial-meta { text-align:right !important; }
  .testimonial-text { color:#0f172a !important; font-size: 0.98rem !important; line-height: 1.7 !important; margin: 8px 0 0 !important; font-style: italic !important; }
  .author-name { font-weight: 800 !important; color:#111827 !important; }
  .author-role { font-size: .9rem !important; color:#475569 !important; }

  .testimonial-author { color: #475569 !important; }
  .author-name { font-weight: 700 !important; color: #111827 !important; }
  .author-role { font-size: .9rem !important; }

  /* Stars */
  .stars { position: relative !important; display: inline-block !important; font-size: 20px !important; line-height: 1 !important; }
  .stars-base { color: #e2e8f0 !important; }
  .stars-fill {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    color: #f59e0b !important;
  }
  .testimonial-stars { margin-bottom: 6px !important; }

  /* Ввод рейтинга */
  .input-stars { cursor: pointer !important; }
  
  /* Компактная плашка рейтинга на главной: фиксирована снизу, без фона/рамки */
  /* Обёртка для жёсткого фиксирования плашки над футером */
  .rating-badge-wrapper {
    position: static !important; /* в потоке, без отдельной подложки */
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    pointer-events: none; /* клики только по плашке */
    background: transparent !important; /* исключаем любую полосу */
    border: none !important;
    margin: 8px 0 8px 0 !important; /* компактнее, чтобы не создавать полосу */
    padding: 0 !important;
  }

  @media (max-width: 768px) {
    .rating-badge-wrapper { bottom: 48px !important; }
  }

  /* Сама плашка — без фона/рамок, кликабельная */
  .rating-badge {
    position: static !important;
    pointer-events: auto;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    max-width: calc(100vw - 24px) !important; /* не шире экрана */
  }
  .rating-badge * { white-space: nowrap !important; }
  .rating-badge .stars { font-size: 18px !important; }
  .rating-badge-text { color: #0f172a !important; font-weight: 600 !important; }
  .rating-badge-link { color: #3b82f6 !important; text-decoration: none !important; font-weight: 700 !important; margin-left: 6px !important; }
  .rating-badge-link:hover { text-decoration: underline !important; }

  @media (max-width: 480px) {
    .rating-badge { gap: 6px !important; max-width: calc(100vw - 16px) !important; }
    .rating-badge .stars { font-size: 15px !important; }
    .rating-badge-text { font-size: 13px !important; }
    .rating-badge-link { font-size: 13px !important; }
  }

  @media (max-width: 360px) {
    .rating-badge { gap: 5px !important; max-width: calc(100vw - 12px) !important; }
    .rating-badge .stars { font-size: 14px !important; }
    .rating-badge-text { font-size: 12px !important; }
    .rating-badge-link { font-size: 12px !important; }
  }

  /* Убираем любую отличающуюся подложку: низ секции совпадает с фоном страницы */
  body.landing section.hero {
    background: transparent !important;
    background-image: none !important;
  }

  
  /* Дополнительные стили для улучшения видимости */
  .info-block {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 20px !important;
    text-align: center !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    max-width: 600px !important;
    margin: 16px auto !important;
    position: relative !important;
    overflow: hidden !important;
  }
  
  .info-block:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
  }
  
  /* Улучшенные стили для заголовков */
  .info-block-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    color: #000000 !important;
    letter-spacing: -0.025em !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  }
  
  .info-block-text {
    font-size: 1.1rem !important;
    color: #000000 !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
  }
  
  /* Стили для сообщений */
  .msg {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid #34d399 !important;
    color: #047857 !important;
    font-weight: 600 !important;
  }
  
  .msg.error {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: #f87171 !important;
    color: #dc2626 !important;
  }
  
  /* Анимация для кнопок */
  @keyframes buttonGlow {
    0% {
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    50% {
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 20px rgba(59, 130, 246, 0.3);
    }
    100% {
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
  }
  
  .hero-btn:hover {
    animation: buttonGlow 2s ease-in-out infinite !important;
  }
  
  /* Анимация появления кнопки */
  @keyframes fadeInButton {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    50% {
      opacity: 0.7;
      transform: translateY(5px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Голографический эффект для "Be" */
  @keyframes beHologram {
    0% {
      opacity: 0;
      transform: translateY(60px) scale(0.8);
      filter: brightness(0.5);
      color: #000000 !important;
    }
    50% {
      opacity: 0.7;
      transform: translateY(20px) scale(0.95);
      filter: brightness(0.8);
      color: #000000 !important;
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: brightness(1);
      color: #000000 !important;
    }
  }
  
  /* Тёмный градиент для "Be" */
  @keyframes beDarkGradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  /* Пульсирующее свечение для "Be" */
  @keyframes bePulseGlow {
    0%, 100% {
      filter: brightness(1) saturate(1);
      text-shadow: 0 0 20px rgba(30, 41, 59, 0.4), 0 0 40px rgba(51, 65, 85, 0.3);
    }
    25% {
      filter: brightness(1.1) saturate(1.2);
      text-shadow: 0 0 30px rgba(51, 65, 85, 0.6), 0 0 50px rgba(71, 85, 105, 0.4);
    }
    50% {
      filter: brightness(1.2) saturate(1.3);
      text-shadow: 0 0 40px rgba(71, 85, 105, 0.7), 0 0 60px rgba(100, 116, 139, 0.5);
    }
    75% {
      filter: brightness(1.1) saturate(1.2);
      text-shadow: 0 0 30px rgba(100, 116, 139, 0.6), 0 0 50px rgba(148, 163, 184, 0.4);
    }
  }
  
  /* Старая анимация энергетической волны (оставляем для совместимости) */
  @keyframes beEnergyWave {
    0%, 100% {
      filter: brightness(1);
      text-shadow: 0 0 20px rgba(30, 41, 59, 0.6);
    }
    50% {
      filter: brightness(1.1);
      text-shadow: 0 0 30px rgba(30, 41, 59, 0.8);
    }
  }
  
  /* Анимации для слова "Fast" - тёмные тона */
  @keyframes fastDarkGradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  @keyframes fastDarkPulse {
    0%, 100% {
      filter: brightness(1) saturate(1);
      text-shadow: 0 0 20px rgba(30, 41, 59, 0.4), 0 0 40px rgba(51, 65, 85, 0.3);
    }
    50% {
      filter: brightness(1.2) saturate(1.3);
      text-shadow: 0 0 40px rgba(30, 41, 59, 0.7), 0 0 60px rgba(51, 65, 85, 0.5);
    }
  }
  
  /* Анимации для слова "Smart" - тёмные тона */
  @keyframes smartDarkGradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  @keyframes smartDarkPulse {
    0%, 100% {
      filter: brightness(1) saturate(1);
      text-shadow: 0 0 20px rgba(30, 41, 59, 0.4), 0 0 40px rgba(51, 65, 85, 0.3);
    }
    50% {
      filter: brightness(1.2) saturate(1.3);
      text-shadow: 0 0 40px rgba(30, 41, 59, 0.7), 0 0 60px rgba(51, 65, 85, 0.5);
    }
  }
  
  /* Анимации для слова "Clever" - тёмные тона */
  @keyframes cleverDarkGradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  @keyframes cleverDarkPulse {
    0%, 100% {
      filter: brightness(1) saturate(1);
      text-shadow: 0 0 20px rgba(30, 41, 59, 0.4), 0 0 40px rgba(51, 65, 85, 0.3);
    }
    50% {
      filter: brightness(1.2) saturate(1.3);
      text-shadow: 0 0 40px rgba(30, 41, 59, 0.7), 0 0 60px rgba(51, 65, 85, 0.5);
    }
  }
  
  /* Анимации для слова "Driver" - тёмные тона */
  @keyframes driverDarkGradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  /* Анимация для кнопок навигации */
  @keyframes buttonDarkGradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  @keyframes driverDarkPulse {
    0%, 100% {
      filter: brightness(1) saturate(1);
      text-shadow: 0 0 20px rgba(30, 41, 59, 0.4), 0 0 40px rgba(51, 65, 85, 0.3);
    }
    50% {
      filter: brightness(1.2) saturate(1.3);
      text-shadow: 0 0 40px rgba(30, 41, 59, 0.7), 0 0 60px rgba(51, 65, 85, 0.5);
    }
  }
  
  /* Квантовый эффект для остальных слов */
  @keyframes wordQuantum {
    0% {
      opacity: 0;
      transform: translateY(60px) scale(0.8);
      filter: brightness(0.5);
      color: #000000 !important;
    }
    50% {
      opacity: 0.7;
      transform: translateY(20px) scale(0.95);
      filter: brightness(0.8);
      color: #000000 !important;
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: brightness(1);
      color: #000000 !important;
    }
  }
  
  /* Космическая пульсация для слов */
  @keyframes wordCosmicPulse {
    0%, 100% {
      transform: scale(1);
      filter: brightness(1);
      color: #000000 !important;
    }
    50% {
      transform: scale(1.02);
      filter: brightness(1.05);
      color: #000000 !important;
    }
  }
  

  
  /* Стили для объединённой панели статуса и управления */
  .status-control-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin: 16px auto !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    max-width: 600px !important;
  }
  
  .status-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
    flex-wrap: wrap !important;
  }
  
  .status-row .status {
    margin: 0 !important;
    flex: 1 !important;
    min-width: 200px !important;
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-weight: 600 !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
  }
  
  .status-row .status .status-icon {
    font-size: 1.5rem !important;
  }
  
  .status-row .status .status-text {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #3b82f6 !important;
  }
  
  .status-row .btn-toggle {
    margin: 0 !important;
    min-width: 200px !important;
    width: 200px !important;
    flex-shrink: 0 !important;
  }
  
  /* Стили для кнопок */
  .btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #ffffff !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
  }
  
  .btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: none !important;
    color: #ffffff !important;
    text-decoration: none !important;
  }
  
  .btn.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  }
  
  .btn.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
  }
  
  .btn.btn-info {
    background: linear-gradient(135deg, #10b981, #059669) !important;
  }
  
  .btn.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  }
  
  /* Красная кнопка для опасных действий */
  .btn.btn-danger,
  .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    box-shadow: none !important;
    color: #ffffff !important;
  }
  .btn.btn-danger:hover,
  .btn-danger:hover {
    box-shadow: none !important;
    transform: translateY(-1px) !important;
  }
  
  /* Современная зелёная кнопка успеха */
  .btn.btn-success,
  .btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    box-shadow: none !important;
    color: #ffffff !important;
  }
  
  /* Пилюля-форма для кнопок статуса */
  .btn.btn-pill,
  .btn-pill {
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
  }
  
  /* Дополнительные стили для кнопок в формах */
  form .btn.btn-pill,
  form .btn-pill {
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
  }
  
  /* Принудительное центрирование для всех кнопок с текстом "Отвязать водителя" */
  button.btn.btn-danger.btn-pill,
  button.btn.btn-success.btn-pill {
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
  }
  
  /* Центрирование содержимого кнопок */
  .btn.btn-pill *,
  .btn-pill * {
    text-align: center !important;
  }
  
  /* Специальные стили для кнопок водителя */
  .btn.btn-danger.btn-pill,
  .btn.btn-success.btn-pill {
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    min-width: 200px !important;
  }
  
  /* Максимально специфичные стили для принудительного центрирования */
  button.btn.btn-danger.btn-pill,
  button.btn.btn-success.btn-pill,
  form button.btn.btn-danger.btn-pill,
  form button.btn.btn-success.btn-pill {
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 200px !important;
    gap: 8px !important;
  }
  
  /* Центрирование содержимого кнопок с иконками */
  button.btn.btn-danger.btn-pill > *,
  button.btn.btn-success.btn-pill > *,
  form button.btn.btn-danger.btn-pill > *,
  form button.btn.btn-success.btn-pill > * {
    flex: 0 0 auto !important;
  }
  
  .status-control-panel .additional-links {
    margin-top: 20px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }
  
  .status-control-panel .additional-links a {
    padding: 16px 20px !important;
    font-size: 16px !important;
    min-width: auto !important;
    text-align: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 56px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
  }
  
  /* Адаптивность для панели */
  @media (max-width: 768px) {
    .status-row {
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 12px !important;
    }
  
    .status-row .status,
    .status-row .btn-toggle {
      min-width: auto !important;
      width: 100% !important;
    }
  
    .status-control-panel .additional-links {
      flex-direction: column !important;
      align-items: center !important;
    }
  
    .status-control-panel .additional-links a {
      width: 100% !important;
      min-width: auto !important;
      max-width: none !important;
    }
  }
  
  /* Адаптивность для мобильных устройств */
  @media (max-width: 640px) {
    .hero-top-links {
      flex-wrap: wrap !important;
      gap: 8px !important;
      padding: 0 8px !important;
      max-width: 100vw !important;
    }
    
    .hero-top-links a {
      padding: 8px 16px !important;
      font-size: 14px !important;
      min-width: auto !important;
      flex: 0 1 auto !important;
    }
    
    /* Адаптивность кнопки регистрации для мобильных */
    .hero .hero-top-links a {
      padding: 18px 36px !important;
      font-size: 1rem !important;
      min-width: 250px !important;
      max-width: 90vw !important;
      margin: 20px auto !important;
      border-radius: 14px !important;
      box-shadow: none !important;
      text-shadow: none !important;
      border: 2px solid rgba(255, 255, 255, 0.1) !important;
      background: linear-gradient(45deg, #1e293b, #334155, #475569, #1e293b) !important;
      background-size: 400% 400% !important;
      animation: buttonDarkGradient 3s ease-in-out infinite !important;
    }
    
    .hero-btn-magnum::before {
      animation: shimmerFlow 3s ease-in-out infinite !important;
    }
    
    /* Адаптивность контейнера кнопки для мобильных */
    .hero .hero-top-links {
      margin-top: 20px !important;
      min-height: 80px !important;
      padding: 0 16px !important;
      display: flex !important;
      opacity: 1 !important;
      visibility: visible !important;
      justify-content: center !important;
      align-items: center !important;
    }

    /* Перекрываем поведение для отложенного CTA регистрации на мобильных */
    .hero .hero-top-links.delayed-register {
      opacity: 0 !important;
      visibility: hidden !important;
      transform: translateY(20px) !important;
    }
    .hero .hero-top-links.delayed-register.visible {
      opacity: 1 !important;
      visibility: visible !important;
      transform: translateY(0) !important;
    }
    
    /* Адаптивность блока "Как это работает" для мобильных */
    .how-it-works {
      padding: 0 16px !important;
      margin: 20px auto !important;
      max-width: 100% !important;
    }
    
    .how-it-works .info-block-title {
      font-size: 20px !important;
      margin-bottom: 12px !important;
      line-height: 1.3 !important;
    }
    
    .how-it-works .info-block-text {
      font-size: 15px !important;
      line-height: 1.4 !important;
      text-align: center !important;
    }
    
    /* Адаптивность информационных блоков для мобильных */
    .info-block {
      padding: 16px !important;
      margin: 16px auto !important;
      max-width: 100% !important;
    }
    
    .info-block-title {
      font-size: 20px !important;
      margin-bottom: 12px !important;
      line-height: 1.3 !important;
    }
    
    .info-block-text {
      font-size: 15px !important;
      line-height: 1.4 !important;
    }
    
    /* Общие стили для всех кнопок на мобильных устройствах */
    .hero-btn-magnum,
    .hero-btn,
    .btn,
    button,
    .hero-top-links a {
      -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
      touch-action: manipulation;
      cursor: pointer;
      user-select: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      pointer-events: auto;
      position: relative;
      z-index: 10;
    }
    
    /* Убираем hover эффекты на мобильных */
    .hero-btn-magnum:hover,
    .hero-btn:hover,
    .btn:hover,
    button:hover,
    .hero-top-links a:hover {
      transform: none !important;
      box-shadow: none !important;
    }
    
    /* Активные состояния для touch */
    .hero-btn-magnum:active,
    .hero-btn:active,
    .btn:active,
    button:active,
    .hero-top-links a:active {
      transform: scale(0.95) !important;
      opacity: 0.8 !important;
    }
  }
  
  /* Адаптивность для планшетов */
  @media (min-width: 641px) and (max-width: 768px) {
    .hero-top-links {
      gap: 10px !important;
      padding: 0 12px !important;
    }
    
    .hero-top-links a {
      padding: 8px 14px !important;
      font-size: 14px !important;
    }
    
    /* Адаптивность кнопки регистрации для планшетов */
    .hero .hero-top-links a {
      padding: 20px 40px !important;
      font-size: 1.05rem !important;
      min-width: 270px !important;
      border-radius: 15px !important;
      box-shadow: none !important;
      text-shadow: none !important;
      border: 3px solid rgba(255, 255, 255, 0.1) !important;
      background: linear-gradient(45deg, #1e293b, #334155, #475569, #1e293b) !important;
      background-size: 400% 400% !important;
      animation: buttonDarkGradient 3s ease-in-out infinite !important;
    }
    
    .hero-btn-magnum::before {
      animation: shimmerFlow 3s ease-in-out infinite !important;
    }
    
    /* Адаптивность контейнера кнопки для планшетов */
    .hero .hero-top-links {
      margin-top: 30px !important;
      min-height: 70px !important;
      justify-content: center !important;
      align-items: center !important;
    }
    
    /* Адаптивность блока "Как это работает" для планшетов */
    .how-it-works {
      padding: 0 20px !important;
      margin: 25px auto !important;
    }
    
    .how-it-works .info-block-title {
      font-size: 20px !important;
      margin-bottom: 15px !important;
    }
    
    .how-it-works .info-block-text {
      font-size: 15px !important;
      line-height: 1.5 !important;
    }
    
    /* Адаптивность информационных блоков для планшетов */
    .info-block {
      padding: 20px !important;
      margin: 20px auto !important;
    }
    
    .info-block-title {
      font-size: 20px !important;
      margin-bottom: 15px !important;
    }
    
    .info-block-text {
      font-size: 15px !important;
      line-height: 1.5 !important;
    }
  }
  
  /* Адаптивность для средних экранов */
  @media (min-width: 769px) and (max-width: 1024px) {
    .hero-top-links {
      gap: 12px !important;
      padding: 0 16px !important;
    }
    
    .hero-top-links a {
      padding: 8px 16px !important;
      font-size: 15px !important;
    }
    
    /* Адаптивность кнопки регистрации для средних экранов */
    .hero .hero-top-links a {
      padding: 20px 40px !important;
      font-size: 1.1rem !important;
      min-width: 280px !important;
      border-radius: 16px !important;
      box-shadow: none !important;
      text-shadow: none !important;
      border: 3px solid rgba(255, 255, 255, 0.1) !important;
      background: linear-gradient(45deg, #1e293b, #334155, #475569, #1e293b) !important;
      background-size: 400% 400% !important;
      animation: buttonDarkGradient 3s ease-in-out infinite !important;
    }
    
    .hero-btn-magnum::before {
      animation: shimmerFlow 3s ease-in-out infinite !important;
    }
    
    /* Адаптивность контейнера кнопки для средних экранов */
    .hero .hero-top-links {
      margin-top: 35px !important;
      min-height: 65px !important;
      justify-content: center !important;
      align-items: center !important;
    }
    
    /* Адаптивность блока "Как это работает" для средних экранов */
    .how-it-works {
      padding: 0 24px !important;
      margin: 30px auto !important;
    }
    
    .how-it-works .info-block-title {
      font-size: 22px !important;
      margin-bottom: 18px !important;
    }
    
    .how-it-works .info-block-text {
      font-size: 16px !important;
      line-height: 1.6 !important;
    }
    
    /* Адаптивность информационных блоков для средних экранов */
    .info-block {
      padding: 24px !important;
      margin: 24px auto !important;
    }
    
    .info-block-title {
      font-size: 22px !important;
      margin-bottom: 18px !important;
    }
    
    .info-block-text {
      font-size: 16px !important;
      line-height: 1.6 !important;
    }
  }

  /* Мобильная оптимизация */
  @media (max-width: 768px) {
    /* Оптимизируем только тяжелые эффекты, сохраняем анимации */
    * {
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
    
    /* Анимации отключены для мобильных, будут восстановлены в mobile-optimization.css */
    
    /* Оптимизируем размеры для мобильных */
    .hero-title {
      font-size: 1.85rem !important;
      line-height: 1.2 !important;
    }
    
    .info-block {
      padding: 20px;
      margin: 16px auto;
    }
    
    .hero-cta-row {
      flex-direction: column;
      gap: 12px;
    }
    
    .hero-btn {
      width: 100%;
      padding: 16px;
      font-size: 16px;
    }
    
    .status-control-panel {
      margin: 16px 0;
    }
    
    .btn-toggle {
      width: 100%;
      max-width: 280px;
    }
    
    .additional-links {
      flex-direction: column;
      gap: 12px;
    }
    
    .additional-links a {
      width: 100%;
      text-align: center;
      padding: 12px;
    }
    
    /* Упрощаем заголовок */
    .hero-title-container {
      margin: 20px 0;
    }
    

  }
  
  /* Исправляем футер */
      footer {
        background: #344256;
        border-top: none;
        padding: 20px 0;
        margin-top: 0;
        text-align: center;
        color: var(--text-secondary);
        width: 100%;
        position: relative;
        bottom: 0;
    }
  
  /* Убираем белые полосы */
  html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overscroll-behavior-y: contain;
  }
  
  body {
    display: flex;
    flex-direction: column;
  }
  
  .hero {
    flex: 1;
    min-height: calc(100vh - 200px);
    min-height: calc(100dvh - 200px);
  }
  
  /* Оптимизация для слабых устройств */
  .hero-title-container {
    will-change: auto;
    transform: translateZ(0);
  }
  

  
  /* Анимации работают на всех устройствах */
  @media (max-width: 768px) {
    /* Анимации включены для мобильных устройств */
    
    /* Упрощаем кнопки */
    .hero-btn, .btn-toggle {
      transform: none !important;
      transition: none !important;
    }
    
    .hero-btn:hover, .btn-toggle:hover {
      transform: none !important;
    }
  }
  
  /* Дополнительная оптимизация для очень слабых устройств */
  @media (max-width: 480px) {
    .hero-title {
      font-size: 1.4rem !important;
    }
    

    
    .info-block {
      padding: 16px;
      margin: 12px auto;
    }
    
    .hero-cta-magnum {
      margin: 20px 0;
    }
    
    .hero-btn-magnum {
      padding: 14px 24px;
      font-size: 16px;
    }
  }
  
  /* Отключаем все анимации на мобильных для максимальной производительности */
  @media (max-width: 768px) {
    @keyframes none {
      from { opacity: 1; }
      to { opacity: 1; }
    }
    

    
    /* Гарантируем видимость кнопки регистрации на странице регистрации */
    .register-btn {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      width: 100% !important;
      min-height: 48px !important;
      padding: 16px !important;
      font-size: 16px !important;
      background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%) !important;
      color: white !important;
      border: none !important;
      border-radius: 12px !important;
      font-weight: 600 !important;
      cursor: pointer !important;
      margin-bottom: 20px !important;
      text-align: center !important;
      position: relative !important;
      z-index: 10 !important;
      box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    }
    
    .register-btn:hover {
      transform: translateY(-2px) !important;
      box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4) !important;
    }
    
    .register-btn:active {
      transform: translateY(0) !important;
      box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    }
  }

  /* Базовые стили для универсальной кнопки "Назад на главную" */
  .back-btn {
    position: fixed !important;
    top: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px 22px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .back-btn:hover {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%) !important;
    transform: translateX(-50%) translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none !important;
  }

  .back-btn:active {
    transform: translateX(-50%) translateY(0) !important;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3) !important;
  }

  @media (max-width: 768px) {
    .back-btn {
      top: 14px !important;
      padding: 14px 22px !important;
      font-size: 16px !important;
      border-radius: 16px !important;
    }
    /* Отодвигаем вниз первый контейнер, чтобы кнопка не перекрывала его */
    a.back-btn + .container {
      margin-top: 88px !important;
    }
  }

  @media (max-width: 480px) {
    .back-btn {
      top: 12px !important;
      padding: 16px 24px !important;
      font-size: 17px !important;
      border-radius: 18px !important;
    }
    a.back-btn + .container {
      margin-top: 96px !important;
    }
  }