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

/* Адаптация фонов под тему */
.bg-light {
  background-color: var(--dark-lighter) !important;
  color: var(--text-primary) !important;
}

/* Текстовые стили */
h1 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

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

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

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

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
}

/* Таблицы */
.table-responsive {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.table {
  color: var(--text-primary);
  border-color: var(--border-color);
  margin-bottom: 0;
}

.table thead {
  background: var(--dark-card);
  border-bottom: 2px solid var(--border-color);
}

.table thead th {
  color: var(--text-primary);
  font-weight: 600;
  padding: 1rem;
  border-color: var(--border-color);
}

.table tbody td {
  padding: 1rem;
  border-color: var(--border-color);
  color: var(--text-secondary);
}

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

/* Информационные блоки */
.info-box {
  background: var(--dark-card);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* Контактная информация */
.contact-info {
  background: var(--dark-lighter);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.contact-info h3 {
  margin-top: 0;
}

/* Дата обновления */
.update-date {
  color: rgba(248, 249, 255, 0.6);
  font-style: italic;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}