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

/* Адаптация к теме сайта */
.bg-light {
  background-color: var(--card-bg) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 255, 255, 0.15);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.3);
}

.alert {
  background-color: var(--card-bg);
  border-left: 4px solid var(--primary-cyan);
  color: var(--text-primary);
}

.table {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
}

.table-dark {
  --bs-table-bg: var(--card-bg);
  --bs-table-striped-bg: var(--dark-bg);
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

.table thead {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
  border-bottom: 2px solid var(--primary-cyan);
}

.table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table tbody tr:hover {
  background-color: rgba(0, 255, 255, 0.05);
}

.icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.step-number {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-weight: bold;
  margin-right: 1rem;
}

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

h2 {
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
}

h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}