.block-chat ul,
.block-chat ul ul,
.block-chat ul ul ul {
  list-style-type: disc; /* сплошная точка */
}

.block-chat ul,
.block-chat ul ul,
.block-chat ul ul ul,
.block-chat ol,
.block-chat ol ol,
.block-chat ol ol ol {
  padding-left: 3rem;
  list-style-position: inside;
}

.block-chat ul li {
  margin-bottom: 0.5rem;
}

.block-chat ol li {
  margin-bottom: 0.5rem;
}

.block-chat h1,
.block-chat h2,
.block-chat h3,
.block-chat h4,
.block-chat h5,
.block-chat h6 {
  color: var(--text-color);
  /* font-weight: bold; */
  font-weight: 500;
}

.block-chat h1 {
  font-size: calc(var(--font-size-def) + calc(0.2rem * 4));
}

.block-chat h2 {
  font-size: calc(var(--font-size-def) + calc(0.2rem * 3));
}

.block-chat h3 {
  font-size: calc(var(--font-size-def) + calc(0.2rem * 2));
}

.block-chat h4 {
  font-size: calc(var(--font-size-def) + 0.2rem);
}

.block-chat h5 {
  font-size: calc(var(--font-size-def) + 0.2rem);
}

.block-chat h6 {
  font-size: var(--font-size-def);
  font-weight: bold;
}

.block-chat pre {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

.block-chat pre,
.block-chat code {
  font-family: Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.block-chat .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-source table,
.block-chat table {
  border-collapse: collapse; /* убирает двойные границы */
  font-size: var(--font-size-def);
  border: 0.1rem solid var(--table-border-color);
  margin-bottom: 0.5rem;
}

.page-source th,
.block-chat th {
  background-color: var(--table-header-bg-color);
  text-align: center;
  padding: 1rem 0.5rem;
  font-weight: normal;
}

.page-source td,
.block-chat td {
  padding: 0.5rem 0.5rem;
}

.page-source th,
.block-chat th,
.page-source td,
.block-chat td {
  border: 0.1rem solid var(--table-border-color);
}

.page-source hr,
.block-chat hr {
  border: none;
  height: 0.1rem;
  background-color: var(--hr-color);
  margin: 1.5rem 0;
}

.page-source img,
.block-chat img {
  display: block;
  height: auto;
  margin: 1rem 0;
  border-radius: var(--border-radius-s);
}

.block-chat img {
  cursor: pointer;
  width: 100%;
  /* border: 0.5rem solid var(--img-border-color);
  box-sizing: border-box; */
}

.page-source img {
  width: 50%;
}

.block-chat img.hidden {
  visibility: hidden;
}

@media (max-width: 500px) { /* стили для смартфонов */
  
  .block-chat ul,
  .block-chat ul ul,
  .block-chat ul ul ul,
  .block-chat ol,
  .block-chat ol ol,
  .block-chat ol ol ol {
    padding-left: 2rem;
  }
  
}

@media (min-width: 501px) and (max-width: 1366px) { /* стили для планшетов */

}

@media (hover: hover) and (pointer: fine) { /* дисплеи с мышей */
  
  .page-source a:hover,
  .block-chat a:hover {
    outline: 0;
    text-decoration: underline;
  }
    
}
