/* scrollbar-gutter — резервирует место под скроллбар, уменьшая скачки при resize */
html {
  scrollbar-gutter: stable;
}
body {
  min-width: 0;
}

/* Базовые стили - применяются только если тема не установлена */
html:not([data-bs-theme]) body,
html[data-bs-theme="light"] body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #fafbfc;
}

/* Стили для серого текста по умолчанию (когда тема не установлена) */
html:not([data-bs-theme]) .text-muted,
html:not([data-bs-theme]) small,
html:not([data-bs-theme]) .small,
html:not([data-bs-theme]) .text-secondary,
html:not([data-bs-theme]) .text-body-secondary {
  color: #495057 !important;
  opacity: 1 !important;
}

/* Улучшенная типографика */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  line-height: 1.1;
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--gray-600);
}

/* Улучшенный футер */
footer {
  background: var(--gray-900);
  color: white;
  margin-top: 4rem;
}

/* Футер с цветом бокового меню */
footer.footer-sidebar {
  background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
  margin-top: 0;
  border-top: none;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Белый цвет текста в футере */
footer.footer-sidebar p,
footer.footer-sidebar .text-white {
  color: #ffffff !important;
}

/* Убираем границы между футером и контентом */
.container-fluid + footer.footer-sidebar {
  border-top: none;
}

/* Убираем отступы и границы между сайдбаром и футером */
.custom-sidebar {
  border-bottom: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
    text-align: center;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .card-body {
    padding: 1rem;
  }
}

