/* ========================================
   БАЗОВЫЕ СТИЛИ
======================================== */
body {
    font-family: 'PT Sans', sans-serif;
    color: #111827;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   SCROLL PROGRESS BAR
======================================== */
#scrollProgress {
    width: 0%;
    transition: width 0.1s ease-out;
}

/* ========================================
   БОКОВЫЕ ДЕКОРАТИВНЫЕ ЛИНИИ
======================================== */
.side-accent {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #FD7004 0%, #DB6413 50%, #FD7004 100%);
    background-size: 100% 200%;
    animation: gradientMove 8s linear infinite;
    z-index: 0;
    pointer-events: none;
}
.side-accent.left { left: 0; }
.side-accent.right { right: 0; }

.side-accent::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #FD7004;
    border-radius: 50%;
    left: -4px;
    box-shadow: 0 0 15px #FD7004, 0 0 30px rgba(253, 112, 4, 0.5);
    animation: moveDot 4s ease-in-out infinite alternate;
}
.side-accent.right::after {
    animation-delay: 2s;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 200%; }
}
@keyframes moveDot {
    0% { top: 20%; opacity: 0.5; }
    100% { top: 80%; opacity: 1; }
}

/* ========================================
   ТОЧЕЧНЫЙ ПАТТЕРН
======================================== */
.dot-pattern {
    background-image: radial-gradient(#FD7004 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* ========================================
   CTA КНОПКА
======================================== */
.btn-cta {
    background: linear-gradient(135deg, #FD7004 0%, #DB6413 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}
.btn-cta:hover::before {
    left: 100%;
}
.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(253, 112, 4, 0.4);
}

/* ========================================
   НАВИГАЦИЯ
======================================== */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #FD7004;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   HERO СЕКЦИЯ
======================================== */
.hero-section {
    background: linear-gradient(135deg, #1E1E1E 0%, #2D2D2D 100%);
    position: relative;
    overflow: hidden;
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

/* ========================================
   КАРТОЧКИ КУРСОВ
======================================== */
.course-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #E5E7EB;
    background: white;
    position: relative;
    overflow: hidden;
}
.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FD7004, #DB6413);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.course-card:hover::before {
    transform: scaleX(1);
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(253, 112, 4, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    border-color: transparent;
}
.course-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.course-card:hover img {
    transform: scale(1.08);
}

/* ========================================
   SCROLL REVEAL АНИМАЦИЯ
======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   FOOTER
======================================== */
.footer-section {
    background: linear-gradient(180deg, #333433 0%, #1E1E1E 100%);
    position: relative;
}
.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #FD7004, transparent);
}
.footer-link {
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-link:hover {
    color: #FD7004;
    transform: translateX(5px);
}

/* ═══════════════════════════════════════════════════ */
/* МОБИЛЬНОЕ МЕНЮ                                       */
/* ═══════════════════════════════════════════════════ */

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Бургер-меню кнопка */
#mobileMenuBtn {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Overlay */
#mobileMenuOverlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#mobileMenuOverlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Адаптация для маленьких экранов */
@media (max-width: 640px) {
    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }
}

/* ========================================
   КАРТОЧКИ СТАТИСТИКИ
======================================== */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.stat-card:hover {
    background: rgba(253, 112, 4, 0.1);
    border-color: rgba(253, 112, 4, 0.3);
    transform: translateY(-5px);
}

/* ========================================
   ВОЛНОВОЙ ПАТТЕРН
======================================== */
@keyframes waveScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(600px); }
}
#wavePattern {
    animation: waveScroll 30s linear infinite;
}

/* Панель BVI должна быть выше header */
.bvi-panel,
.bvi-body,
.bvi-root {
    z-index: 9999 !important;
    position: relative !important;
}

/* Убираем конфликт с нашим sticky header */
body.bvi-panel-open #mainHeader {
    top: 80px !important;
}

/* ═══════════════════════════════════════════════════ */
/* ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ                             */
/* ═══════════════════════════════════════════════════ */

/* Панель */
.accessibility-panel {
    background: #ffffff;
    border-bottom: 3px solid #FD7004;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: 'PT Sans', sans-serif;
    z-index: 9999;
}

