/* Основные стили */
        .articles-container {
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
        }

        /* Родительские элементы */
        .article-item {
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin-bottom: 15px;
            overflow: hidden;
        }

        /* Шапка статьи */
        .article-header {
            padding: 15px 20px;
            background: #f8f9fa;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.3s ease;
        }

        .article-header:hover {
            background: #e9ecef;
        }

        /* Иконка стрелки */
        .toggle-icon {
            transition: transform 0.3s ease;
        }

        .toggle-icon.open {
            transform: rotate(180deg);
        }

        /* Контент статьи */
        .article-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-in-out;
        }

        /* Дочерние элементы */
        .child-article {
            opacity: 0;
            transform: translateX(-20px);
            max-height: 0;
            padding: 0 20px;
            transition: all 0.4s ease;
        }

        .child-article.visible {
            opacity: 1;
            transform: translateX(0);
            max-height: 1000px; /* Достаточно для контента */
            padding: 15px 20px;
        }

        /* Адаптивность */
        @media (max-width: 768px) {
            .articles-container {
                padding: 10px;
            }
            
            .article-header {
                padding: 12px 15px;
            }
            
            .child-article {
                padding: 0 15px;
            }
            
            .child-article.visible {
                padding: 12px 15px;
            }
     
.article-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-content.open {
    overflow: visible;
}
        /* Дополнительные стили */
        .article-title {
            margin: 0;
            font-size: 1.1em;
            color: #333;
        }
.article-item {
    position: relative; /* Для корректного позиционирования */
    z-index: 1; /* Поднимаем над другими элементами */
}.article-content {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: max-height;
}

.child-article {
    pointer-events: auto; /* Разрешаем взаимодействие */
}
        .child-content {
            font-size: 0.95em;
            line-height: 1.6;
            color: #666;
            border-left: 3px solid #007bff;
            padding-left: 15px;
            margin: 10px 0;
        }