/* ============================================
   УНИКАЛЬНОЕ МЕНЮ CSKT 2026
   Префикс: cskt- (гарантия отсутствия конфликтов)
   ============================================ */

.cskt-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cskt-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.cskt-nav-brand {
    flex-shrink: 0;
}

.cskt-nav-logo img {
    height: 50px;
    width: auto;
    transition: transform 0.2s ease;
}

.cskt-nav-logo:hover img {
    transform: scale(1.02);
}

.cskt-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.cskt-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #07337a;
    margin: 5px 0;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.cskt-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.cskt-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.cskt-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.cskt-nav-menu {
    display: flex;
    align-items: center;
}

.cskt-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.cskt-nav-item {
    position: relative;
}

.cskt-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: #07337a;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cskt-nav-link i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.cskt-nav-link:hover {
    background: rgba(7, 51, 122, 0.08);
    color: #05255a;
}

.cskt-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.cskt-dropdown:hover .cskt-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cskt-dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cskt-dropdown-menu li a:hover {
    background: rgba(7, 51, 122, 0.08);
    color: #07337a;
    padding-left: 26px;
}

.cskt-dropdown-mega {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 800px;
    padding: 24px;
}

.cskt-dropdown:hover .cskt-dropdown-mega {
    transform: translateX(-50%) translateY(0);
}

.cskt-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.cskt-mega-col h4 {
    color: #07337a;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff6b35;
    display: inline-block;
}

.cskt-mega-col a {
    display: block;
    padding: 8px 0;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.cskt-mega-col a:hover {
    color: #07337a;
    padding-left: 5px;
}

body.cskt-no-scroll {
    overflow: hidden;
}

/* Десктопная версия */
@media (min-width: 992px) {
    .cskt-nav-link {
        position: relative;
    }
    
    .cskt-nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 3px;
        background: #ff6b35;
        border-radius: 3px;
        transition: all 0.2s ease;
        transform: translateX(-50%);
    }
    
    .cskt-nav-link:hover::after {
        width: calc(100% - 36px);
    }
}

/* Мобильная версия */
@media (max-width: 991px) {
    .cskt-nav-container {
        height: 60px;
        padding: 0 16px;
    }
    
    .cskt-nav-logo img {
        height: 40px;
    }
    
    .cskt-nav-toggle {
        display: block;
    }
    
    .cskt-nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 0 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .cskt-nav-menu.active {
        right: 0;
    }
    
    .cskt-nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .cskt-nav-item {
        border-bottom: 1px solid #eee;
    }
    
    .cskt-nav-link {
        padding: 16px 20px;
        justify-content: space-between;
        white-space: normal;
    }
    
    .cskt-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0;
        background: #f8f9fa;
    }
    
    .cskt-dropdown.open .cskt-dropdown-menu {
        max-height: 500px;
    }
    
    .cskt-dropdown.open .cskt-nav-link i {
        transform: rotate(180deg);
    }
    
    .cskt-dropdown-menu li a {
        padding: 12px 20px 12px 35px;
    }
    
    .cskt-dropdown-mega {
        min-width: auto;
        padding: 0;
    }
    
    .cskt-mega-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .cskt-mega-col h4 {
        padding: 12px 20px;
        margin: 0;
        background: #f0f0f0;
        display: block;
        border-bottom: none;
    }
    
    .cskt-mega-col a {
        padding: 10px 20px 10px 35px;
    }
}

@media (max-width: 480px) {
    .cskt-nav-menu {
        width: 100%;
        max-width: none;
    }
    
    .cskt-nav-link {
        font-size: 14px;
        padding: 14px 16px;
    }
    
    .cskt-dropdown-menu li a {
        font-size: 13px;
        padding: 10px 16px 10px 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    .cskt-navbar {
        background: rgba(20, 20, 30, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
    
    .cskt-nav-link {
        color: #e0e0e0;
    }
    
    .cskt-nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: white;
    }
    
    .cskt-dropdown-menu {
        background: #2a2a2a;
    }
    
    .cskt-dropdown-menu li a {
        color: #ccc;
    }
    
    .cskt-dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.08);
    }
    
    @media (max-width: 991px) {
        .cskt-nav-menu {
            background: #1a1a2a;
        }
        
        .cskt-dropdown-menu {
            background: #252535;
        }
        
        .cskt-mega-col h4 {
            background: #1e1e2e;
            color: #ff6b35;
        }
    }
}