/*
 * Unified typography for imported Bitrix posts and new WordPress pages/posts.
 */
.bd-text__wrapper.tp-content {
  display: block;
  color: #27292b;
}

body.single-post .bd-info {
  display: none !important;
}

.bd-text__wrapper.tp-content > * {
  margin-top: 0;
  margin-bottom: 20px;
}

.bd-text__wrapper.tp-content > *:last-child {
  margin-bottom: 0;
}

.bd-text__wrapper.tp-content p,
.bd-text__wrapper.tp-content li,
.bd-text__wrapper.tp-content td,
.bd-text__wrapper.tp-content th {
  font-family: var(--font-family);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 400;
  color: #27292b;
}

.bd-text__wrapper.tp-content b,
.bd-text__wrapper.tp-content strong {
  font-weight: 700;
}

.bd-text__wrapper.tp-content h1,
.bd-text__wrapper.tp-content h2,
.bd-text__wrapper.tp-content h3,
.bd-text__wrapper.tp-content h4,
.bd-text__wrapper.tp-content h5,
.bd-text__wrapper.tp-content h6 {
  font-family: var(--font-family-secondary);
  color: #27292b;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bd-text__wrapper.tp-content h1 {
  font-size: 44px;
  line-height: 1.2;
}

.bd-text__wrapper.tp-content h2 {
  font-size: 36px;
  line-height: 1.25;
}

.bd-text__wrapper.tp-content h3 {
  font-size: 30px;
  line-height: 1.3;
}

.bd-text__wrapper.tp-content h4 {
  font-size: 24px;
  line-height: 1.35;
}

.bd-text__wrapper.tp-content h5 {
  font-size: 21px;
  line-height: 1.35;
}

.bd-text__wrapper.tp-content h6 {
  font-size: 19px;
  line-height: 1.35;
}

.bd-text__wrapper.tp-content ul,
.bd-text__wrapper.tp-content ol {
  margin: 0 0 20px;
  padding-left: 28px;
}

.bd-text__wrapper.tp-content ul li,
.bd-text__wrapper.tp-content ol li {
  display: list-item;
  margin: 0 0 10px;
  padding-left: 0;
}

.bd-text__wrapper.tp-content ul li::before,
.bd-text__wrapper.tp-content ol li::before {
  content: none;
  display: none;
}

.bd-text__wrapper.tp-content ul li:last-child,
.bd-text__wrapper.tp-content ol li:last-child {
  margin-bottom: 0;
}

.bd-text__wrapper.tp-content ul li {
  list-style: disc;
}

.bd-text__wrapper.tp-content ol li {
  list-style: decimal;
}

.bd-text__wrapper.tp-content a {
  color: #6344cf;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.bd-text__wrapper.tp-content a:hover {
  color: #4b2db4;
}

.bd-text__wrapper.tp-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.bd-text__wrapper.tp-content figure {
  margin: 0 0 24px;
}

.bd-text__wrapper.tp-content figcaption {
  margin-top: 10px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

.bd-text__wrapper.tp-content blockquote {
  margin: 0 0 24px;
  padding: 22px 24px;
  border-left: 4px solid #6344cf;
  border-radius: 14px;
  background: #f5f3ff;
}

.bd-text__wrapper.tp-content blockquote p:last-child {
  margin-bottom: 0;
}

.bd-text__wrapper.tp-content hr {
  margin: 24px 0;
  border: none;
  border-top: 1px solid #e4e7ec;
}

.bd-text__wrapper.tp-content pre,
.bd-text__wrapper.tp-content code {
  font-family: "Courier New", Courier, monospace;
}

.bd-text__wrapper.tp-content pre {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #111827;
  color: #f9fafb;
  overflow-x: auto;
}

.bd-text__wrapper.tp-content code {
  background: #f4f4f5;
  color: #27292b;
  border-radius: 6px;
  padding: 2px 6px;
}

.bd-text__wrapper.tp-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.bd-text__wrapper.tp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  border-radius: 12px;
  overflow: hidden;
}

.bd-text__wrapper.tp-content table th,
.bd-text__wrapper.tp-content table td {
  border: 1px solid #e4e7ec;
  padding: 12px 14px;
  text-align: left;
}

.bd-text__wrapper.tp-content table th {
  font-weight: 700;
  background: #f9fafb;
}

.bd-text__wrapper.tp-content .wp-block-table {
  margin: 0 0 24px;
}

.bd-text__wrapper.tp-content .wp-block-button__link {
  color: #ffffff;
  background: #6344cf;
  border-radius: 999px;
  padding: 12px 20px;
  text-decoration: none;
  font-family: var(--font-family-secondary);
  font-size: 16px;
  line-height: 1;
}

.bd-text__wrapper.tp-content .wp-block-button__link:hover {
  background: #4b2db4;
}

.bd-text__wrapper.tp-content .wp-block-group,
.bd-text__wrapper.tp-content .wp-block-columns,
.bd-text__wrapper.tp-content .wp-block-cover,
.bd-text__wrapper.tp-content .wp-block-media-text {
  margin-bottom: 24px;
}

.bd-text__wrapper.tp-content .wp-block-separator {
  border-top-width: 1px;
  border-top-color: #e4e7ec;
}

.bd-text__wrapper.tp-content .alignleft {
  float: left;
  margin: 0 20px 16px 0;
}

.bd-text__wrapper.tp-content .alignright {
  float: right;
  margin: 0 0 16px 20px;
}

.bd-text__wrapper.tp-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.bd-text__wrapper.tp-content .wp-block-image img {
  border-radius: 12px;
}


@media screen and (max-width: 1024.98px) {
  .bd-text__wrapper.tp-content p,
  .bd-text__wrapper.tp-content li,
  .bd-text__wrapper.tp-content td,
  .bd-text__wrapper.tp-content th {
    font-size: 17px;
  }

  .bd-text__wrapper.tp-content h1 {
    font-size: 36px;
  }

  .bd-text__wrapper.tp-content h2 {
    font-size: 31px;
  }

  .bd-text__wrapper.tp-content h3 {
    font-size: 26px;
  }

  .bd-text__wrapper.tp-content h4 {
    font-size: 22px;
  }
}

@media screen and (max-width: 767.98px) {
  .bd-text__wrapper.tp-content > * {
    margin-bottom: 16px;
  }

  .bd-text__wrapper.tp-content p,
  .bd-text__wrapper.tp-content li,
  .bd-text__wrapper.tp-content td,
  .bd-text__wrapper.tp-content th {
    font-size: 15px;
    line-height: 1.5;
  }

  .bd-text__wrapper.tp-content h1 {
    font-size: 31px;
  }

  .bd-text__wrapper.tp-content h2 {
    font-size: 27px;
  }

  .bd-text__wrapper.tp-content h3 {
    font-size: 23px;
  }

  .bd-text__wrapper.tp-content h4 {
    font-size: 20px;
  }

  .bd-text__wrapper.tp-content h5 {
    font-size: 18px;
  }

  .bd-text__wrapper.tp-content h6 {
    font-size: 16px;
  }

  .bd-text__wrapper.tp-content ul,
  .bd-text__wrapper.tp-content ol {
    padding-left: 22px;
  }

  .bd-text__wrapper.tp-content blockquote {
    padding: 16px 18px;
    border-radius: 10px;
  }

  .bd-text__wrapper.tp-content .alignleft,
  .bd-text__wrapper.tp-content .alignright {
    float: none;
    margin: 0 0 16px;
  }
}
