.redactor-styles {
  font-family: "Inter", "Arial", sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: var(--steelblue);
}

.redactor-styles figure {
  margin: 24px 0;
  display: block;
}

.redactor-styles p {
  margin: 0 0 24px 0;
}

.redactor-styles a {
  color: var(--ruby);
  transition: 0.2s;
}

.redactor-styles a:hover {
  text-decoration: underline;
  transition: 0.2s;
}

.redactor-styles img {
  max-width: 100%;
  height: auto;
  display: initial;
}

.redactor-styles ul li {
  list-style: initial;
}

.redactor-styles ul,
.redactor-styles ol {
  padding: 0 0 0 30px;
}

.redactor-styles .video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 24px;
}

.redactor-styles .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-width: 0;
  outline-width: 0;
}

.redactor-styles .text-center {
  text-align: center;
}

.redactor-styles .text-right {
  text-align: right;
}

.redactor-styles .text-justify {
  text-align: justify;
}

.redactor-styles address,
.redactor-styles blockquote,
.redactor-styles dl,
.redactor-styles hr,
.redactor-styles ol,
.redactor-styles p,
.redactor-styles pre,
.redactor-styles table,
.redactor-styles ul {
  margin: 0 0 24px 0;
}

.redactor-styles p:last-child,
.redactor-styles ul:last-child,
.redactor-styles ol:last-child,
.redactor-styles dl:last-child,
.redactor-styles blockquote:last-child,
.redactor-styles hr:last-child,
.redactor-styles pre:last-child,
.redactor-styles table:last-child,
.redactor-styles figure:last-child,
.redactor-styles address:last-child {
  margin-bottom: 0;
}

.redactor-styles table {
  width: auto;
}

.redactor-styles table td,
.redactor-styles table th {
  padding: 10px;
  border: 1px solid rgba(var(--white-opacity), 0.5);
  font-size: 12px;
  line-height: 14px;
}

.redactor-styles h1,
.redactor-styles h2,
.redactor-styles h3,
.redactor-styles h4,
.redactor-styles h5,
.redactor-styles h6 {
  font-family: "Inter", "Arial", sans-serif;
}

.redactor-styles h1 {
  font-size: 36px;
  line-height: 42px;
}

.redactor-styles h2 {
  font-size: 34px;
  line-height: 40px;
}

.redactor-styles h3 {
  font-size: 32px;
  line-height: 38px;
}

.redactor-styles h4 {
  font-size: 30px;
  line-height: 36px;
}

@media (max-width: 1300px) {
  .redactor-styles h1 {
    font-size: 32px;
    line-height: 36px;
  }

  .redactor-styles h2 {
    font-size: 30px;
    line-height: 34px;
  }

  .redactor-styles h3 {
    font-size: 28px;
    line-height: 32px;
  }

  .redactor-styles h4 {
    font-size: 26px;
    line-height: 30px;
  }
}

@media(max-width: 800px) {
  .redactor-styles figure {
    margin: 20px 0;
    display: block;
  }

  .redactor-styles address,
  .redactor-styles blockquote,
  .redactor-styles dl,
  .redactor-styles hr,
  .redactor-styles ol,
  .redactor-styles p,
  .redactor-styles pre,
  .redactor-styles table,
  .redactor-styles ul {
    margin: 0 0 20px 0;
  }
}

@media (max-width: 730px) {
  .redactor-styles {
    font-size: 18px;
    line-height: 22px;
  }

  .redactor-styles h1 {
    font-size: 28px;
    line-height: 32px;
  }

  .redactor-styles h2 {
    font-size: 26px;
    line-height: 30px;
  }

  .redactor-styles h3 {
    font-size: 24px;
    line-height: 28px;
  }

  .redactor-styles h4 {
    font-size: 22px;
    line-height: 26px;
  }
}

@media (max-width: 480px) {
  .redactor-styles {
    font-size: 16px;
    line-height: 20px;
  }

  .redactor-styles h1 {
    font-size: 24px;
    line-height: 28px;
  }

  .redactor-styles h2 {
    font-size: 22px;
    line-height: 26px;
  }

  .redactor-styles h3 {
    font-size: 20px;
    line-height: 24px;
  }

  .redactor-styles h4 {
    font-size: 18px;
    line-height: 22px;
  }
}

/* Фреймы */

@media (max-width: 1000px) {
  .redactor-styles iframe {
    width: calc(100vw - 30px);
    height: calc((100vw - 30px)*9/16);
  }
}
