/* =========================================================
   СПЕЦИАЛЬНАЯ ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ
   gkp25.kz
   ========================================================= */

/* ---------------------------------------------------------
   1. SKIP TO CONTENT
--------------------------------------------------------- */

.vi-skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    z-index: 999999;
    background: #000;
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border: 3px solid #fff;
}

.vi-skip-link:focus {
    top: 10px;
}

/* ---------------------------------------------------------
   2. ПАНЕЛЬ УПРАВЛЕНИЯ
--------------------------------------------------------- */

.vi-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;

    display: none;

    background: #ffffff;
    color: #000000;

    border-bottom: 4px solid #000000;

    padding: 12px 20px;

    font-family: Arial, Verdana, Tahoma, sans-serif;
    font-size: 16px;

    box-shadow: 0 3px 10px rgba(0,0,0,.25);
}

.vi-panel.vi-panel-active {
    display: block;
}

.vi-panel-inner {
    max-width: 1400px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------------------------------------------------------
   3. КНОПКИ
--------------------------------------------------------- */

.vi-btn {
    min-height: 44px;
    min-width: 44px;

    padding: 10px 15px;

    background: #ffffff;
    color: #000000;

    border: 2px solid #000000;

    font-family: Arial, Verdana, Tahoma, sans-serif;
    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    text-decoration: none;

    transition: none;
}

.vi-btn:hover,
.vi-btn:focus {
    background: #000000;
    color: #ffffff;
}

.vi-btn:focus-visible,
.vi-panel button:focus-visible,
.vi-panel a:focus-visible,
.vi-panel input:focus-visible,
.vi-panel select:focus-visible {
    outline: 4px solid #005fcc;
    outline-offset: 3px;
}

/* ---------------------------------------------------------
   4. ОСНОВНАЯ СПЕЦИАЛЬНАЯ ВЕРСИЯ
--------------------------------------------------------- */

body.vi-mode {
    font-family: Arial, Verdana, Tahoma, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;

    text-align: left !important;
}

/* Все основные элементы */

body.vi-mode *,
body.vi-mode *::before,
body.vi-mode *::after {
    font-family: Arial, Verdana, Tahoma, sans-serif !important;
    text-align: left !important;
}

/* ---------------------------------------------------------
   5. РАЗМЕР ШРИФТА
--------------------------------------------------------- */

/* Обычный */

body.vi-font-normal {
    font-size: 16px !important;
}

body.vi-font-normal * {
    font-size: inherit;
}

/* Средний */

body.vi-font-medium {
    font-size: 20px !important;
}

body.vi-font-medium h1 {
    font-size: 32px !important;
}

body.vi-font-medium h2 {
    font-size: 28px !important;
}

body.vi-font-medium h3 {
    font-size: 24px !important;
}

/* Крупный */

body.vi-font-large {
    font-size: 24px !important;
}

body.vi-font-large h1 {
    font-size: 38px !important;
}

body.vi-font-large h2 {
    font-size: 32px !important;
}

body.vi-font-large h3 {
    font-size: 28px !important;
}

/* ---------------------------------------------------------
   6. МЕЖБУКВЕННЫЙ ИНТЕРВАЛ
--------------------------------------------------------- */

body.vi-letter-normal * {
    letter-spacing: normal !important;
}

body.vi-letter-large * {
    letter-spacing: 0.12em !important;
}

/* ---------------------------------------------------------
   7. МЕЖСТРОЧНЫЙ ИНТЕРВАЛ
--------------------------------------------------------- */

body.vi-line-normal * {
    line-height: 1.5 !important;
}

body.vi-line-large * {
    line-height: 2 !important;
}

/* ---------------------------------------------------------
   8. ЦВЕТОВЫЕ СХЕМЫ
--------------------------------------------------------- */

/* Обычная схема */

body.vi-color-normal {
    background: #ffffff !important;
    color: #000000 !important;
}

body.vi-color-normal a {
    color: #0000ee !important;
}

/* Чёрно-белая схема */

body.vi-color-grayscale {
    filter: grayscale(100%) !important;
}

body.vi-color-grayscale,
body.vi-color-grayscale * {
    color: #000000 !important;
    background-color: #ffffff !important;
}

body.vi-color-grayscale a {
    color: #000000 !important;
    text-decoration: underline !important;
}

/* Белый на чёрном */

body.vi-color-black {
    background: #000000 !important;
    color: #ffffff !important;
}

body.vi-color-black *,
body.vi-color-black header,
body.vi-color-black footer,
body.vi-color-black main,
body.vi-color-black section,
body.vi-color-black article,
body.vi-color-black nav,
body.vi-color-black div {
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.vi-color-black a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

body.vi-color-black button,
body.vi-color-black input,
body.vi-color-black textarea,
body.vi-color-black select {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

/* ---------------------------------------------------------
   9. УВЕЛИЧЕНИЕ АКТИВНЫХ ЭЛЕМЕНТОВ
--------------------------------------------------------- */

body.vi-mode a,
body.vi-mode button,
body.vi-mode input,
body.vi-mode textarea,
body.vi-mode select {
    min-height: 44px !important;
}

body.vi-mode a {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   10. ВИДИМЫЙ ФОКУС КЛАВИАТУРЫ
--------------------------------------------------------- */

body.vi-mode a:focus,
body.vi-mode button:focus,
body.vi-mode input:focus,
body.vi-mode textarea:focus,
body.vi-mode select:focus {
    outline: 4px solid #005fcc !important;
    outline-offset: 4px !important;
}

/* ---------------------------------------------------------
   11. ОТКЛЮЧЕНИЕ ИЗОБРАЖЕНИЙ
--------------------------------------------------------- */

body.vi-images-off img,
body.vi-images-off picture,
body.vi-images-off video,
body.vi-images-off svg {
    visibility: hidden !important;
}

/* Сохраняем размеры, чтобы страница не ломалась */

body.vi-images-off img {
    background: #eeeeee !important;
}

/* ---------------------------------------------------------
   12. ОТКЛЮЧЕНИЕ ФОНОВ
--------------------------------------------------------- */

body.vi-backgrounds-off,
body.vi-backgrounds-off * {
    background-image: none !important;
}

/* ---------------------------------------------------------
   13. ОТКЛЮЧЕНИЕ АНИМАЦИИ
--------------------------------------------------------- */

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

/* ---------------------------------------------------------
   14. УПРОЩЕНИЕ КОНТЕНТА
--------------------------------------------------------- */

body.vi-mode table {
    border-collapse: collapse !important;
    width: 100% !important;
}

body.vi-mode th,
body.vi-mode td {
    border: 2px solid currentColor !important;
    padding: 12px !important;
}

body.vi-mode p,
body.vi-mode li,
body.vi-mode td,
body.vi-mode th {
    max-width: 100% !important;
}

/* ---------------------------------------------------------
   15. УБИРАЕМ СЛОЖНЫЕ ФОНОВЫЕ ЭФФЕКТЫ
--------------------------------------------------------- */

body.vi-mode {
    background-image: none !important;
}

/* ---------------------------------------------------------
   16. МОБИЛЬНАЯ АДАПТАЦИЯ
--------------------------------------------------------- */

@media (max-width: 768px) {

    .vi-panel {
        padding: 10px;
    }

    .vi-panel-inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .vi-btn {
        width: 100%;
        font-size: 15px;
    }

    body.vi-font-large {
        font-size: 22px !important;
    }

    body.vi-font-large h1 {
        font-size: 32px !important;
    }

    body.vi-font-large h2 {
        font-size: 28px !important;
    }

}

/* ---------------------------------------------------------
   17. УМЕНЬШЕНИЕ ДВИЖЕНИЯ
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}
.accessibility-button {
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 16px;
}

.accessibility-button:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
}