div.news-detail {
  word-wrap: break-word;
}

div.news-detail img.detail_picture {
  float: left;
  margin: 0 8px 6px 1px;
}

.news-date-time {
  color: #486DAA;
}

.table_style_1 {
  border-collapse: collapse;
}

.table_style_1 td,
.table_style_1 th {
  height: auto;
  padding: 5px;
  text-align: left;
  vertical-align: middle;
  width: auto;
}

.table_style_1 th,
.table_style_1 td,
.table_style_1 tr {
  border: 1px solid #000;
}

.table_style_1 tr:first-child th,
.table_style_1 tr:first-child td {
  background-color: #2b7ccb;
  color: #fff;
}

.table_style_2 {
  border-collapse: collapse;
} 

.table_style_2,
.table_style_2 th,
.table_style_2 td {
  border: 0;
}

.table_style_2 th,
.table_style_2 td {
  padding-bottom: 0;
  padding-top: 0;
}

.table_style_2 th,
.table_style_2 td,
.table_style_2 p {
  text-align: center;
}

.table_style_2 p {
  margin-bottom: 0;
  line-height: 21px;
}

.w-richtext:before,
.w-richtext:after {
  content: " ";
  display: table;
}

.w-richtext:after {
  clear: both;
}

.w-richtext ol,
.w-richtext ul {
  overflow: hidden;
}

.w-richtext .w-richtext-figure-selected.w-richtext-figure-type-video div:before,
.w-richtext .w-richtext-figure-selected[data-rt-type="video"] div:before {
  outline: 2px solid #2895f7;
}

.w-richtext .w-richtext-figure-selected.w-richtext-figure-type-image div,
.w-richtext .w-richtext-figure-selected[data-rt-type="image"] div {
  outline: 2px solid #2895f7;
}

