/* ===== ОСНОВНЫЕ ПЕРЕМЕННЫЕ CSS ===== */
:root {
  /* Цветовая палитра */
  --color-primary: #0A1929;
  --color-secondary: #1E293B;
  --color-accent: #FFD43B;
  --color-accent-blue: #00B4D8;
  --color-text: #FFFFFF;
  --color-text-secondary: #E2E8F0;
  --color-text-muted: #94A3B8;
  --color-border: #374151;
  --color-success: #4ADE80;
  --color-error: #EF4444;
  --color-warning: #F59E0B;

  /* Градиенты */
  --gradient-hero: linear-gradient(135deg, #0A1929 0%, #1E293B 50%, #374151 100%);
  --gradient-accent: linear-gradient(45deg, #FFD43B 0%, #F59E0B 100%);
  --gradient-cool: linear-gradient(180deg, #00B4D8 0%, #0077B6 100%);
  --gradient-code: linear-gradient(90deg, #4ADE80 0%, #22C55E 100%);
  --gradient-text: linear-gradient(135deg, #FFD43B, #00B4D8);

  /* Шрифты */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Размеры */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Размеры шрифтов */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Переходы */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-smooth: 0.8s cubic-bezier(0.23, 1, 0.32, 1);

  /* Тени */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-base: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(255, 212, 59, 0.3);

  /* Радиусы скругления */
  --radius-sm: 0.375rem;
  --radius-base: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Z-индексы */
  --z-dropdown: 1000;
  --z-modal: 1050;
  --z-popover: 1100;
  --z-tooltip: 1200;
}

/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--gradient-hero);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

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

a:hover {
  color: var(--color-accent-blue);
  text-decoration: underline;
}

/* ===== УТИЛИТЫ ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
  display: inline-block;
  animation: gradientPulse 4s ease-in-out infinite;
}

.text-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 212, 59, 0.3), rgba(0, 180, 216, 0.3));
  border-radius: 8px;
  filter: blur(20px);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2xl), var(--shadow-glow);
  color: var(--color-primary);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-3d {
  transform-style: preserve-3d;
}

.btn-3d:hover {
  transform: translateY(-4px) rotateX(10deg);
}

.btn-icon {
  font-size: var(--text-lg);
  transition: var(--transition-base);
}

.btn:hover .btn-icon {
  transform: scale(1.1);
}

/* ===== НАВИГАЦИЯ ===== */
.floating-header {
  position: fixed;
  /* 🔧 ПОДНЯТО НА 30% ВЫШЕ ДЛЯ ДЕСКТОПА: было 1rem (16px), стало 0.7rem (11px) */
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 2rem);
  max-width: 1200px;
  
  /* Упрощенная прозрачность */
  background: rgba(10, 25, 41, 0.9);
  backdrop-filter: blur(10px);
}

/* Специальные правила для мобильных устройств */
@media (max-width: 768px) {
  .floating-header {
    /* УМЕНЬШЕННЫЙ отступ для мобильных - ближе к верху */
    top: 2rem;
    width: calc(100% - 1rem);
    will-change: auto;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .floating-header {
    /* НЕБОЛЬШОЙ отступ для маленьких экранов */
    top: 1.5rem;
    width: calc(100% - 0.5rem);
  }
}

/* Дополнительные правила для портретной ориентации */
@media (max-width: 768px) and (orientation: portrait) {
  .floating-header {
    /* РАЗУМНЫЙ отступ для портретных устройств */
    top: 2.5rem;
  }
}

/* Состояния навигации для плавного скрытия/показа */
.floating-header.nav-hidden {
  transform: translateX(-50%) translateY(-120%); /* Скрываем выше экрана */
}

/* 🖥️ УСИЛЕННЫЕ ПЛАВНЫЕ ПЕРЕХОДЫ ТОЛЬКО ДЛЯ ДЕСКТОПА */
@media (min-width: 769px) {
  .floating-header {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    will-change: transform;
  }
  
  /* Убеждаемся что nav-hidden работает на десктопе */
  .floating-header.nav-hidden {
    transform: translateX(-50%) translateY(-120%) !important;
    opacity: 0.95 !important;
  }
}

/* На мобильных отключаем transition для избежания лагов */
@media (max-width: 768px) {
  .floating-header {
    transition: none; /* Убираем transitions на мобильных */
  }
  
  .floating-header.nav-hidden {
    transform: translateX(-50%) translateY(-110%); /* Меньший сдвиг на мобильных */
  }
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 25, 41, 0.9);
  /* backdrop-filter убран для мобильной совместимости */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem; /* Фиксированное значение */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* Фиксированное значение */
  
  /* Дополнительная стабилизация для мобильных */
  position: relative;
  overflow: hidden; /* Предотвращаем выход контента за границы */
}

/* Отключаем backdrop-filter на мобильных для производительности */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .nav-container {
    background: rgba(10, 25, 41, 0.98); /* Еще более плотный фон для стабильности */
    backdrop-filter: none; /* Убираем blur на мобильных */
    padding: 0.75rem 1rem; /* Меньше padding на мобильных */
    border-radius: 1rem; /* Меньший radius на мобильных */
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .nav-container {
    padding: 0.5rem 0.75rem; /* Минимальный padding */
    border-radius: 0.75rem;
  }
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Фиксированное значение вместо переменной */
}

/* Адаптивные отступы для мобильных */
@media (max-width: 768px) {
  .logo-section {
    gap: 0.375rem; /* Меньше на мобильных */
  }
}

.logo-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--transition-smooth);
  border-radius: 8px;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
  border-radius: 8px;
}

.logo-3d {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: var(--text-xl);
}

.logo-icon {
  font-size: var(--text-2xl);
  animation: logoFloat 3s ease-in-out infinite;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
  margin: 0;
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-base);
  transition: var(--transition-base);
}

