/* Заголовки */
.rich-text-content h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 1.5em 0 0.8em 0;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.3em;
  }
  
  .rich-text-content h2 {
    font-size: 2em;
    font-weight: 600;
    margin: 0.6em 0 0.6em 0;
    color: #34495e;
  }
  
  .rich-text-content h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 1.2em 0 0.5em 0;
    color: #495057;
  }
  
  .rich-text-content h4 {
    font-size: 1.25em;
    font-weight: 600;
    margin: 1em 0 0.4em 0;
    color: #6c757d;
  }
  
  .rich-text-content h5 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0.8em 0 0.3em 0;
    color: #868e96;
  }
  
  .rich-text-content h6 {
    font-size: 1em;
    font-weight: 600;
    margin: 0.8em 0 0.3em 0;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Параграфы */
  .rich-text-content p {
    margin: 0 0 1.2em 0;
    text-align: justify;
  }
  
  /* Жирный текст */
  .rich-text-content strong,
  .rich-text-content b {
    font-weight: 700;
    color: #2c3e50;
  }
  
  /* Курсив */
  .rich-text-content em,
  .rich-text-content i {
    font-style: italic;
    color: #495057;
  }
  
  /* Подчеркнутый текст */
  .rich-text-content u {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
  
  /* Зачеркнутый текст */
  .rich-text-content s,
  .rich-text-content del {
    text-decoration: line-through;
    color: #868e96;
  }
  
  /* Код */
  .rich-text-content code {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.2em 0.4em;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.9em;
    color: #e83e8c;
  }
  
  /* Блок кода */
  .rich-text-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.2em;
    margin: 1.5em 0;
    overflow-x: auto;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.9em;
    line-height: 1.4;
  }
  
  .rich-text-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #495057;
  }
  
  /* Маркированные списки */
  .rich-text-content ul {
    margin: 1.2em 0;
    padding-left: 2em;
    list-style-type: disc;
  }
  
  .rich-text-content ul li {
    font-size: 18px;
    padding-left: 0.5em;
    color: #4a5568;
    line-height: 1.6;
  }
  
  .rich-text-content ul li::marker {
    color: #6c757d;
  }
  
  /* Вложенные маркированные списки */
  .rich-text-content ul ul {
    list-style-type: circle;
    margin: 0.5em 0;
  }
  
  .rich-text-content ul ul ul {
    list-style-type: square;
  }
  
  /* Нумерованные списки */
  .rich-text-content ol {
    margin: 1.2em 0;
    padding-left: 2em;
    list-style-type: decimal;
  }
  
  .rich-text-content ol li {
    margin-bottom: 0.5em;
    padding-left: 0.5em;
  }
  
  /* Вложенные нумерованные списки */
  .rich-text-content ol ol {
    list-style-type: lower-alpha;
  }
  
  .rich-text-content ol ol ol {
    list-style-type: lower-roman;
  }