.toppanelmenu {
    background: #f0f0f0;
}
ul.menu-toppanel>li:before {
    content: none !important;
    margin: 0 !important;
}
ul.menu-toppanel>li {
    margin: 0 !important;
}

        .menu-wrapper {
            position: relative;         
            margin: 0 auto;
            background: transparent;
            max-width: 1348px;
        }

        /* контейнер-скроллер: горизонтальный overflow, скроллбар полностью скрыт */
        .menu-scroll-container {
            overflow-x: auto;
            overflow-y: hidden;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;  /* плавный свайп на iOS */
            scrollbar-width: none;              /* Firefox: скрываем скроллбар */
            white-space: nowrap;
            cursor: grab;
            user-select: none;
        }

        .menu-scroll-container:active {
            cursor: grabbing;
        }

        /* полное скрытие скроллбара для WebKit (Chrome, Safari, Edge) */
        .menu-scroll-container::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
            background: transparent;
        }

        /* простое горизонтальное меню: ссылки без иконок, минималистично */
        .menu-toppanel {
            display: inline-flex;
            gap: 0.5rem;
            list-style: none;
            margin: 0;
            padding: 0.5rem 0.25rem;
            background: transparent;
        }

        .menu-toppanel-item {
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        /* обычная ссылка — никаких иконок, только текст */
        .menu-toppanel-link {
            display: inline-block;
            padding: 0.1rem 1rem;
            font-size: 0.8rem;
            font-weight: 500;
            color: #1f2a44;
            background: #ffffff;
            text-decoration: none;
            border-radius: 5px;
            transition: all 0.2s ease;
            border: 1px solid #e0e5ed;
            white-space: nowrap;
        }

        .menu-toppanel-link:hover {
            background-color: #eef2f7;
            border-color: #cbd5e1;
            color: #0f172a;
        }

        /* активный пункт (только один) */
        .menu-toppanel-link.active {            
            color: #333;
        }

        /* ----- СТРЕЛКИ НАВИГАЦИИ ----- */
        .nav-arrow {
            position: absolute;
            top: 44%;
            transform: translateY(-50%);                               
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;            
            z-index: 12;            
            font-size: 2.5rem;
            font-weight: 100;            
            color: #777;                                    
            backdrop-filter: blur(4px);
        }

        .nav-arrow:hover {
            color: #333;
        }

        .nav-arrow:active {
            color: #333;
        }

        /* правая стрелка всегда видима */
        .arrow-right {
            right: -30px;
        }

        /* левая стрелка: изначально скрыта */
        .arrow-left {
            left: -20px;
            display: none;
        }

        /* когда есть класс .show-left — показываем левую стрелку */
        .arrow-left.show-left {
            display: flex;
        }

        /* адаптив для маленьких экранов */
        @media (max-width: 640px) {
            .nav-arrow {
                width: 34px;
                height: 34px;
                font-size: 1.5rem;
            }
            .arrow-right {
                right: -8px;
            }
            .arrow-left {
                left: -8px;
            }
            .menu-link {
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
            }
            .menu {
                gap: 0.4rem;
            }
        }

        @media (max-width: 480px) {
            .menu-wrapper {
                margin: 0 4px;
            }
            .arrow-right {
                right: -4px;
            }
            .arrow-left {
                left: -4px;
            }
        }