        /* === НОВОГОДНИЙ / ЗИМНИЙ РЕЖИМ (Снежинки, заморозка углов и гирлянда) === */
        #ny-vibe-layer {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9998;
            overflow: hidden;
            display: none;
        }

        /* Прежняя заморозка / льдышки по углам экрана */
        #ny-frost-layer {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 9997;
            overflow: hidden;
            display: none;
        }

        .ny-ice-corners {
            position: absolute;
            inset: 0;
            pointer-events: none;
            box-shadow: inset 0 0 40px rgba(135, 206, 250, 0.15);
        }
        .ny-ice-corners::before, .ny-ice-corners::after {
            content: '';
            position: absolute;
            top: 0;
            width: 200px;
            height: 40px;
            background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
            mask-image: radial-gradient(ellipse at top, black, transparent 70%);
            opacity: 0.6;
        }
        .ny-ice-corners::before { left: 20px; transform: skewX(-20deg); }
        .ny-ice-corners::after { right: 20px; transform: skewX(20deg); }

        /* Поздравление сбоку красивым шрифтом */
        .ny-side-greeting {
            position: fixed;
            left: 18px;
            bottom: 16px;
            z-index: 9999;
            pointer-events: none;
            font-family: 'Marck Script', cursive;
            font-size: 23px;
            line-height: 1.2;
            color: #e0f2fe;
            text-shadow: 0 0 14px rgba(56, 189, 248, 0.45), 0 2px 6px rgba(2, 6, 23, 0.85);
            letter-spacing: 0.02em;
            user-select: none;
        }

        /* Падающие снежинки */
        .snowflake {
            position: absolute;
            top: -20px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 1em;
            font-family: Arial, sans-serif;
            text-shadow: 0 0 5px rgba(135, 206, 250, 0.8);
            animation: fall linear infinite;
        }

        @keyframes fall {
            0% {
                transform: translateY(-20px) translateX(0) rotate(0deg);
                opacity: 0;
            }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% {
                transform: translateY(105vh) translateX(30px) rotate(360deg);
                opacity: 0;
            }
        }

        /* Гирлянда под бегущей строкой */
        .ny-garland {
            position: relative;
            width: 100%;
            height: 44px;
            overflow: hidden;
            pointer-events: none;
            z-index: 50;
            background: linear-gradient(to bottom, rgba(15, 23, 42, 0.45), transparent);
        }

        .ny-garland-svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 44px;
            display: block;
            pointer-events: none;
        }

        .ny-garland-bulbs {
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            width: 100%;
            height: 100%;
            padding: 0 28px;
        }

        .ny-bulb {
            position: relative;
            width: 9px;
            height: 13px;
            border-radius: 50% 50% 45% 45%;
            margin-top: var(--drop, 12px);
            flex-shrink: 0;
            animation: bulb-glow 1.8s ease-in-out infinite alternate;
        }

        /* Нить от точки крепления у самого верхнего края до цоколя */
        .ny-bulb::before {
            content: '';
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            width: 1.5px;
            height: calc(var(--drop, 12px) - 2px);
            background: rgba(148, 163, 184, 0.55);
        }

        /* Цоколь лампочки */
        .ny-bulb::after {
            content: '';
            position: absolute;
            top: -3px;
            left: 50%;
            transform: translateX(-50%);
            width: 5px;
            height: 4px;
            background: #334155;
            border-radius: 1px;
        }

        .ny-bulb--red {
            background: #ef4444;
            --bulb-glow: rgba(239, 68, 68, 0.9);
            animation-delay: 0s;
        }
        .ny-bulb--amber {
            background: #f59e0b;
            --bulb-glow: rgba(245, 158, 11, 0.9);
            animation-delay: 0.35s;
        }
        .ny-bulb--emerald {
            background: #10b981;
            --bulb-glow: rgba(16, 185, 129, 0.9);
            animation-delay: 0.7s;
        }
        .ny-bulb--sky {
            background: #38bdf8;
            --bulb-glow: rgba(56, 189, 248, 0.9);
            animation-delay: 1.05s;
        }
        .ny-bulb--rose {
            background: #f43f5e;
            --bulb-glow: rgba(244, 63, 94, 0.9);
            animation-delay: 1.4s;
        }

        @keyframes bulb-glow {
            0% {
                opacity: 0.35;
                box-shadow: 0 0 3px var(--bulb-glow);
                transform: scale(0.95);
            }
            100% {
                opacity: 1;
                box-shadow: 0 0 11px var(--bulb-glow), 0 3px 16px var(--bulb-glow);
                transform: scale(1.06);
            }
        }

        /* Виджет «Зимний стиль» и выпадающая панель настроек */
        .winter-style-widget {
            position: fixed;
            bottom: 15px;
            right: 15px;
            z-index: 10000;
        }

        .ny-vibe-toggle {
            background: rgba(30, 41, 59, 0.88);
            color: #e2e8f0;
            border: 1px solid rgba(255, 255, 255, 0.14);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
            backdrop-filter: blur(5px);
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .ny-vibe-toggle:hover {
            background: rgba(30, 41, 59, 0.98);
            color: #fff;
            border-color: rgba(135, 206, 250, 0.45);
        }

        .winter-style-panel {
            position: absolute;
            bottom: calc(100% + 8px);
            right: 0;
            width: 248px;
            max-width: calc(100vw - 24px);
            background: rgba(15, 23, 42, 0.96);
            border: 1px solid rgba(148, 163, 184, 0.22);
            border-radius: 12px;
            padding: 10px 12px;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(8px);
            color: #e2e8f0;
            font-size: 12px;
            display: none;
            flex-direction: column;
            gap: 10px;
        }
        .winter-style-panel.open {
            display: flex;
        }

        .winter-style-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .winter-style-switch {
            padding: 3px 9px;
            border-radius: 999px;
            border: 1px solid rgba(148, 163, 184, 0.3);
            background: rgba(51, 65, 85, 0.65);
            color: #cbd5e1;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s ease;
            min-width: 48px;
            text-align: center;
        }
        .winter-style-switch.is-on {
            background: rgba(56, 189, 248, 0.22);
            border-color: rgba(56, 189, 248, 0.6);
            color: #bae6fd;
        }

        .winter-style-divider {
            height: 1px;
            background: rgba(148, 163, 184, 0.14);
        }

        .winter-flake-stepper {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .winter-flake-controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
        }
        .winter-arrow-btn {
            width: 28px;
            height: 24px;
            border-radius: 6px;
            border: 1px solid rgba(148, 163, 184, 0.3);
            background: rgba(30, 41, 59, 0.9);
            color: #e2e8f0;
            font-size: 12px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s ease, border-color 0.15s ease;
        }
        .winter-arrow-btn:hover:not(:disabled) {
            background: rgba(56, 189, 248, 0.22);
            border-color: rgba(56, 189, 248, 0.6);
            color: #fff;
        }
        .winter-arrow-btn:disabled {
            opacity: 0.35;
            cursor: not-allowed;
        }
        .winter-flake-label {
            flex: 1;
            text-align: center;
            font-size: 11px;
            color: #cbd5e1;
            font-weight: 500;
        }

        /* === ИСПРАВЛЕНИЕ ДЛЯ НАВИГАЦИИ (Ссылки по центру) === */
        .site-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
        }
        .site-nav .brand {
            flex-shrink: 0;
        }
        .nav-links {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1.5rem;
            flex: 1;
            margin: 0 1rem;
            flex-wrap: wrap;
        }

        /* === Кнопки запросов на экзамен и уведомлений в шапке === */
        .nav-right-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-shrink: 0;
            flex-wrap: wrap;
        }
        .exam-nav-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 10px;
            border-radius: 7px;
            font-size: 12px;
            font-weight: 500;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }
        .exam-nav-btn-trainee {
            background: rgba(59, 130, 246, 0.16);
            color: #93c5fd;
            border: 1px solid rgba(59, 130, 246, 0.35);
        }
        .exam-nav-btn-trainee:hover {
            background: rgba(59, 130, 246, 0.28);
            color: #fff;
        }
        .exam-nav-btn-review {
            background: rgba(148, 163, 184, 0.12);
            color: #e2e8f0;
            border: 1px solid rgba(148, 163, 184, 0.22);
        }
        .exam-nav-btn-review:hover {
            background: rgba(148, 163, 184, 0.2);
            color: #fff;
        }
        .exam-nav-btn-alert {
            background: rgba(245, 158, 11, 0.16);
            color: #fcd34d;
            border: 1px solid rgba(245, 158, 11, 0.4);
        }
        .exam-nav-btn-alert:hover {
            background: rgba(245, 158, 11, 0.26);
            color: #fff;
        }
        .exam-alert-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            background: #f59e0b;
            color: #0f172a;
        }

        /* === Стили для выпадающего меню профиля === */
        .user-dropdown-container {
            position: relative;
            flex-shrink: 0;
        }
        .user-dropdown-toggle {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            background: none;
            border: none;
            color: inherit;
            font: inherit;
            padding: 4px 8px;
            border-radius: 6px;
            transition: background 0.15s ease;
        }
        .user-dropdown-toggle:hover {
            background: rgba(255, 255, 255, 0.05);
        }
        .user-dropdown-menu {
            position: absolute;
            right: 0;
            top: calc(100% + 8px);
            background: #1e293b;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
            min-width: 180px;
            display: none;
            flex-direction: column;
            z-index: 1000;
            overflow: hidden;
        }
        .user-dropdown-menu.show {
            display: flex;
        }
        .user-dropdown-menu a,
        .user-dropdown-menu button {
            padding: 10px 14px;
            text-align: left;
            background: none;
            border: none;
            color: #cbd5e1;
            font-size: 14px;
            text-decoration: none;
            cursor: pointer;
            transition: background 0.15s ease, color 0.15s ease;
            display: block;
            width: 100%;
        }
        .user-dropdown-menu a:hover,
        .user-dropdown-menu button:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }
        .user-dropdown-divider {
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
            margin: 4px 0;
        }

        /* Уменьшенный футер по центру */
        .site-footer {
            text-align: center;
            padding: 12px 20px;
            font-size: 11px;
            line-height: 1.4;
            color: #64748b;
        }

        .site-footer p {
            margin: 0;
            padding: 0;
        }

        .ticker-container {
            background: rgba(30, 41, 59, 0.9);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            color: #cbd5e1;
            font-size: 13px;
            padding: 1px 0;
            overflow: hidden;
            white-space: nowrap;
            position: relative;
            width: 100%;
        }

        .ticker-text {
            display: inline-block;
            padding-left: 100%;
            animation: ticker 25s linear infinite;
        }

        .ticker-text:hover {
            animation-play-state: paused;
        }

        @keyframes ticker {
            0% {
                transform: translate3d(0, 0, 0);
            }
            100% {
                transform: translate3d(-100%, 0, 0);
            }
        }

        /* === АДАПТИВНОСТЬ === */
        @media (max-width: 1100px) {
            .site-nav {
                flex-wrap: wrap;
                gap: 0.75rem;
                padding: 10px 16px;
            }
            .nav-links {
                order: 3;
                flex: 1 1 100%;
                margin: 4px 0 0;
                gap: 0.85rem 1.1rem;
                justify-content: flex-start;
            }
            .nav-right-group {
                order: 2;
                margin-left: auto;
            }
        }

        @media (max-width: 768px) {
            .site-nav {
                gap: 0.5rem;
                padding: 10px 12px;
            }
            .nav-links {
                gap: 0.5rem 0.75rem;
                font-size: 13px;
            }
            .nav-right-group {
                width: 100%;
                justify-content: space-between;
                margin-left: 0;
            }
            .exam-nav-btn {
                white-space: normal;
                text-align: left;
                line-height: 1.25;
                font-size: 11px;
                padding: 5px 8px;
            }
            .user-dropdown-menu {
                right: 0;
                min-width: 165px;
            }
            .ny-garland {
                height: 36px;
            }
            .ny-garland-svg {
                height: 36px;
            }
            .ny-garland-bulbs {
                padding: 0 12px;
            }
            .ny-ice-corners::before,
            .ny-ice-corners::after {
                width: 110px;
                height: 28px;
            }
            .ny-side-greeting {
                left: 12px;
                bottom: 52px;
                font-size: 19px;
                max-width: calc(100vw - 24px);
            }
            .winter-style-widget {
                bottom: 12px;
                right: 12px;
            }
            .site-footer {
                padding: 12px 14px 72px;
            }
        }

        @media (max-width: 480px) {
            .ny-side-greeting {
                font-size: 17px;
            }
            .ny-vibe-toggle {
                padding: 5px 10px;
                font-size: 11px;
            }
        }