.rs-forum {
  background: linear-gradient(180deg, #f3f9fb 0%, #ffffff 100%);
  color: #111827;
  font-family: Manrope, Arial, sans-serif;
  padding: 56px 16px 96px;
}

.rs-forum *,
.rs-forum *::before,
.rs-forum *::after {
  box-sizing: border-box;
}

.rs-forum__wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.rs-forum__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 24px;
}

.rs-forum__intro,
.rs-forum__auth,
.rs-forum__topic,
.rs-forum__message,
.rs-forum__note {
  background: #ffffff;
  border: 1px solid #d9edf4;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.rs-forum__intro {
  padding: 32px;
}

.rs-forum__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #dff7fb;
  color: #0098aa;
  font-size: 13px;
  font-weight: 800;
}

.rs-forum h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.rs-forum p {
  margin: 0;
  color: #40516b;
  font-size: 16px;
  line-height: 1.65;
}

.rs-forum__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.rs-forum__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid #bfe7ef;
  border-radius: 999px;
  background: #ffffff;
  color: #102033;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.rs-forum__button--primary {
  border-color: #12b9ca;
  background: #12b9ca;
  color: #ffffff;
}

.rs-forum__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.rs-forum__stat {
  min-height: 78px;
  padding: 14px;
  border-radius: 8px;
  background: #f2f8fb;
}

.rs-forum__stat strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.rs-forum__stat span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.rs-forum__auth {
  padding: 22px;
}

.rs-forum__auth-title {
  margin: 0 0 14px;
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.rs-forum__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.rs-forum__tab {
  padding: 10px 12px;
  border: 1px solid #d7e9ef;
  border-radius: 8px;
  background: #f7fbfd;
  color: #102033;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.rs-forum__tab--active {
  border-color: #12b9ca;
  background: #12b9ca;
  color: #ffffff;
}

.rs-forum__fake-field {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  margin-top: 10px;
  border: 1px solid #d9edf4;
  border-radius: 8px;
  background: #f6fafc;
  color: #7a8ca3;
  font-size: 14px;
}

.rs-forum__auth-button {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font: 800 15px/1 Manrope, Arial, sans-serif;
}

.rs-forum__muted {
  display: block;
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.rs-forum__section-title {
  margin: 34px 0 16px;
  color: #111827;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
}

.rs-forum__topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.rs-forum__topic {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 18px;
}

.rs-forum__topic strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.rs-forum__topic span {
  color: #526173;
  font-size: 14px;
  line-height: 1.5;
}

.rs-forum__topic small {
  margin-top: auto;
  padding-top: 14px;
  color: #0098aa;
  font-size: 13px;
  font-weight: 800;
}

.rs-forum__topic small a {
  color: inherit;
  text-decoration: none;
}

.rs-forum__topic small a:hover {
  text-decoration: underline;
}

.rs-forum__thread {
  display: grid;
  gap: 12px;
}

.rs-forum__message {
  scroll-margin-top: 96px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  width: 82%;
  margin-right: auto;
  padding: 16px;
  background: #ffffff;
}

.rs-forum__message--master {
  width: 94%;
  margin-right: 0;
  margin-left: auto;
  padding: 22px;
  border-color: #bcecf3;
  background: #f7fdff;
}

.rs-forum__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rs-forum__name {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.rs-forum__role {
  width: max-content;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef6f8;
  color: #526173;
  font-size: 12px;
  font-weight: 800;
}

.rs-forum__message--master .rs-forum__role {
  background: #12b9ca;
  color: #ffffff;
}

.rs-forum__date {
  color: #7a8ca3;
  font-size: 13px;
}

.rs-forum__message:not(.rs-forum__message--master) .rs-forum__text p {
  color: #253955;
  font-size: 17px;
  line-height: 1.58;
  font-weight: 700;
}

.rs-forum__message--master .rs-forum__text p {
  color: #415574;
  font-size: 16px;
  line-height: 1.72;
  font-weight: 500;
}

.rs-forum__text p + p {
  margin-top: 10px;
}

.rs-forum__note {
  margin-top: 18px;
  padding: 18px;
  background: #fffdf7;
  border-color: #f5dfaa;
}

.rs-forum__note strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .rs-forum__hero,
  .rs-forum__topics {
    grid-template-columns: 1fr;
  }

  .rs-forum__stats {
    grid-template-columns: 1fr;
  }

  .rs-forum__message {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rs-forum__message--master {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .rs-forum {
    padding: 44px 12px 112px;
  }

  .rs-forum__intro,
  .rs-forum__auth,
  .rs-forum__topic,
  .rs-forum__message,
  .rs-forum__note {
    border-radius: 8px;
  }

  .rs-forum__intro {
    padding: 24px 16px;
  }

  .rs-forum h2 {
    font-size: 25px;
  }

  .rs-forum p {
    font-size: 15px;
  }

  .rs-forum__actions {
    flex-direction: column;
  }

  .rs-forum__button {
    width: 100%;
  }
}
