/* ===== CSS ДЛЯ HEADER БЕЗ BOOTSTRAP ===== */

/* CSS переменные в начале файла */
:root {
    --primary-color: #8B5CF6;
    --primary-dark: #7C3AED;
    --secondary-color: #10B981;
    --text-dark: #374151;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --font-scale: 1;
}

/* Глобальные сбросы */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    font-size: calc(16px * var(--font-scale));
}

/* Header на всю ширину */
.c-layout-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important; /* Убираю overflow чтобы dropdown было видно */
}

/* Навигация */
.gtec-navbar {
    width: 100% !important;
    margin: 0 !important;
    padding: 15px 0 !important;
    max-width: none !important;
    overflow: visible !important; /* Убираю overflow */
}

/* Основной контейнер согласно вашей схеме */
.header-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Выравниваем по левому краю */
    gap: 0 !important;
    flex-wrap: wrap !important; /* Позволяем элементам переноситься при нехватке места */
    box-sizing: border-box !important;
}

/* Левая часть - логотип и название (красная зона) */
.brand-section {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    min-width: 300px !important; /* Уменьшил для экономии места */
    max-width: 350px !important; /* Ограничиваю максимальную ширину */
    padding: 15px 20px !important;
    border-radius: 8px;
    order: 1 !important;
    margin-right: auto !important;
}

.brand-link {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.3s ease;
    width: 100%;
}

.brand-link:hover {
    text-decoration: none !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
}

.brand-link:hover .logo-container {
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(139, 92, 246, 0.4);
}

.brand-link:hover .brand-title {
    color: var(--primary-color) !important;
    text-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

/* Логотип */
.logo-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 16px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    box-shadow: 
        0 4px 16px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-fallback {
    font-size: 32px;
    color: var(--primary-color);
    display: block; /* Показываем fallback по умолчанию */
}

/* Скрываем fallback если логотип загрузился */
.logo:not([style*="display: none"]) + .logo-fallback {
    display: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 300px;
}

.brand-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 !important;
}

.brand-subtitle {
    font-size: 1rem !important; /* Увеличил с 0.85rem */
    font-weight: 600 !important; /* Увеличил с 500 */
    line-height: 1.3 !important;
    margin: 0 !important;
    color: #374151 !important; /* Обычный цвет */
    text-shadow: none !important;
    transition: all 0.3s ease;
}

/* Убираем дублирующий текст, который ранее добавлялся через ::before */
.brand-subtitle::before { content: none !important; }

.brand-subtitle:hover {
    color: #8b5cf6 !important; /* Фиолетовый при hover */
    transform: scale(1.02);
}

/* Центральная навигация (синяя длинная зона) */
.navigation-section {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important; /* Занимает всю доступную ширину */
    margin: 0 20px !important; /* Уменьшил отступы для экономии места */
    order: 2 !important; /* Второй элемент в центре */
    min-width: 0 !important; /* Позволяет сжиматься */
    overflow: visible !important; /* Изменяю на visible для dropdown */
}

.main-nav {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important; /* Адаптивные отступы */
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    justify-content: space-evenly !important; /* Равномерное распределение */
    width: 100% !important;
    overflow: visible !important; /* Изменяю на visible для dropdown */
}

.nav-item {
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important; /* Фиксированная ширина */
    white-space: nowrap !important; /* Запрещаем перенос текста */
}

