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

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

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

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0,0,0,0.05);
}

.table thead {
  background: var(--light-card);
  border-bottom: 2px solid rgba(0,0,0,0.1);
}

/* Минималистичная типографика */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

ul, ol {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.75rem;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Выделение важных блоков */
.notice-box {
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--primary);
  background-color: rgba(var(--primary-rgb), 0.05);
  border-radius: 4px;
}

.notice-box p {
  margin-bottom: 0;
}

/* Таблицы */
.table-responsive {
  margin: 2rem 0;
}

.table {
  width: 100%;
  margin-bottom: 0;
}

.table th {
  font-weight: 600;
  padding: 1rem;
  vertical-align: middle;
}

.table td {
  padding: 1rem;
  vertical-align: top;
}

/* Адаптив */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}