/* Перший екран картки маршруту: ціна + довіра ліворуч, міні-квіз праворуч. Кольори статичні — hero завжди на темному фото. */
.rh-wrap { padding: 2rem 0 2.5rem; }
.rh { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
.rh__main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.rh__main h1 { text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }

.rh-price { display: flex; flex-direction: column; gap: .25rem; }
.rh-price__main { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.rh-price__from { font-size: 1rem; opacity: .85; }
.rh-price__value { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 2rem; line-height: 1.1; color: #fff; }
.rh-price__note { font-size: .875rem; opacity: .85; }

.rh-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .9375rem; font-weight: 500; }
.rh-trust li { position: relative; padding-left: 1.75rem; }
.rh-trust li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: #007b8a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.7 2.7L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.rh-card {
  background: rgba(16, 16, 16, .86); color: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: 1rem;
  padding: 1.25rem; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.rh-card__head { display: grid; gap: .625rem; margin-bottom: 1rem; }
.rh-card__title { font-family: Montserrat, sans-serif; font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.rh-card__progress { display: flex; align-items: center; gap: .75rem; font-size: .8125rem; opacity: .85; }
.rh-card__bar { flex: 1; height: .25rem; border-radius: 1rem; background: rgba(255, 255, 255, .18); overflow: hidden; }
.rh-card__bar i { display: block; height: 100%; background: #f25b25; border-radius: 1rem; transition: width .25s ease; }

.rh-step { display: grid; gap: .75rem; }
.rh-step[hidden], .rh-error[hidden] { display: none; }
.rh-label { font-size: .875rem; font-weight: 600; margin-top: .25rem; }
.rh-field { display: grid; gap: .375rem; }
.rh-field > .rh-label { margin-top: 0; }
.rh-req { color: #ff8a5c; margin-left: .125rem; }              /* зірочка: обов'язкове поле */
.rh-opt { font-weight: 400; font-size: .8125rem; opacity: .7; }  /* «(необов'язково)» */

/* Що вибрано на кроці 1 + «Змінити» (повернення до кроку 1) */
.rh-summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .625rem .75rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: .625rem; background: rgba(255, 255, 255, .06); font-size: .875rem; }
.rh-summary__text { font-weight: 600; min-width: 0; }
.rh-summary__change { background: none; border: 0; padding: .25rem; color: #7fe0ec; font-size: .875rem; text-decoration: underline; cursor: pointer; white-space: nowrap; }

.rh-options { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
.rh-option, .rh-chip { position: relative; cursor: pointer; }
.rh-option input, .rh-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rh-option > span {
  display: grid; gap: .125rem; padding: .75rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: .625rem;
  background: rgba(255, 255, 255, .06); transition: border-color .2s, background .2s;
}
.rh-option b { font-size: 1rem; }
.rh-option small { font-size: .8125rem; opacity: .85; }
.rh-option input:checked + span, .rh-chip input:checked + span { border-color: #14b5c8; background: rgba(0, 123, 138, .35); }
.rh-option input:focus-visible + span, .rh-chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

.rh-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: .625rem; }
.rh-chips--4 { grid-template-columns: repeat(2, 1fr); } /* на телефоні 2×2, на ПК — в один ряд */
.rh-chips--4 .rh-chip > span { height: 2.5rem; font-size: .875rem; }
.rh-chip > span {
  display: flex; align-items: center; justify-content: center; height: 2.75rem; border: 1px solid rgba(255, 255, 255, .22);
  border-radius: .625rem; background: rgba(255, 255, 255, .06); font-weight: 600; transition: border-color .2s, background .2s;
}

.rh-input {
  width: 100%; height: 2.875rem; padding: 0 .875rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: .5rem;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 1rem; /* 16px — iOS не наближає поле */ color-scheme: dark;
}
.rh-input::placeholder { color: rgba(255, 255, 255, .55); }
.rh-input:focus::placeholder { opacity: 1; } /* на сайті глобально: input:focus::placeholder { opacity: 0 } */
.rh-input:focus { outline: 2px solid #14b5c8; outline-offset: 1px; }

.rh-btn { width: 100%; }

/* Кнопки першого екрана: звичайний hover (зміна кольору). Ефект сайту «текст виїжджає зверху з data-text»
   розрахований на кнопки за шириною тексту — на повну ширину справжній підпис і його копія накладаються. */
.button.rh-btn:not(.button--outlined),
.button.lh-actions__main:not(.button--outlined) { display: inline-flex; line-height: 1.5rem; overflow: visible; }
.button.rh-btn { padding-left: .75rem; padding-right: .75rem; white-space: nowrap; } /* підпис «Отримати розрахунок» має вміщатися в один рядок на вузькому екрані */
.button.rh-btn:not(.button--outlined):hover,
.button.lh-actions__main:not(.button--outlined):hover { line-height: 1.5rem; }
.button.rh-btn:not(.button--outlined)::before,
.button.lh-actions__main:not(.button--outlined)::before { content: none; display: none; }
.rh-error { color: #ffb199; font-size: .8125rem; }
.rh-note { font-size: .75rem; opacity: .75; }

.rh-msg {
  display: flex; align-items: center; justify-content: center; height: 2.5rem; border-radius: .5rem; font-size: .875rem; font-weight: 600;
  color: #fff; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); text-decoration: none; transition: background .2s;
}
.rh-msg:hover { background: rgba(255, 255, 255, .16); }
.rh-msg--call { border-color: #f25b25; background: rgba(242, 91, 37, .2); }

@media (min-width: 768px) {
  .rh-wrap { padding: 3.5rem 0 4rem; }
  .rh { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; }
  .rh-price__value { font-size: 2.75rem; }
  .rh-card { padding: 1.75rem; }
  .rh-chips--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  .rh-wrap { padding: 1.25rem 0 1.5rem; }
  .rh { gap: 1rem; }
  .rh__main { gap: .75rem; }
  .rh-price__value { font-size: 1.75rem; }
  .rh-trust { gap: .375rem; font-size: .875rem; }
  .rh-trust li:nth-child(n+3) { display: none; } /* на мобільному лишаємо два головні аргументи — квіз має вміститись на перший екран */
  .rh-card { padding: 1rem; }
  .rh-option > span { padding: .625rem; }
}
@media (prefers-reduced-motion: reduce) { .rh-card__bar i { transition: none; } }

/* Невеликий текстовий рядок «Швидше зателефонувати» — не конкурує з кнопкою відправки форми */
.rh-callline { margin-top: 1rem; padding-top: .875rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; opacity: .9; }
.rh-callline a { color: #fff; font-weight: 600; text-decoration: underline; white-space: nowrap; }
