/* Версия для слабовидящих — Хэлс Мед */

.vi-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10002;
  padding: 12px 16px;
  background: #000;
  color: #fff;
  font: 700 18px/1.3 Arial, sans-serif;
  text-decoration: underline;
}

.vi-skip:focus {
  left: 8px;
  top: 8px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

html.vi-mode .vi-skip:focus {
  top: calc(var(--vi-toolbar-h, 0px) + 8px) !important;
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

.vi-toolbar {
  display: none;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #fff;
  color: #000;
  border-bottom: 3px solid #000;
  font-family: Arial, Helvetica, sans-serif;
}

.vi-toolbar *,
.vi-toolbar *::before,
.vi-toolbar *::after {
  box-sizing: border-box;
}

.vi-toolbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
}

.vi-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.vi-group__label {
  display: block;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 2px;
}

.vi-toolbar .vi-btn {
  min-height: 40px;
  min-width: 40px;
  margin: 0;
  padding: 6px 10px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}

.vi-toolbar .vi-btn:hover,
.vi-toolbar .vi-btn:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

.vi-toolbar .vi-btn.is-active {
  background: #000;
  color: #fff;
}

.vi-toolbar .vi-btn--lg {
  font-size: 20px;
}

.vi-toolbar .vi-btn--xl {
  font-size: 24px;
}

.vi-toolbar .vi-swatch {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.vi-toolbar .vi-swatch--bw {
  background: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
}

.vi-toolbar .vi-swatch--wb {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}

.vi-toolbar .vi-swatch--blue {
  background: #9dd1ff !important;
  color: #063462 !important;
  border-color: #063462 !important;
}

.vi-toolbar .vi-swatch--beige {
  background: #f7f3d6 !important;
  color: #4d4b43 !important;
  border-color: #4d4b43 !important;
}

.vi-toolbar .vi-btn--off {
  margin-left: auto;
  padding: 8px 14px;
  white-space: nowrap;
}

html.vi-mode .vi-toolbar {
  display: block;
}

html.vi-mode {
  --vi-bg: #ffffff;
  --vi-fg: #000000;
  --vi-link: #000000;
  --vi-border: #000000;
  --vi-ff: Arial, Helvetica, sans-serif;
  --vi-ls: 0;
  --vi-lh: 1.55;
}

html.vi-mode[data-vi-scheme="wb"] {
  --vi-bg: #000000;
  --vi-fg: #ffffff;
  --vi-link: #ffffff;
  --vi-border: #ffffff;
}

html.vi-mode[data-vi-scheme="blue"] {
  --vi-bg: #9dd1ff;
  --vi-fg: #063462;
  --vi-link: #063462;
  --vi-border: #063462;
}

html.vi-mode[data-vi-scheme="beige"] {
  --vi-bg: #f7f3d6;
  --vi-fg: #4d4b43;
  --vi-link: #4d4b43;
  --vi-border: #4d4b43;
}

html.vi-mode[data-vi-size="normal"] {
  font-size: 18px !important;
}

html.vi-mode[data-vi-size="large"] {
  font-size: 22px !important;
}

html.vi-mode[data-vi-size="xlarge"] {
  font-size: 26px !important;
}

html.vi-mode[data-vi-font="serif"] {
  --vi-ff: "Times New Roman", Times, serif;
}

html.vi-mode[data-vi-spacing="medium"] {
  --vi-ls: 0.12em;
  --vi-lh: 1.8;
}

html.vi-mode[data-vi-spacing="large"] {
  --vi-ls: 0.2em;
  --vi-lh: 2;
}

html.vi-mode,
html.vi-mode body {
  background: var(--vi-bg) !important;
  color: var(--vi-fg) !important;
  font-family: var(--vi-ff) !important;
  letter-spacing: var(--vi-ls) !important;
  line-height: var(--vi-lh) !important;
  word-spacing: 0.04em;
}

html.vi-mode body {
  padding-top: var(--vi-toolbar-h, 0px) !important;
}

html.vi-mode body *:not(script):not(style):not(svg):not(path):not(circle):not(line):not(polygon):not(img):not(video):not(canvas):not(iframe) {
  background-color: var(--vi-bg) !important;
  background-image: none !important;
  color: var(--vi-fg) !important;
  border-color: var(--vi-border) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-family: inherit !important;
  letter-spacing: inherit !important;
}

html.vi-mode h1 {
  font-size: 2em !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

html.vi-mode h2 {
  font-size: 1.6em !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

html.vi-mode h3 {
  font-size: 1.35em !important;
  font-weight: 700 !important;
}

html.vi-mode h4,
html.vi-mode h5,
html.vi-mode h6 {
  font-size: 1.15em !important;
  font-weight: 700 !important;
}

html.vi-mode p,
html.vi-mode li,
html.vi-mode td,
html.vi-mode th,
html.vi-mode label,
html.vi-mode input,
html.vi-mode textarea,
html.vi-mode select,
html.vi-mode button,
html.vi-mode a,
html.vi-mode span {
  font-size: 1rem !important;
}

html.vi-mode #topnav a,
html.vi-mode .navigation-menu a,
html.vi-mode .submenu a,
html.vi-mode .navbar a {
  font-size: 1rem !important;
  text-transform: none !important;
}

html.vi-mode a {
  color: var(--vi-link) !important;
  text-decoration: underline !important;
  text-underline-offset: 0.15em;
}

html.vi-mode a:hover,
html.vi-mode a:focus-visible {
  text-decoration-thickness: 3px !important;
}

html.vi-mode button,
html.vi-mode [type="button"],
html.vi-mode [type="submit"],
html.vi-mode [type="reset"] {
  border: 2px solid var(--vi-fg) !important;
  background: var(--vi-fg) !important;
  color: var(--vi-bg) !important;
}

html.vi-mode input,
html.vi-mode textarea,
html.vi-mode select {
  border: 2px solid var(--vi-fg) !important;
  background: var(--vi-bg) !important;
  color: var(--vi-fg) !important;
}

html.vi-mode :focus-visible {
  outline: 3px solid var(--vi-fg) !important;
  outline-offset: 3px !important;
}

html.vi-mode body .vi-toolbar {
  display: block;
}

html.vi-mode #topnav,
html.vi-mode nav.navbar,
html.vi-mode .navbar {
  top: var(--vi-toolbar-h, 0px) !important;
  background: var(--vi-bg) !important;
  backdrop-filter: none !important;
  border-bottom: 2px solid var(--vi-fg) !important;
}

html.vi-mode #theme-switcher,
html.vi-mode #switchRtl {
  display: none !important;
}

html.vi-mode[data-vi-images="gray"] img,
html.vi-mode[data-vi-images="gray"] video,
html.vi-mode[data-vi-images="gray"] picture {
  filter: grayscale(100%) contrast(1.15) !important;
}

html.vi-mode[data-vi-images="off"] img,
html.vi-mode[data-vi-images="off"] video,
html.vi-mode[data-vi-images="off"] picture {
  display: none !important;
}

html.vi-mode[data-vi-images="off"] .logo img {
  display: inline-block !important;
  filter: contrast(1.4);
}

html.vi-mode *,
html.vi-mode *::before,
html.vi-mode *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* Панель настроек не должна наследовать ядерные стили страницы */
html.vi-mode .vi-toolbar,
html.vi-mode .vi-toolbar *:not(svg):not(path) {
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  text-transform: none !important;
}

html.vi-mode .vi-toolbar {
  background: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
}

html.vi-mode .vi-toolbar .vi-group__label {
  background: transparent !important;
  color: #000 !important;
  font-size: 12px !important;
  border: 0 !important;
}

html.vi-mode .vi-toolbar .vi-btn {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  font-size: 16px !important;
}

html.vi-mode .vi-toolbar .vi-btn--lg {
  font-size: 20px !important;
}

html.vi-mode .vi-toolbar .vi-btn--xl {
  font-size: 24px !important;
}

html.vi-mode .vi-toolbar .vi-btn.is-active {
  background: #000 !important;
  color: #fff !important;
}

html.vi-mode[data-vi-scheme="wb"] .vi-toolbar,
html.vi-mode[data-vi-scheme="wb"] .vi-toolbar .vi-group__label {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

html.vi-mode[data-vi-scheme="wb"] .vi-toolbar .vi-btn {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

html.vi-mode[data-vi-scheme="wb"] .vi-toolbar .vi-btn.is-active {
  background: #fff !important;
  color: #000 !important;
}

html.vi-mode[data-vi-scheme="blue"] .vi-toolbar,
html.vi-mode[data-vi-scheme="blue"] .vi-toolbar .vi-group__label {
  background: #9dd1ff !important;
  color: #063462 !important;
  border-color: #063462 !important;
}

html.vi-mode[data-vi-scheme="blue"] .vi-toolbar .vi-btn {
  background: #9dd1ff !important;
  color: #063462 !important;
  border-color: #063462 !important;
}

html.vi-mode[data-vi-scheme="blue"] .vi-toolbar .vi-btn.is-active {
  background: #063462 !important;
  color: #9dd1ff !important;
}

html.vi-mode[data-vi-scheme="beige"] .vi-toolbar,
html.vi-mode[data-vi-scheme="beige"] .vi-toolbar .vi-group__label {
  background: #f7f3d6 !important;
  color: #4d4b43 !important;
  border-color: #4d4b43 !important;
}

html.vi-mode[data-vi-scheme="beige"] .vi-toolbar .vi-btn {
  background: #f7f3d6 !important;
  color: #4d4b43 !important;
  border-color: #4d4b43 !important;
}

html.vi-mode[data-vi-scheme="beige"] .vi-toolbar .vi-btn.is-active {
  background: #4d4b43 !important;
  color: #f7f3d6 !important;
}

html.vi-mode .js-vi-toggle {
  outline: 2px solid var(--vi-fg);
}
