/* Акцентные цвета */
:root {
  --accent: #6366f1;
  --accent-400: #818cf8;
  --accent-500: #6366f1;
  --accent-600: #4f46e5;
  --accent-400: #818cf8;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --success-500: #22c55e;
  --success-600: #16a34a;
  --warning-400: #fbbf24;
  --orange-500: #f97316;
  --purple-500: #a21caf;
  --pink-500: #ec4899;
  --red-500: #ef4444;
  --red-400: #f87171;
  --lightgray: #f3f4f6;
  --dark: #1f2937;
}

/* Базовые стили */
* {
  scroll-behavior: smooth;
}

/* Современные кастомные анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes glow {
  from {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  }
  to {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.8), 0 0 60px rgba(99, 102, 241, 0.4);
  }
}

@keyframes bounceSubtle {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* Градиентные фоны */
.gradient-mesh {
  background: linear-gradient(135deg, var(--accent-500) 0%, var(--primary-500) 50%, #f093fb 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

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

/* Стеклянные эффекты */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-500);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-600);
}

/* Улучшенные стили форм */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Стили для графиков и виджетов */
.chart-container {
  position: relative;
  height: 300px;
}

/* Стили для индикатора загрузки */
.loading-spinner {
  border: 2px solid #f3f3f3;
  border-radius: 50%;
  border-top: 2px solid #0066FF;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

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

/* Стили для счетчиков */
.counter {
  font-variant-numeric: tabular-nums;
  transition: all 0.3s ease;
  color: var(--accent-500);
}

.counter:hover {
  transform: scale(1.05);
  color: #6366f1;
}

/* Анимации появления элементов */
.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

.animate-bounce-subtle {
  animation: bounceSubtle 2s infinite;
}

.animate-pulse-slow {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hover эффекты для карточек */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Стили для прогресс-бара */
.progress-bar {
  background: linear-gradient(90deg, #0066FF, #00AA00);
  height: 4px;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Стили для модальных окон */
.modal-backdrop {
  backdrop-filter: blur(8px);
}

/* Стили для переключателей */
.toggle-switch {
  appearance: none;
  width: 48px;
  height: 24px;
  background: #e5e7eb;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-switch:checked {
  background: #0066FF;
}

.toggle-switch::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch:checked::before {
  transform: translateX(24px);
}

/* Responsive улучшения */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .calculator-preview {
    margin-top: 2rem;
  }
}

/* Стили для социальных доказательств */
.social-proof {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 170, 0, 0.05));
  border-left: 4px solid #0066FF;
}

/* Стили для FAQ аккордеона */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item.active {
  background-color: rgba(99, 102, 241, 0.05);
}

/* Стили для таблиц сравнения */
.comparison-table {
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #e5e7eb;
  padding: 12px 16px;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  border-left: none;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: none;
}

.comparison-table tr:first-child th {
  border-top: none;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Выделение преимуществ */
.advantage-cell {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
  font-weight: 600;
  color: var(--success-600);
}

/* Стили для временной шкалы */
.timeline-item {
  position: relative;
  padding-left: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--accent-500);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--accent-500);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 1.375rem;
  top: 1.25rem;
  width: 2px;
  height: calc(100% - 0.75rem);
  background: linear-gradient(to bottom, #0066FF, rgba(0, 102, 255, 0.3));
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-item:hover::before {
  background: var(--accent-600);
}

/* Стили для статистических блоков */
.stats-card {
  background: linear-gradient(135deg, white, #f8fafc);
  border: 1px solid rgba(0, 102, 255, 0.1);
}

/* Улучшенные стили кнопок */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-500), var(--primary-500));
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-500), var(--success-600));
  box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.39);
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--success-600), #006600);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

/* Hover эффекты для карточек и элементов */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hover-scale {
  transition: transform 0.3s ease;
}

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

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* Интерактивные эффекты для иконок */
.icon-bounce {
  transition: transform 0.3s ease-in-out;
}

.icon-bounce:hover {
  transform: scale(1.2) rotate(5deg);
  animation: bounceSubtle 0.6s ease-in-out;
}

/* Эффекты для статистических карточек */
.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-500);
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95));
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-card:hover .counter {
  transform: scale(1.1);
  color: #6366f1;
}

/* Эффекты для калькулятора */
.calculator-card {
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 15px var(--accent-400);
}

.calculator-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Эффекты для форм */
input:hover, select:hover {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Эффекты для навигации */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-500), var(--accent-600));
  transition: width 0.3s ease;
}

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

/* Микро-анимации для элементов */
.micro-bounce {
  animation: microBounce 0.6s ease;
}

@keyframes microBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Эффекты для FAQ */
.faq-item:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Пульсирующие элементы */
.pulse-green {
  animation: pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseGreen {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Эффекты для timeline */
.timeline-item:hover::before {
  transform: scale(1.3);
  background: #8b5cf6;
}

/* Градиентные тени */
.shadow-glow {
  box-shadow: 0 4px 20px var(--accent-400);
}

.shadow-glow-lg {
  box-shadow: 0 8px 30px var(--accent-400);
}

.shadow-card-hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.shadow-card-hover:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Контейнер для выделенного текста */
.highlighted-text {
  background: linear-gradient(90deg, var(--accent-400), var(--success-500));
  color: #ffffff;
  padding: 0.2em 0.5em;
  border-radius: 0.5em;
  font-weight: black;
  box-shadow: 0 2px 8px rgba(99, 101, 241, 0.336);
  display: inline-block;
}