/* accessibility/static/accessibility/css/accessibility.css */

/* SKIP LINKS - Ссылки для быстрой навигации */
.skip-links {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 10000;
}

.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: #1e4477;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    transition: all 0.3s;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    left: 0;
    outline: 3px solid #ffff00;
    outline-offset: 2px;
}

/* SCREEN READER ONLY TEXT */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ПАНЕЛЬ ДОСТУПНОСТИ */
.accessibility-panel {
    position: fixed;
    top: 5%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.accessibility-toggle {
    background: #1e4477;
    color: white;
    border: none;
    padding: 15px 12px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 50px;
    justify-content: center;
}

.accessibility-toggle:hover {
    background: #2A3D82;
    transform: translateX(-5px);
}

.accessibility-toggle:focus {
    outline: 3px solid #ffff00;
    outline-offset: 2px;
}

.accessibility-controls {
    position: absolute;
    right: 100%;
    top: 0;
    background: white;
    border: 2px solid #1e4477;
    border-radius: 8px;
    min-width: 320px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.accessibility-controls.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.accessibility-header {
    background: #1e4477;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px 6px 0 0;
}

.accessibility-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.accessibility-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.accessibility-close:hover {
    background: rgba(255,255,255,0.2);
}

.accessibility-content {
    padding: 20px;
}

.accessibility-group {
    margin-bottom: 25px;
}

.accessibility-group h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e4477;
}

.accessibility-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-accessibility {
    background: white;
    border: 2px solid #1e4477;
    color: #1e4477;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
}

.btn-accessibility:hover {
    background: #1e4477;
    color: white;
}

.btn-accessibility.active {
    background: #1e4477;
    color: white;
    box-shadow: 0 2px 4px rgba(30,68,119,0.3);
}

.btn-accessibility:focus {
    outline: 3px solid #ffff00;
    outline-offset: 2px;
}

.accessibility-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.accessibility-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #1e4477;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s;
}

.accessibility-checkbox:hover .checkmark {
    background-color: #f0f7ff;
}

.accessibility-checkbox input:checked ~ .checkmark {
    background-color: #1e4477;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.accessibility-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.btn-accessibility-reset {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.btn-accessibility-reset:hover {
    background: #c82333;
}

