/* Основная типографика */ .article-content { font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: #333; max-width: 800px; /* при необходимости */ margin: 0 auto; } .article-content h1, .article-content h2, .article-content h3, .article-content h4, .article-content h5, .article-content h6 { margin-top: 1.5em; margin-bottom: 0.5em; font-weight: 600; line-height: 1.25; } .article-content p { margin-bottom: 1.2em; } .article-content blockquote { border-left: 4px solid #ddd; padding-left: 1em; margin-left: 0; margin-right: 0; font-style: italic; color: #666; } .article-content pre { background: #f5f5f5; padding: 1em; border-radius: 4px; overflow-x: auto; } .article-content code { background: #f0f0f0; padding: 0.2em 0.4em; border-radius: 3px; font-size: 0.9em; } /* Таблицы */ .article-content table { border-collapse: collapse; width: 100%; margin: 1em 0; } .article-content th, .article-content td { border: 1px solid #ddd; padding: 8px; text-align: left; } .article-content th { background-color: #f8f8f8; } /* Изображения */ .article-content figure.image { display: inline-block; margin: 1em 0; max-width: 100%; } .article-content figure.image img { max-width: 100%; height: auto; } /* Выравнивание изображений (классы, используемые CKEditor 5) */ .article-content .image-style-align-left { float: left; margin-right: 1.5em; margin-bottom: 1em; max-width: 50%; } .article-content .image-style-align-right { float: right; margin-left: 1.5em; margin-bottom: 1em; max-width: 50%; } .article-content .image-style-align-center { display: block; margin-left: auto; margin-right: auto; max-width: 100%; } /* Подписи к изображениям (если используются) */ .article-content figure.image figcaption { text-align: center; font-size: 0.9em; color: #666; margin-top: 0.3em; } /* Встроенные медиа (видео) */ .article-content .media { position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 */ height: 0; margin: 1.5em 0; } .article-content .media iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; } /* Списки */ .article-content ul, .article-content ol { padding-left: 2em; margin-bottom: 1em; } /* Горизонтальная линия */ .article-content hr { border: none; border-top: 2px solid #eee; margin: 2em 0; }