/* Доступность (ГОСТ Р 52872-2019) */

.a11y-skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.a11y-skip:focus {
  left: 8px;
  top: 8px;
  z-index: 100000;
  background: #fff;
  color: #000;
  padding: 8px 16px;
  outline: 3px solid #005fcc;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

/* Видимый фокус (перебивает outline:none в common.css, slick.css и т.п.) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
  outline: 3px solid #005fcc !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px #fff !important;
}

/* Кнопка версии для слабовидящих */
.a11y-bvi-btn {
  position: fixed;
  left: 0;
  top: 40%;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #1a3fa0;
  color: #fff;
  border-radius: 0 8px 8px 0;
  font: 600 14px/1.2 Arial, sans-serif;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.a11y-bvi-btn:hover,
.a11y-bvi-btn:focus {
  color: #fff;
  text-decoration: none;
}

.a11y-bvi-btn__text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .25s ease;
}

.a11y-bvi-btn:hover .a11y-bvi-btn__text,
.a11y-bvi-btn:focus-visible .a11y-bvi-btn__text {
  max-width: 260px;
}

@media (max-width: 767px) {
  .a11y-bvi-btn {
    top: auto;
    bottom: 90px;
  }
}

/* Когда включена версия для слабовидящих, у bvi своя панель */
.bvi-body .a11y-bvi-btn {
  display: none;
}

.a11y-footer-bvi {
  text-decoration: underline;
  color: inherit;
}

/* Пауза автопрокрутки слайдов (WCAG 2.2.2) */
.a11y-pause-host {
  position: relative;
}

.a11y-pause {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 5;
  padding: 6px 12px;
  font: 14px Arial, sans-serif;
  color: #fff;
  background: rgba(0, 0, 0, .65);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

/* Текстовая расшифровка видео (вставляется контент-менеджерами под видео) */
.a11y-transcript {
  border: 1px solid #c7ccd6;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
}

.a11y-transcript summary {
  font-weight: 600;
  cursor: pointer;
  color: #1a2332;
}

.a11y-transcript__body {
  font-size: 16px;
  line-height: 1.6;
  color: #1a2332;
  max-height: 400px;
  overflow: auto;
}
