/* ===== ИКОНКА ГЛАЗИКА ===== */
#vi-toggle-btn {
  position: fixed;
  top: 8px;
  right: 20px;
  z-index: 99999;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.15s;
  outline: none;
  padding: 0;
  opacity: 0.85;
}
#vi-toggle-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}
#vi-toggle-btn svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}
#vi-toggle-btn::after {
  content: "Версия для слабовидящих";
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: rgba(30,30,30,0.9);
  color: #fff;
  font-size: 12px;
  font-family: Arial, sans-serif;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#vi-toggle-btn:hover::after {
  opacity: 1;
}

/* ===== ПАНЕЛЬ НАСТРОЕК ===== */
#vi-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  background: #1a1a1a;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  padding: 12px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
#vi-panel.vi-visible {
  display: flex;
}
.vi-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vi-label {
  color: #aaa;
  font-size: 12px;
  margin-right: 2px;
  white-space: nowrap;
}
.vi-scheme {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.vi-scheme:hover { transform: scale(1.15); }
.vi-scheme.active { border-color: #fff !important; }
.vi-scheme[data-scheme="white"] { background: #fff; border-color: #666; }
.vi-scheme[data-scheme="black"] { background: #000; border-color: #555; }

.vi-font-btn,
.vi-img-btn {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 4px 11px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
  font-family: Arial, sans-serif;
  white-space: nowrap;
  line-height: 1.4;
}
.vi-font-btn:hover,
.vi-img-btn:hover { background: #555; }
.vi-font-btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: #333;
}
#vi-font-size-display {
  color: #ccc;
  font-size: 12px;
  min-width: 34px;
  text-align: center;
  font-family: Arial, sans-serif;
}
.vi-sep {
  width: 1px;
  height: 28px;
  background: #444;
  flex-shrink: 0;
}
#vi-close-btn {
  margin-left: auto;
  background: transparent;
  color: #ccc;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  font-family: Arial, sans-serif;
}
#vi-close-btn:hover {
  background: #333;
  color: #fff;
}

/* ===== БАЗОВЫЙ РЕЖИМ (белый фон) ===== */
body.vi-mode {
  background: #fff !important;
  color: #000 !important;
  padding-top: 58px !important;
}
body.vi-mode * {
  font-family: Arial, sans-serif !important;
  line-height: 1.7 !important;
  letter-spacing: 0.03em;
  text-shadow: none !important;
  box-shadow: none !important;
}
body.vi-mode a,
body.vi-mode .t-text a,
body.vi-mode .t-menu__link,
body.vi-mode .t-stickyheader__menu-link,
body.vi-mode [class*="t-menu"] a {
  color: #0000cc !important;
  text-decoration: underline !important;
}
body.vi-mode .tn-atom {
  color: #000 !important;
}
body.vi-mode .t-cover,
body.vi-mode .t-section,
body.vi-mode [class*="t-rec"],
body.vi-mode .t-stickyheader,
body.vi-mode [class*="t-header"] {
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  color: #000 !important;
}
body.vi-mode .t-cover__filter,
body.vi-mode [class*="t-cover__bg"],
body.vi-mode [class*="t-bgimg"],
body.vi-mode .t-section__bg {
  display: none !important;
}