.w-richtext figure.w-richtext-figure-type-video > div:before,
.w-richtext figure[data-rt-type="video"] > div:before {
  content: '';
  position: absolute;
  display: none;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.w-richtext figure {
  position: relative;
  max-width: 60%;
}

.w-richtext figure > div:before {
  cursor: default !important;
}

.w-richtext figure img {
  width: 100%;
}

.w-richtext figure figcaption.w-richtext-figcaption-placeholder {
  opacity: 0.6;
}

.w-richtext figure div {
  font-size: 0px;
  color: transparent;
}

.w-richtext figure.w-richtext-figure-type-image,
.w-richtext figure[data-rt-type="image"] {
  display: table;
}

.w-richtext figure.w-richtext-figure-type-image > div,
.w-richtext figure[data-rt-type="image"] > div {
  display: inline-block;
}

.w-richtext figure.w-richtext-figure-type-image > figcaption,
.w-richtext figure[data-rt-type="image"] > figcaption {
  display: table-caption;
  caption-side: bottom;
}

.w-richtext figure.w-richtext-figure-type-video,
.w-richtext figure[data-rt-type="video"] {
  width: 60%;
  height: 0;
}

.w-richtext figure.w-richtext-figure-type-video iframe,
.w-richtext figure[data-rt-type="video"] iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.w-richtext figure.w-richtext-figure-type-video > div,
.w-richtext figure[data-rt-type="video"] > div {
  width: 100%;
}

.w-richtext figure.w-richtext-align-center {
  margin-right: auto;
  margin-left: auto;
  clear: both;
}

.w-richtext figure.w-richtext-align-center.w-richtext-figure-type-image > div,
.w-richtext figure.w-richtext-align-center[data-rt-type="image"] > div {
  max-width: 100%;
}

.w-richtext figure.w-richtext-align-normal {
  clear: both;
}

.w-richtext figure.w-richtext-align-fullwidth {
  width: 100%;
  max-width: 100%;
  text-align: center;
  clear: both;
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.w-richtext figure.w-richtext-align-fullwidth > div {
  display: inline-block;
  padding-bottom: inherit;
}

.w-richtext figure.w-richtext-align-fullwidth > figcaption {
  display: block;
}

.w-richtext figure.w-richtext-align-floatleft {
  float: left;
  margin-right: 15px;
  clear: none;
}

.w-richtext figure.w-richtext-align-floatright {
  float: right;
  margin-left: 15px;
  clear: none;
}

@media (max-width: 767px) {
  .w-richtext {
    overflow-x: auto;
  }

  .w-richtext img {
    max-width: 100%;
    width: 100%;
    height: auto;
    float: none;
  }

  .w-richtext table:not(.table_style_2) {
    min-width: 320px;
  }
}

.w-richtext table {
  display: table; 
  margin-bottom: 40px;
  margin-top: 10px;
}

.w-richtext table tr td {
  border: 1px solid black;
  padding: 10px;
}

.w-richtext table {
  display: table; 
  margin-bottom: 40px;
  margin-top: 10px;
  width: 100%;
  border-collapse: collapse;
}

.w-richtext table tr {
  display: table-row;
  vertical-align: top;
}

.w-richtext table td {
  border: 1px solid black;
  padding: 10px;
  vertical-align: top;
}

.w-richtext table img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
}

.w-richtext table tr:first-child td:first-child img {
  margin-top: 25px; 
  margin-bottom: 15px;
}

.w-richtext table img:first-child {
  margin-top: 25px;
  margin-bottom: 15px;
}

.w-richtext table figure {
  max-width: 100%;
  margin: 0;
}

.w-richtext table figure img {
  width: auto;
  max-width: 100%;
}
.zagol{
  margin-top: 60px;
  margin-bottom: 30px;
  font-weight: bold;
}
.w-richtext ol{
  margin-top: 24px;
  margin-bottom: 24px;
}
.w-richtext p img{
  margin-top: 20px;
  border-radius: 20px;
}
/* Основной медиазапрос для мобильных и планшетов */
@media (max-width: 991px) {
  /* Для всех изображений в редакторе */
  .w-richtext img,
  .w-richtext figure img {
    max-width: 100%;
    width: 100%;
    height: auto;
    float: none;
    display: block;
    margin: 0 auto 15px;
  }

  /* Сброс плавания для картинок в деталях новости */
  div.news-detail img.detail_picture {
    float: none;
    margin: 0 0 15px;
    display: block;
  }

  /* Таблицы */
  .w-richtext table,
  .table_style_1,
  .table_style_2 {
    width: 100%;
    min-width: 100%;
    overflow-x: auto;
  }

  /* Стилизация ячеек таблицы для мобильных */
  .w-richtext table td,
  .w-richtext table th,
  .table_style_1 td,
  .table_style_1 th {
    padding: 8px 5px;
    font-size: 14px;
    word-wrap: break-word;
    white-space: normal;
  }

  /* Заголовки таблиц */
  .table_style_1 tr:first-child th {
    background-color: #2b7ccb;
    color: #fff;
  }

  /* Увеличенный отступ для списков */
  .w-richtext ol,
  .w-richtext ul {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-left: 15px;
  }

  /* Адаптация видео */
  .w-richtext figure.w-richtext-figure-type-video,
  .w-richtext figure[data-rt-type="video"] {
    width: 100%;
    height: auto;
    padding-top: 56.25%; /* Соотношение 16:9 */
  }

  .w-richtext figure.w-richtext-figure-type-video iframe,
  .w-richtext figure[data-rt-type="video"] iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* Центрирование элементов */
  .w-richtext figure.w-richtext-align-center,
  .w-richtext figure.w-richtext-align-fullwidth {
    margin: 0 auto;
    clear: both;
    width: 100%;
  }

  /* Плавающие изображения */
  .w-richtext figure.w-richtext-align-floatleft,
  .w-richtext figure.w-richtext-align-floatright {
    float: none;
    margin: 0 0 15px;
    width: 100%;
  }

  /* Отступы для изображений */
  .w-richtext table tr:first-child td:first-child img,
  .w-richtext table img:first-child {
    margin-top: 15px;
    margin-bottom: 10px;
  }

  /* Заголовки */
  .zagol {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.2em;
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
  /* Уменьшение отступов */
  .w-richtext table td,
  .w-richtext table th {
    padding: 5px 3px;
    font-size: 13px;
  }

  /* Упрощение таблицы стиля 1 */
  .table_style_1 tr:first-child th {
    font-size: 14px;
  }

  /* Отступы для списков */
  .w-richtext ol,
  .w-richtext ul {
    margin-top: 15px;
    margin-bottom: 15px;
  }
}