.rules_index {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;

    & > .left {
        width: 240px;
        flex-shrink: 0;

        & > .block {
            & > .block_body {
                & > .list {
                    display: flex;
                    flex-direction: column;
                    gap: 2px;
                    padding: 8px 0;

                    & > .item {
                        display: flex;
                        align-items: center;
                        gap: 10px;
                        padding: 10px 16px;
                        cursor: pointer;
                        text-decoration: none;
                        color: inherit;
                        transition: all 0.2s ease;
                        border-left: 3px solid transparent;

                        & > .thumb {
                            width: 28px;
                            height: 28px;
                            border-radius: 6px;
                            background-size: cover;
                            background-position: center;
                            flex-shrink: 0;
                        }

                        &:hover {
                            background: rgba(255, 255, 255, 0.03);
                            color: var(--primary, #2ebd59);
                            text-decoration: none;
                        }

                        &.active {
                            background: rgba(46, 189, 89, 0.1);
                            border-left-color: var(--primary, #2ebd59);
                            color: var(--primary, #2ebd59) !important;
                            font-weight: 600;
                        }
                    }
                }
            }
        }
    }

    & > .right {
        flex: 1;
        min-width: 0;

        & > .category_header {
            height: 160px;
            border-radius: 6px;
            overflow: hidden;
            position: relative;
            margin-bottom: 15px;
            background-size: cover;
            background-position: center;
            border: 1px solid rgba(255, 255, 255, 0.05);

            & > .overlay {
                position: absolute;
                inset: 0;
                background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 100%);
            }

            & > .title {
                position: absolute;
                left: 20px;
                bottom: 20px;
                color: #fff;
                font-size: 22px;
                font-weight: 700;
                text-shadow: 0 2px 4px rgba(0,0,0,0.5);
            }
        }

        .rules_list {
            /* Фоновые стили наследуются от SolutionGreen (.block) */
        }

        .rule_item {
            padding: 18px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);

            &:last-child {
                border-bottom: none;
            }

            & > .title {
                font-weight: 600;
                font-size: 16px;
                color: var(--primary, #2ebd59);
                margin-bottom: 8px;
            }

            & > .content {
                font-size: 14px;
                line-height: 1.6;
                white-space: pre-wrap;
                opacity: 0.9;

                & > .rule_block {
                    margin-bottom: 14px;

                    &:last-child {
                        margin-bottom: 0;
                    }

                    & > .rule_block_title {
                        font-weight: 600;
                        margin-bottom: 6px;
                        color: rgba(255, 255, 255, 0.95);
                    }

                    & > .rule_points {
                        margin: 0;
                        padding-left: 20px;
                        color: rgba(255, 255, 255, 0.8);
                    }
                }
            }
        }

        .no_data {
            padding: 30px;
            text-align: center;
            opacity: 0.6;
            font-size: 15px;
        }
    }
}

@media only screen and (max-width: 768px) {
    .rules_index {
        flex-direction: column;

        & > .left {
            width: 100%;
            margin-bottom: 15px;
        }
    }
}