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

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

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

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

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

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

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

/* Списки */
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;
  box-shadow: var(--shadow-sm);
}

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

.table thead {
  background: var(--primary);
  color: white;
  border-bottom: 2px solid rgba(0,0,0,0.1);
}

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

.table tbody td {
  padding: 1rem;
  border-color: rgba(0,0,0,0.05);
}

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

/* Важная информация */
.important-notice {
  background: linear-gradient(135deg, var(--gradient-primary));
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.important-notice strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Контактные блоки */
.contact-info {
  background: var(--light-card);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  margin: 1.5rem 0;
}

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

/* Make text black */
p, li, ul li, ol li {
  color: #000000 !important;
}

h2, h3, h4 {
  color: #000000 !important;
}

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

  .table thead th,
  .table tbody td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }
}