/* ==========================================================================
   Block: Closing CTA  (exact specs from Figma 40:868)
   ========================================================================== */

.rg-cta__grid {
  display: grid;
  grid-template-columns: 392px 1fr;       /* photo (left) + green card (right) */
  gap: 12px;
  align-items: stretch;
}
.rg-cta__photo {
  position: relative;                      /* card content drives the row height; photo fills it */
  border-radius: var(--rg-radius-card);
  overflow: hidden;
}
.rg-cta__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(1.04) saturate(1.05);   /* subtle pop to match the live photo */
}

.rg-cta__card {
  display: flex;
  flex-direction: column;
  justify-content: center;                 /* group content, leave empty space (не растягивать) */
  gap: 22px;
  padding: 32px 36px;
  border-radius: var(--rg-radius-card);    /* 20px */
  background-color: var(--rg-green);       /* #215749 */
  background-image: linear-gradient(rgba(var(--rg-green-rgb), .5), rgba(var(--rg-green-rgb), .5)), url(../../assets/img/green-pattern.webp);  /* pattern @50% like Figma */
  background-size: cover;
  background-position: center;
}
.rg-cta__body {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 560px;                        /* text не на всю ширину — воздух справа (~200px) */
}
.rg-cta__badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px;
  border-radius: var(--rg-radius-pill);
  background: rgba(var(--rg-white-rgb), 0.2);
  font-size: var(--rg-fs-badge);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rg-white);
}
.rg-cta__badge::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--rg-white);   /* Figma: white dot */
}
.rg-cta__title {
  margin: 0;
  font-size: var(--rg-fs-h3);              /* 32/600 — compact like the live CTA */
  font-weight: var(--rg-fw-semibold);
  line-height: var(--rg-lh-heading);
  color: var(--rg-white);
  max-width: var(--rg-heading-max);
}
.rg-cta__title-hl { color: rgba(var(--rg-white-rgb), .7); }   /* #77918A — "time for a different approach" */
.rg-cta__text {
  margin: 0;
  font-size: var(--rg-fs-body);            /* 16/400 */
  line-height: var(--rg-lh-body);
  color: var(--rg-white);                             /* Figma: white @100% */
}
.rg-cta__btn {
  align-self: flex-start;
  min-height: 50px;
  border-radius: var(--rg-radius-pill);
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .rg-cta__grid { grid-template-columns: 1fr; }
  .rg-cta__photo { max-height: 300px; }
  .rg-cta__card { padding: 28px; }
  .rg-cta__title { font-size: var(--rg-fs-h3); }
}

/* Microcopy under the CTA button (reassurance: free / confidential / 24h). */
.rg-cta__note { margin: 14px 0 0; font-size: var(--rg-fs-small); line-height: var(--rg-lh-body); color: rgba(var(--rg-white-rgb), .8); }
