/* Страница /communityrules: правила сообщества */

/* Убираем зазор между секцией правил и контактной формой (пустой main между ними) */
.community-rules + main.container {
  padding-top: 0;
  padding-bottom: 0;
}

.community-rules {
  background: #ffffff;
  padding: 70px 20px 90px;
  box-sizing: border-box;
}

.community-rules__inner {
  max-width: 860px;
  margin: 0 auto;
}

.community-rules__title {
  margin: 0 0 56px;
  color: #815583;
  font-family: "TildaSans", Arial, sans-serif;
  font-weight: 300;
  font-size: 45px;
  line-height: 1.05;
  text-align: center;
}

.community-rules__text {
  color: #815583;
  font-family: "TildaSans", Arial, sans-serif;
  font-weight: 300;
  font-size: 25px;
  line-height: 1.5;
  margin: 0 0 28px;
}

.community-rules__text p {
  margin: 0 0 14px;
}

.community-rules__text p:last-child {
  margin-bottom: 0;
}

.community-rules__text strong {
  font-weight: 500;
}

/* Отступ перед блоком «Не допускаются:» */
.community-rules__p--space-before {
  margin-top: 1.4em !important;
}

/* Отступы вокруг списков (• политика… / • порнографические…) */
.community-rules__list-block {
  margin-top: 1.2em !important;
  margin-bottom: 1.2em !important;
}

/* Удвоенные отступы между абзацами в блоке «Нарушение правил» */
.community-rules__text--loose p {
  margin-bottom: 28px;
}
.community-rules__text--loose p:last-child {
  margin-bottom: 0;
}

.community-rules__text--center {
  text-align: center;
}

.community-rules__divider {
  display: block;
  margin: 80px auto;
  max-width: 100%;
  height: auto;
}

.community-rules__cta {
  margin: 36px 0 0;
  text-align: center;
}

/* Кнопка — канон как registration-form */
.community-rules__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 500px;
  width: 300px;
  padding: 15px;
  color: white;
  text-decoration: none;
  background-color: #815583;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.community-rules__btn:hover {
  background-color: #7a527b;
}

.community-rules__btn:focus-visible {
  outline: 2px solid #815583;
  outline-offset: 2px;
}

/* Flowers_05: справа, ~30% уходит ниже секции и обрезается */
.community-rules__flower-wrap {
  margin-top: 32px;
  margin-bottom: -120px;
  text-align: right;
  padding-right: 0;
}

.community-rules__flower-img {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 260px;
}

@media (max-width: 768px) {
  .community-rules {
    padding: 50px 16px 70px;
  }
  .community-rules__title {
    font-size: 45px;
    margin-bottom: 44px;
  }
  .community-rules__text {
    font-size: 25px;
    margin-bottom: 22px;
  }
  .community-rules__divider {
    margin: 64px auto;
  }
  .community-rules__flower-wrap {
    margin-bottom: -90px;
  }
  .community-rules__flower-img {
    max-width: 200px;
  }
  .community-rules__btn {
    width: 300px;
    padding: 15px;
  }
}

@media (max-width: 520px) {
  .community-rules {
    padding: 40px 14px 60px;
  }
  .community-rules__title {
    font-size: 45px;
    margin-bottom: 36px;
  }
  .community-rules__text {
    font-size: 25px;
    margin-bottom: 18px;
  }
  .community-rules__divider {
    margin: 52px auto;
  }
  .community-rules__cta {
    margin-top: 28px;
  }
  .community-rules__btn {
    width: min(300px, calc(100vw - 24px));
    padding: 15px;
  }
  .community-rules__flower-wrap {
    margin-bottom: -70px;
    text-align: center;
  }
  .community-rules__flower-img {
    max-width: 160px;
  }
}