.accessibility-info {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.accessibility-info p {
    margin: 0;
    color: #666;
}

/* НАСТРОЙКИ ДОСТУПНОСТИ - ПРИМЕНЕНИЕ */

/* Размеры шрифтов - ИСПРАВЛЕННАЯ ВЕРСИЯ */
.font-large {
    /* Основные элементы */
    font-size: 120% !important;
    line-height: 1.4 !important;
}

.font-large h1 {
    font-size: 66px !important; /* 55px * 1.2 */
}

.font-large .tekup-hero-content h1 {
    font-size: 66px !important; /* 55px * 1.2 */
}

.font-large .tekup-hero-content p {
    font-size: 43.2px !important; /* 36px * 1.2 */
}

.font-large h2 {
    font-size: 43.2px !important; /* 36px * 1.2 */
}

.font-large h2 span{
    font-size: 43.2px !important; /* 36px * 1.2 */
}

.font-large h3 {
    font-size: 28.8px !important; /* 24px * 1.2 */
}

.font-large h4 {
    font-size: 26.4px !important; /* 22px * 1.2 */
}

.font-large h5 {
    font-size: 21.6px !important; /* 18px * 1.2 */
}

.font-large h6 {
    font-size: 19.2px !important; /* 16px * 1.2 */
}

.font-large p,
.font-large body,
.font-large div,
.font-large a,
.font-large li {
    font-size: 21.6px !important; /* 18px * 1.2 */
    line-height: 1.4 !important;
}

/* Навигация и меню */
.font-large .site-menu-main .nav-link-item,
.font-large .nav-link-item {
    font-size: 19.2px !important; /* 16px * 1.2 */
}

.font-large .tekup-header-info ul li a {
    font-size: 16.8px !important; /* 14px * 1.2 */
}

/* Breadcrumbs */
.font-large .tekup-breadcrumb h1,
.font-large .post__title {
    font-size: 76.8px !important; /* 64px * 1.2 */
}

.font-large .breadcrumbs a,
.font-large .breadcrumbs li {
    font-size: 19.2px !important; /* 16px * 1.2 */
}

/* Кнопки */
.font-large .btn,
.font-large .btn-ksm-primary,
.font-large .btn-ksm-outline,
.font-large .tekup-news-filter {
    font-size: 19.2px !important; /* 16px * 1.2 */
    padding: 0.6rem 1.4rem !important;
}

/* Блоги и новости */
.font-large .tekup-blog-meta ul li a {
    font-size: 16.8px !important; /* 14px * 1.2 */
}

.font-large .tekup-blog-btn {
    font-size: 16.8px !important; /* 14px * 1.2 */
}

/* Мелкий текст */
.font-large small,
.font-large .small {
    font-size: 14.4px !important; /* 12px * 1.2 */
}

/* Иконки */
.font-large i[class*="ri-"],
.font-large i[class*="fa-"] {
    font-size: 1.2em !important;
}

/* Статистики и числа */
.font-large .stats-number {
    font-size: 3em !important; /* 2.5rem * 1.2 */
}

.font-large .stats-label {
    font-size: 1.2rem !important; /* 1rem * 1.2 */
}

/* Заголовки услуг */
.font-large .service-title {
    font-size: 1.8rem !important; /* увеличиваем */
}

/* 150% увеличение */
.font-xlarge {
    font-size: 150% !important;
    line-height: 1.4 !important;
}

.font-xlarge h1 {
    font-size: 82.5px !important; /* 55px * 1.5 */
}

.font-xlarge .tekup-hero-content h1 {
    font-size: 82.5px !important; /* 55px * 1.5 */
}

.font-xlarge .tekup-hero-content p {
    font-size: 54px !important; /* 36px * 1.5 */
}

.font-xlarge h2 {
    font-size: 54px !important; /* 36px * 1.5 */
}
.font-xlarge h2 span {
    font-size: 54px !important; /* 36px * 1.5 */
}

.font-xlarge h3 {
    font-size: 36px !important; /* 24px * 1.5 */
}

.font-xlarge h4 {
    font-size: 33px !important; /* 22px * 1.5 */
}

.font-xlarge h5 {
    font-size: 27px !important; /* 18px * 1.5 */
}

.font-xlarge h6 {
    font-size: 24px !important; /* 16px * 1.5 */
}

.font-xlarge p,
.font-xlarge body,
.font-xlarge div,
.font-xlarge a,
.font-xlarge li {
    font-size: 27px !important; /* 18px * 1.5 */
    line-height: 1.4 !important;
}

/* Навигация и меню */
.font-xlarge .site-menu-main .nav-link-item,
.font-xlarge .nav-link-item {
    font-size: 24px !important; /* 16px * 1.5 */
}

.font-xlarge .tekup-header-info ul li a {
    font-size: 21px !important; /* 14px * 1.5 */
}

/* Breadcrumbs */
.font-xlarge .tekup-breadcrumb h1,
.font-xlarge .post__title {
    font-size: 96px !important; /* 64px * 1.5 */
}

.font-xlarge .breadcrumbs a,
.font-xlarge .breadcrumbs li {
    font-size: 24px !important; /* 16px * 1.5 */
}

/* Кнопки */
.font-xlarge .btn,
.font-xlarge .btn-ksm-primary,
.font-xlarge .btn-ksm-outline,
.font-xlarge .tekup-news-filter {
    font-size: 24px !important; /* 16px * 1.5 */
    padding: 0.75rem 1.5rem !important;
}

/* Блоги и новости */
.font-xlarge .tekup-blog-meta ul li a {
    font-size: 21px !important; /* 14px * 1.5 */
}

.font-xlarge .tekup-blog-btn {
    font-size: 21px !important; /* 14px * 1.5 */
}

/* Мелкий текст */
.font-xlarge small,
.font-xlarge .small {
    font-size: 18px !important; /* 12px * 1.5 */
}

/* Иконки */
.font-xlarge i[class*="ri-"],
.font-xlarge i[class*="fa-"] {
    font-size: 1.5em !important;
}

/* Статистики и числа */
.font-xlarge .stats-number {
    font-size: 3.75em !important; /* 2.5rem * 1.5 */
}

.font-xlarge .stats-label {
    font-size: 1.5rem !important; /* 1rem * 1.5 */
}

/* Заголовки услуг */
.font-xlarge .service-title {
    font-size: 2.25rem !important; /* увеличиваем */
}

/* 200% увеличение */
.font-xxlarge {
    font-size: 200% !important;
    line-height: 1.4 !important;
}

.font-xxlarge h1 {
    font-size: 110px !important; /* 55px * 2 */
}

.font-xxlarge .tekup-hero-content h1 {
    font-size: 110px !important; /* 55px * 2 */
}

.font-xxlarge .tekup-hero-content p {
    font-size: 72px !important; /* 36px * 2 */
}

.font-xxlarge h2 {
    font-size: 72px !important; /* 36px * 2 */
}

.font-xxlarge h3 {
    font-size: 48px !important; /* 24px * 2 */
}

.font-xxlarge h4 {
    font-size: 44px !important; /* 22px * 2 */
}

.font-xxlarge h5 {
    font-size: 36px !important; /* 18px * 2 */
}

.font-xxlarge h6 {
    font-size: 32px !important; /* 16px * 2 */
}

.font-xxlarge p,
.font-xxlarge body,
.font-xxlarge div,
.font-xxlarge span:not(.sr-only),
.font-xxlarge a,
.font-xxlarge li {
    font-size: 36px !important; /* 18px * 2 */
    line-height: 1.4 !important;
}

/* Навигация и меню */
.font-xxlarge .site-menu-main .nav-link-item,
.font-xxlarge .nav-link-item {
    font-size: 32px !important; /* 16px * 2 */
}

.font-xxlarge .tekup-header-info ul li a {
    font-size: 28px !important; /* 14px * 2 */
}

/* Breadcrumbs */
.font-xxlarge .tekup-breadcrumb h1,
.font-xxlarge .post__title {
    font-size: 128px !important; /* 64px * 2 */
}

.font-xxlarge .breadcrumbs a,
.font-xxlarge .breadcrumbs li {
    font-size: 32px !important; /* 16px * 2 */
}

/* Кнопки */
.font-xxlarge .btn,
.font-xxlarge .btn-ksm-primary,
.font-xxlarge .btn-ksm-outline,
.font-xxlarge .tekup-news-filter {
    font-size: 32px !important; /* 16px * 2 */
    padding: 1rem 2rem !important;
}

/* Блоги и новости */
.font-xxlarge .tekup-blog-meta ul li a {
    font-size: 28px !important; /* 14px * 2 */
}

.font-xxlarge .tekup-blog-btn {
    font-size: 28px !important; /* 14px * 2 */
}

/* Мелкий текст */
.font-xxlarge small,
.font-xxlarge .small {
    font-size: 24px !important; /* 12px * 2 */
}

/* Иконки */
.font-xxlarge i[class*="ri-"],
.font-xxlarge i[class*="fa-"] {
    font-size: 2em !important;
}

/* Статистики и числа */
.font-xxlarge .stats-number {
    font-size: 5em !important; /* 2.5rem * 2 */
}

.font-xxlarge .stats-label {
    font-size: 2rem !important; /* 1rem * 2 */
}

/* Заголовки услуг */
.font-xxlarge .service-title {
    font-size: 3rem !important; /* увеличиваем */
}

/* Высокий контраст */
.high-contrast {
    --bg-color: #000000 !important;
    --text-color: #ffffff !important;
    --link-color: #ffff00 !important;
    --border-color: #ffffff !important;
    --button-bg: #333333 !important;
    --button-text: #ffffff !important;
}

.high-contrast,
.high-contrast * {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

.high-contrast a,
.high-contrast .nav-link-item {
    color: var(--link-color) !important;
    text-decoration: underline !important;
}

.high-contrast button,
.high-contrast .btn,
.high-contrast .btn-ksm-primary {
    background: var(--button-bg) !important;
    color: var(--button-text) !important;
    border: 2px solid var(--border-color) !important;
}

.high-contrast img,
.high-contrast video {
    filter: grayscale(100%) contrast(150%) !important;
}

/* Темная тема - ИСПРАВЛЕННАЯ ВЕРСИЯ */
.dark-theme {
    --bg-color: #1a1a1a !important;
    --text-color: #e0e0e0 !important;
    --link-color: #66b3ff !important;
    --border-color: #444444 !important;
    --card-bg: #2d2d2d !important;
    --header-bg: #0d1117 !important;
    --button-bg: #1e4477 !important;
}

.dark-theme {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

.dark-theme *:not(.btn):not(.btn-ksm-primary):not(.btn-ksm-outline):not(.accessibility-toggle):not(.accessibility-controls *) {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

.dark-theme .tekup-hero-section,
.dark-theme .bg-light1,
.dark-theme .sectin {
    background-color: var(--bg-color) !important;
}

.dark-theme .service-item,
.dark-theme .stats-card,
.dark-theme .tekup-blog-wrap {
    background-color: var(--card-bg) !important;
}

.dark-theme header,
.dark-theme .tekup-header-section {
    background-color: var(--header-bg) !important;
}

.dark-theme footer {
    background-color: var(--header-bg) !important;
}

.dark-theme .tekup-breadcrumb {
    background-color: var(--bg-color) !important;
}

.dark-theme h1,
.dark-theme h2, 
.dark-theme h3, 
.dark-theme h4, 
.dark-theme h5, 
.dark-theme h6,
.dark-theme p,
.dark-theme div,
.dark-theme span,
.dark-theme li,
.dark-theme .post__title {
    color: var(--text-color) !important;
}

.dark-theme a:not(.btn):not(.btn-ksm-primary):not(.btn-ksm-outline) {
    color: var(--link-color) !important;
}

.dark-theme .text-primary {
    color: var(--link-color) !important;
}

/* Кнопки в темной теме остаются читаемыми */
.dark-theme .btn-ksm-primary {
    background: var(--button-bg) !important;
    color: white !important;
    border-color: var(--button-bg) !important;
}

.dark-theme .btn-ksm-outline {
    background: transparent !important;
    color: var(--text-color) !important;
    border-color: var(--text-color) !important;
}

/* Модальные окна в темной теме */
.dark-theme .modal-content {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
}

.dark-theme .modal-header {
    background-color: var(--header-bg) !important;
    border-bottom-color: var(--border-color) !important;
}

/* Улучшенная фокусировка для клавиатурной навигации */
*:focus {
    outline: 3px solid #005fcc !important;
    outline-offset: 2px !important;
}

/* Режим скринридера - УДАЛЕНО */

/* АУДИО ПЛЕЕР */
.audio-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 2px solid #1e4477;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9998;
}

.audio-play-btn,
.audio-stop-btn {
    background: #1e4477;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.audio-play-btn:hover,
.audio-stop-btn:hover {
    background: #2A3D82;
}

.audio-status {
    font-size: 14px;
    color: #666;
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 768px) {
    .accessibility-panel {
        position: fixed;
        bottom: 20px;
        right: 20px;
        top: auto;
        transform: none;
    }
    
    .accessibility-toggle {
        border-radius: 50%;
        width: 60px;
        height: 60px;
        padding: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .accessibility-controls {
        position: fixed;
        right: 20px;
        bottom: 90px;
        top: auto;
        left: 20px;
        min-width: auto;
        max-width: calc(100vw - 40px);
        transform: translateY(100%);
    }
    
    .accessibility-controls.active {
        transform: translateY(0);
    }
}

/* ПЕЧАТЬ */
@media print {
    .accessibility-panel,
    .audio-player,
    .skip-links {
        display: none !important;
    }
}