/* Защита от горизонтального скролла */
html, body { 
  overflow-x: hidden; 
  max-width: 100vw; 
}

/* Адаптация к светлой теме */
.bg-dark {
  background-color: var(--dark) !important;
  color: var(--text) !important;
}

.card {
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid var(--primary);
  margin: 2rem 0;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 1rem;
  height: 1rem;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--dark);
}

.stats-box {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #000000;
}

.stats-number {
  font-size: 2.5rem;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
  color: #000000;
}

.stats-label {
  font-size: 0.9rem;
  opacity: 0.9;
  color: #000000;
}

.value-card {
  height: 100%;
  border-left: 4px solid var(--accent);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
}

h2 {
  color: var(--primary);
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-weight: 600;
  margin-bottom: 1rem;
}