:root {
            --bg-deep: #060609;
            --bg-panel: #0D0D14;
            --bg-side: #0A0A10;
            --bg-element: #08080C;
            --bg-primary: #0a0a0a;
            --border-subtle: #1C1C26;
            --text-primary: #FFFFFF;
            --text-muted: #7B7FA3;
            --accent: #CE1E1E;
            --accent-glow: rgba(206,30,30,0.6);
            --gradient-primary: linear-gradient(135deg, #CE1E1E, #ff4444);
            --gold: #E8B830;
            --green: #2ECC71;
            --blue: #5B7FFF;
            --purple: #9B59B6;
            --orange: #F39C12;
            --red: #E74C3C;
            --cyan: #00D4AA;
            --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: var(--bg-deep);
            color: var(--text-primary);
            font-family: var(--font-sans);
            min-height: 100vh;
            overflow-x: hidden;
            line-height: 1.6;
            font-weight: 500;
        }

        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--bg-element); }
        ::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

        /* ===== HEADER ===== */
        .header {
            width: 100%;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: var(--bg-side);
            border-bottom: 1px solid var(--border-subtle);
            animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            opacity: 0;
            animation-delay: 0.1s;
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .conteiner {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 1;
        }

        .header__inner {
            width: 100%;
            max-width: 1400px;
            height: 60px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 60px;
            margin: 0 auto;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }

        .logo img {
            width: 35px;
            height: 35px;
        }

        .logo h2 {
            font-size: 26px;
            font-weight: 800;
            letter-spacing: -0.5px;
            color: var(--text-primary);
        }

        .nav_catalog {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .nav_categories {
            color: var(--text-muted);
            cursor: pointer;
            font-weight: 700;
            font-size: 16px;
            position: relative;
            padding-bottom: 5px;
            transition: color 0.3s ease;
            text-decoration: none;
        }

        .nav_categories::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 0;
            background: var(--accent);
            transition: width 0.3s ease;
        }

        .nav_categories:hover {
            color: var(--text-primary);
        }

        .nav_categories:hover::after {
            width: 100%;
        }

        .lang-trigger-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--bg-element);
            border: 1px solid var(--border-subtle);
            border-radius: 8px;
            padding: 6px 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 600;
            font-family: var(--font-sans);
            margin-left: 5px;
        }

        .lang-trigger-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .lang-trigger-btn img {
            width: 22px;
            height: 16px;
            border-radius: 2px;
            object-fit: cover;
        }

        /* ===== ОСНОВНОЙ КОНТЕНТ ===== */
        .license-wrapper {
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
            padding: 50px 20px 70px;
            animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            opacity: 0;
            animation-delay: 0.3s;
        }

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .license-wrapper {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            padding: 50px 40px 70px;
            animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            opacity: 0;
            animation-delay: 0.3s;
        }

        .license-card {
            background: var(--bg-side);
            border: 1px solid var(--border-subtle);
            border-radius: 24px;
            padding: 60px 80px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
            max-width: 100%;
            width: 100%;
            margin: 0 auto;
        }

        .license-title {
            font-size: 38px;
            font-weight: 800;
            letter-spacing: -0.02em;
            margin-bottom: 12px;
            background: linear-gradient(90deg, #e0e7ff 0%, #fecdd3 20%, #be123c 40%, #f43f5e 60%, #be123c 80%, #e0e7ff 100%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: shimmer 3s linear infinite;
            display: inline-block;
        }

        @keyframes shimmer {
            0% { background-position: 0% center; }
            100% { background-position: 200% center; }
        }

        .license-subtitle {
            color: var(--text-muted);
            font-size: 1rem;
            margin-bottom: 36px;
            border-left: 3px solid var(--accent);
            padding-left: 16px;
            font-weight: 500;
        }

        .section-block {
            margin-bottom: 32px;
        }

        .section-head {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 14px;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px solid var(--border-subtle);
            padding-bottom: 8px;
        }

        .section-head .num {
            color: var(--accent);
            font-weight: 800;
            font-size: 18px;
            min-width: 28px;
        }

        .clause-list {
            list-style: none;
            padding-left: 0;
        }

        .clause-list li {
            color: var(--text-muted);
            margin-bottom: 10px;
            padding-left: 20px;
            position: relative;
            font-size: 0.95rem;
            line-height: 1.7;
        }

        .clause-list li::before {
            content: "•";
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: bold;
        }

        .clause-list li strong {
            color: var(--text-primary);
            font-weight: 600;
        }

        .sub-clause {
            margin-left: 20px;
            margin-top: 6px;
            margin-bottom: 6px;
            color: var(--text-muted);
            font-size: 0.9rem;
            line-height: 1.7;
        }

        .highlight-note {
            background: rgba(206, 30, 30, 0.08);
            border: 1px solid rgba(206, 30, 30, 0.25);
            border-radius: 12px;
            padding: 16px 20px;
            margin: 16px 0;
            color: #e5e7eb;
            font-weight: 500;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--text-muted);
            text-decoration: none;
            margin-top: 28px;
            font-weight: 600;
            transition: color 0.2s;
        }

        .back-link:hover {
            color: var(--text-primary);
        }

        .footer-note {
            text-align: center;
            padding: 30px;
            border-top: 1px solid var(--border-subtle);
            color: var(--text-muted);
            font-size: 13px;
            margin-top: 10px;
        }

        @media (max-width: 768px) {
            .header__inner {
                flex-direction: column;
                height: auto;
                padding: 16px;
                gap: 12px;
            }
            .nav_catalog {
                flex-wrap: wrap;
                justify-content: center;
                gap: 12px;
            }
            .license-card {
                padding: 24px 18px;
            }
            .license-title {
                font-size: 28px;
            }
            .sub-clause {
                margin-left: 10px;
            }
        }
        /* ПРЕЛОАДЕР */
    #preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #060609;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
    }

    #preloader.fade-out {
        opacity: 0;
        visibility: hidden;
    }

    .loader-content {
        text-align: center;
    }

    .loader-ring {
        width: 60px;
        height: 60px;
        margin: 0 auto 30px;
        position: relative;
    }

    .loader-ring::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 3px solid transparent;
        border-top: 3px solid #CE1E1E;
        border-right: 3px solid #CE1E1E;
        border-radius: 50%;
        animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    }

    .loader-ring::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 8px;
        width: calc(100% - 16px);
        height: calc(100% - 16px);
        border: 2px solid transparent;
        border-bottom: 2px solid rgba(206, 30, 30, 0.4);
        border-left: 2px solid rgba(206, 30, 30, 0.4);
        border-radius: 50%;
        animation: spin 1.8s linear infinite reverse;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .loader-logo-text {
        font-size: 28px;
        font-weight: 800;
        letter-spacing: 6px;
        color: #fff;
        animation: textPulse 2s ease-in-out infinite;
    }

    @keyframes textPulse {
        0%, 100% { opacity: 0.4; }
        50% { opacity: 1; }
    }

    /* CANVAS И ОГОНЁК */
    #trail-canvas {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        pointer-events: none;
        z-index: 9998;
    }

    #firefly {
        position: fixed;
        width: 1px; height: 1px;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, #dc143c, #4a0f0f);
        box-shadow: 0 0 20px 8px rgba(180,30,30,0.8), 0 0 40px 15px rgba(80,80,80,0.5), 0 0 60px 25px rgba(60,20,20,0.3);
        pointer-events: none;
        transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
        z-index: 9999;
        animation: flicker 0.12s infinite alternate;
    }

    @keyframes flicker {
        0% { opacity: 0.85; transform: translate(-50%, -50%) scale(0.95); }
        50% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.05); }
        100% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
    }

    #firefly.on-link {
        width: 1px; height: 1px;
        background: radial-gradient(circle at 30% 30%, #ff4444, #8b0000);
        box-shadow: 0 0 30px 15px rgba(200,30,30,0.9), 0 0 60px 25px rgba(100,100,100,0.6), 0 0 80px 35px rgba(60,15,15,0.5);
        animation: flicker-intense 0.1s infinite alternate;
    }

    @keyframes flicker-intense {
        0% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.9); }
        100% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    }

    #particles-container {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        pointer-events: none;
        z-index: 0;
        overflow: hidden;
    }

    .particle {
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
        will-change: transform;
    }
     /* Кнопка переключения языка */
        .lang-trigger-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #08080C;
            border: 1px solid #1C1C26;
            border-radius: 8px;
            padding: 6px 10px;
            cursor: pointer;
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            margin-left: 15px;
            transition: all 0.3s;
        }
        .lang-trigger-btn:hover {
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.3);
        }
        .lang-trigger-btn img {
            width: 22px;
            height: 16px;
            border-radius: 2px;
            object-fit: cover;
        }
        
        /* Сетка языков в модалке */
        .lang-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            padding: 10px 0;
        }
        .lang-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            border-radius: 10px;
            cursor: pointer;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            transition: all 0.2s;
            color: #7B7FA3;
            font-size: 14px;
            font-weight: 600;
        }
        .lang-option:hover {
            background: rgba(255,255,255,0.08);
            color: #fff;
            border-color: rgba(255,255,255,0.15);
        }
        .lang-option.active {
            background: rgba(206,30,30,0.15);
            color: #fff;
            border-color: rgba(206,30,30,0.3);
        }
        .lang-option img {
            width: 24px;
            height: 18px;
            border-radius: 2px;
            object-fit: cover;
        }
        .lang-option .check-icon {
            margin-left: auto;
            color: #CE1E1E;
            opacity: 0;
            font-size: 14px;
        }
        .lang-option.active .check-icon {
            opacity: 1;
        }
            /* MODAL */
    .modal-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(18, 22, 35, 0.6);
        backdrop-filter: blur(7px);
        display: flex;
        align-items: center;
        justify-content: center;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.25s ease, visibility 0.25s;
        z-index: 1000;
        padding: 16px;
    }

    .modal-overlay.active { visibility: visible; opacity: 1; }

    .modal-card {
        max-width: 1000px;
        width: 92%;
        margin: 40px auto;
        background: rgba(37, 37, 37, 0.829);
        border-radius: 28px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        padding: 30px;
        position: relative;
        animation: modalFadeIn 0.4s ease;
        max-height: 85vh;
        overflow-y: auto;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: scale(0.95) translateY(20px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    .modal-close {
        position: absolute;
        top: 16px; right: 16px;
        background: var(--bg-element);
        border: 1px solid var(--border-subtle);
        color: var(--text-primary);
        width: 36px; height: 36px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .modal-close:hover {
        border-color: var(--accent);
        background: rgba(206, 30, 30, 0.1);
    }

    .modal-header {
        display: flex;
        align-items: center;
        gap: 18px;
        margin-bottom: 24px;
        padding-right: 40px;
    }

    .modal-header h2 {
        font-size: 24px;
        font-weight: 700;
        letter-spacing: -0.03em;
        background: linear-gradient(
            90deg,
            #e0e7ff 0%,
            #fecdd3 20%,
            #be123c 40%,
            #f43f5e 60%,
            #be123c 80%,
            #e0e7ff 100%
        );
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: shimmer 3s linear infinite;
    }

    .modal-content p {
        color: var(--text-muted);
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.8;
    }