.nav-link {
    padding: 8px 12px !important; /* Уменьшил padding */
    font-size: 14px !important; /* Уменьшил размер для экономии места */
    font-weight: 500 !important;
    color: var(--text-dark) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    border-radius: 12px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
    text-align: center !important;
    min-width: 100px !important;
    background: rgba(139, 92, 246, 0.05) !important;
    border: 1px solid rgba(139, 92, 246, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    position: relative !important;
    overflow: hidden !important;
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(16, 185, 129, 0.15)) !important;
    color: var(--primary-dark) !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        0 8px 24px rgba(139, 92, 246, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

/* Правая часть header - кнопка для слабовидящих (синяя правая зона) */
.actions-section {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 0 0 auto !important; /* Фиксированная ширина */
    min-width: 200px !important; /* Гарантируем минимальное место для кнопки */
    padding: 15px 20px !important;
    order: 3 !important; /* Третий элемент справа */
    max-width: 30% !important;
}

/* Если ширины мало и actions-section не помещается справа,
   переносим блок под навигацию на новую строку */
@media (max-width: 1600px) {
    .header-container {
        row-gap: 8px !important;
    }
    .actions-section {
        flex: 1 1 100% !important; /* Занимаем всю ширину новой строки */
        order: 4 !important; /* Идем после навигации */
        justify-content: flex-end !important;
        max-width: 100% !important;
        padding-top: 0 !important;
    }
    .main-nav { gap: 14px !important; }
    .accessibility-btn { padding: 6px 10px !important; font-size: 0.9rem !important; }
}

.accessibility-btn {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(16, 185, 129, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 28px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 
        0 4px 16px rgba(139, 92, 246, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.accessibility-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(16, 185, 129, 0.25));
    color: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 24px rgba(139, 92, 246, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
}

.accessibility-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(16, 185, 129, 0.9));
    color: white;
    border-color: rgba(139, 92, 246, 0.8);
}

/* Высокая контрастность */
.high-contrast .c-layout-header,
.high-contrast .nav-link,
.high-contrast .dropdown-menu,
.high-contrast .dropdown-submenu-list,
.high-contrast .accessibility-btn {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}
.high-contrast .nav-link { border: 2px solid #000 !important; }

.accessibility-text {
    font-weight: 600;
    white-space: nowrap;
}

/* Dropdown меню стили */
.dropdown {
    position: relative !important;
}

.dropdown-toggle::after {
    content: "▼" !important;
    font-size: 10px !important;
    margin-left: 8px !important;
    opacity: 0.8 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)) !important;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg) scale(1.2) !important;
    opacity: 1 !important;
    color: var(--primary-light) !important;
}

.dropdown-menu {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    transform: translateX(-50%) translateY(10px) !important;
    
    /* Белый стеклянный фон для читаемости */
    background: rgba(255, 255, 255, 0.95) !important;
    
    /* Сильное размытие заднего фона */
    backdrop-filter: blur(30px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(150%) !important;
    
    /* Элегантная граница */
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    border-radius: 18px !important;
    
    /* Красивые тени */
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 8px 32px rgba(139, 92, 246, 0.12),
        0 16px 64px rgba(139, 92, 246, 0.08),
        0 4px 20px rgba(0, 0, 0, 0.08) !important;
    
    min-width: 280px !important;
    padding: 18px 0 !important;
    z-index: 9999 !important;
    list-style: none !important;
    
    /* Анимация появления */
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
    
    /* Дополнительные эффекты */
    overflow: hidden !important;
}

.dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
}

/* Дополнительные анимационные эффекты для dropdown */
.dropdown-menu::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(45deg, 
        rgba(139, 92, 246, 0.05) 0%,
        transparent 25%,
        transparent 75%,
        rgba(139, 92, 246, 0.05) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.6s ease !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.dropdown:hover .dropdown-menu::before {
    opacity: 1 !important;
}

/* Эффект появления с масштабированием */
.dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

/* Анимация для submenu */
.dropdown-submenu-list::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(45deg, 
        rgba(139, 92, 246, 0.06) 0%,
        transparent 50%,
        rgba(139, 92, 246, 0.06) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.7s ease !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.dropdown-submenu:hover .dropdown-submenu-list::before {
    opacity: 1 !important;
}

/* Светящийся эффект при hover на nav-link */
.nav-item.dropdown:hover .nav-link {
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.6) !important;
    color: var(--primary-light) !important;
}

.dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.dropdown-menu a {
    display: block !important;
    padding: 14px 26px !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 14px !important;
    margin: 4px 14px !important;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
    position: relative !important;
    overflow: hidden !important;
    
    /* Начальный цвет для JS анимации (будет перезаписан JS) */
    color: #8B5CF6;
    
    /* Добавляем небольшую тень для глубины */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.dropdown-menu a::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%) !important;
    transition: left 0.5s ease !important;
    z-index: 1 !important;
}

