* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.4s ease, color 0.4s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* === Анимации === */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

#content > div {
  animation: fadeInUp 0.5s ease-out;
}

.tab-btn {
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: var(--accent-red) !important;
  transform: scale(1.1);
}

.tab-btn:active {
  transform: scale(0.95);
}

/* === Утилиты === */
.card {
  background: var(--card-bg);
  padding: 16px;
  border-radius: 14px;
  transition: all 0.3s ease;
  border-left: 4px solid var(--accent-red);
}

.card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.2);
}

.btn-primary {
  background: var(--button-bg);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.text-red {
  color: var(--accent-red);
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
