/* Страница «Возврат и гарантии» (views/site/returns-and-warranties.php), 19.10.2026.
   Опирается на payment.css (цифры, карточки, путь, заметка) — здесь только своё.
   Анимация — классом .is-in от [data-rp-inview] (rp-site.js); без JS и при reduced-motion всё на месте. */

.rp-ret .rp-pay-facts b .rp-ret-unit { font-size: .42em; vertical-align: 0; color: #9fc0ff; margin: 0; letter-spacing: 0; }
.rp-ret .rp-ret-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rp-ret .rp-ret-one { grid-template-columns: minmax(0, 1fr); }
.rp-ret .rp-ret-one .rp-ret-meter { max-width: 640px; }
.rp-ret .rp-ret-icon--solid { background: var(--rp-color-primary); color: #fff; }

.rp-ret .rp-ret-big { display: flex; flex-direction: column; gap: 4px; }
.rp-ret .rp-ret-big b { font: 800 34px/1.1 Manrope, Inter, Arial, sans-serif; letter-spacing: -.035em; color: var(--rp-color-primary); }
.rp-ret .rp-ret-big span { font: 500 15px/1.5 Inter, Arial, sans-serif; color: #52617a; }
.rp-ret .rp-ret-big--muted b { font-size: 22px; line-height: 1.3; color: #202b42; letter-spacing: -.02em; }
.rp-ret .rp-ret-sub { margin: 0; font: 600 14px/1.5 Inter, Arial, sans-serif; color: #52617a; }

/* Шкала 0–2 года */
.rp-ret .rp-ret-meter { position: relative; padding-bottom: 22px; }
.rp-ret .rp-ret-meter::before { content: ""; display: block; height: 12px; background: #dde7f6; }
.rp-ret .rp-ret-meter__fill { position: absolute; left: 0; top: 0; height: 12px; width: calc(var(--to) * 100%); background: var(--rp-color-primary); transform-origin: left center; }
.rp-ret .rp-ret-meter--soft .rp-ret-meter__fill { background: repeating-linear-gradient(-45deg, #8fb2f0 0 6px, #b8cff6 6px 12px); }
.rp-ret .rp-ret-meter__ticks { position: absolute; left: 0; right: 0; top: 18px; display: flex; justify-content: space-between; font: 600 12px/1 Inter, Arial, sans-serif; color: #6b7b92; }
.rp-ret .rp-ret-meter__ticks i { font-style: normal; }
.rp-ret .rp-ret-meter.rp-anim-ready .rp-ret-meter__fill { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.45, .05, .25, 1) .3s; }
.rp-ret .rp-ret-meter.rp-anim-ready.is-in .rp-ret-meter__fill { transform: none; }

.rp-ret .rp-ret-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rp-ret .rp-ret-tags li { font: 600 13.5px/1.3 Inter, Arial, sans-serif; color: #1b4fb8; background: #fff; border: 1px solid #c9dbfa; padding: 6px 10px; }
.rp-ret .rp-ret-tags--muted li { color: #41516a; background: #f6f8fc; border-color: #e1e8f2; }

/* Четыре варианта при недостатке */
.rp-ret .rp-ret-options { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rp-ret .rp-ret-options li { border: 1px solid #e0e8f4; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.rp-ret .rp-ret-options li:hover { border-color: #a9c5f6; box-shadow: 0 14px 34px rgba(28, 74, 139, .09); transform: translateY(-2px); }
.rp-ret .rp-ret-options strong { font: 750 20px/1.25 Manrope, Inter, Arial, sans-serif; color: #202b42; margin-top: 6px; }
.rp-ret .rp-ret-options li > span:last-child { font: 400 15px/1.55 Inter, Arial, sans-serif; color: #52617a; }
.rp-ret .rp-ret-options li:hover .rp-pay-card__icon { background: var(--rp-color-primary); color: #fff; }
.rp-ret .rp-pay-card__icon { transition: background-color .2s, color .2s; }

.rp-ret .rp-ret-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.rp-ret .rp-ret-perks > div { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; background: var(--rp-color-pale); font: 600 14.5px/1.5 Inter, Arial, sans-serif; color: #202b42; }
.rp-ret .rp-ret-perks svg { flex: none; color: var(--rp-color-primary); }

/* Сроки рассмотрения */
.rp-ret .rp-ret-route { margin-bottom: 30px; }
.rp-ret .rp-ret-how { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: stretch; }
.rp-ret .rp-ret-bars { border: 1px solid #e0e8f4; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.rp-ret .rp-ret-bars h3 { margin: 0 0 4px; font: 750 20px/1.3 Manrope, Inter, Arial, sans-serif; color: #202b42; letter-spacing: -.02em; }
.rp-ret .rp-ret-bar { display: grid; grid-template-columns: 290px minmax(0, 1fr) 76px; gap: 16px; align-items: center; }
.rp-ret .rp-ret-bar__label { font: 600 15px/1.35 Inter, Arial, sans-serif; color: #34455f; }
.rp-ret .rp-ret-bar__track { height: 14px; background: #eef3fa; position: relative; }
.rp-ret .rp-ret-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w) * 100%); background: var(--rp-color-primary); transform-origin: left center; }
.rp-ret .rp-ret-bar b { font: 800 17px/1 Manrope, Inter, Arial, sans-serif; color: #202b42; text-align: right; white-space: nowrap; }
.rp-ret .rp-ret-bars.rp-anim-ready .rp-ret-bar__fill { transform: scaleX(0); transition: transform .9s cubic-bezier(.45, .05, .25, 1); transition-delay: calc(.2s + var(--i) * .25s); }
.rp-ret .rp-ret-bars.rp-anim-ready .rp-ret-bar b { opacity: 0; transition: opacity .4s ease; transition-delay: calc(.8s + var(--i) * .25s); }
.rp-ret .rp-ret-bars.rp-anim-ready.is-in .rp-ret-bar__fill { transform: none; }
.rp-ret .rp-ret-bars.rp-anim-ready.is-in .rp-ret-bar b { opacity: 1; }

.rp-ret .rp-ret-cta { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--rp-color-header-strip); color: #fff; }
.rp-ret .rp-ret-cta strong { font: 750 21px/1.3 Manrope, Inter, Arial, sans-serif; color: #fff; }
.rp-ret .rp-ret-cta > span { font: 500 14px/1.5 Inter, Arial, sans-serif; color: #c5d4ef; }
.rp-ret .rp-ret-cta__btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 18px; border: 0; background: var(--rp-color-primary); color: #fff; font: 750 16px/1.2 Inter, Arial, sans-serif; cursor: pointer; transition: background-color .15s, transform .1s; }
.rp-ret .rp-ret-cta__btn:hover { background: var(--rp-color-primary-hover); }
.rp-ret .rp-ret-cta__btn:active { transform: scale(.97); }
.rp-ret .rp-ret-cta__sample { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: #dbe7ff; font: 650 14px/1.3 Inter, Arial, sans-serif; text-decoration: none; border: 1px solid rgba(255, 255, 255, .25); }
.rp-ret .rp-ret-cta__sample:hover { color: #fff; border-color: #fff; }
.rp-ret .rp-ret-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 9px 14px; border: 1px solid var(--rp-color-primary); background: #fff; color: var(--rp-color-primary); font: 750 14px/1.2 Inter, Arial, sans-serif; cursor: pointer; transition: background-color .15s, color .15s; }
.rp-ret .rp-ret-link:hover { background: var(--rp-color-primary); color: #fff; }
.rp-ret .rp-ret-link svg { width: 17px; height: 17px; color: inherit; }
.rp-ret .rp-ret-perks__cta > span { display: flex; flex-direction: column; align-items: flex-start; }

/* Окно «Заявка на возврат» (вне .rp-ret — окно стоит после <main>); кнопки-варианты .rp-ret-choice — в site.css (.rp-choice). */
.rp-ret-statement { padding: 14px 16px; border: 1px solid #c9dbfa; background: #f6f9ff; }
.rp-ret-statement__title { font: 700 15px/1.5 Inter, Arial, sans-serif; color: #263a58; }
.rp-ret-statement__title b { color: #a21c32; }
.rp-ret-statement__hint { font: 500 14px/1.5 Inter, Arial, sans-serif; color: #46566f; }
.rp-ret-statement__hint a, .rp-ret .rp-pay-route__text a { color: #005bff; text-decoration: underline; }
.rp-ret .rp-pay-route__text { display: flex; flex-direction: column; align-items: flex-start; }
.rp-ret .rp-pay-route__text .rp-ret-link { margin-top: 12px; }

/* Лента «до получения → 7 дней → 3 месяца» */
.rp-ret .rp-ret-timeline { list-style: none; padding: 0 0 0 26px; margin: 0; position: relative; display: flex; flex-direction: column; gap: 14px; }
.rp-ret .rp-ret-timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--rp-color-primary); transform-origin: center top; }
.rp-ret .rp-ret-timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; }
.rp-ret .rp-ret-timeline li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; background: #fff; border: 2px solid var(--rp-color-primary); }
.rp-ret .rp-ret-timeline li:nth-child(2)::before { background: var(--rp-color-primary); }
.rp-ret .rp-ret-timeline b { font: 800 18px/1.3 Manrope, Inter, Arial, sans-serif; color: #202b42; }
.rp-ret .rp-ret-timeline span { font: 400 14.5px/1.5 Inter, Arial, sans-serif; color: #52617a; }
.rp-ret .rp-ret-timeline.rp-anim-ready::before { transform: scaleY(0); transition: transform 1.2s ease .2s; }
.rp-ret .rp-ret-timeline.rp-anim-ready li { opacity: 0; transform: translateX(-8px); transition: opacity .45s ease, transform .45s ease; }
.rp-ret .rp-ret-timeline.rp-anim-ready li:nth-child(2) { transition-delay: .5s; }
.rp-ret .rp-ret-timeline.rp-anim-ready li:nth-child(3) { transition-delay: 1s; }
.rp-ret .rp-ret-timeline.rp-anim-ready.is-in::before { transform: none; }
.rp-ret .rp-ret-timeline.rp-anim-ready.is-in li { opacity: 1; transform: none; }

/* Полный текст юриста */
.rp-ret .rp-ret-full { border-top: 1px solid #e0e8f4; padding-top: 44px; }
.rp-ret .rp-ret-full__text { max-width: 900px; }
.rp-ret .rp-ret-full__text :is(h2, .title-3) { font-size: 20px; }

@media (max-width: 1100px) {
  .rp-ret .rp-ret-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-ret .rp-ret-perks { grid-template-columns: 1fr; gap: 10px; }
  .rp-ret .rp-ret-how { grid-template-columns: 1fr; }
  .rp-ret .rp-ret-bar { grid-template-columns: 220px minmax(0, 1fr) 70px; }
}
@media (max-width: 760px) {
  .rp-ret .rp-ret-two { grid-template-columns: minmax(0, 1fr); }
  .rp-ret .rp-pay-card__head h3 { font-size: 18px; overflow-wrap: anywhere; hyphens: auto; }
  .rp-ret .rp-ret-options { gap: 10px; }
  .rp-ret .rp-ret-options li { padding: 16px; }
  .rp-ret .rp-ret-options strong { font-size: 17px; }
  .rp-ret .rp-ret-options li > span:last-child { font-size: 14px; }
  .rp-ret .rp-ret-big b { font-size: 28px; }
  .rp-ret .rp-ret-bars { padding: 20px; }
  .rp-ret .rp-ret-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .rp-ret .rp-ret-bar__label { grid-column: 1 / -1; font-size: 14px; }
  .rp-ret .rp-ret-cta { padding: 20px; }
  .rp-ret .rp-ret-full { padding-top: 32px; }
  .rp-ret .rp-pay-facts li > span { font-size: 13px; }
}
@media (max-width: 380px) {
  .rp-ret .rp-ret-options { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-ret .rp-ret-options li, .rp-ret .rp-ret-options li:hover { transition: none; transform: none; }
  .rp-ret .rp-ret-cta__btn:active { transform: none; }
}