.dropdown-menu a:hover {
    background-color: rgba(139, 92, 246, 0.08) !important;
    transform: translateX(10px) scale(1.03) !important;
    box-shadow: 
        0 6px 20px rgba(139, 92, 246, 0.25),
        0 3px 10px rgba(0, 0, 0, 0.1) !important;
    
    /* Яркое свечение при hover - будет работать с JS анимацией */
    text-shadow: 
        0 0 8px currentColor,
        0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.dropdown-menu a:hover::before {
    left: 100% !important;
}

/* Submenu стили (для вложенных меню) */
.dropdown-submenu {
    position: relative !important;
}

.dropdown-submenu > a::after {
    content: "▶" !important;
    float: right !important;
    font-size: 10px !important;
    margin-top: 3px !important;
    opacity: 0.8 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
}

.dropdown-submenu:hover > a::after {
    transform: rotate(90deg) scale(1.1) !important;
    opacity: 1 !important;
    color: rgba(255, 255, 255, 1) !important;
}

.dropdown-submenu-list {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    
    /* Белый стеклянный фон для submenu */
    background: rgba(255, 255, 255, 0.96) !important;
    
    backdrop-filter: blur(35px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(160%) !important;
    
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    border-radius: 16px !important;
    
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 12px 40px rgba(139, 92, 246, 0.15),
        0 20px 80px rgba(139, 92, 246, 0.1),
        0 6px 24px rgba(0, 0, 0, 0.1) !important;
    
    min-width: 260px !important;
    padding: 16px 0 !important;
    z-index: 10000 !important;
    list-style: none !important;
    margin-left: 8px !important;
    
    /* Анимация появления */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-15px) scale(0.95) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.dropdown-submenu:hover .dropdown-submenu-list {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) scale(1) !important;
    pointer-events: auto !important;
}

.dropdown-submenu-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.dropdown-submenu-list a {
    padding: 12px 22px !important;
    font-size: 14px !important;
    margin: 3px 12px !important;
    font-weight: 500 !important;
    
    /* Начальный цвет для JS анимации submenu (будет перезаписан JS) */
    color: #6D28D9;
    
    /* Добавляем небольшую тень для глубины */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dropdown-submenu-list a:hover {
    background-color: rgba(139, 92, 246, 0.06) !important;
    transform: translateX(8px) scale(1.02) !important;
    
    /* Яркое свечение при hover - будет работать с JS анимацией */
    text-shadow: 
        0 0 6px currentColor,
        0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Адаптивность */
@media (max-width: 1600px) {
    .header-container { gap: 8px !important; justify-content: space-between !important; }
    .main-nav { gap: 12px !important; max-width: 100% !important; flex-wrap: wrap !important; justify-content: center !important; }
    .nav-link { padding: 8px 12px !important; font-size: 0.85rem !important; min-width: auto !important; }
    .brand-subtitle { font-size: 0.9rem !important; max-width: 250px; color: #374151 !important; }
}

@media (max-width: 992px) {
    .header-container { flex-direction: row !important; gap: 12px !important; padding: 0 10px !important; justify-content: space-between !important; }
    
    .brand-section {
        order: 1 !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .navigation-section { order: 2 !important; width: auto !important; margin: 0 !important; flex: 1 1 auto !important; overflow: hidden !important; }
    
    .main-nav { flex-wrap: nowrap !important; gap: 10px !important; width: 100% !important; max-width: none !important; overflow-x: auto !important; scrollbar-width: thin; }
    
    .nav-link { padding: 10px 14px !important; min-width: auto !important; }
    
    .actions-section { order: 3 !important; width: auto !important; justify-content: flex-end !important; }
    
    .accessibility-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .brand-subtitle {
        font-size: 13px !important; /* Увеличил с 12px */
        background: linear-gradient(135deg, #8b5cf6, #06b6d4, #10b981, #f59e0b);
        background-size: 400% 400%;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: gradientShift 8s ease-in-out infinite;
    }
    
    .logo-container {
        width: 50px;
        height: 50px;
    }
    
    .logo {
        width: 32px;
        height: 32px;
    }
    
    .brand-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 10px !important;
    }
    
    .gtec-navbar {
        padding: 10px 0 !important;
    }
    
    .main-nav {
        gap: 8px !important;
    }
    
    .nav-link {
        padding: 12px 16px !important;
        font-size: 0.8rem !important;
    }
    
    .brand-title {
        font-size: 1.2rem;
    }
}

/* Адаптивность для планшетов */
@media screen and (max-width: 1200px) {
    .header-container {
        gap: 0 !important;
    }
    
    .brand-section {
        min-width: 280px !important;
        max-width: 320px !important;
        padding: 12px 15px !important;
    }
    
    .navigation-section {
        margin: 0 15px !important;
    }
    
    .main-nav { gap: 12px !important; }
    
    .nav-link { padding: 6px 10px !important; font-size: 13px !important; }
    
    .actions-section {
        min-width: 180px !important;
        padding: 12px 15px !important;
    }
}

/* Адаптивность для маленьких экранов */
@media screen and (max-width: 1100px) {
    .brand-section {
        min-width: 250px !important;
        max-width: 280px !important;
        padding: 10px 12px !important;
    }
    
    .brand-title {
        font-size: 18px !important;
    }
    
    .brand-subtitle {
        font-size: 12px !important;
    }
    
    .navigation-section {
        margin: 0 10px !important;
    }
    
    .main-nav {
        gap: 10px !important;
    }
    
    .nav-link {
        padding: 5px 8px !important;
        font-size: 12px !important;
    }
    
    .actions-section { min-width: 160px !important; padding: 10px 12px !important; gap: 8px !important; }
    
    .accessibility-text {
        font-size: 11px !important;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 768px) {
    .header-container { padding: 0 10px !important; flex-direction: column !important; align-items: center !important; gap: 8px !important; }
    
    .brand-section {
        min-width: 200px !important;
        max-width: 220px !important;
        padding: 8px 10px !important;
    }
    
    .logo {
        width: 28px !important;
        height: 28px !important;
    }
    
    .brand-title {
        font-size: 16px !important;
    }
    
    .brand-subtitle {
        font-size: 11px !important; /* Увеличил с 10px */
        display: block !important; /* Показываем подзаголовок */
        background: linear-gradient(135deg, #8b5cf6, #06b6d4, #10b981, #f59e0b);
        background-size: 400% 400%;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: gradientShift 8s ease-in-out infinite;
    }
    
    .navigation-section { margin: 0 5px !important; width: 100% !important; }
    
    .main-nav {
        gap: 5px !important;
    }
    
    .nav-link { padding: 6px 8px !important; font-size: 11px !important; }
    
    .actions-section { width: 100% !important; min-width: 120px !important; padding: 8px 10px !important; gap: 6px !important; justify-content: space-between !important; }
    
    .accessibility-text {
        display: none; /* Скрываем текст, оставляем только иконку */
    }
}

/* Критический медиа-запрос для очень маленьких экранов */
@media screen and (max-width: 600px) {
    .main-nav {
        gap: 3px !important;
    }
    
    .nav-link {
        padding: 3px 4px !important;
        font-size: 10px !important;
    }
    
    .actions-section {
        min-width: 100px !important;
        padding: 6px 8px !important;
    }
    
    .accessibility-btn {
        padding: 6px 8px !important;
        font-size: 10px !important;
    }
}

/* Гарантия видимости кнопки для слабовидящих */
.actions-section {
    z-index: 1001 !important; /* Выше навигации */
    position: relative !important;
}

/* Адаптивность для dropdown меню в планшетах */
@media screen and (max-width: 1200px) {
    .dropdown-menu {
        min-width: 200px !important;
        font-size: 13px !important;
    }
    
    .dropdown-menu a {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    
    .dropdown-submenu-list {
        min-width: 180px !important;
    }
    
    .dropdown-submenu-list a {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

/* Адаптивность для dropdown меню на маленьких экранах */
@media screen and (max-width: 992px) {
    /* Скрываем dropdown меню на мобильных - покажем простые ссылки */
    .dropdown-menu,
    .dropdown-submenu-list {
        display: none !important;
    }
    
    .dropdown-toggle::after {
        display: none !important;
    }
    
    .dropdown-submenu > a::after {
        display: none !important;
    }
    
    /* Делаем основные ссылки кликабельными на мобильных */
    .dropdown > .dropdown-toggle {
        pointer-events: auto !important;
    }
}

/* Адаптивность для dropdown меню на мобильных */
@media screen and (max-width: 768px) {
    /* На мобильных dropdown меню полностью скрыты */
    .nav-item.dropdown .dropdown-menu {
        display: none !important;
    }
}

/* Красивые dropdown меню в стиле сайта */

/* Цвета для анимации через JavaScript */

/* Поддержка элегантной анимации по символам в фиолетово-синей палитре */
.dropdown-menu a span,
.dropdown-submenu-list a span {
    display: inline-block !important;
    transition: transform 0.2s ease !important;
    white-space: pre !important; /* Сохраняем пробелы */
}

/* Специальная обработка пробелов в анимированном тексте */
.dropdown-menu a,
.dropdown-submenu-list a {
    white-space: nowrap !important;
    word-spacing: normal !important;
}