.nav-link:hover {
  color: var(--color-accent);
  background: rgba(255, 212, 59, 0.1);
  text-decoration: none;
}

.cta-nav {
  background: var(--gradient-accent);
  color: var(--color-primary) !important;
  font-weight: 600;
}

.cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: var(--gradient-accent);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition-base);
}

/* ===== HERO СЕКЦИЯ ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 🔧 ОПТИМАЛЬНЫЙ отступ от поднятой навигации для десктопа - оставляем воздух, убираем пустоту */
  padding-top: 2.5rem;
  overflow: hidden;
}

.code-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.code-lines {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-success);
  position: absolute;
  top: 20%;
  left: 10%;
  animation: typing 10s linear infinite;
}

.code-line {
  margin-bottom: var(--spacing-sm);
  opacity: 0;
  animation: codeAppear 2s ease-out forwards;
}

.code-line:nth-child(1) { animation-delay: 0.5s; }
.code-line:nth-child(2) { animation-delay: 1s; }
.code-line:nth-child(3) { animation-delay: 1.5s; }
.code-line:nth-child(4) { animation-delay: 2s; }
.code-line:nth-child(5) { animation-delay: 2.5s; }

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-3xl);
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: rgba(255, 212, 59, 0.1);
  border: 1px solid rgba(255, 212, 59, 0.2);
  border-radius: var(--radius-full);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--spacing-xl);
  animation: badgeGlow 3s ease-in-out infinite;
}

.badge-icon {
  font-size: var(--text-lg);
}

.hero-title {
  font-family: var(--font-mono);
  margin-bottom: var(--spacing-lg);
  animation: titleSlideUp 1s ease-out 0.3s both;
  text-shadow: 0 0 20px rgba(255, 212, 59, 0.3);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-2xl);
  animation: subtitleSlideUp 1s ease-out 0.6s both;
}

.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
  animation: statsSlideUp 1s ease-out 0.9s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--spacing-xs);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-lg);
  animation: actionsSlideUp 1s ease-out 1.2s both;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.python-logo-3d {
  position: relative;
  width: 300px;
  height: 300px;
  perspective: 1000px;
  animation: logoFloat 6s ease-in-out infinite;
}

.logo-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: logoRotate 20s linear infinite;
}

.logo-symbol {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  transform: translateZ(50px);
}

.logo-rings {
  position: absolute;
  inset: 0;
}

.ring {
  position: absolute;
  border: 2px solid;
  border-radius: 50%;
  animation: ringRotate 15s linear infinite;
}

.ring-1 {
  inset: 20px;
  border-color: var(--color-accent);
  opacity: 0.6;
  animation-direction: normal;
}

.ring-2 {
  inset: 40px;
  border-color: var(--color-accent-blue);
  opacity: 0.4;
  animation-direction: reverse;
  animation-duration: 20s;
}

.ring-3 {
  inset: 60px;
  border-color: var(--color-success);
  opacity: 0.2;
  animation-duration: 25s;
}

/* ===== АНИМАЦИИ ===== */
@keyframes logoFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(5deg); }
}

@keyframes logoRotate {
  0% { transform: rotateY(0deg) rotateX(10deg); }
  100% { transform: rotateY(360deg) rotateX(10deg); }
}

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

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
  50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
}

