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

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

.table {
  color: var(--text-primary);
  border-color: var(--dark-surface-light);
  margin-bottom: 2rem;
}

.table thead {
  background: var(--dark-surface-light);
  border-bottom: 2px solid var(--primary);
}

.table tbody tr {
  border-bottom: 1px solid var(--dark-surface-light);
}

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

/* Типографика */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}

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

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

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

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

li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

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

/* Специальные блоки */
.info-box {
  background: var(--dark-surface);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.warning-box {
  background: var(--dark-surface);
  border-left: 4px solid var(--secondary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.table-responsive {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}