/**
 * Версия для слабовидящих - ГОСТ Р 52872-2012
 * Компактная панель как на сайте МГУ
 */

/* ===== ПАНЕЛЬ НАСТРОЕК (компактная, в одну строку) ===== */
.a11y-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #f5f5f5;
    border-bottom: 1px solid #ccc;
    padding: 8px 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

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

.a11y-panel-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.a11y-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.a11y-label {
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.a11y-buttons {
    display: flex;
    gap: 2px;
}

.a11y-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #1a237e;
    background: #fff;
    color: #1a237e;
    font-family: Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.a11y-btn:hover {
    background: #e8eaf6;
}

.a11y-btn.active {
    background: #1a237e;
    color: #fff;
}

/* Размеры шрифта A в кнопках (левая=маленькая, средняя, правая=большая) */
.a11y-btn-font[data-a11y-font="xlarge"] { font-size: 14px; }
.a11y-btn-font[data-a11y-font="normal"] { font-size: 18px; }
.a11y-btn-font[data-a11y-font="large"] { font-size: 22px; }

/* Кнопки цветовых схем - ЦВЕТНЫЕ */
.a11y-btn-white {
    background: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
}

.a11y-btn-blue {
    background: #1a237e !important;
    color: #fff !important;
    border-color: #1a237e !important;
}

.a11y-btn-black {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.a11y-btn-theme.active {
    outline: 3px solid #ff9800 !important;
    outline-offset: 1px;
}

/* Кнопки палитр всегда цветные, даже в белой теме */
body.a11y-mode.a11y-theme-white .a11y-btn-white {
    background: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
}

body.a11y-mode.a11y-theme-white .a11y-btn-blue {
    background: #1a237e !important;
    color: #fff !important;
    border-color: #1a237e !important;
}

body.a11y-mode.a11y-theme-white .a11y-btn-black {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.a11y-close {
    margin-left: auto;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #1a237e;
    color: #1a237e;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.a11y-close:hover {
    background: #1a237e;
    color: #fff;
}

/* ===== РЕЖИМ ДЛЯ СЛАБОВИДЯЩИХ ===== */
body.a11y-mode {
    padding-top: 50px !important;
}

body.a11y-mode .header {
    top: 50px !important;
}

/* Скрываем декоративные элементы и ВСЕ прелоадеры */
body.a11y-mode .bg-animation,
body.a11y-mode .parallax-layer,
body.a11y-mode .grid-overlay,
body.a11y-mode .grid-pulse,
body.a11y-mode .glow-orb,
body.a11y-mode .data-packets-container,
body.a11y-mode .code-fragment,
body.a11y-mode .preloader,
body.a11y-mode #preloader,
body.a11y-mode .preloader-inner,
body.a11y-mode .preloader-logo,
body.a11y-mode .preloader-text,
body.a11y-mode .preloader-bar,
body.a11y-mode .preloader-progress,
body.a11y-mode .loading-spinner,
body.a11y-mode .page-loader,
body.a11y-mode .content-loader,
body.a11y-mode .skeleton,
body.a11y-mode .skeleton-loader,
body.a11y-mode [class*="loader"],
body.a11y-mode [class*="spinner"],
body.a11y-mode .page-transition,
body.a11y-mode .forensic-icon,
body.a11y-mode .forensic-text,
body.a11y-mode .scan-line,
body.a11y-mode .data-stream,
body.a11y-mode .a11y-hidden,
body.a11y-mode .info-slider,
body.a11y-mode .hero-wires,
body.a11y-mode .wire {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

body.a11y-mode .hero {
    min-height: auto !important;
}

body.a11y-mode .doc-item {
    background: transparent !important;
}

body.a11y-mode .doc-download {
    background: transparent !important;
}

/* Footer social — чёрно-белый стиль для всех палитр */
body.a11y-mode .footer-social a {
    background: transparent !important;
    border: 2px solid currentColor !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

body.a11y-mode .footer-social a i {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

body.a11y-mode .footer-social a:hover {
    background: currentColor !important;
}

body.a11y-mode .footer-social a:hover i {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    filter: invert(1);
}


/* Скрываем секцию клиентов/вендоров (силовые структуры) */
body.a11y-mode .clients-section,
body.a11y-mode .vendors-section,
body.a11y-mode .partners-section,
body.a11y-mode .clients-marquee,
body.a11y-mode .vendors-marquee,
body.a11y-mode .clients-slider,
body.a11y-mode section.clients,
body.a11y-mode section.vendors,
body.a11y-mode [class*="clients"],
body.a11y-mode [class*="vendors"] {
    display: none !important;
}

/* ===== РАЗМЕРЫ ШРИФТА ===== */
/* xlarge = маленький(14px), normal = средний(16px), large = большой(20px) */

/* Маленький шрифт */
body.a11y-mode.a11y-font-xlarge { font-size: 14px !important; }
body.a11y-mode.a11y-font-xlarge * { font-size: inherit !important; }
body.a11y-mode.a11y-font-xlarge h1 { font-size: 1.8em !important; }
body.a11y-mode.a11y-font-xlarge h2 { font-size: 1.5em !important; }
body.a11y-mode.a11y-font-xlarge h3 { font-size: 1.3em !important; }
body.a11y-mode.a11y-font-xlarge h4 { font-size: 1.1em !important; }

/* Средний шрифт */
body.a11y-mode.a11y-font-normal { font-size: 16px !important; }
body.a11y-mode.a11y-font-normal * { font-size: inherit !important; }
body.a11y-mode.a11y-font-normal h1 { font-size: 2em !important; }
body.a11y-mode.a11y-font-normal h2 { font-size: 1.7em !important; }
body.a11y-mode.a11y-font-normal h3 { font-size: 1.4em !important; }
body.a11y-mode.a11y-font-normal h4 { font-size: 1.2em !important; }

/* Большой шрифт */
body.a11y-mode.a11y-font-large { font-size: 20px !important; }
body.a11y-mode.a11y-font-large * { font-size: inherit !important; }
body.a11y-mode.a11y-font-large h1 { font-size: 2.5em !important; }
body.a11y-mode.a11y-font-large h2 { font-size: 2em !important; }
body.a11y-mode.a11y-font-large h3 { font-size: 1.7em !important; }
body.a11y-mode.a11y-font-large h4 { font-size: 1.4em !important; }

/* Исключения — кнопки панели доступности сохраняют свои размеры */
body.a11y-mode .a11y-panel * { font-size: revert !important; }
body.a11y-mode .a11y-btn-font[data-a11y-font="xlarge"] { font-size: 14px !important; }
body.a11y-mode .a11y-btn-font[data-a11y-font="normal"] { font-size: 18px !important; }
body.a11y-mode .a11y-btn-font[data-a11y-font="large"] { font-size: 22px !important; }
body.a11y-mode .a11y-label { font-size: 13px !important; }
body.a11y-mode .a11y-btn-theme { font-size: 14px !important; }

/* ===== БЕЛАЯ ТЕМА (чёрно-белая) ===== */
body.a11y-mode.a11y-theme-white {
    background: #fff !important;
    color: #000 !important;
}

/* Весь текст чёрный */
body.a11y-mode.a11y-theme-white * {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* Hover состояния ТОЛЬКО для навигации и кнопок (НЕ для info-section) */
body.a11y-mode.a11y-theme-white .header .nav-link:hover,
body.a11y-mode.a11y-theme-white .header .btn:hover,
body.a11y-mode.a11y-theme-white .footer .btn:hover {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background-color: #000 !important;
}

/* Футер - текст при hover остаётся чёрным */
body.a11y-mode.a11y-theme-white .footer *:hover,
body.a11y-mode.a11y-theme-white .footer p:hover,
body.a11y-mode.a11y-theme-white .footer span:hover,
body.a11y-mode.a11y-theme-white .footer-brand:hover,
body.a11y-mode.a11y-theme-white .footer-brand:hover * {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    background: transparent !important;
}

body.a11y-mode.a11y-theme-white .header {
    background: #fff !important;
    border-bottom: 1px solid #ccc !important;
}

/* Меню навигации */
body.a11y-mode.a11y-theme-white .nav-link {
    color: #000 !important;
    background: #fff !important;
    border: 1px solid transparent !important;
}

body.a11y-mode.a11y-theme-white .nav-link:hover {
    background: #000 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.a11y-mode.a11y-theme-white .nav-link.active,
body.a11y-mode.a11y-theme-white .nav-item.current-menu-item .nav-link,
body.a11y-mode.a11y-theme-white .current-menu-item > a {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .btn {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .btn:hover {
    background: #000 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.a11y-mode.a11y-theme-white a {
    color: #000 !important;
    text-decoration: underline !important;
}

body.a11y-mode.a11y-theme-white a:hover {
    background: #fff !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

body.a11y-mode.a11y-theme-white .footer {
    background: #f0f0f0 !important;
    border-top: 1px solid #ccc !important;
}

body.a11y-mode.a11y-theme-white .hero,
body.a11y-mode.a11y-theme-white section {
    background: #fff !important;
}

body.a11y-mode.a11y-theme-white .gradient-text {
    background: none !important;
}

body.a11y-mode.a11y-theme-white .card,
body.a11y-mode.a11y-theme-white .feature-card,
body.a11y-mode.a11y-theme-white .course-card,
body.a11y-mode.a11y-theme-white .team-card,
body.a11y-mode.a11y-theme-white .material-card,
body.a11y-mode.a11y-theme-white .teacher-card,
body.a11y-mode.a11y-theme-white .license-card {
    background: #fff !important;
    border: 1px solid #999 !important;
}

/* Изображения заменяем на серые блоки */
body.a11y-mode.a11y-theme-white img:not(.logo-icon):not(.logo-img) {
    visibility: hidden !important;
    position: relative !important;
    background: #ccc !important;
}

body.a11y-mode.a11y-theme-white img:not(.logo-icon):not(.logo-img)::before {
    content: '' !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: #ccc !important;
}

/* Карточки с изображениями - серый фон вместо картинок */
body.a11y-mode.a11y-theme-white .course-card-image,
body.a11y-mode.a11y-theme-white .team-card-image,
body.a11y-mode.a11y-theme-white .card-image,
body.a11y-mode.a11y-theme-white .hero-image,
body.a11y-mode.a11y-theme-white [style*="background-image"] {
    background: #ccc !important;
    background-image: none !important;
}

body.a11y-mode.a11y-theme-white .course-card-image img,
body.a11y-mode.a11y-theme-white .team-card-image img,
body.a11y-mode.a11y-theme-white .card-image img {
    opacity: 0 !important;
}

/* Иконки - серые */
body.a11y-mode.a11y-theme-white .feature-card-icon,
body.a11y-mode.a11y-theme-white .card-icon,
body.a11y-mode.a11y-theme-white i.fas,
body.a11y-mode.a11y-theme-white i.far,
body.a11y-mode.a11y-theme-white i.fab {
    color: #666 !important;
    -webkit-text-fill-color: #666 !important;
}

/* Статистика и бейджи */
body.a11y-mode.a11y-theme-white .stat-card,
body.a11y-mode.a11y-theme-white .badge,
body.a11y-mode.a11y-theme-white .info-badge {
    background: #f0f0f0 !important;
    border: 1px solid #999 !important;
}

/* Info slider */
body.a11y-mode.a11y-theme-white .info-slider {
    background: #f0f0f0 !important;
    border: 1px solid #999 !important;
}

/* Курсы - полностью чёрно-белые */
body.a11y-mode.a11y-theme-white .course-card {
    background: #fff !important;
    border: 1px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .course-badge,
body.a11y-mode.a11y-theme-white .course-type-badge,
body.a11y-mode.a11y-theme-white .badge {
    background: #f0f0f0 !important;
    border: 1px solid #000 !important;
    color: #000 !important;
}

body.a11y-mode.a11y-theme-white .course-icon,
body.a11y-mode.a11y-theme-white .course-card-icon {
    background: #f0f0f0 !important;
    border: 1px solid #999 !important;
}

body.a11y-mode.a11y-theme-white .course-price,
body.a11y-mode.a11y-theme-white .price {
    color: #000 !important;
}

body.a11y-mode.a11y-theme-white .course-meta,
body.a11y-mode.a11y-theme-white .course-meta span {
    color: #333 !important;
}

/* CTA секция - белый фон, чёрная кнопка */
body.a11y-mode.a11y-theme-white .cta-section,
body.a11y-mode.a11y-theme-white .cta-card,
body.a11y-mode.a11y-theme-white .cta {
    background: #fff !important;
    border: 1px solid #ccc !important;
}

body.a11y-mode.a11y-theme-white .cta-section *,
body.a11y-mode.a11y-theme-white .cta-card *,
body.a11y-mode.a11y-theme-white .cta * {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

body.a11y-mode.a11y-theme-white .cta .btn,
body.a11y-mode.a11y-theme-white .cta-section .btn,
body.a11y-mode.a11y-theme-white .cta-card .btn {
    background: #959595 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: 2px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .cta .btn:hover,
body.a11y-mode.a11y-theme-white .cta-section .btn:hover,
body.a11y-mode.a11y-theme-white .cta-card .btn:hover {
    background: #000 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.a11y-mode.a11y-theme-white .cta .btn i,
body.a11y-mode.a11y-theme-white .cta-section .btn i,
body.a11y-mode.a11y-theme-white .cta-card .btn i {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.a11y-mode.a11y-theme-white .cta .btn:hover i,
body.a11y-mode.a11y-theme-white .cta-section .btn:hover i,
body.a11y-mode.a11y-theme-white .cta-card .btn:hover i {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* Courses CTA - белый фон с чёрной рамкой */
body.a11y-mode.a11y-theme-white .courses-cta {
    background: #fff !important;
    border: 1px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .courses-cta::before {
    display: none !important;
}

/* Hero badge - без фона и рамки */
body.a11y-mode.a11y-theme-white .hero-badge {
    background: transparent !important;
    border: 1px solid #000 !important;
    color: #000 !important;
}

/* Скрываем точку около номера лицензии */
body.a11y-mode.a11y-theme-white .hero-badge::before,
body.a11y-mode.a11y-theme-white .hero-badge .dot,
body.a11y-mode.a11y-theme-white .hero-badge i,
body.a11y-mode.a11y-theme-white .license-dot,
body.a11y-mode.a11y-theme-white .status-dot {
    display: none !important;
}

/* Блок "Почему мы" - чекбоксы чёрные, галочки белые */
body.a11y-mode.a11y-theme-white .feature-check,
body.a11y-mode.a11y-theme-white .check-icon,
body.a11y-mode.a11y-theme-white .feature-item-icon,
body.a11y-mode.a11y-theme-white .feature-icon,
body.a11y-mode.a11y-theme-white .about-feature-icon {
    background: #000 !important;
    border-color: #000 !important;
}

body.a11y-mode.a11y-theme-white .feature-check i,
body.a11y-mode.a11y-theme-white .check-icon i,
body.a11y-mode.a11y-theme-white .feature-item-icon i,
body.a11y-mode.a11y-theme-white .feature-icon i,
body.a11y-mode.a11y-theme-white .about-feature-icon i,
body.a11y-mode.a11y-theme-white .feature-check svg,
body.a11y-mode.a11y-theme-white .check-icon svg {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    fill: #fff !important;
}

/* Статистика справа - карточки */
body.a11y-mode.a11y-theme-white .stat-card,
body.a11y-mode.a11y-theme-white .stats-card,
body.a11y-mode.a11y-theme-white .feature-stat {
    background: #fff !important;
    border: 1px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .stat-card i,
body.a11y-mode.a11y-theme-white .stats-card i,
body.a11y-mode.a11y-theme-white .feature-stat i {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* ===== СТРАНИЦА КУРСОВ ===== */

/* Переключатель курсов — увеличиваем top из-за панели доступности */
body.a11y-mode .courses-switcher {
    top: 130px !important;
}

/* Сайдбар курса — увеличиваем top из-за панели доступности + switcher */
body.a11y-mode .course-detail-sidebar {
    top: 370px !important;
}

body.a11y-mode.a11y-theme-white .courses-switcher {
    background: #fff !important;
}

body.a11y-mode.a11y-theme-white .switcher-wrapper {
    background: #f0f0f0 !important;
}

body.a11y-mode.a11y-theme-white .switcher-btn {
    background: #fff !important;
    border: 1px solid #999 !important;
}

body.a11y-mode.a11y-theme-white .switcher-btn.active {
    background: #000 !important;
    border-color: #000 !important;
}

body.a11y-mode.a11y-theme-white .switcher-btn.active,
body.a11y-mode.a11y-theme-white .switcher-btn.active * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.a11y-mode.a11y-theme-white .switcher-btn:hover:not(.active) {
    background: #f0f0f0 !important;
}

body.a11y-mode.a11y-theme-white .switcher-highlight,
body.a11y-mode.a11y-theme-white .switcher-track {
    display: none !important;
}

body.a11y-mode.a11y-theme-white .switcher-btn-icon {
    background: transparent !important;
    border: 1px solid currentColor !important;
}

/* Скроллбары — чёрно-белые */
body.a11y-mode.a11y-theme-white *::-webkit-scrollbar-track {
    background: #f0f0f0 !important;
}

body.a11y-mode.a11y-theme-white *::-webkit-scrollbar-thumb {
    background: #999 !important;
}

body.a11y-mode.a11y-theme-white *::-webkit-scrollbar-thumb:hover {
    background: #666 !important;
}

body.a11y-mode.a11y-theme-white * {
    scrollbar-color: #999 #f0f0f0 !important;
}

/* Таблицы — чёрно-белые */
body.a11y-mode.a11y-theme-white table,
body.a11y-mode.a11y-theme-white .info-table {
    background: #fff !important;
    border: 1px solid #000 !important;
}

body.a11y-mode.a11y-theme-white table th,
body.a11y-mode.a11y-theme-white table td {
    background: #fff !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    border: 1px solid #000 !important;
}

body.a11y-mode.a11y-theme-white table thead th,
body.a11y-mode.a11y-theme-white table thead td {
    background: #f0f0f0 !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

body.a11y-mode.a11y-theme-white .info-row {
    border-color: #000 !important;
}

body.a11y-mode.a11y-theme-white .info-label,
body.a11y-mode.a11y-theme-white .info-value {
    background: #fff !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    border-color: #000 !important;
}

/* Детали курса */
body.a11y-mode.a11y-theme-white .course-detail {
    background: #fff !important;
}

body.a11y-mode.a11y-theme-white .course-badge {
    background: #f0f0f0 !important;
    border: 1px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .course-badge.premium {
    background: #000 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.a11y-mode.a11y-theme-white .course-badge.premium * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Info cards */
body.a11y-mode.a11y-theme-white .info-card,
body.a11y-mode.a11y-theme-white .course-info-cards .info-card {
    background: #fff !important;
    border: 1px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .info-card i,
body.a11y-mode.a11y-theme-white .info-card .info-label,
body.a11y-mode.a11y-theme-white .info-card .info-value {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    background: transparent !important;
}

body.a11y-mode.a11y-theme-white .info-label,
body.a11y-mode.a11y-theme-white .info-card .info-label,
body.a11y-mode.a11y-theme-white .course-info-cards .info-label {
    background: #fff !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* Убираем все цветные фоны в info-card */
body.a11y-mode.a11y-theme-white .info-card *,
body.a11y-mode.a11y-theme-white .course-info-cards * {
    background-color: transparent !important;
    background-image: none !important;
}

/* Программа курса */
body.a11y-mode.a11y-theme-white .program-day {
    background: #fff !important;
    border: 1px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .day-header {
    background: #f0f0f0 !important;
    border-bottom: 1px solid #999 !important;
}

body.a11y-mode.a11y-theme-white .day-number {
    background: #000 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.a11y-mode.a11y-theme-white .day-topics li::before {
    color: #000 !important;
}

/* Что включено */
body.a11y-mode.a11y-theme-white .include-item {
    background: #fff !important;
    border: 1px solid #999 !important;
}

body.a11y-mode.a11y-theme-white .include-item i {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* Карточка цены */
body.a11y-mode.a11y-theme-white .course-price-card {
    background: #fff !important;
    border: 2px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .price-value {
    color: #000 !important;
}

body.a11y-mode.a11y-theme-white .course-price-card .btn {
    background: #000 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.a11y-mode.a11y-theme-white .course-price-card .btn:hover {
    background: #fff !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

body.a11y-mode.a11y-theme-white .course-price-card .btn i,
body.a11y-mode.a11y-theme-white .course-price-card .btn:hover i {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* Документы */
body.a11y-mode.a11y-theme-white .course-documents {
    background: #f0f0f0 !important;
    border: 1px solid #999 !important;
}

body.a11y-mode.a11y-theme-white .document-link {
    background: #fff !important;
    border: 1px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .document-link:hover {
    background: #000 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.a11y-mode.a11y-theme-white .document-link:hover * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Page header / breadcrumbs */
body.a11y-mode.a11y-theme-white .page-header {
    background: #fff !important;
}

body.a11y-mode.a11y-theme-white .breadcrumbs a {
    color: #000 !important;
}

body.a11y-mode.a11y-theme-white .breadcrumbs .separator {
    color: #666 !important;
}

/* Прелоадеры - чёрно-белые */
body.a11y-mode.a11y-theme-white .preloader {
    background: #fff !important;
}

body.a11y-mode.a11y-theme-white .preloader-text,
body.a11y-mode.a11y-theme-white .preloader-text span {
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #000 !important;
    color: #000 !important;
}

body.a11y-mode.a11y-theme-white .preloader-bar {
    background: #ccc !important;
}

body.a11y-mode.a11y-theme-white .preloader-progress {
    background: #000 !important;
}

body.a11y-mode.a11y-theme-white .loading-spinner {
    border-color: #ccc !important;
    border-top-color: #000 !important;
}

/* ===== СТРАНИЦА INFO ===== */

/* Навигация по разделам */
body.a11y-mode.a11y-theme-white .info-nav {
    background: #fff !important;
}

body.a11y-mode.a11y-theme-white .info-nav-item {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #999 !important;
}

body.a11y-mode.a11y-theme-white .info-nav-item.active {
    background: #000 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.a11y-mode.a11y-theme-white .info-nav-item:hover {
    background: #000 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.a11y-mode.a11y-theme-white .info-nav-item:hover * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Секции info */
body.a11y-mode.a11y-theme-white .info-section {
    background: #fff !important;
}

body.a11y-mode.a11y-theme-white .info-section.alt-bg {
    background: #f5f5f5 !important;
}

/* Номера секций */
body.a11y-mode.a11y-theme-white .info-num {
    background: #000 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Таблицы info */
body.a11y-mode.a11y-theme-white .info-table,
body.a11y-mode.a11y-theme-white .info-row {
    background: #fff !important;
    border-color: #000 !important;
}

body.a11y-mode.a11y-theme-white .info-row .info-label {
    background: #f0f0f0 !important;
    border-right: 1px solid #000 !important;
}

/* Карточки структуры - БЕЗ hover */
body.a11y-mode.a11y-theme-white .structure-card {
    background: #fff !important;
    border: 1px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .structure-card.main {
    border-width: 2px !important;
}

body.a11y-mode.a11y-theme-white .structure-card:hover {
    background: #fff !important;
}

body.a11y-mode.a11y-theme-white .structure-icon {
    background: #f0f0f0 !important;
    border: 1px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .structure-info {
    background: #f0f0f0 !important;
    border: 1px solid #999 !important;
}

/* Ссылки в таблицах info - БЕЗ hover эффектов */
body.a11y-mode.a11y-theme-white .info-row a,
body.a11y-mode.a11y-theme-white .info-value a,
body.a11y-mode.a11y-theme-white .structure-contact a {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    text-decoration: underline !important;
}

body.a11y-mode.a11y-theme-white .info-row a:hover,
body.a11y-mode.a11y-theme-white .info-value a:hover,
body.a11y-mode.a11y-theme-white .structure-contact a:hover {
    background: transparent !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* Строки таблицы - БЕЗ hover */
body.a11y-mode.a11y-theme-white .info-row:hover {
    background: #fff !important;
}

/* Документы - БЕЗ hover анимации */
body.a11y-mode.a11y-theme-white .document-item,
body.a11y-mode.a11y-theme-white .documents-list .document-item {
    background: #fff !important;
    border: 1px solid #000 !important;
    transition: none !important;
}

body.a11y-mode.a11y-theme-white .document-item:hover,
body.a11y-mode.a11y-theme-white .documents-list .document-item:hover {
    background: #fff !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

body.a11y-mode.a11y-theme-white .document-item:hover *,
body.a11y-mode.a11y-theme-white .documents-list .document-item:hover * {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

body.a11y-mode.a11y-theme-white .document-item::before,
body.a11y-mode.a11y-theme-white .document-item::after {
    display: none !important;
}

/* Карточки преподавателей - БЕЗ hover */
body.a11y-mode.a11y-theme-white .teacher-card {
    background: #fff !important;
    border: 1px solid #000 !important;
    transition: none !important;
}

body.a11y-mode.a11y-theme-white .teacher-card:hover {
    background: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}

body.a11y-mode.a11y-theme-white .teacher-avatar {
    background: #f0f0f0 !important;
    border: 1px solid #000 !important;
}

/* Оборудование - БЕЗ hover */
body.a11y-mode.a11y-theme-white .equipment-item {
    background: #fff !important;
    border: 1px solid #999 !important;
    transition: none !important;
}

body.a11y-mode.a11y-theme-white .equipment-item:hover {
    background: #fff !important;
    transform: none !important;
}

/* Staff cards (Руководство) - БЕЗ hover */
body.a11y-mode.a11y-theme-white .staff-cards .structure-card:hover {
    background: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Общее - убираем ВСЕ hover эффекты на странице info */
body.a11y-mode.a11y-theme-white .info-section *:hover,
body.a11y-mode.a11y-theme-white .info-section a:hover,
body.a11y-mode.a11y-theme-white .info-section a:hover *,
body.a11y-mode.a11y-theme-white .info-section .structure-card:hover,
body.a11y-mode.a11y-theme-white .info-section .structure-card:hover *,
body.a11y-mode.a11y-theme-white .info-section .teacher-card:hover,
body.a11y-mode.a11y-theme-white .info-section .teacher-card:hover *,
body.a11y-mode.a11y-theme-white .info-section .document-item:hover,
body.a11y-mode.a11y-theme-white .info-section .document-item:hover *,
body.a11y-mode.a11y-theme-white .info-section .equipment-item:hover,
body.a11y-mode.a11y-theme-white .info-section .info-row:hover,
body.a11y-mode.a11y-theme-white .info-section .info-row:hover * {
    transform: none !important;
    box-shadow: none !important;
    background-color: inherit !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* ===== СТРАНИЦА ABOUT ===== */

/* Скрываем блок "Наш офис / Где мы работаем" */
body.a11y-mode.a11y-theme-white .office-section,
body.a11y-mode.a11y-theme-white .location-section,
body.a11y-mode.a11y-theme-white .map-section,
body.a11y-mode.a11y-theme-white [class*="office"],
body.a11y-mode.a11y-theme-white [class*="location"],
body.a11y-mode.a11y-theme-white [class*="map"] {
    display: none !important;
}

/* Скрываем фотографии в блоке "Наша команда" */
body.a11y-mode.a11y-theme-white .team-card img,
body.a11y-mode.a11y-theme-white .team-member img,
body.a11y-mode.a11y-theme-white .team-avatar img,
body.a11y-mode.a11y-theme-white .team-photo {
    display: none !important;
}

body.a11y-mode.a11y-theme-white .team-card-image,
body.a11y-mode.a11y-theme-white .team-avatar {
    background: #ccc !important;
}

/* Кнопки: белый фон, чёрный текст */
body.a11y-mode.a11y-theme-white .btn,
body.a11y-mode.a11y-theme-white .btn-primary,
body.a11y-mode.a11y-theme-white .btn-secondary,
body.a11y-mode.a11y-theme-white button {
    background: #fff !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    border: 2px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .btn:hover,
body.a11y-mode.a11y-theme-white .btn-primary:hover,
body.a11y-mode.a11y-theme-white .btn-secondary:hover,
body.a11y-mode.a11y-theme-white button:hover {
    background: #000 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.a11y-mode.a11y-theme-white .btn:hover *,
body.a11y-mode.a11y-theme-white .btn-primary:hover *,
body.a11y-mode.a11y-theme-white button:hover * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* About секции */
body.a11y-mode.a11y-theme-white .about-section {
    background: #fff !important;
}

body.a11y-mode.a11y-theme-white .about-card {
    background: #fff !important;
    border: 1px solid #000 !important;
}

/* Статистика - белый фон, чёрный текст */
body.a11y-mode.a11y-theme-white .stats-highlight,
body.a11y-mode.a11y-theme-white .stat-highlight,
body.a11y-mode.a11y-theme-white .about-stats,
body.a11y-mode.a11y-theme-white .stats-block,
body.a11y-mode.a11y-theme-white .big-stat {
    background: #fff !important;
    border: 2px solid #000 !important;
    border-radius: 20px !important;
}

body.a11y-mode.a11y-theme-white .stats-highlight *,
body.a11y-mode.a11y-theme-white .stat-highlight *,
body.a11y-mode.a11y-theme-white .about-stats *,
body.a11y-mode.a11y-theme-white .big-stat * {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* Карточки "Что нас объединяет" - белый фон, чёрный текст */
body.a11y-mode.a11y-theme-white .values-card,
body.a11y-mode.a11y-theme-white .value-card,
body.a11y-mode.a11y-theme-white .feature-card,
body.a11y-mode.a11y-theme-white .about-feature-card {
    background: #fff !important;
    border: 1px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .values-card *,
body.a11y-mode.a11y-theme-white .value-card *,
body.a11y-mode.a11y-theme-white .feature-card *,
body.a11y-mode.a11y-theme-white .about-feature-card * {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* Иконки в карточках - ЧЁРНЫЙ ФОН, БЕЛЫЕ ИКОНКИ */
body.a11y-mode.a11y-theme-white .values-card .icon,
body.a11y-mode.a11y-theme-white .value-card .icon,
body.a11y-mode.a11y-theme-white .value-icon,
body.a11y-mode.a11y-theme-white .feature-card .icon,
body.a11y-mode.a11y-theme-white .feature-card-icon,
body.a11y-mode.a11y-theme-white .about-feature-icon {
    background: #000 !important;
    border: 1px solid #000 !important;
    margin: 0 auto 4px auto !important;
}

/* Карточки статистики - центрирование */
body.a11y-mode.a11y-theme-white .feature-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

body.a11y-mode.a11y-theme-white .feature-card-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
}

body.a11y-mode.a11y-theme-white .values-card .icon i,
body.a11y-mode.a11y-theme-white .value-card .icon i,
body.a11y-mode.a11y-theme-white .value-icon i,
body.a11y-mode.a11y-theme-white .feature-card .icon i,
body.a11y-mode.a11y-theme-white .feature-card-icon i,
body.a11y-mode.a11y-theme-white .about-feature-icon i {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* ===== СТРАНИЦА КОНТАКТОВ ===== */

/* Карточки контактов */
body.a11y-mode.a11y-theme-white .contact-card,
body.a11y-mode.a11y-theme-white .contact-item {
    background: #fff !important;
    border: 1px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .contact-card *,
body.a11y-mode.a11y-theme-white .contact-item * {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* Hover на карточках контактов - белый текст */
body.a11y-mode.a11y-theme-white .contact-card:hover,
body.a11y-mode.a11y-theme-white .contact-item:hover {
    background: #000 !important;
}

body.a11y-mode.a11y-theme-white .contact-card:hover *,
body.a11y-mode.a11y-theme-white .contact-item:hover * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.a11y-mode.a11y-theme-white .contact-card:hover .contact-card-icon {
    background: #fff !important;
}

body.a11y-mode.a11y-theme-white .contact-card:hover .contact-card-icon i {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* Иконки в контактах - чёрный фон, белые иконки */
body.a11y-mode.a11y-theme-white .contact-card .icon,
body.a11y-mode.a11y-theme-white .contact-icon,
body.a11y-mode.a11y-theme-white .contact-card-icon,
body.a11y-mode.a11y-theme-white .contact-item .icon {
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.a11y-mode.a11y-theme-white .contact-card .icon i,
body.a11y-mode.a11y-theme-white .contact-icon i,
body.a11y-mode.a11y-theme-white .contact-card-icon i,
body.a11y-mode.a11y-theme-white .contact-item .icon i,
body.a11y-mode.a11y-theme-white .contact-card-icon .fas,
body.a11y-mode.a11y-theme-white .contact-card-icon .fab {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Форма обратной связи */
body.a11y-mode.a11y-theme-white .contact-form,
body.a11y-mode.a11y-theme-white .form-container,
body.a11y-mode.a11y-theme-white .contact-form-wrapper,
body.a11y-mode.a11y-theme-white .contact-form-section {
    background: #d1d1d1 !important;
    border-radius: 10px !important;
}

body.a11y-mode.a11y-theme-white .contact-form *,
body.a11y-mode.a11y-theme-white .form-container * {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* Поля ввода */
body.a11y-mode.a11y-theme-white input,
body.a11y-mode.a11y-theme-white textarea,
body.a11y-mode.a11y-theme-white select,
body.a11y-mode.a11y-theme-white .form-control,
body.a11y-mode.a11y-theme-white .form-input {
    background: #fff !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

body.a11y-mode.a11y-theme-white input::placeholder,
body.a11y-mode.a11y-theme-white textarea::placeholder {
    color: #666 !important;
    -webkit-text-fill-color: #666 !important;
}

/* Защищённый канал связи */
body.a11y-mode.a11y-theme-white .secure-badge,
body.a11y-mode.a11y-theme-white .security-badge {
    background: #f0f0f0 !important;
    border: 1px solid #000 !important;
}

body.a11y-mode.a11y-theme-white .secure-badge *,
body.a11y-mode.a11y-theme-white .security-badge * {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* Telegram для слабовидящих (соц.сеть) */
body.a11y-mode.a11y-theme-white .contact-card[href*="telegram"],
body.a11y-mode.a11y-theme-white .contact-item:has(a[href*="t.me"]),
body.a11y-mode.a11y-theme-white [class*="telegram"] {
    /* display: none !important; */
}

/* Убираем все цветные градиенты и фоны */
body.a11y-mode.a11y-theme-white [class*="gradient"],
body.a11y-mode.a11y-theme-white [class*="accent"],
body.a11y-mode.a11y-theme-white [class*="primary"],
body.a11y-mode.a11y-theme-white [class*="secondary"] {
    background: transparent !important;
    background-image: none !important;
}

/* ===== СИНЯЯ ТЕМА (ГОСТ Р 52872-2012) ===== */

/* Глобальный сброс всех цветов */
body.a11y-mode.a11y-theme-blue,
body.a11y-mode.a11y-theme-blue * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background-color: #1a237e !important;
    background-image: none !important;
    border-color: #5c6bc0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    text-decoration-color: transparent !important;
    outline-color: #fff !important;
}

/* Header */
body.a11y-mode.a11y-theme-blue .header,
body.a11y-mode.a11y-theme-blue .header-inner,
body.a11y-mode.a11y-theme-blue .nav,
body.a11y-mode.a11y-theme-blue .a11y-panel {
    background-color: #1a237e !important;
}

/* Ссылки */
body.a11y-mode.a11y-theme-blue a,
body.a11y-mode.a11y-theme-blue a:hover,
body.a11y-mode.a11y-theme-blue a:visited,
body.a11y-mode.a11y-theme-blue a:active,
body.a11y-mode.a11y-theme-blue a:focus {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none !important;
    border-bottom: none !important;
    background-image: none !important;
    background-color: transparent !important;
}

/* Кнопки */
body.a11y-mode.a11y-theme-blue .btn,
body.a11y-mode.a11y-theme-blue button:not(.a11y-btn),
body.a11y-mode.a11y-theme-blue input[type="submit"] {
    background-color: transparent !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: 2px solid #fff !important;
}

body.a11y-mode.a11y-theme-blue .btn:hover,
body.a11y-mode.a11y-theme-blue button:not(.a11y-btn):hover {
    background-color: #283593 !important;
}

/* Градиентный текст */
body.a11y-mode.a11y-theme-blue .gradient-text,
body.a11y-mode.a11y-theme-blue [class*="gradient"] {
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* Изображения - скрыть */
body.a11y-mode.a11y-theme-blue img:not(.logo-icon):not(.logo-img) {
    visibility: hidden !important;
    background-color: #0d1442 !important;
}

body.a11y-mode.a11y-theme-blue .course-card-image,
body.a11y-mode.a11y-theme-blue .team-card-image,
body.a11y-mode.a11y-theme-blue .card-image,
body.a11y-mode.a11y-theme-blue .hero-image,
body.a11y-mode.a11y-theme-blue [style*="background-image"] {
    background-color: #0d1442 !important;
    background-image: none !important;
}

/* Инпуты и формы */
body.a11y-mode.a11y-theme-blue input,
body.a11y-mode.a11y-theme-blue textarea,
body.a11y-mode.a11y-theme-blue select {
    background-color: #0d1442 !important;
    color: #fff !important;
    border: 1px solid #5c6bc0 !important;
}

/* SVG иконки */
body.a11y-mode.a11y-theme-blue svg,
body.a11y-mode.a11y-theme-blue svg * {
    fill: #fff !important;
    stroke: #fff !important;
}

/* Иконки */
body.a11y-mode.a11y-theme-blue i,
body.a11y-mode.a11y-theme-blue [class*="icon"] {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background-color: transparent !important;
}

/* Таблицы */
body.a11y-mode.a11y-theme-blue table,
body.a11y-mode.a11y-theme-blue th,
body.a11y-mode.a11y-theme-blue td,
body.a11y-mode.a11y-theme-blue tr {
    background-color: #1a237e !important;
    border-color: #5c6bc0 !important;
    color: #fff !important;
}

/* Разделители */
body.a11y-mode.a11y-theme-blue hr {
    border-color: #5c6bc0 !important;
    background-color: #5c6bc0 !important;
}

/* Кнопки палитр */
body.a11y-mode.a11y-theme-blue .a11y-btn-white {
    background-color: #fff !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    border-color: #000 !important;
}

body.a11y-mode.a11y-theme-blue .a11y-btn-blue {
    background-color: #1a237e !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: #fff !important;
}

body.a11y-mode.a11y-theme-blue .a11y-btn-black {
    background-color: #000 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: #000 !important;
}

/* ===== ЧЁРНАЯ ТЕМА (ГОСТ Р 52872-2012) ===== */

/* Глобальный сброс всех цветов */
body.a11y-mode.a11y-theme-black,
body.a11y-mode.a11y-theme-black * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background-color: #000 !important;
    background-image: none !important;
    border-color: #555 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    text-decoration-color: transparent !important;
    outline-color: #fff !important;
}

/* Контейнеры - чуть светлее для разделения */
body.a11y-mode.a11y-theme-black .card,
body.a11y-mode.a11y-theme-black .feature-card,
body.a11y-mode.a11y-theme-black .course-card,
body.a11y-mode.a11y-theme-black .program-day,
body.a11y-mode.a11y-theme-black .day-header,
body.a11y-mode.a11y-theme-black .info-card,
body.a11y-mode.a11y-theme-black .doc-card,
body.a11y-mode.a11y-theme-black .contact-card,
body.a11y-mode.a11y-theme-black .team-card,
body.a11y-mode.a11y-theme-black .material-card,
body.a11y-mode.a11y-theme-black .license-card,
body.a11y-mode.a11y-theme-black .structure-card,
body.a11y-mode.a11y-theme-black .faq-item,
body.a11y-mode.a11y-theme-black .accordion-item,
body.a11y-mode.a11y-theme-black .course-detail-sidebar,
body.a11y-mode.a11y-theme-black .course-detail-content,
body.a11y-mode.a11y-theme-black .footer {
    border: 1px solid #444 !important;
}

/* Header */
body.a11y-mode.a11y-theme-black .header,
body.a11y-mode.a11y-theme-black .header-inner,
body.a11y-mode.a11y-theme-black .nav,
body.a11y-mode.a11y-theme-black .a11y-panel {
    background-color: #000 !important;
}

/* Ссылки */
body.a11y-mode.a11y-theme-black a,
body.a11y-mode.a11y-theme-black a:hover,
body.a11y-mode.a11y-theme-black a:visited,
body.a11y-mode.a11y-theme-black a:active,
body.a11y-mode.a11y-theme-black a:focus {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none !important;
    border-bottom: none !important;
    background-image: none !important;
    background-color: transparent !important;
}

/* Кнопки */
body.a11y-mode.a11y-theme-black .btn,
body.a11y-mode.a11y-theme-black button:not(.a11y-btn),
body.a11y-mode.a11y-theme-black input[type="submit"] {
    background-color: transparent !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: 2px solid #fff !important;
}

body.a11y-mode.a11y-theme-black .btn:hover,
body.a11y-mode.a11y-theme-black button:not(.a11y-btn):hover {
    background-color: #333 !important;
}

/* Градиентный текст */
body.a11y-mode.a11y-theme-black .gradient-text,
body.a11y-mode.a11y-theme-black [class*="gradient"] {
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* Изображения - скрыть */
body.a11y-mode.a11y-theme-black img:not(.logo-icon):not(.logo-img) {
    visibility: hidden !important;
    background-color: #222 !important;
}

body.a11y-mode.a11y-theme-black .course-card-image,
body.a11y-mode.a11y-theme-black .team-card-image,
body.a11y-mode.a11y-theme-black .card-image,
body.a11y-mode.a11y-theme-black .hero-image,
body.a11y-mode.a11y-theme-black [style*="background-image"] {
    background-color: #222 !important;
    background-image: none !important;
}

/* Инпуты и формы */
body.a11y-mode.a11y-theme-black input,
body.a11y-mode.a11y-theme-black textarea,
body.a11y-mode.a11y-theme-black select {
    background-color: #111 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
}

/* SVG иконки */
body.a11y-mode.a11y-theme-black svg,
body.a11y-mode.a11y-theme-black svg * {
    fill: #fff !important;
    stroke: #fff !important;
}

/* Иконки Font Awesome и подобные */
body.a11y-mode.a11y-theme-black i,
body.a11y-mode.a11y-theme-black [class*="icon"] {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background-color: transparent !important;
}

/* Таблицы */
body.a11y-mode.a11y-theme-black table,
body.a11y-mode.a11y-theme-black th,
body.a11y-mode.a11y-theme-black td,
body.a11y-mode.a11y-theme-black tr {
    background-color: #000 !important;
    border-color: #555 !important;
    color: #fff !important;
}

/* Разделители */
body.a11y-mode.a11y-theme-black hr {
    border-color: #555 !important;
    background-color: #555 !important;
}

/* Карта на странице контактов - скрываем */
body.a11y-mode .map-section {
    display: none !important;
}

/* Панель доступности - сохраняем работоспособность кнопок палитр */
body.a11y-mode.a11y-theme-black .a11y-btn-white {
    background-color: #fff !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    border-color: #000 !important;
}

body.a11y-mode.a11y-theme-black .a11y-btn-blue {
    background-color: #1a237e !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: #1a237e !important;
}

body.a11y-mode.a11y-theme-black .a11y-btn-black {
    background-color: #000 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: #fff !important;
}

/* ===== КНОПКА В HEADER ===== */
.accessibility-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 18px;
}

.accessibility-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

body.a11y-mode.a11y-theme-white .accessibility-toggle {
    border-color: #000;
    color: #000;
}

body.a11y-mode.a11y-theme-white .accessibility-toggle:hover {
    background: #eee;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .a11y-panel {
        padding: 10px 15px;
    }
    
    .a11y-panel-inner {
        gap: 15px;
    }
    
    .a11y-label {
        font-size: 12px;
    }
    
    .a11y-btn {
        width: 28px;
        height: 28px;
    }
    
    .a11y-close {
        font-size: 11px;
        padding: 5px 10px;
    }
}
