/* ===== CRITICAL STYLES FOR INDEX2 ===== */
/* Загружаются inline для оптимизации первого экрана */

/* CSS Variables */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --success-color: #4caf50;
  --danger-color: #ff6b6b;
  --warning-color: #ffd700;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-muted: #95a5a6;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e1e8ed;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --transition-base: all 0.3s ease;
  --border-radius: 8px;
  --border-radius-lg: 15px;
  --spacing-unit: 8px;
  --font-family: 'Arial', sans-serif;
  --container-max: 1200px;
  --hero-height: 100vh;
  --hero-max-height: 900px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 2.5);
}

/* Hero Section - Critical */
.hero {
  background: var(--bg-white);
  color: var(--text-primary);
  padding: calc(var(--spacing-unit) * 5) 0;
  position: relative;
  overflow: hidden;
  height: var(--hero-height);
  max-height: var(--hero-max-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(102,126,234,0.05) 0, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118,75,162,0.05) 0, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(76,175,80,0.03) 0, transparent 50%);
  z-index: 0;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 5);
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-unit) * 7.5);
  align-items: center;
}

/* Hero Content */
.hero-title {
  font-size: clamp(2em, 5vw, 3em);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(1em, 2vw, 1.25em);
  color: var(--text-secondary);
  margin-bottom: calc(var(--spacing-unit) * 3.75);
  line-height: 1.5;
}

/* Campaign Badge */
.campaign-badge {
  display: inline-block;
  background: var(--success-color);
  color: white;
  padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.75);
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero CTA Button */
.hero-support-btn {
  background: var(--success-color);
  color: white;
  border: 0;
  padding: calc(var(--spacing-unit) * 2.25) calc(var(--spacing-unit) * 5);
  border-radius: 50px;
  font-size: 1.15em;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1.25);
  transition: var(--transition-base);
  box-shadow: 
    0 4px 15px rgba(76,175,80,0.3),
    0 1px 3px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.hero-support-btn:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(76,175,80,0.4),
    0 2px 5px rgba(0,0,0,0.1);
}

/* Progress Bar */
.progress-bar {
  background: #ecf0f1;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: calc(var(--spacing-unit));
}

.progress-fill {
  background: linear-gradient(90deg, var(--success-color) 0, #66bb6a 100%);
  height: 100%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(76,175,80,0.3);
}

/* Stats */
.stat-amount {
  font-size: clamp(1.8em, 4vw, 2.5em);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 1em;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.campaign-badge { animation: fadeInUp 0.6s ease; }
.hero-title { animation: fadeInUp 0.6s ease 0.1s both; }
.hero-subtitle { animation: fadeInUp 0.6s ease 0.2s both; }
.funding-stats { animation: fadeInUp 0.6s ease 0.3s both; }
.hero-cta { animation: fadeInUp 0.6s ease 0.4s both; }

/* Mobile Critical Styles */
@media (max-width: 768px) {
  .hero {
    padding: calc(var(--spacing-unit) * 2.5) 0;
    height: auto;
    min-height: var(--hero-height);
    max-height: none;
  }
  
  .hero-container {
    padding: 0 calc(var(--spacing-unit) * 2);
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 2.5);
  }
  
  .hero-right {
    text-align: center;
  }
  
  .hero-support-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}