/* ==========================================================================
   Версия для слабовидящих (ГОСТ Р 52872-2019)
   BVI (Blind / Visually Impaired) Stylesheet
   ========================================================================== */

/* BVI Control Panel Toolbar */
.bvi-panel {
  display: none;
  background-color: #1e293b;
  color: #ffffff;
  padding: 10px 16px;
  border-bottom: 2px solid #3b82f6;
  font-size: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

body.bvi-active .bvi-panel {
  display: block;
}

body.bvi-active .site-header {
  top: 56px;
}

.bvi-panel-content {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.bvi-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bvi-group-label {
  font-weight: 600;
  color: #cbd5e1;
  margin-right: 4px;
}

.bvi-btn {
  background: #334155;
  color: #ffffff;
  border: 1px solid #475569;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.bvi-btn:hover {
  background: #475569;
}

.bvi-btn.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
}

.bvi-btn-close {
  background: #dc2626;
  border-color: #ef4444;
}

.bvi-btn-close:hover {
  background: #b91c1c;
}

/* --------------------------------------------------------------------------
   Font Scaling
   -------------------------------------------------------------------------- */
body.bvi-font-md {
  font-size: 19px;
}
body.bvi-font-md html {
  font-size: 19px;
}
body.bvi-font-md .brand-title {
  font-size: 1.35rem;
}
body.bvi-font-md .section-title {
  font-size: 1.6rem;
}

body.bvi-font-lg {
  font-size: 23px;
}
body.bvi-font-lg html {
  font-size: 23px;
}
body.bvi-font-lg .brand-title {
  font-size: 1.6rem;
}
body.bvi-font-lg .section-title {
  font-size: 1.9rem;
}

/* --------------------------------------------------------------------------
   Letter Spacing
   -------------------------------------------------------------------------- */
body.bvi-spacing-wide {
  letter-spacing: 0.08em;
  word-spacing: 0.15em;
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   Theme: White on Black (Inverted)
   -------------------------------------------------------------------------- */
body.bvi-theme-white-on-black {
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.bvi-theme-white-on-black * {
  border-color: #555555 !important;
}

body.bvi-theme-white-on-black .top-bar,
body.bvi-theme-white-on-black .site-header,
body.bvi-theme-white-on-black .sidebar,
body.bvi-theme-white-on-black .sveden-section,
body.bvi-theme-white-on-black .site-footer,
body.bvi-theme-white-on-black .hero-sveden,
body.bvi-theme-white-on-black .program-card,
body.bvi-theme-white-on-black .doc-card,
body.bvi-theme-white-on-black .profile-card,
body.bvi-theme-white-on-black .sveden-table th,
body.bvi-theme-white-on-black .sveden-table td,
body.bvi-theme-white-on-black .official-notice-box,
body.bvi-theme-white-on-black .info-banner {
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.bvi-theme-white-on-black a {
  color: #ffff00 !important;
  text-decoration: underline !important;
}

body.bvi-theme-white-on-black .nav-link.active {
  background-color: #222222 !important;
  color: #ffff00 !important;
  border-left-color: #ffff00 !important;
}

body.bvi-theme-white-on-black .brand-title,
body.bvi-theme-white-on-black .section-title,
body.bvi-theme-white-on-black .table-label,
body.bvi-theme-white-on-black h1,
body.bvi-theme-white-on-black h2,
body.bvi-theme-white-on-black h3,
body.bvi-theme-white-on-black h4 {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Theme: Black on White (Monochrome High Contrast)
   -------------------------------------------------------------------------- */
body.bvi-theme-black-on-white {
  background-color: #ffffff !important;
  color: #000000 !important;
}

body.bvi-theme-black-on-white * {
  border-color: #000000 !important;
}

body.bvi-theme-black-on-white .top-bar,
body.bvi-theme-black-on-white .site-header,
body.bvi-theme-black-on-white .sidebar,
body.bvi-theme-black-on-white .sveden-section,
body.bvi-theme-black-on-white .site-footer,
body.bvi-theme-black-on-white .hero-sveden,
body.bvi-theme-black-on-white .program-card,
body.bvi-theme-black-on-white .doc-card,
body.bvi-theme-black-on-white .profile-card,
body.bvi-theme-black-on-white .sveden-table th,
body.bvi-theme-black-on-white .sveden-table td,
body.bvi-theme-black-on-white .official-notice-box,
body.bvi-theme-black-on-white .info-banner {
  background-color: #ffffff !important;
  color: #000000 !important;
}

body.bvi-theme-black-on-white a {
  color: #0000ee !important;
  text-decoration: underline !important;
  font-weight: 700;
}

body.bvi-theme-black-on-white .nav-link.active {
  background-color: #eeeeee !important;
  color: #000000 !important;
  border-left: 4px solid #000000 !important;
}

/* --------------------------------------------------------------------------
   Theme: Dark Blue on Cyan
   -------------------------------------------------------------------------- */
body.bvi-theme-blue-on-cyan {
  background-color: #9dd1ff !important;
  color: #063462 !important;
}

body.bvi-theme-blue-on-cyan * {
  border-color: #063462 !important;
}

body.bvi-theme-blue-on-cyan .top-bar,
body.bvi-theme-blue-on-cyan .site-header,
body.bvi-theme-blue-on-cyan .sidebar,
body.bvi-theme-blue-on-cyan .sveden-section,
body.bvi-theme-blue-on-cyan .site-footer,
body.bvi-theme-blue-on-cyan .hero-sveden,
body.bvi-theme-blue-on-cyan .program-card,
body.bvi-theme-blue-on-cyan .doc-card,
body.bvi-theme-blue-on-cyan .profile-card,
body.bvi-theme-blue-on-cyan .sveden-table th,
body.bvi-theme-blue-on-cyan .sveden-table td,
body.bvi-theme-blue-on-cyan .official-notice-box,
body.bvi-theme-blue-on-cyan .info-banner {
  background-color: #9dd1ff !important;
  color: #063462 !important;
}

body.bvi-theme-blue-on-cyan a {
  color: #041f3d !important;
  text-decoration: underline !important;
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   Images Toggle
   -------------------------------------------------------------------------- */
body.bvi-images-off img,
body.bvi-images-off svg:not(.bvi-keep) {
  display: none !important;
}

body.bvi-images-off .brand-emblem,
body.bvi-images-off .section-icon,
body.bvi-images-off .doc-icon {
  background: none !important;
  border: 1px solid currentColor !important;
}
