/* ReutPrint — dynamic service stub · consolidated 2026-11-14 */

.rp-stub {
  --rp-stub-purple: var(--rp-purple, var(--rp-color-primary, #6f42c1));
  --rp-stub-purple-dark: var(--rp-purple-dark, #53309a);
  --rp-stub-text: var(--rp-text, #222);
  --rp-stub-muted: var(--rp-muted, #6f6b75);
  --rp-stub-border: #e7e1ef;
  --rp-stub-radius: 22px;

  width: min(calc(100% - 36px), 1180px);
  margin: 24px auto 38px;
  color: var(--rp-stub-text);
}

.rp-stub[hidden] {
  display: none !important;
}

.rp-stub__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  overflow: hidden;
  border: 1px solid var(--rp-stub-border);
  border-radius: var(--rp-stub-radius);
  background:
    radial-gradient(circle at 10% 14%, rgba(111, 66, 193, 0.08), transparent 31%),
    linear-gradient(135deg, #fff 0%, #fff 61%, #faf7ff 100%);
  box-shadow: 0 14px 38px rgba(42, 28, 63, 0.08);
}

/* Пока изображения нет — не оставляем пустую правую половину. */
.rp-stub--no-image .rp-stub__panel {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin-inline: auto;
}

.rp-stub__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 3.8vw, 48px);
}

.rp-stub__eyebrow {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 16px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--rp-stub-purple-dark);
  background: #f1eafb;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.rp-stub__title {
  max-width: 690px;
  margin: 0 0 15px;
  font-size: clamp(34px, 3.7vw, 52px);
  line-height: 1.04;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.rp-stub__available {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: var(--rp-stub-purple-dark);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.35;
  font-weight: 800;
}

.rp-stub__available-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--rp-stub-purple);
  font-size: 14px;
  line-height: 1;
}

.rp-stub__apology {
  max-width: 650px;
  margin: 0 0 14px;
  color: var(--rp-stub-muted);
  font-size: 15px;
  line-height: 1.55;
}

.rp-stub__text {
  max-width: 650px;
  margin: 0 0 24px;
  color: #45424a;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
}

.rp-stub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.rp-stub__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none !important;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rp-stub__btn:hover {
  transform: translateY(-1px);
}

.rp-stub__btn--primary {
  color: #fff !important;
  background: var(--rp-stub-purple);
  box-shadow: 0 9px 22px rgba(111, 66, 193, 0.19);
}

.rp-stub__btn--primary:hover {
  color: #fff !important;
  background: var(--rp-stub-purple-dark);
}

.rp-stub__btn--secondary {
  color: var(--rp-stub-purple-dark) !important;
  border-color: rgba(111, 66, 193, 0.22);
  background: #fff;
}

.rp-stub__btn--secondary:hover {
  background: #f6f1fd;
}

.rp-stub__media {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: #f7f4fb;
}

.rp-stub__media[hidden] {
  display: none !important;
}

.rp-stub__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,0) 27%);
}

.rp-stub__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .rp-stub {
    width: min(calc(100% - 28px), 760px);
    margin: 20px auto 32px;
  }

  .rp-stub__panel {
    grid-template-columns: 1fr;
  }

  .rp-stub__content {
    padding: 34px 28px;
  }

  .rp-stub__media {
    order: -1;
    min-height: 250px;
  }

  .rp-stub__image {
    min-height: 250px;
    max-height: 330px;
  }

  .rp-stub__media::after {
    background: linear-gradient(180deg, rgba(255,255,255,0) 58%, rgba(255,255,255,.28) 100%);
  }
}

@media (max-width: 520px) {
  .rp-stub {
    width: 100%;
    margin: 14px 0 26px;
  }

  .rp-stub__panel {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .rp-stub__content {
    padding: 28px 18px 30px;
  }

  .rp-stub__eyebrow {
    margin-bottom: 14px;
  }

  .rp-stub__title {
    margin-bottom: 14px;
    font-size: 34px;
  }

  .rp-stub__available {
    font-size: 17px;
  }

  .rp-stub__apology {
    font-size: 14px;
  }

  .rp-stub__text {
    margin-bottom: 22px;
    font-size: 17px;
  }

  .rp-stub__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rp-stub__btn {
    width: 100%;
  }

  .rp-stub__media,
  .rp-stub__image {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-stub__btn {
    transition: none;
  }
}

/* v3: callback action is a button, visually identical to links */
.rp-stub button.rp-stub__btn {
  font-family: inherit;
  cursor: pointer;
}
