/* contents.php layout. This file is not produced by the Tailwind build.
   Linked from top.php after styles.css. Do not move these rules into styles.css. */

/* Текстовые страницы (contents.php). Текст блока — как .charter__text p, без text-align. */
.content_body {
  display: flow-root;
  margin: 0 auto;
}

.content_body[id] {
  scroll-margin-top: 90px;
}

.content_body + .content_body {
  margin-top: 30px;
}

.content_body + .content_body > .content_text:first-child {
  margin-top: 0;
}

.content_img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 375 / 420;
  object-fit: cover;
}

.content_body--center .content_img {
  float: none;
  width: auto;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  margin-right: auto;
  margin-left: auto;
}

.content_text {
  width: calc(100% - 94px);
  max-width: 281px;
  margin: 30px auto 0;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #121212;
}

.content_text > :first-child:not(.content__title) {
  margin-top: 0;
}

.content__title {
  margin: 0 0 0.75rem;
  width: 100%;
  text-align: center;
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  color: #121212;
}

.content_body--center .content_img + .content__title {
  margin-top: 0.75rem;
}

.content_text > :last-child {
  margin-bottom: 0;
}

.content_text p,
.content_text ul,
.content_text ol {
  margin: 0.25rem 0 0;
}

.content_text ul,
.content_text ol {
  padding-left: 1.5em;
}

.content_text ul {
  list-style: disc outside;
}

.content_text ol {
  list-style: decimal outside;
}

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

@media (min-width: 768px) {
  .content_body {
    width: calc(100% - 62px);
    max-width: 651px;
    margin-top: 36px;
  }

  .content_img {
    float: left;
    width: 329px;
    aspect-ratio: 693 / 855;
    margin: 0 41px 30px 0;
  }

  .content_text {
    width: auto;
    max-width: none;
    margin: 0;
    font-size: 16px;
  }

  .content_text p,
  .content_text ul,
  .content_text ol {
    margin-top: 0.5rem;
  }

  .content__title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
  }

  .content_body + .content_body {
    margin-top: 36px;
  }

  .content_body--right .content_img {
    float: right;
    margin: 0 0 30px 41px;
  }

  .content_body--center .content_img {
    float: none;
    width: auto;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    margin: 0 auto 30px;
  }

  .content_body--center .content_img:has(+ .content__title) {
    margin-bottom: 0;
  }

  .content_body--center .content_img + .content__title {
    margin-top: 30px;
  }
}

@media (min-width: 992px) {
  .content_body {
    max-width: calc(815px + 762.4 * var(--f));
    margin-top: calc(36px + 64 * var(--f));
  }

  .content_body[id] {
    scroll-margin-top: calc(96px + 39.75 * var(--f));
  }

  .content_img {
    width: calc(358px + 334.9 * var(--f));
    margin: 0 calc(137.5px - 42.7 * var(--f)) calc(30px + 20 * var(--f)) 0;
  }

  .content_body + .content_body {
    margin-top: calc(36px + 64 * var(--f));
  }

  .content_body--right .content_img {
    margin: 0 0 calc(30px + 20 * var(--f)) calc(137.5px - 42.7 * var(--f));
  }

  .content_body--center .content_img {
    float: none;
    width: auto;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    margin: 0 auto calc(30px + 20 * var(--f));
  }

  .content_body--center .content_img:has(+ .content__title) {
    margin-bottom: 0;
  }

  .content_body--center .content_img + .content__title {
    margin-top: calc(30px + 60 * var(--f));
  }

  .content_text {
    font-size: calc(16px + 5.971 * var(--f));
  }

  .content_text p,
  .content_text ul,
  .content_text ol {
    margin-top: calc(8px + 2 * var(--f));
  }

  .content__title {
    margin-top: 0;
    margin-bottom: calc(20px + 9 * var(--f));
    font-size: calc(24px + 10.839 * var(--f));
  }
}
