/*
 * Video DL — Neo-Gradient Theme
 * Современная эстетика с плавными градиентами и стеклянными эффектами
 */

/* ═══════════════════════════════════════════════════════════════════════════
   CUSTOM FONTS — Distinctive Typography
   ═══════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700;800&family=Onest:wght@400;500;600&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════
   CSS VARIABLES — Light Theme (Default)
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Primary Palette */
  --color-primary: #0ea5e9;
  --color-primary-light: #38bdf8;
  --color-primary-dark: #0284c7;
  --color-primary-glow: rgba(14, 165, 233, 0.4);

  /* Secondary — Teal */
  --color-secondary: #14b8a6;
  --color-secondary-light: #2dd4bf;
  --color-secondary-dark: #0d9488;

  /* Accent — Amber/Orange */
  --color-accent: #f59e0b;
  --color-accent-light: #fbbf24;
  --color-accent-dark: #d97706;
  --color-accent-glow: rgba(245, 158, 11, 0.3);

  /* Semantic Colors */
  --color-success: #22c55e;
  --color-warning: #eab308;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Backgrounds */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f0f9ff;
  --color-bg-tertiary: #e0f2fe;
  --color-bg-card: rgba(255, 255, 255, 0.8);
  --color-bg-glass: rgba(255, 255, 255, 0.6);

  /* Text */
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-text-inverse: #ffffff;

  /* Borders */
  --color-border: rgba(148, 163, 184, 0.2);
  --color-border-strong: rgba(148, 163, 184, 0.4);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 50%, #22c55e 100%);
  --gradient-hero-dark: linear-gradient(135deg, #0284c7 0%, #0d9488 50%, #16a34a 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
  --gradient-text: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px var(--color-primary-glow);
  --shadow-accent-glow: 0 0 30px var(--color-accent-glow);

  /* Glass Effect */
  --glass-blur: blur(20px);
  --glass-saturate: saturate(180%);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Onest', sans-serif;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK THEME
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  /* Backgrounds — Deep Navy */
  --color-bg-primary: #0a0f1a;
  --color-bg-secondary: #111827;
  --color-bg-tertiary: #1e293b;
  --color-bg-card: rgba(30, 41, 59, 0.8);
  --color-bg-glass: rgba(15, 23, 42, 0.7);

  /* Text */
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;

  /* Borders */
  --color-border: rgba(148, 163, 184, 0.15);
  --color-border-strong: rgba(148, 163, 184, 0.25);

  /* Enhanced Glows for Dark Mode */
  --color-primary-glow: rgba(14, 165, 233, 0.25);
  --color-accent-glow: rgba(245, 158, 11, 0.2);

  /* Gradients */
  --gradient-card: linear-gradient(180deg, rgba(30,41,59,0.9) 0%, rgba(15,23,42,0.8) 100%);

  /* Shadows — Softer in Dark Mode */
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  transition: background-color var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

/* Display Font for Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--shadow-glow); }
  50% { box-shadow: 0 0 60px var(--color-primary-glow); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

/* Reveal Animation Classes */
.reveal {
  animation: slide-up 0.6s ease-out forwards;
  opacity: 0;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }
.reveal-delay-4 { animation-delay: 0.4s; }
.reveal-delay-5 { animation-delay: 0.5s; }
.reveal-delay-6 { animation-delay: 0.6s; }

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: var(--color-bg-glass);
  backdrop-filter: var(--glass-blur) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  padding: var(--space-sm) 0;
  background: var(--color-bg-card);
  box-shadow: var(--shadow-md);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.header-logo:hover {
  transform: scale(1.02);
}

.header-logo svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.header-nav a {
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-hero);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

.header-nav a:hover {
  color: var(--color-primary);
}

.header-nav a:hover::after {
  width: 100%;
}

/* Header Controls (Language + Theme) */
.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.25rem;
  gap: 0.125rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.625rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

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

.lang-btn.active {
  color: var(--color-text-inverse);
  background: var(--color-primary);
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-secondary);
}

.theme-toggle:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--transition-spring);
}

.theme-toggle:hover svg {
  transform: scale(1.1);
}

/* Hide/show icons based on theme */
[data-theme="light"] .icon-sun,
[data-theme="dark"] .icon-moon {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  overflow: hidden;
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

/* Animated Background Pattern */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Floating Shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: -3%;
  animation-delay: -2s;
}

.hero-shape-3 {
  width: 150px;
  height: 150px;
  bottom: 10%;
  left: 20%;
  animation-delay: -4s;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text-inverse);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-xl);
  animation: slide-up 0.6s ease-out 0.1s both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  animation: slide-up 0.6s ease-out 0.2s both;
}

.hero-title-accent {
  display: block;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3), 0 4px 40px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
  animation: slide-up 0.6s ease-out 0.3s both;
}

