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

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

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

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

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

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

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

/* Списки */
ul, ol {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

ul li, ol li {
  margin-bottom: 0.75rem;
}

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

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

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

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

.table tbody td {
  padding: 1rem;
  border-color: var(--border);
  vertical-align: top;
}

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

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

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

.warning-box {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.warning-box p {
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Контактная информация */
.contact-section {
  background: var(--surface);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 3rem;
  border: 1px solid var(--border);
}

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

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