/* Адаптация для темной темы */
body {
  color: var(--text-primary);
}

.bg-light {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.table-dark {
  --bs-table-bg: rgba(0, 0, 0, 0.3);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

.table thead {
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

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

h1 {
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

h3 {
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.alert-info {
  background: var(--dark-lighter, rgba(255,255,255,0.05));
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  border-left: 4px solid var(--primary);
}

.alert-info p {
  margin: 0;
}

p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

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

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

.contact-box {
  background: var(--dark-lighter, rgba(255,255,255,0.05));
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

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

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
}

.table-responsive table {
  margin: 0;
  min-width: 100%;
}

@media (max-width: 768px) {
  .table-responsive {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .table-responsive::-webkit-scrollbar {
    height: 8px;
  }

  .table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
  }

  .table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
  }

  .table {
    font-size: 0.9rem;
  }

  .table thead th,
  .table tbody td {
    padding: 10px 8px;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .table {
    font-size: 0.85rem;
  }

  .table thead th,
  .table tbody td {
    padding: 8px 6px;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 12px;
  }

  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}