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

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

/* Типографика документа */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary, #0066cc);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary, #0066cc);
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text, #212529);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

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

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

p {
  line-height: 1.75;
  margin-bottom: 1rem;
  color: var(--text, #212529);
}

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

li {
  margin-bottom: 0.75rem;
  line-height: 1.65;
  color: var(--text, #212529);
}

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

.warning-box {
  background-color: rgba(220, 53, 69, 0.1);
  border-left: 4px solid #dc3545;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

/* Таблица */
.table-responsive {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table {
  color: var(--text, #212529);
  border-color: var(--card-border, rgba(0,0,0,0.125));
  margin-bottom: 0;
}

.table thead {
  background: var(--primary, #0066cc);
  color: white;
}

.table thead th {
  border: none;
  padding: 1rem;
  font-weight: 600;
}

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

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

/* Контактные ссылки */
.contact-link {
  color: var(--primary, #0066cc);
  text-decoration: none;
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Последнее обновление */
.last-updated {
  font-style: italic;
  color: var(--text-muted, #6c757d);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border, rgba(0,0,0,0.125));
}

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