
        :root {
            --bg-body: #0a0a14;
            --bg-card: #11101f;
            --border-color: #2a2350;
            --text-primary: #ffffff;
            --text-secondary: #b0a5d9;
            --text-muted: #8a7ab3;
            --accent: #9253c3;
            --accent-light: #c084fc;
            --accent-gradient: linear-gradient(135deg, #9253c3, #6a3d9e);
            --warning: #f35e5e;
            --success: #4ade80;
        }

        [data-theme="light"] {
            --bg-body: #f5f3ff;
            --bg-card: #ffffff;
            --border-color: #e0d6ff;
            --text-primary: #1a1a2e;
            --text-secondary: #4a4a6a;
            --text-muted: #6c6c8a;
            --accent: #7c3aed;
            --accent-light: #a78bfa;
            --accent-gradient: linear-gradient(135deg, #7c3aed, #5b21b6);
            --warning: #dc2626;
            --success: #10b981;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
            background: var(--bg-body);
            color: var(--text-primary);
            line-height: 1.5;
            transition: background 0.2s, color 0.2s;
        }

        /* ========== ГЕРО-СЕКЦИЯ ========== */
        .rules-hero {
            position: relative;
            padding: 100px 20px 80px;
            text-align: center;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 40px;
            overflow: hidden;
        }


        @keyframes slowRotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .rules-hero__inner {
            position: relative;
            z-index: 1;
        }

        .rules-hero__title {
            font-size: 3rem;
            font-weight: 800;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 1rem;
            animation: fadeSlideUp 0.6s ease;
        }

        .rules-hero__subtitle {
            font-size: 1.2rem;
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto;
            animation: fadeSlideUp 0.6s 0.1s both;
        }

        /* ========== ОСНОВНОЙ КОНТЕНТ ========== */
        .rules-content {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px 80px;
        }

        .rules-accordion {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .accordion-item {
            background: var(--bg-card);
            border-radius: 28px;
            border: 1px solid var(--border-color);
            transition: all 0.25s ease;
            overflow: hidden;
            backdrop-filter: blur(2px);
        }

        .accordion-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.3);
        }

        .accordion-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 1.2rem 1.8rem;
            background: transparent;
            border: none;
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text-primary);
            cursor: pointer;
            transition: background 0.2s;
            text-align: left;
            gap: 1rem;
        }

        .accordion-trigger:hover {
            background: rgba(146, 83, 195, 0.08);
        }

        .accordion-num {
            color: var(--accent);
            font-weight: 800;
            margin-right: 6px;
            font-size: 1.3rem;
        }

        .accordion-icon {
            flex-shrink: 0;
            width: 26px;
            height: 26px;
            position: relative;
            transition: transform 0.3s ease;
        }

        .accordion-icon::before,
        .accordion-icon::after {
            content: '';
            position: absolute;
            background: var(--accent-light);
            border-radius: 3px;
            transition: all 0.3s ease;
        }

        .accordion-icon::before {
            top: 12px;
            left: 5px;
            width: 16px;
            height: 2px;
        }

        .accordion-icon::after {
            top: 5px;
            left: 12px;
            width: 2px;
            height: 16px;
        }

        .accordion-item.is-open .accordion-icon::after {
            transform: rotate(90deg);
            opacity: 0;
        }

        .accordion-panel {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            background: var(--bg-body);
            border-top: 1px solid transparent;
        }

        .accordion-item.is-open .accordion-panel {
            max-height: 1500px; /* увеличено для большого текста */
            border-top-color: var(--border-color);
        }

        .accordion-panel__inner {
            padding: 1.8rem;
            font-size: 0.95rem;
            line-height: 1.6;
            color: var(--text-secondary);
        }

        .accordion-panel__inner p {
            margin-bottom: 1rem;
        }

        .accordion-panel__inner strong {
            color: var(--accent);
            font-weight: 600;
        }

        .rule-point {
            display: block;
            margin-bottom: 0.75rem;
            padding-left: 1.2rem;
            position: relative;
        }

        .rule-point::before {
            content: '•';
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: bold;
        }

        .rule-warning {
            color: var(--warning);
            background: rgba(243, 94, 94, 0.1);
            border-left: 3px solid var(--warning);
            padding: 12px 18px;
            border-radius: 16px;
            margin: 1rem 0;
            font-weight: 500;
        }

        .rule-highlight {
            background: linear-gradient(120deg, var(--accent-light) 0%, var(--accent) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            font-weight: 700;
        }

        /* анимации */
        @keyframes fadeSlideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* адаптивность */
        @media (max-width: 768px) {
            .rules-hero {
                padding: 60px 15px 50px;
            }
            .rules-hero__title {
                font-size: 2.2rem;
            }
            .rules-hero__subtitle {
                font-size: 1rem;
            }
            .accordion-trigger {
                padding: 1rem 1.2rem;
                font-size: 1rem;
            }
            .accordion-panel__inner {
                padding: 1.2rem;
            }
            .accordion-num {
                font-size: 1.1rem;
            }
        }

        /* кнопка переключения темы (если не хотите использовать глобальную) */
        .theme-switch-wrapper {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 100;
        }
        .theme-switch {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 40px;
            padding: 8px 16px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 500;
            color: var(--text-primary);
            transition: 0.2s;
        }
        .theme-switch:hover {
            background: var(--accent);
            color: white;
        }