.rrpc {
  --rrpc-ink: #222222;
  --rrpc-muted: #444444;
  --rrpc-support: #666666;
  --rrpc-brand: #4a8903;
  --rrpc-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  --rrpc-shell-max: 1380px;
  --rrpc-shell-pad: clamp(12px, 2.5vw, 28px);
  color: var(--rrpc-ink);
  margin: 0;
}

.rrpc * {
  box-sizing: border-box;
}

.rrpc-head {
  margin-bottom: 16px;
}

.rrpc-head-shell {
  width: 100%;
  padding-inline: 0;
}

.rrpc-grid-shell {
  width: 100%;
  padding-inline: 0;
}

.rrpc:not(.rrpc-home) .rrpc-head-shell,
.rrpc:not(.rrpc-home) .rrpc-grid-shell {
  width: min(100%, var(--rrpc-shell-max));
  margin-inline: auto;
}

.rrpc.rrpc-home .rrpc-head-shell {
  padding-inline: var(--rrpc-shell-pad);
}

.rrpc.rrpc-home .rrpc-grid-shell {
  padding-inline: 0;
}

.rrpc-head-card {
  background: transparent;
}

.rrpc-head-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.rrpc-copy {
  min-width: 0;
}

.rrpc:not(.rrpc-home) .rrpc-copy {
  flex: 1 1 auto;
  max-width: 72ch;
}

.rrpc-kicker {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rrpc-brand);
}

.rrpc-title {
  margin: 0;
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--rrpc-ink);
}

.rrpc-lead {
  margin: 10px 0 0;
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--rrpc-muted);
}

.rrpc-actions {
  flex: 0 0 auto;
}

.rrpc:not(.rrpc-home) .rrpc-actions {
  margin-left: auto;
  align-self: center;
}

.rrpc .size-22 {
  font-size: 1.375rem !important;
}

.rrpc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(74, 137, 3, 0.9);
  background: var(--rrpc-brand);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.rrpc-btn:link,
.rrpc-btn:visited,
.rrpc-btn:active {
  color: #fff;
}

.rrpc-btn:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.rrpc.rrpc-home .rrpc-head {
  margin-bottom: 22px;
}

.rrpc.rrpc-home .rrpc-head-card {
  background: #4a3535;
  border-radius: 22px;
  overflow: hidden;
}

.rrpc.rrpc-home .rrpc-head-inner {
  width: min(100%, var(--rrpc-shell-max));
  margin: 0 auto;
  padding: 26px 0;
  align-items: center;
  justify-content: space-between;
}

.rrpc.rrpc-home .rrpc-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 74ch;
  text-align: left;
}

.rrpc.rrpc-home .rrpc-title {
  color: #fff;
  font-size: 2.5rem !important;
  font-weight: 700;
}

.rrpc.rrpc-home .rrpc-lead,
.rrpc.rrpc-home .rrpc-lead.size-22 {
  color: #fff;
  font-size: 1.375rem !important;
  line-height: 1.55;
  max-width: 70ch;
}

.rrpc.rrpc-home .rrpc-actions {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
}

.rrpc.rrpc-home .rrpc-btn {
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 15px;
}

.rrpc-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-inline: 0;
  padding-bottom: 8px;
}

.rrpc.rrpc-home .rrpc-grid {
  margin-left: var(--rrpc-shell-pad);
  margin-right: var(--rrpc-shell-pad);
}

.rrpc-grid::-webkit-scrollbar {
  height: 8px;
}

.rrpc-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.rrpc-card {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - 48px) / 3);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--rrpc-shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 300ms ease, box-shadow 300ms ease;
  scroll-snap-align: start;
}

.rrpc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.12);
  color: inherit;
  text-decoration: none;
}

.rrpc-card-media {
  width: 100%;
  aspect-ratio: 16 / 12;
  background: #f2f2f2;
}

.rrpc-card picture,
.rrpc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.rrpc-card:hover img {
  transform: scale(1.04);
}

.rrpc-card-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rrpc-support);
  background: rgba(255, 255, 255, 0.94);
  font-size: 13px;
}

.rrpc-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 24px 26px 28px;
  text-align: left;
  color: #fff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.75) 100%);
}

.rrpc-card-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.rrpc-card-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.92;
  max-width: 40ch;
}

.rrpc-card-link {
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 250ms ease;
}

.rrpc-card:hover .rrpc-card-link {
  opacity: 1;
}

.rrpc-loading,
.rrpc-empty {
  flex: 0 0 100%;
  min-height: 220px;
  border-radius: 14px;
  border: 1px dashed rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--rrpc-support);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
}

@media (max-width: 991px) {
  .rrpc.rrpc-home .rrpc-head-inner {
    gap: 14px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .rrpc.rrpc-home .rrpc-title {
    font-size: 2rem;
  }

  .rrpc-grid {
    gap: 18px;
  }

  .rrpc-card {
    flex-basis: 100%;
  }

  .rrpc-card-overlay {
    padding: 20px 20px 22px;
  }

  .rrpc-card-link {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .rrpc-head-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .rrpc:not(.rrpc-home) .rrpc-actions,
  .rrpc.rrpc-home .rrpc-actions {
    margin-left: 0;
    align-self: flex-start;
  }
}