.accessibility-panel.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.accessibility-panel:not(.fixed) {
    position: relative;
    margin-bottom: 20px;
}

.accessibility-panel__header {
    background: linear-gradient(135deg, #FD7004 0%, #DB6413 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessibility-panel__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
}

.accessibility-panel__title i { font-size: 24px; }

.accessibility-panel__close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.accessibility-panel__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.accessibility-panel__content {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.accessibility-panel__section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accessibility-panel__label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Цветовые темы */
.accessibility-panel__themes {
    display: flex;
    gap: 10px;
}

.accessibility-theme-btn {
    width: 60px;
    height: 60px;
    border: 3px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    transition: all 0.3s ease;
    overflow: hidden;
}

.accessibility-theme-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.accessibility-theme-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.accessibility-theme-btn.active {
    box-shadow: 0 0 0 3px #FD7004;
    border-color: #FD7004;
}

/* Размер шрифта */
.accessibility-panel__font-size {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 8px;
}

.accessibility-font-btn {
    background: #FD7004;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.accessibility-font-btn:hover {
    background: #DB6413;
    transform: scale(1.1);
}

.accessibility-font-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    min-width: 50px;
    text-align: center;
}

/* Кнопки */
.accessibility-panel__spacing,
.accessibility-panel__line-height,
.accessibility-panel__images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.accessibility-spacing-btn,
.accessibility-line-btn,
.accessibility-image-btn {
    background: #f5f5f5;
    border: 2px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.accessibility-spacing-btn:hover,
.accessibility-line-btn:hover,
.accessibility-image-btn:hover {
    background: #e0e0e0;
    border-color: #FD7004;
}

.accessibility-spacing-btn.active,
.accessibility-line-btn.active,
.accessibility-image-btn.active {
    background: #FD7004;
    color: white;
    border-color: #FD7004;
}

.accessibility-panel__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.accessibility-panel__checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.accessibility-panel__footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.accessibility-panel__reset,
.accessibility-panel__disable {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.accessibility-panel__reset {
    background: #e0e0e0;
    color: #333;
}

.accessibility-panel__reset:hover { background: #d0d0d0; }

.accessibility-panel__disable {
    background: #FD7004;
    color: white;
}

.accessibility-panel__disable:hover { background: #DB6413; }

/* ═══════════════════════════════════════════════════ */
/* СТИЛИ РЕЖИМА СЛАБОВИДЯЩИХ                           */
/* ═══════════════════════════════════════════════════ */

body.accessibility-mode {
    transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════════════ */
/* СБРОС ВСЕХ ЦВЕТОВ — ПЕРЕБИВАЕМ TAILWIND             */
/* ═══════════════════════════════════════════════════ */

/* Универсальный сброс для ВСЕХ элементов */
body.accessibility-mode *:not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-panel):not(.accessibility-panel *) {
    color: inherit !important;
    background-color: transparent !important;
    border-color: currentColor !important;
    text-shadow: none !important;
    box-shadow: none !important;
    background-image: none !important;
    -webkit-text-fill-color: currentColor !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

/* Тело страницы */
body.accessibility-mode {
    background-image: none !important;
}

/* ═══════════════════════════════════════════════════ */
/* ТЕМА: ЧЁРНЫМ ПО БЕЛОМУ                              */
/* ═══════════════════════════════════════════════════ */

body.accessibility-mode.theme-white {
    background-color: #ffffff !important;
    color: #000000 !important;
}

body.accessibility-mode.theme-white *:not(.accessibility-panel):not(.accessibility-panel *) {
    color: #000000 !important;
}

body.accessibility-mode.theme-white a:not(.accessibility-panel a) {
    color: #0000cc !important;
    text-decoration: underline !important;
}

body.accessibility-mode.theme-white .btn-cta,
body.accessibility-mode.theme-white button:not(.accessibility-panel button):not(.mobile-menu button):not(.lightbox button) {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

body.accessibility-mode.theme-white .bg-primary,
body.accessibility-mode.theme-white .bg-primaryDark,
body.accessibility-mode.theme-white .bg-secondary,
body.accessibility-mode.theme-white .bg-darkGray {
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.accessibility-mode.theme-white .text-primary,
body.accessibility-mode.theme-white .text-primaryDark,
body.accessibility-mode.theme-white .text-blue-500,
body.accessibility-mode.theme-white .text-gray-300,
body.accessibility-mode.theme-white .text-gray-400,
body.accessibility-mode.theme-white .text-gray-500,
body.accessibility-mode.theme-white .text-textMuted {
    color: #000000 !important;
}

/* ═══════════════════════════════════════════════════ */
/* ТЕМА: БЕЛЫМ ПО ЧЁРНОМУ                              */
/* ═══════════════════════════════════════════════════ */

body.accessibility-mode.theme-black {
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.accessibility-mode.theme-black *:not(.accessibility-panel):not(.accessibility-panel *) {
    color: #ffffff !important;
}

body.accessibility-mode.theme-black a:not(.accessibility-panel a) {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

body.accessibility-mode.theme-black .btn-cta,
body.accessibility-mode.theme-black button:not(.accessibility-panel button):not(.mobile-menu button):not(.lightbox button) {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

body.accessibility-mode.theme-black .bg-primary,
body.accessibility-mode.theme-black .bg-primaryDark,
body.accessibility-mode.theme-black .bg-secondary,
body.accessibility-mode.theme-black .bg-darkGray {
    background-color: #ffffff !important;
    color: #000000 !important;
}

body.accessibility-mode.theme-black .text-primary,
body.accessibility-mode.theme-black .text-primaryDark,
body.accessibility-mode.theme-black .text-blue-500,
body.accessibility-mode.theme-black .text-gray-300,
body.accessibility-mode.theme-black .text-gray-400,
body.accessibility-mode.theme-black .text-gray-500,
body.accessibility-mode.theme-black .text-textMuted {
    color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════ */
/* ТЕМА: СЕРЫМ ПО ГОЛУБОМУ                             */
/* ═══════════════════════════════════════════════════ */

body.accessibility-mode.theme-greyblue {
    background-color: #c7dff3 !important;
    color: #2d2d2d !important;
}

body.accessibility-mode.theme-greyblue *:not(.accessibility-panel):not(.accessibility-panel *) {
    color: #2d2d2d !important;
}

body.accessibility-mode.theme-greyblue a:not(.accessibility-panel a) {
    color: #003366 !important;
    text-decoration: underline !important;
}

body.accessibility-mode.theme-greyblue .btn-cta,
body.accessibility-mode.theme-greyblue button:not(.accessibility-panel button):not(.mobile-menu button):not(.lightbox button) {
    background-color: #2d2d2d !important;
    color: #c7dff3 !important;
    border-color: #2d2d2d !important;
}

body.accessibility-mode.theme-greyblue .bg-primary,
body.accessibility-mode.theme-greyblue .bg-primaryDark,
body.accessibility-mode.theme-greyblue .bg-secondary,
body.accessibility-mode.theme-greyblue .bg-darkGray {
    background-color: #2d2d2d !important;
    color: #c7dff3 !important;
}

body.accessibility-mode.theme-greyblue .text-primary,
body.accessibility-mode.theme-greyblue .text-primaryDark,
body.accessibility-mode.theme-greyblue .text-blue-500,
body.accessibility-mode.theme-greyblue .text-gray-300,
body.accessibility-mode.theme-greyblue .text-gray-400,
body.accessibility-mode.theme-greyblue .text-gray-500,
body.accessibility-mode.theme-greyblue .text-textMuted {
    color: #2d2d2d !important;
}

/* ═══════════════════════════════════════════════════ */
/* ОБЩИЕ ПРАВИЛА ДЛЯ ВСЕХ ТЕМ                          */
/* ═══════════════════════════════════════════════════ */

/* Градиентные фоны — убираем */
body.accessibility-mode .bg-gradient-to-r,
body.accessibility-mode .bg-gradient-to-b,
body.accessibility-mode .bg-gradient-to-br,
body.accessibility-mode .bg-gradient-to-l,
body.accessibility-mode .bg-gradient-to-t {
    background-image: none !important;
}

/* Полупрозрачные фоны */
body.accessibility-mode [class*="bg-white/"],
body.accessibility-mode [class*="bg-black/"],
body.accessibility-mode [class*="bg-primary/"],
body.accessibility-mode [class*="bg-blue/"],
body.accessibility-mode .backdrop-blur-md,
body.accessibility-mode .backdrop-blur-sm {
    background-color: transparent !important;
    backdrop-filter: none !important;
}

/* Карточки */
body.accessibility-mode .course-card,
body.accessibility-mode .stat-card,
body.accessibility-mode .info-card,
body.accessibility-mode .article-card,
body.accessibility-mode .review-card,
body.accessibility-mode .course-accordion {
    border: 2px solid currentColor !important;
    background: inherit !important;
    box-shadow: none !important;
}

/* Декоративные элементы — СКРЫВАЕМ */
body.accessibility-mode .hero-blob,
body.accessibility-mode canvas,
body.accessibility-mode .side-accent,
body.accessibility-mode .dot-pattern,
body.accessibility-mode #scrollProgress,
body.accessibility-mode svg:not(.fa-svg):not(.accessibility-panel svg),
body.accessibility-mode .animate-float,
body.accessibility-mode .animate-float-delayed {
    display: none !important;
}

/* Hero секции */
body.accessibility-mode .hero-section,
body.accessibility-mode .sveden-hero,
body.accessibility-mode .article-hero {
    background: inherit !important;
}

/* Изображения */
body.accessibility-mode.images-grayscale img {
    filter: grayscale(100%) !important;
}

body.accessibility-mode.images-hidden img {
    display: none !important;
}

/* Мобильное меню */
body.accessibility-mode .mobile-menu {
    background-color: inherit !important;
    border: 2px solid currentColor !important;
}

body.accessibility-mode .mobile-menu a {
    border: 1px solid currentColor !important;
}

/* Адаптивность панели */
@media (max-width: 768px) {
    .accessibility-panel__content {
        grid-template-columns: 1fr;
    }
    .accessibility-panel__footer {
        flex-direction: column;
    }
    .accessibility-panel__reset,
    .accessibility-panel__disable {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════ */
/* БЛОКИ КАТЕГОРИЙ КУРСОВ                              */
/* ═══════════════════════════════════════════════════ */

.category-block {
    position: relative;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 1rem 1rem 0 0;
    border-bottom: none;
    position: relative;
}

.category-header__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
}

.category-header__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.category-header__subtitle {
    font-size: 0.9rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

.category-header__count {
    margin-left: auto;
    background: rgba(253, 112, 4, 0.1);
    color: #FD7004;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.category-courses {
    background: white;
    border: 1px solid #E5E7EB;
    border-top: none;
    border-radius: 0 0 1rem 1rem;
    padding: 1rem;
}

.category-courses .course-accordion {
    margin-bottom: 0.5rem;
    border: 1px solid #F3F4F6;
}

.category-courses .course-accordion:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .category-header {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.75rem;
    }
    .category-header__icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .category-header__title {
        font-size: 1.1rem;
    }
    .category-header__count {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════ */
/* КАРТОЧКИ НАПРАВЛЕНИЙ В HERO (БЕЛЫЕ)                 */
/* ═══════════════════════════════════════════════════ */

.direction-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 1);
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
}

.direction-card:hover {
    transform: translateY(-6px);
    background: #ffffff;
    border-color: #FD7004;
    box-shadow: 0 20px 40px -10px rgba(253, 112, 4, 0.25), 0 0 0 1px rgba(253, 112, 4, 0.2);
}

.direction-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease;
}

.direction-card:hover .direction-card__icon {
    transform: scale(1.1) rotate(-5deg);
}

.direction-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.direction-card:hover .direction-card__title {
    color: #FD7004;
}

.direction-card__text {
    font-size: 0.85rem;
    color: #4B5563;
    line-height: 1.5;
    margin-bottom: 1rem;
    min-height: 3.5rem;
}

.direction-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(253, 112, 4, 0.1);
    color: #FD7004;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.direction-card:hover .direction-card__arrow {
    background: #FD7004;
    color: white;
    transform: translateX(4px);
}

.direction-card__count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(253, 112, 4, 0.1);
    color: #FD7004;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(253, 112, 4, 0.2);
}

/* Адаптивность */
@media (max-width: 640px) {
    .direction-card {
        padding: 1.25rem 1rem;
    }
    .direction-card__text {
        min-height: auto;
    }
}

/* ═══════════════════════════════════════════════════ */
/* КНОПКА "ЗАКАЗАТЬ РАБОЧИЙ ПЛАН"                      */
/* ═══════════════════════════════════════════════════ */

.course-cta__btn--tertiary {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border: none;
}

.course-cta__btn--tertiary:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(5, 150, 105, 0.4);
}

/* Адаптивность для 3 кнопок */
@media (max-width: 768px) {
    .course-cta {
        flex-direction: column;
    }
    .course-cta__btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════ */
/* COOKIE-БАННЕР                                        */
/* ═══════════════════════════════════════════════════ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    animation: slideUp 0.4s ease;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner__container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.cookie-banner__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FD7004, #DB6413);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px -2px rgba(253, 112, 4, 0.4);
}

.cookie-banner__text {
    flex: 1;
    min-width: 0;
}

.cookie-banner__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.cookie-banner__description {
    font-size: 0.9rem;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
}

.cookie-banner__link {
    color: #FD7004;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-banner__link:hover {
    color: #DB6413;
}

.cookie-banner__buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.cookie-banner__btn--accept {
    background: linear-gradient(135deg, #FD7004, #DB6413);
    color: white;
    box-shadow: 0 4px 12px -2px rgba(253, 112, 4, 0.4);
}

.cookie-banner__btn--accept:hover {
    background: linear-gradient(135deg, #DB6413, #C45A10);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(253, 112, 4, 0.5);
}

.cookie-banner__btn--more {
    background: #F3F4F6;
    color: #374151;
    border: 1px solid #E5E7EB;
}

.cookie-banner__btn--more:hover {
    background: #E5E7EB;
    transform: translateY(-2px);
}

/* Анимация появления */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .cookie-banner__icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .cookie-banner__title {
        font-size: 1rem;
    }
    
    .cookie-banner__description {
        font-size: 0.85rem;
    }
    
    .cookie-banner__buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-banner__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════ */
/* КАРТОЧКА-ССЫЛКА (для охраны труда)                   */
/* ═══════════════════════════════════════════════════ */

.course-accordion--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
}

.course-accordion--link:hover {
    border-color: rgba(5, 150, 105, 0.4);
    box-shadow: 0 4px 15px -3px rgba(5, 150, 105, 0.15);
    transform: translateX(4px);
}

.course-accordion--link::before {
    background: linear-gradient(180deg, #059669, #047857) !important;
}

.course-accordion--link:hover::before {
    width: 8px;
}

.course-accordion--link:hover .course-accordion__title {
    color: #059669;
}

/* Стрелка перехода вместо шеврона */
.course-accordion__toggle--link {
    background: rgba(5, 150, 105, 0.1) !important;
    color: #059669 !important;
}

.course-accordion--link:hover .course-accordion__toggle--link {
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: white !important;
}

.course-accordion__toggle--link i {
    transition: transform 0.3s ease;
}

.course-accordion--link:hover .course-accordion__toggle--link i {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════ */
/* СТИЛИ ДЛЯ ВНУТРЕННЕГО СОДЕРЖИМОГО АККОРДЕОНОВ ОТ    */
/* ═══════════════════════════════════════════════════ */

/* Список с галочками */
.ot-check-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}
.ot-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #E5E7EB;
    color: #374151;
    line-height: 1.6;
    font-size: 0.9rem;
}
.ot-check-list li:last-child { border-bottom: none; }
.ot-check-list li i {
    color: #059669;
    margin-top: 0.25rem;
    flex-shrink: 0;
    font-size: 0.85rem;
}

/* Информационный блок (важное примечание) */
.ot-info-block {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background: rgba(253, 112, 4, 0.06);
    border-left: 3px solid #FD7004;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
}
.ot-info-block i {
    color: #FD7004;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* Бейдж периодичности */
.ot-period-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(253, 112, 4, 0.1), rgba(219, 100, 19, 0.1));
    border: 2px solid rgba(253, 112, 4, 0.3);
    border-radius: 999px;
    color: #DB6413;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Шаги обучения */
.ot-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}
.ot-step {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem;
    background: #F9FAFB;
    border-radius: 0.75rem;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}
.ot-step:hover {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.04);
    transform: translateY(-2px);
}
.ot-step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px -2px rgba(5, 150, 105, 0.4);
}
.ot-step strong {
    display: block;
    color: #111827;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.ot-step-text {
    font-size: 0.8rem;
    color: #6B7280;
}

/* Таблица учебного плана */
.ot-curriculum-wrapper {
    overflow-x: auto;
    margin-top: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #E5E7EB;
}
.ot-curriculum-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 500px;
}
.ot-curriculum-table thead {
    background: linear-gradient(135deg, #FD7004, #DB6413);
    color: white;
}
.ot-curriculum-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
}
.ot-curriculum-table th.center { text-align: center; }
.ot-curriculum-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #E5E7EB;
    color: #374151;
    vertical-align: top;
}
.ot-curriculum-table td.center { text-align: center; }
.ot-curriculum-table tbody tr:hover { background: #F9FAFB; }
.ot-curriculum-table tbody tr:last-child td { border-bottom: none; }
.ot-curriculum-table .ot-module-row {
    background: rgba(253, 112, 4, 0.06);
    font-weight: 700;
    color: #DB6413;
}
.ot-curriculum-table .ot-module-row td { color: #DB6413; }
.ot-curriculum-table .ot-topic-row td:first-child { color: #6B7280; font-size: 0.8rem; }
.ot-curriculum-table .ot-total-row {
    background: linear-gradient(135deg, #FD7004, #DB6413);
    color: white;
    font-weight: 700;
}
.ot-curriculum-table .ot-total-row td {
    border-bottom: none;
    color: white;
    padding: 0.75rem;
}

/* Заглушка "В разработке" */
.ot-coming-soon {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(253, 112, 4, 0.04), rgba(219, 100, 19, 0.04));
    border: 2px dashed rgba(253, 112, 4, 0.3);
    border-radius: 1rem;
    margin-bottom: 1rem;
}
.ot-coming-soon i {
    font-size: 2.5rem;
    color: #FD7004;
    margin-bottom: 0.75rem;
    display: block;
}
.ot-coming-soon h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}
.ot-coming-soon p {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.6;
    max-width: 450px;
    margin: 0 auto;
}

/* Адаптивность таблицы */
@media (max-width: 768px) {
    .ot-hide-mobile { display: none; }
    .ot-curriculum-table { font-size: 0.75rem; }
    .ot-curriculum-table th, .ot-curriculum-table td { padding: 0.5rem; }
    .ot-steps { grid-template-columns: 1fr; }
}

/* Отменяем серый hover для строки ИТОГО */
.ot-curriculum-table .ot-total-row:hover {
    background: linear-gradient(135deg, #FD7004, #DB6413) !important;
}

/* Отменяем серый hover для строки модуля */
.ot-curriculum-table .ot-module-row:hover {
    background: rgba(253, 112, 4, 0.06) !important;
}

/* Отменяем серый hover для строк подтем */
.ot-curriculum-table .ot-topic-row:hover {
    background: transparent !important;
}

/* Оставляем hover только для обычных строк */
.ot-curriculum-table tbody tr:not(.ot-total-row):not(.ot-module-row):not(.ot-topic-row):hover {
    background: #F9FAFB;
}

/* ═══════════════════════════════════════════════════ */
/* КАРТОЧКИ ГРУПП РАБОТНИКОВ                             */
/* ═══════════════════════════════════════════════════ */

.ot-group-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-left: 4px solid #FD7004;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 0.875rem;
    transition: all 0.3s ease;
}

.ot-group-card:hover {
    border-left-color: #DB6413;
    background: rgba(253, 112, 4, 0.03);
    transform: translateX(3px);
}

.ot-group-card:last-child {
    margin-bottom: 0;
}

.ot-group-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ot-group-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FD7004, #DB6413);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px -2px rgba(253, 112, 4, 0.4);
}

.ot-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.2rem 0;
}

.ot-group-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #FD7004;
    font-weight: 600;
}

.ot-group-duration i {
    font-size: 0.7rem;
}

.ot-group-text {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
    margin: 0.4rem 0;
}

.ot-group-text strong {
    color: #111827;
}

@media (max-width: 640px) {
    .ot-group-card {
        padding: 1rem;
    }
    .ot-group-header {
        gap: 0.75rem;
    }
    .ot-group-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}