/* ============================================
   A11Y.CSS — Версия для слабовидящих (ГОСТ Р 52872-2012)
   Все правила применяются ТОЛЬКО когда на <html> есть класс .a11y-on.
   Для обычных пользователей этот файл не влияет на сайт.
   ============================================ */

/* Базовые сбросы для режима */
html.a11y-on body {
  background: #fff;
  color: #000;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

html.a11y-on .navbar,
html.a11y-on .site-footer,
html.a11y-on section,
html.a11y-on .ftco-section,
html.a11y-on .ftco-intro,
html.a11y-on .hero-section {
  background: inherit !important;
  color: inherit !important;
}

html.a11y-on .hero-overlay,
html.a11y-on .hero-section { background-image: none !important; }

html.a11y-on .navbar { box-shadow: none !important; border-bottom: 2px solid currentColor; }
html.a11y-on .site-footer { background: #fff !important; color: #000 !important; border-top: 2px solid currentColor; }

html.a11y-on a { color: inherit !important; text-decoration: underline; }
html.a11y-on .btn { border: 2px solid currentColor !important; background: transparent !important; color: inherit !important; box-shadow: none !important; }
html.a11y-on .btn-primary,
html.a11y-on .btn-light { background: currentColor !important; color: #fff !important; }
html.a11y-on .btn-primary > *,
html.a11y-on .btn-light > * { color: #fff !important; }

html.a11y-on .badge { background: transparent !important; color: inherit !important; border: 1px solid currentColor; }

/* Скрываем декоративные элементы — иконки, флаги, логотип */
html.a11y-on .nav-cta,
html.a11y-on .sticky-cta,
html.a11y-on .hero-badge,
html.a11y-on .hero-features,
html.a11y-on .ba-slider__handle,
html.a11y-on [data-aos] { animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important; }

/* ====== РАЗМЕР ШРИФТА ====== */
html.a11y-on.a11y-font-md { font-size: 18px; }
html.a11y-on.a11y-font-lg { font-size: 22px; }
html.a11y-on.a11y-font-xl { font-size: 26px; }

html.a11y-on.a11y-font-md body,
html.a11y-on.a11y-font-lg body,
html.a11y-on.a11y-font-xl body {
  font-size: 1rem;
}

/* ====== ЦВЕТОВЫЕ СХЕМЫ ====== */

/* 1) Чёрный на белом (по умолчанию для режима) */
html.a11y-on.a11y-scheme-bw,
html.a11y-on.a11y-scheme-bw body { background: #fff !important; color: #000 !important; }

/* 2) Белый на чёрном */
html.a11y-on.a11y-scheme-wb,
html.a11y-on.a11y-scheme-wb body { background: #000 !important; color: #fff !important; }
html.a11y-on.a11y-scheme-wb .navbar,
html.a11y-on.a11y-scheme-wb .site-footer { background: #000 !important; color: #fff !important; }

/* 3) Жёлтый на чёрном (классика для слабовидящих) */
html.a11y-on.a11y-scheme-yb,
html.a11y-on.a11y-scheme-yb body { background: #000 !important; color: #ffd84d !important; }
html.a11y-on.a11y-scheme-yb .navbar,
html.a11y-on.a11y-scheme-yb .site-footer { background: #000 !important; color: #ffd84d !important; }

/* 4) Тёмно-синий на голубом */
html.a11y-on.a11y-scheme-bb,
html.a11y-on.a11y-scheme-bb body { background: #9dd1ff !important; color: #063462 !important; }
html.a11y-on.a11y-scheme-bb .navbar,
html.a11y-on.a11y-scheme-bb .site-footer { background: #9dd1ff !important; color: #063462 !important; }

/* ====== СЕМЕЙСТВО ШРИФТА ====== */
html.a11y-on.a11y-font-serif body { font-family: Georgia, "Times New Roman", serif; }
html.a11y-on.a11y-font-sans  body { font-family: Arial, "Helvetica Neue", sans-serif; }

/* ====== СКРЫТЬ ИЗОБРАЖЕНИЯ ====== */
html.a11y-on.a11y-no-images img,
html.a11y-on.a11y-no-images [style*="background-image"] {
  display: none !important;
}
html.a11y-on.a11y-no-images [style*="background-image"] {
  display: block !important;
  background-image: none !important;
  border: 1px dashed currentColor;
  min-height: 40px;
}

/* ====== ПАНЕЛЬ НАСТРОЕК ====== */
.a11y-panel {
  display: none;
  background: #f5f5f5;
  border-bottom: 2px solid #333;
  padding: 12px 0;
  position: relative;
  z-index: 1040;
}
.a11y-panel.is-open { display: block; }

.a11y-panel__group { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-right: 24px; margin-bottom: 6px; }
.a11y-panel__label { font-size: 0.85rem; color: #555; margin-right: 6px; }

.a11y-panel__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border: 1px solid #999;
  background: #fff;
  color: #000 !important;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none !important;
  user-select: none;
}
.a11y-panel__btn:hover { background: #e8e8e8; }
.a11y-panel__btn.is-active { background: #333; color: #fff !important; border-color: #333; }

.a11y-panel__btn--A1 { font-size: 14px; }
.a11y-panel__btn--A2 { font-size: 18px; }
.a11y-panel__btn--A3 { font-size: 22px; }

.a11y-panel__swatch {
  width: 36px; height: 36px;
  border: 1px solid #999;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 14px;
}
.a11y-panel__swatch.is-active { outline: 3px solid #2196f3; outline-offset: 2px; }
.a11y-panel__swatch--bw { background: #fff; color: #000; }
.a11y-panel__swatch--wb { background: #000; color: #fff; }
.a11y-panel__swatch--yb { background: #000; color: #ffd84d; }
.a11y-panel__swatch--bb { background: #9dd1ff; color: #063462; }

.a11y-panel__off {
  margin-left: auto;
  background: #d32f2f;
  color: #fff !important;
  border-color: #d32f2f;
}

/* Кнопка-триггер в шапке */
.a11y-trigger {
  display: inline-flex; align-items: center;
  background: transparent; border: 1px solid currentColor;
  padding: 4px 10px; border-radius: 3px;
  font-size: 0.85rem;
  text-decoration: none !important;
  color: inherit;
  margin-right: 12px;
}
.a11y-trigger:hover { background: rgba(0,0,0,0.05); }
.a11y-trigger i { margin-right: 4px; }
