/* ============================================================
   ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ. Классы вешаются на <html> (см. accessibility.js).
   Панель — плавающая карточка (не сдвигает вёрстку). Цветовые схемы
   ограничены #wrapper, чтобы сама панель не перекрашивалась.
   ============================================================ */

/* кнопка в верхней строке */
.gov-topbar__a11y{
    color:#cdddf3 !important; background:none; border:0; font:inherit; cursor:pointer;
    display:inline-flex; align-items:center; gap:6px; padding:0;
}
.gov-topbar__a11y:hover{ color:#fff !important; }

/* плавающая панель настроек */
.a11y-panel{
    position:fixed; top:12px; right:12px; z-index:3000;
    width:320px; max-width:94vw;
    background:#0A2A52; color:#fff; border:1px solid rgba(255,255,255,.22);
    border-radius:14px; padding:16px 18px; display:none;
    box-shadow:0 16px 50px rgba(0,0,0,.45);
    font-family:'Montserrat','Segoe UI',Arial,sans-serif;
}
.a11y-panel.is-open{ display:block; }
.a11y-panel__title{ font-size:15px; font-weight:700; margin:0 0 14px; display:flex; align-items:center; gap:8px; }
.a11y-row{ margin-bottom:14px; }
.a11y-row__label{ font-size:12px; text-transform:uppercase; letter-spacing:.5px; opacity:.7; margin-bottom:7px; }
.a11y-row__btns{ display:flex; gap:8px; flex-wrap:wrap; }
.a11y-btn{
    flex:1; min-width:44px; background:rgba(255,255,255,.1); color:#fff;
    border:1px solid rgba(255,255,255,.28); border-radius:8px; padding:9px 10px;
    cursor:pointer; font-size:14px; line-height:1; transition:.15s;
}
.a11y-btn:hover{ background:rgba(255,255,255,.22); }
.a11y-btn.is-active{ background:#fff; color:#0A2A52; border-color:#fff; font-weight:700; }
.a11y-btn--a1{ font-size:14px; } .a11y-btn--a2{ font-size:17px; } .a11y-btn--a3{ font-size:20px; }
.a11y-sw{ flex:1; height:36px; border-radius:8px; cursor:pointer; border:2px solid rgba(255,255,255,.3); }
.a11y-sw.is-active{ border-color:#C9A227; box-shadow:0 0 0 2px #C9A227; }
.a11y-sw--c1{ background:#fff; } .a11y-sw--c2{ background:#000; }
.a11y-sw--c3{ background:#000; color:#f5d300; } .a11y-sw--c4{ background:#09253f; }
.a11y-reset{
    width:100%; margin-top:4px; background:#C9A227; color:#0A2A52; border:0;
    border-radius:8px; padding:11px; font-weight:700; cursor:pointer; font-size:14px;
}
.a11y-reset:hover{ filter:brightness(1.08); }

/* ---------- размер шрифта (масштаб) ---------- */
html.a11y-fs1 body{ zoom:1.18; }
html.a11y-fs2 body{ zoom:1.40; }

/* ---------- межбуквенный интервал ---------- */
html.a11y-ls #wrapper *{ letter-spacing:.05em !important; word-spacing:.10em !important; }

/* ---------- скрыть изображения ---------- */
html.a11y-noimg #wrapper img{ visibility:hidden !important; }

/* ---------- цветовые схемы (только содержимое #wrapper) ---------- */
/* 1 — белый фон / чёрный текст */
html.a11y-c1 body{ background:#fff !important; }
html.a11y-c1 #wrapper, html.a11y-c1 #wrapper *:not(img){
    background:#fff !important; color:#000 !important; border-color:#000 !important;
    box-shadow:none !important; text-shadow:none !important; background-image:none !important;
}
html.a11y-c1 #wrapper a, html.a11y-c1 #wrapper a *{ color:#0033a0 !important; text-decoration:underline !important; }

/* 2 — чёрный фон / белый текст */
html.a11y-c2 body{ background:#000 !important; }
html.a11y-c2 #wrapper, html.a11y-c2 #wrapper *:not(img){
    background:#000 !important; color:#fff !important; border-color:#fff !important;
    box-shadow:none !important; text-shadow:none !important; background-image:none !important;
}
html.a11y-c2 #wrapper a, html.a11y-c2 #wrapper a *{ color:#ffd54a !important; text-decoration:underline !important; }

/* 3 — чёрный фон / жёлтый текст */
html.a11y-c3 body{ background:#000 !important; }
html.a11y-c3 #wrapper, html.a11y-c3 #wrapper *:not(img){
    background:#000 !important; color:#f5d300 !important; border-color:#f5d300 !important;
    box-shadow:none !important; text-shadow:none !important; background-image:none !important;
}
html.a11y-c3 #wrapper a, html.a11y-c3 #wrapper a *{ color:#46ff46 !important; text-decoration:underline !important; }

/* 4 — тёмно-синий / голубой */
html.a11y-c4 body{ background:#09253f !important; }
html.a11y-c4 #wrapper, html.a11y-c4 #wrapper *:not(img){
    background:#09253f !important; color:#a9d6ff !important; border-color:#6fb0ec !important;
    box-shadow:none !important; text-shadow:none !important; background-image:none !important;
}
html.a11y-c4 #wrapper a, html.a11y-c4 #wrapper a *{ color:#fff !important; text-decoration:underline !important; }

/* в цветовых схемах иконочные шрифты наследуют цвет текста — это ок */
@media (max-width:575px){
    .a11y-panel{ top:8px; right:8px; left:8px; width:auto; }
}