@keyframes codeAppear {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes titleSlideUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

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

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

/* ===== СЕКЦИИ ===== */
section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.about-section {
  background: linear-gradient(180deg, transparent 0%, rgba(30, 41, 59, 0.3) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.about-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 212, 59, 0.1), transparent);
  transition: left 0.5s ease;
}

.about-card:hover::before {
  left: 100%;
}

.about-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 212, 59, 0.3);
  box-shadow: var(--shadow-2xl);
}

.card-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--spacing-lg);
  display: block;
}

.card-title {
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.card-description {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== АДАПТИВНОСТЬ (базовая) ===== */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-xl);
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  /* .nav-menu стили УБРАНЫ - управляются из responsive.css */
  /* .mobile-menu-toggle стили УБРАНЫ - управляются из responsive.css */

  .python-logo-3d {
    width: 200px;
    height: 200px;
  }

  .logo-symbol {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  /* .floating-header и .nav-container - УБРАНЫ: конфликтовали с основными правилами */

  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== СТАТУС ОНЛАЙН - УБРАНО ПО ЗАПРОСУ ПОЛЬЗОВАТЕЛЯ ===== */
/* .hero-status, .online-status, .status-dot стили удалены */

/* ===== LIVE СЧЕТЧИКИ ===== */
.live-counter {
  color: var(--color-accent) !important;
  font-family: var(--font-mono);
}

/* ===== TYPING АНИМАЦИЯ ===== */
.typing-animation {
  opacity: 0;
  white-space: nowrap;
  border-right: 2px solid transparent;
  display: inline-block;
}

.typing-animation.typing-cursor {
  border-right: 2px solid var(--color-accent);
  animation: cursorBlink 1s infinite;
}

.typing-animation.typing-complete {
  border-right: 2px solid transparent;
}

/* ===== КАСТОМНЫЙ КУРСОР ===== */
* {
  cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJMMTMuMDkgOC4yNkwyMCAxMkwxMy4wOSAxNS43NEwxMiAyMkwxMC45MSAxNS43NEw0IDEyTDEwLjkxIDguMjZMMTIgMloiIGZpbGw9IiNGRkQ0M0IiIHN0cm9rZT0iIzBBMTkyOSIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+'), auto;
}

a, button, [role="button"], .btn {
  cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJMMTMuMDkgOC4yNkwyMCAxMkwxMy4wOSAxNS43NEwxMiAyMkwxMC45MSAxNS43NEw0IDEyTDEwLjkxIDguMjZMMTIgMloiIGZpbGw9IiMwMEI0RDgiIHN0cm9rZT0iIzBBMTkyOSIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjMiIGZpbGw9IiNGRkQ0M0IiLz4KPC9zdmc+'), pointer;
}

/* ===== ENHANCED КОНТАКТЫ ===== */
.enhanced-contact {
  background: radial-gradient(circle at center, rgba(255, 212, 59, 0.08) 0%, transparent 70%),
              linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  position: relative;
  overflow: hidden;
}

.enhanced-contact::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 212, 59, 0.03), transparent 30%);
  animation: rotateBackground 20s linear infinite;
  pointer-events: none;
}

.enhanced-grid {
  position: relative;
  z-index: 2;
}

.premium-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: var(--transition-smooth);
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 212, 59, 0.1), transparent);
  transition: left 0.8s;
  pointer-events: none;
}

.premium-card:hover::before {
  left: 100%;
}

.premium-card:hover {
  transform: translateY(-5px) rotateX(5deg) rotateY(2deg);
  border-color: rgba(255, 212, 59, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.floating-card {
  position: relative;
  transform: translateZ(0);
  transition: var(--transition-smooth);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.floating-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 212, 59, 0.1), rgba(0, 180, 216, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

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

.floating-card:hover {
  transform: translateY(-8px) translateZ(10px) rotateX(5deg);
  box-shadow: 0 15px 30px rgba(255, 212, 59, 0.2);
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 212, 59, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

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

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* .pulsating убран - анимация не нужна */

.glow-text {
  text-shadow: 0 0 20px rgba(255, 212, 59, 0.3);
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ ===== */
/* statusSlideIn и statusPulse удалены - больше не нужны */

@keyframes typeIn {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes cursorBlink {
  0%, 50% {
    border-color: var(--color-accent);
    opacity: 1;
  }
  51%, 100% {
    border-color: transparent;
    opacity: 0.3;
  }
}

@keyframes gradientPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

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

@keyframes pulseGlow {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(255, 212, 59, 0.3));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(255, 212, 59, 0.6));
    transform: scale(1.05);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
