/* ТЕКСТ НОВОСТИ — вывод WYSIWYG-поля */

.news-content {
  padding: 60px 0;
}


/* ---- Заголовки ---- */

.news-content__body h2,
.news-content__body h3,
.news-content__body h4,
.news-content__body h5,
.news-content__body h6 {
  margin: 40px 0 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

.news-content__body h2 { font-size: 32px; }
.news-content__body h3 { font-size: 26px; }
.news-content__body h4 { font-size: 22px; }
.news-content__body h5 { font-size: 20px; }
.news-content__body h6 { font-size: 18px; }

.news-content__body > *:first-child {
  margin-top: 0;
}

/* ---- Проза ---- */

.news-content__body p {
  margin-bottom: 20px;
}

.news-content__body strong,
.news-content__body b {
  font-weight: 700;
}

.news-content__body em,
.news-content__body i {
  font-style: italic;
}

.news-content__body a {
  color: var(--button);
  text-decoration: underline;
}

.news-content__body a:hover {
  text-decoration: none;
}

/* ---- Списки ---- */

.news-content__body ul,
.news-content__body ol {
  margin: 0 0 20px 24px;
  padding: 0;
}

.news-content__body ul li {
  list-style: disc;
  margin-bottom: 8px;
}

.news-content__body ol li {
  list-style: decimal;
  margin-bottom: 8px;
}

/* ---- Медиафайлы ---- */

.news-content__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px 0;
}

.news-content__body figure {
  margin: 30px 0;
}

.news-content__body figure img {
  margin: 0;
}

.news-content__body figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 140%;
  color: var(--caption);
}

.news-content__body .aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.news-content__body .alignleft {
  float: left;
  margin: 0 30px 20px 0;
}

.news-content__body .alignright {
  float: right;
  margin: 0 0 20px 30px;
}

/* ---- Цитаты и разделители ---- */

.news-content__body blockquote {
  margin: 30px 0;
  padding-left: 24px;
  border-left: 2px solid var(--button);
  color: var(--text-soft);
}

.news-content__body hr {
  margin: 40px 0;
  height: 1px;
  background-color: color-mix(in srgb, var(--text-primary) 25%, transparent);
}

/* ---- Таблицы ---- */

.news-content__body table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

.news-content__body th,
.news-content__body td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--text-primary) 25%, transparent);
}

.news-content__body th {
  font-weight: 600;
  background-color: var(--cards);
}

/* ============================================
   ПЛАНШЕТ ≤ 1080px
   ============================================ */

@media (max-width: 1080px) {

  .news-content__body h2 { font-size: 26px; }
  .news-content__body h3 { font-size: 22px; }
  .news-content__body h4 { font-size: 20px; }
}

/* ============================================
   МОБАЙЛ ≤ 768px
   ============================================ */

@media (max-width: 768px) {

  .news-content {
    padding: 30px 0;
  }

  .news-content__body {
    max-width: 100%;
  }

  .news-content__body h2,
  .news-content__body h3,
  .news-content__body h4,
  .news-content__body h5,
  .news-content__body h6 {
    margin: 24px 0 12px;
  }

  .news-content__body h2 { font-size: 22px; }
  .news-content__body h3 { font-size: 20px; }
  .news-content__body h4 { font-size: 18px; }

  .news-content__body img,
  .news-content__body figure {
    margin: 20px 0;
  }

  .news-content__body .alignleft,
  .news-content__body .alignright {
    float: none;
    margin: 20px 0;
  }

  .news-content__body table {
    display: block;
    overflow-x: auto;
  }
}
