/* Кнопка переключения темы */
a[href="#theme-toggle"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  border: 1px solid #6F8F80 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #263D32 !important;
  font-size: 0 !important;
  text-decoration: none !important;
}

a[href="#theme-toggle"]::before {
  content: "☾";
  font-family: Arial, sans-serif;
  font-size: 23px;
  line-height: 1;
}

html[data-theme="dark"] a[href="#theme-toggle"] {
  color: #F2F0E8 !important;
  border-color: #718579 !important;
}

html[data-theme="dark"] a[href="#theme-toggle"]::before {
  content: "☀";
}

/* Базовый фон тёмной темы */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #allrecords {
  background-color: #202321F !important;
  color: #F2F0E8 !important;
}

/* B2B Навигатор — тёмная тема */
html[data-theme="dark"] body,
html[data-theme="dark"] #allrecords {
  background-color: #202321F !important;
  color: #F2F0E8 !important;
}

/* Фон секций страницы */
html[data-theme="dark"] #allrecords .t-rec,
html[data-theme="dark"] #allrecords .t396__artboard {
  background-color: #17251F !important;
}

/* Заголовки и основной текст */
html[data-theme="dark"] #allrecords .t-title,
html[data-theme="dark"] #allrecords .t-name,
html[data-theme="dark"] #allrecords .t-descr,
html[data-theme="dark"] #allrecords .t-text,
html[data-theme="dark"] #allrecords .t-heading,
html[data-theme="dark"] #allrecords .t-menu__link-item,
html[data-theme="dark"] #allrecords p,
html[data-theme="dark"] #allrecords li {
  color: #F2F0E8 !important;
}

/* Ссылки и акценты */
html[data-theme="dark"] #allrecords a:not([href="#theme-toggle"]) {
  color: #B8D94E;
}

/* Кнопки и карточки */
html[data-theme="dark"] #allrecords .t-btn,
html[data-theme="dark"] #allrecords .t-card__col,
html[data-theme="dark"] #allrecords .t-item {
  background-color: #263D32 !important;
}

/* Границы */
html[data-theme="dark"] #allrecords .t-btn {
  border-color: #6F8F80 !important;
}

/* B2B Навигатор — нейтральный тёмный фон */
html[data-theme="dark"] body,
html[data-theme="dark"] #allrecords,
html[data-theme="dark"] #allrecords .t-rec,
html[data-theme="dark"] #allrecords .t396__artboard {
  background-color: #202321 !important;
}

/* Тёмный фон меню Tilda */
html[data-theme="dark"] #allrecords .tmenu,
html[data-theme="dark"] #allrecords .tmenu__container,
html[data-theme="dark"] #allrecords .t450__panel,
html[data-theme="dark"] #allrecords .t228,
html[data-theme="dark"] #allrecords .t456,
html[data-theme="dark"] #allrecords .t280,
html[data-theme="dark"] #allrecords .t282,
html[data-theme="dark"] #allrecords .t450,
html[data-theme="dark"] #allrecords .t-menuburger,
html[data-theme="dark"] #allrecords .tmenu-mobile {
  background-color: #202321 !important;
}

/* Текст и ссылки меню */
html[data-theme="dark"] #allrecords .t-menu__link-item,
html[data-theme="dark"] #allrecords .t228__list_item a,
html[data-theme="dark"] #allrecords .t456__list_item a,
html[data-theme="dark"] #allrecords .t450__menu a,
html[data-theme="dark"] #allrecords .t-menu__link-item:hover {
  color: #F2F0E8 !important;
}

/* Границы меню */
html[data-theme="dark"] #allrecords .tmenu,
html[data-theme="dark"] #allrecords .t228,
html[data-theme="dark"] #allrecords .t456 {
  border-color: #3B403C !important;
}

