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

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

/* Типографика документа */
.document-content {
  line-height: 1.8;
  color: var(--text-primary, #ffffff);
}

.document-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary, #FFD700);
}

.document-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary, #ffffff);
  border-bottom: 2px solid var(--primary, #FFD700);
  padding-bottom: 0.5rem;
}

.document-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary, #cccccc);
}

.document-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary, #cccccc);
}

.document-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary, #cccccc);
}

.document-content ul,
.document-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.document-content li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary, #cccccc);
}

.document-content strong {
  color: var(--primary, #FFD700);
  font-weight: 600;
}

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

.table {
  color: var(--text-primary, #ffffff);
  border-color: var(--border-color, rgba(255,255,255,0.1));
  margin-bottom: 0;
}

.table thead {
  background: var(--dark-card, #252525);
  border-bottom: 2px solid var(--primary, #FFD700);
}

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

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

.table tbody td {
  padding: 1rem;
  color: var(--text-secondary, #cccccc);
  vertical-align: middle;
}

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

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

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

/* Разделители */
.section-divider {
  border: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary, #FFD700), transparent);
  margin: 3rem 0;
}

/* Списки с иконками */
.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 1rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary, #FFD700);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Контактная информация */
.contact-info {
  background: var(--dark-card, #252525);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  margin-top: 2rem;
}

.contact-info h3 {
  margin-top: 0;
  color: var(--primary, #FFD700);
}

@media (max-width: 768px) {
  .document-content h1 {
    font-size: 2rem;
  }
  
  .document-content h2 {
    font-size: 1.5rem;
  }
  
  .document-content h3 {
    font-size: 1.25rem;
  }
}