/* Переключаемая версия для слабовидящих. */
.a11y-trigger {
  align-items: center;
  background: #fff;
  border: 2px solid #171918;
  border-radius: .4rem;
  color: #171918;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem .8rem;
}

.a11y-trigger:hover { background: #171918; color: #fff; }
.a11y-trigger:focus-visible { outline: 3px solid #8f352d; outline-offset: 3px; }
.a11y-trigger svg { height: 1.25rem; width: 1.25rem; }

.a11y-panel[hidden] { display: none; }
.a11y-panel {
  background: #fff;
  border-bottom: 4px solid #000;
  box-shadow: 0 14px 40px rgb(0 0 0 / 28%);
  color: #000;
  font-family: Verdana, Geneva, sans-serif;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.a11y-panel__inner {
  margin: 0 auto;
  max-width: 1280px;
  padding: 1rem 1.25rem 1.25rem;
}

.a11y-panel__top,
.a11y-control,
.a11y-options { align-items: center; display: flex; }
.a11y-panel__top { justify-content: space-between; margin-bottom: 1rem; }
.a11y-panel__title { font-size: 20px; font-weight: 800; margin: 0; }
.a11y-controls { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.a11y-control { align-items: flex-start; flex-direction: column; gap: .45rem; }
.a11y-control__label { font-size: 14px; font-weight: 700; }
.a11y-options { flex-wrap: wrap; gap: .4rem; }

.a11y-option,
.a11y-panel__close,
.a11y-reset {
  background: #fff;
  border: 2px solid #000;
  border-radius: .3rem;
  color: #000;
  cursor: pointer;
  font: 700 15px/1 Verdana, Geneva, sans-serif;
  min-height: 44px;
  padding: .65rem .8rem;
}

.a11y-option:hover,
.a11y-option[aria-pressed="true"],
.a11y-reset:hover { background: #000; color: #fff; }
.a11y-option:focus-visible,
.a11y-panel__close:focus-visible,
.a11y-reset:focus-visible { outline: 3px solid #005fcc; outline-offset: 2px; }
.a11y-option--theme { font-size: 18px; min-width: 46px; }
.a11y-option--black { background: #000; color: #fff; }
.a11y-option--blue { background: #9dd1ff; color: #062a55; }
.a11y-panel__close { border: 0; font-size: 25px; min-width: 44px; padding: .4rem; }
.a11y-reset { align-self: flex-end; }
.a11y-status { height: 1px; overflow: hidden; position: absolute; width: 1px; clip-path: inset(50%); }

html[data-a11y="on"] { font-size: var(--a11y-font-size, 125%); scroll-behavior: auto !important; }
html[data-a11y="on"] body { font-family: Verdana, Geneva, sans-serif !important; line-height: 1.65 !important; }
html[data-a11y="on"] body *:not(svg):not(path) { font-family: inherit !important; letter-spacing: normal; text-shadow: none !important; }
html[data-a11y="on"] p,
html[data-a11y="on"] li { line-height: 1.7 !important; }
html[data-a11y="on"] a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: .18em; }
html[data-a11y="on"] button,
html[data-a11y="on"] input,
html[data-a11y="on"] a { min-height: 44px; }
html[data-a11y="on"] *:focus-visible { outline: 4px solid #e00000 !important; outline-offset: 3px !important; }
html[data-a11y="on"] .reveal { opacity: 1 !important; transform: none !important; }
html[data-a11y="on"] *,
html[data-a11y="on"] *::before,
html[data-a11y="on"] *::after { animation: none !important; backdrop-filter: none !important; transition: none !important; }

html[data-a11y-spacing="wide"] body *:not(svg):not(path) { letter-spacing: .08em !important; word-spacing: .16em !important; }
html[data-a11y-spacing="wide"] p,
html[data-a11y-spacing="wide"] li { line-height: 2 !important; }

html[data-a11y-images="off"] body img,
html[data-a11y-images="off"] body figure,
html[data-a11y-images="off"] .hero-image { background-image: none !important; }
html[data-a11y-images="off"] body img,
html[data-a11y-images="off"] body figure { display: none !important; }

html[data-a11y="on"][data-a11y-theme="white"] body,
html[data-a11y="on"][data-a11y-theme="white"] body *:not(.a11y-option--black):not(.a11y-option--blue) {
  background-color: #fff !important;
  border-color: #000 !important;
  color: #000 !important;
}

html[data-a11y="on"][data-a11y-theme="black"] body,
html[data-a11y="on"][data-a11y-theme="black"] body *:not(.a11y-option--white):not(.a11y-option--blue) {
  background-color: #000 !important;
  border-color: #fff !important;
  color: #fff !important;
}

html[data-a11y="on"][data-a11y-theme="blue"] body,
html[data-a11y="on"][data-a11y-theme="blue"] body *:not(.a11y-option--white):not(.a11y-option--black) {
  background-color: #9dd1ff !important;
  border-color: #062a55 !important;
  color: #062a55 !important;
}

html[data-a11y="on"] .a11y-panel,
html[data-a11y="on"] .a11y-panel * { font-size: 15px; letter-spacing: normal !important; line-height: 1.2 !important; }
html[data-a11y="on"] .a11y-panel__title { font-size: 20px; }
html[data-a11y="on"] .a11y-panel__close { font-size: 25px; }
html[data-a11y="on"] .a11y-option--theme { font-size: 18px; }

@media (max-width: 1180px) {
  .a11y-trigger span { display: none; }
  .a11y-trigger { padding: .55rem; }
}

@media (max-width: 700px) {
  .a11y-panel { max-height: 100dvh; overflow: auto; }
  .a11y-controls { display: grid; gap: 1rem; }
  .a11y-reset { align-self: auto; }
}