/* URL Input Box */
.hero-input-wrapper {
  max-width: 700px;
  margin: 0 auto;
  animation: slide-up 0.6s ease-out 0.4s both;
}

.hero-input-box {
  position: relative;
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transition: all var(--transition-base);
}

.hero-input-box:focus-within {
  box-shadow: var(--shadow-xl), 0 0 60px var(--color-primary-glow);
  transform: scale(1.02);
}

.hero-input {
  flex: 1;
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: #0f172a; /* Всегда тёмный текст на белом фоне */
  background: transparent;
  border: none;
  outline: none;
}

.hero-input::placeholder {
  color: #94a3b8; /* Серый placeholder на белом фоне */
}

.hero-submit {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-inverse);
  background: var(--gradient-accent);
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.hero-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-glow);
}

.hero-submit:active {
  transform: translateY(0);
}

.hero-submit svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hero-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  animation: fade-in 0.6s ease-out 0.6s both;
}

.hero-platform {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  opacity: 0.8;
}

.hero-platform svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WAVE SEPARATOR
   ═══════════════════════════════════════════════════════════════════════════ */
.wave-separator {
  position: relative;
  width: 100%;
  height: 80px;
  overflow: hidden;
  margin-top: -1px;
}

.wave-separator svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  animation: wave-flow 20s linear infinite;
}

.wave-separator.flip {
  transform: rotate(180deg);
  margin-top: 0;
  margin-bottom: -1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.features {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-secondary);
}

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

.section-label {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

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

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  position: relative;
  padding: var(--space-xl);
  background: var(--gradient-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-base);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-lg);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-xl);
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  transform: scale(1.1) rotate(-5deg);
}

.feature-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.feature-text {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Special UTP Card */
.feature-card.utp {
  background: var(--gradient-hero);
  color: var(--color-text-inverse);
  border: none;
}

.feature-card.utp::before {
  display: none;
}

.feature-card.utp .feature-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-text-inverse);
}

.feature-card.utp:hover .feature-icon {
  background: rgba(255, 255, 255, 0.3);
}

.feature-card.utp .feature-text {
  color: rgba(255, 255, 255, 0.9);
}

.utp-badge {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-accent);
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.how-it-works {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-primary);
}

.steps-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.step {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  padding: var(--space-xl);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto var(--space-lg);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-inverse);
  background: var(--gradient-hero);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-spring);
}

.step:hover .step-number {
  transform: scale(1.15) rotate(-5deg);
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.step-text {
  color: var(--color-text-secondary);
}

/* Connector Line */
.step::after {
  content: '';
  position: absolute;
  top: 3.5rem;
  right: -2rem;
  width: 4rem;
  height: 2px;
  background: var(--color-border-strong);
}

.step:last-child::after {
  display: none;
}

@media (max-width: 900px) {
  .step::after {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.faq {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-secondary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--color-primary);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  text-align: left;
  color: var(--color-text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.faq-icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--color-text-secondary);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  background: var(--color-primary);
}

.faq-item.active .faq-icon svg {
  color: var(--color-text-inverse);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease-out;
}

.faq-item.active .faq-answer {
  max-height: 1000px; /* Увеличено для длинных ответов */
}

.faq-answer-content {
  padding: 0 var(--space-xl) var(--space-xl);
  color: var(--color-text-secondary);
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HISTORY SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.history-section {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-primary);
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.history-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.history-info {
  flex: 1;
  min-width: 0;
}

.history-info strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-info small {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.history-translated {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-accent);
  color: var(--color-text-primary);
  border-radius: var(--radius-full);
}

.history-download-btn {
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.history-download-btn:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.history-empty {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--color-text-muted);
}

.history-empty svg {
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--color-bg-tertiary);
  border-top: 1px solid var(--color-border);
}

[data-theme="dark"] .site-footer {
  background: #0a0f1a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-2xl);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.footer-logo svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-primary);
}

.footer-desc {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-text-secondary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  color: var(--color-text-inverse);
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--color-bg-glass);
  backdrop-filter: var(--glass-blur) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DRAG & DROP OVERRIDES (Compatible with dragdrop.js)
   ═══════════════════════════════════════════════════════════════════════════ */
.drop-zone {
  transition: all var(--transition-base);
}

.drop-zone.highlight {
  transform: scale(1.02);
}

.drop-zone.highlight .hero-input-box {
  box-shadow: var(--shadow-xl), 0 0 80px var(--color-primary-glow);
  border: 2px dashed var(--color-primary);
}

#url-input.url-accepted {
  animation: pulse-glow 0.5s ease;
}

#url-input.url-rejected {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero {
    padding: 7rem 0 4rem;
    min-height: auto;
  }

  .hero-input-box {
    flex-direction: column;
  }

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

  .hero-platforms {
    flex-wrap: wrap;
  }

  .header-nav {
    display: none;
  }

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

