/*
 * /travel/ — поездка на криптобалансе (seo-1108, зона aud-1).
 * Только токены r26 (assets/r26.css): тёмная тема — без атрибута, светлая — html[data-theme="light"].
 * Приставка trv-. Телефон: 899 / 719 / 359 px, без боковой прокрутки на 320. RTL — логические свойства.
 */

.trv .r-wrap :is(h1, h2) { text-wrap: balance; }
.trv-top { padding-top: 12px; }
.trv bdi { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }
.trv-h2s { font-size: clamp(26px, 1.6vw + 14px, 34px); }
.trv-ico {
  flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--r-brand-tint); color: var(--r-link);
}

/* ══ Первый экран: посадочный талон с набором ═════════════════════════════ */
.trv-hero { grid-template-columns: 1.15fr 0.85fr; }
.trv-chips { padding-top: 4px; }
.trv-hero-art { min-width: 0; }
.trv-pass {
  position: relative; width: 100%; max-width: 360px; box-sizing: border-box; padding: 20px; border-radius: 24px;
  background: var(--r-surface-3); border: 1px solid var(--r-line-2); box-shadow: var(--r-pop-shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.trv-pass-top { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; }
.trv-pass-ico {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--r-brand); color: #FFFFFF;
}
[dir="rtl"] .trv-pass-ico svg { transform: scaleX(-1); }
.trv-pass-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trv-pass-tt b { font-size: 15px; font-weight: 800; color: var(--r-text); }
.trv-pass-tt > span { font-size: 12px; color: var(--r-muted); }
.trv-pass-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--r-muted); }
.trv-pass-row b { color: var(--r-text); font-weight: 800; }
.trv-pass-total { padding-top: 12px; border-top: 1px dashed var(--r-line-3); color: var(--r-text); font-weight: 700; }
.trv-pass-total b { font-size: 18px; color: var(--r-green); }
.trv-pass-cut { height: 0; margin: 2px -20px; border-top: 2px dotted var(--r-line-3); position: relative; }
.trv-pass-cut::before, .trv-pass-cut::after {
  content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 99px; background: var(--r-surface-2);
}
.trv-pass-cut::before { inset-inline-start: -11px; }
.trv-pass-cut::after { inset-inline-end: -11px; }
.trv-pass-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.trv-pass-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; color: var(--r-text-2); background: var(--r-fill-2); border: 1px solid var(--r-line-2);
}
.trv-pass-tag--ok { color: var(--r-green); background: var(--r-green-tint); border-color: transparent; }

/* ══ Короткий ответ ═══════════════════════════════════════════════════════ */
.trv-ans {
  padding: 32px 36px; display: flex; flex-direction: column; gap: 12px;
  border-inline-start: 4px solid var(--r-brand);
}
.trv-ans-p { margin: 0; max-width: 82ch; font-size: 17px; color: var(--r-text-2); line-height: 1.65; }

/* ══ Чек-лист ═════════════════════════════════════════════════════════════ */
.trv-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.trv-stage { padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.trv-stage-h { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--r-line-2); }
.trv-stage-n {
  flex: none; width: 46px; height: 46px; border-radius: 99px; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: var(--r-accent); border: 2px solid var(--r-brand-2);
}
.trv-stage-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trv-stage-tt b { font-size: 20px; font-weight: 800; color: var(--r-text); letter-spacing: -0.01em; }
.trv-stage-tt span { font-size: 13px; color: var(--r-muted); }
.trv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.trv-li { display: flex; gap: 14px; align-items: flex-start; }
.trv-li-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trv-li-tx b { font-size: 16px; font-weight: 800; color: var(--r-text); line-height: 1.3; }
.trv-li-tx span { font-size: 14px; color: var(--r-muted); line-height: 1.55; }

/* ══ Калькулятор ══════════════════════════════════════════════════════════ */
.trv-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.trv-form { padding: 32px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.trv-f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.trv-f-l { font-size: 13px; font-weight: 800; color: var(--r-text-2); line-height: 1.35; }
.trv-in {
  width: 100%; box-sizing: border-box; height: 54px; padding: 0 16px; border-radius: 14px;
  background: var(--r-fill-2); border: 1px solid var(--r-line-3); color: var(--r-text);
  font: inherit; font-size: 18px; font-weight: 800; text-align: start;
}
.trv-in:focus { outline: 2px solid var(--r-accent); outline-offset: 1px; border-color: transparent; }
.trv-in[aria-invalid="true"] { border-color: var(--r-red); }
.trv-out {
  padding: 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0;
  background: var(--r-fill-1); border-inline-start: 1px solid var(--r-line-2);
}
.trv-out-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--r-muted); }
.trv-out-row b { color: var(--r-text); font-size: 17px; font-weight: 800; }
.trv-out-total { padding-top: 14px; border-top: 1px solid var(--r-line-3); color: var(--r-text); font-weight: 700; }
.trv-out-total b { font-size: clamp(22px, 2vw + 10px, 30px); color: var(--r-green); }
.trv-msg { margin: 0; font-size: 13px; line-height: 1.5; color: var(--r-muted); min-height: 2.9em; }
.trv-msg.is-warn { color: var(--r-red); }
.trv-out-btn { align-self: flex-start; margin-top: 4px; }

/* ══ Таблица набора ═══════════════════════════════════════════════════════ */
.trv-tbl-wrap {
  overflow-x: auto; border-radius: 24px; border: 1px solid var(--r-line); background: var(--r-surface);
  box-shadow: var(--r-block-shadow); -webkit-overflow-scrolling: touch;
}
.trv-tbl-wrap:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.trv-tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.trv-tbl :is(th, td) { padding: 16px 22px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--r-line); }
.trv-tbl tbody tr:last-child :is(th, td) { border-bottom: 0; }
.trv-tbl thead th { font-size: 13px; font-weight: 800; color: var(--r-muted); background: var(--r-fill-1); }
.trv-tbl tbody th { font-weight: 800; color: var(--r-text); }
.trv-tbl td { color: var(--r-text-2); }
.trv-tbl td bdi { font-weight: 800; color: var(--r-text); }
.trv-td-l { color: var(--r-muted); }
.trv-tbl .trv-td-sum { background: var(--r-brand-tint); }
.trv-tbl .trv-td-sum bdi { color: var(--r-link); }
.trv-foot { margin: 14px 0 0; font-size: 13px; color: var(--r-faint); line-height: 1.55; max-width: 90ch; }

/* ══ Карта или наличные ═══════════════════════════════════════════════════ */
.trv-sp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trv-sp-i { padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.trv-sp-t { font-size: 17px; font-weight: 800; color: var(--r-text); }
.trv-sp-v { font-size: clamp(32px, 2.4vw + 14px, 44px); font-weight: 800; color: var(--r-text); letter-spacing: -0.02em; line-height: 1.05; }
.trv-sp-v small { font-size: 15px; font-weight: 800; color: var(--r-muted); letter-spacing: 0; }
.trv-sp-d { font-size: 14px; color: var(--r-muted); line-height: 1.55; }
.trv-sp--ok { border-color: var(--r-green-tint); }
.trv-sp--ok .trv-sp-v { color: var(--r-green); }
.trv-sp--ok .trv-ico { background: var(--r-green-tint); color: var(--r-green); }
.trv-sp--hi .trv-sp-v { color: var(--r-red); }
.trv-sp--hi .trv-ico { background: var(--r-red-line); color: var(--r-red); }

/* ══ Ограничения ══════════════════════════════════════════════════════════ */
.trv-lim { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trv-lim-i {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 20px;
  background: var(--r-surface); border: 1px solid var(--r-red-line); min-width: 0;
}
.trv-lim-i:last-child:nth-child(odd) { grid-column: 1 / -1; }
.trv-lim-ic { flex: none; color: var(--r-red); margin-top: 2px; }
.trv-lim-i p { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.55; }
.trv-lim-i b { color: var(--r-text); }

/* ══ Вопросы ══════════════════════════════════════════════════════════════ */
.trv-qa { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.trv-qa-i { border-radius: 20px; background: var(--r-surface); border: 1px solid var(--r-line); }
.trv-qa-i summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-size: 16px; font-weight: 800; color: var(--r-text); line-height: 1.4;
}
.trv-qa-i summary::-webkit-details-marker { display: none; }
.trv-qa-i summary:focus-visible { outline: 2px solid var(--r-accent); outline-offset: -2px; border-radius: 20px; }
.trv-qa-ic {
  flex: none; width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center;
  background: var(--r-fill-3); color: var(--r-text-2); transition: transform .2s ease;
}
.trv-qa-i[open] .trv-qa-ic { transform: rotate(45deg); }
.trv-qa-i p { margin: 0; padding: 0 22px 20px; font-size: 15px; color: var(--r-text-2); line-height: 1.65; max-width: 75ch; }

/* ══ Блог и разделы ═══════════════════════════════════════════════════════ */
.trv-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trv-link {
  position: relative; padding: 22px 52px 22px 22px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--r-text); min-width: 0; transition: border-color .16s ease;
}
[dir="rtl"] .trv-link { padding: 22px 22px 22px 52px; }
.trv-link:hover { border-color: var(--r-brand-2); }
.trv-link b { font-size: 16px; font-weight: 800; line-height: 1.35; }
.trv-link span { font-size: 14px; color: var(--r-muted); line-height: 1.5; }
.trv-link .trv-arr { position: absolute; inset-inline-end: 22px; top: 24px; color: var(--r-link); }
[dir="rtl"] .trv-arr { transform: scaleX(-1); }
.sx-next.trv-rel { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }

/* ══ Финальный призыв ═════════════════════════════════════════════════════ */
.trv-final { padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.trv-final-txt { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: 640px; min-width: 0; }
.trv-final .r-btns { position: relative; flex: none; }

/* ══ Планшет и телефон ════════════════════════════════════════════════════ */
@media (max-width: 1099px) {
  .trv-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .trv-hero { grid-template-columns: 1fr; }
  .trv-hero-art { justify-content: flex-start; }
  .trv-calc { grid-template-columns: 1fr; }
  .trv-out { border-inline-start: 0; border-top: 1px solid var(--r-line-2); }
  .trv-sp { grid-template-columns: 1fr; }
  .trv-lim { grid-template-columns: 1fr; }
  .trv-links { grid-template-columns: 1fr; }
  .trv-final { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 719px) {
  .trv-pass { max-width: none; }
  .trv-pass.r-float { animation: none; }
  .trv-plan { grid-template-columns: 1fr; }
  .trv-stage { padding: 20px; }
  .trv-ans { padding: 24px 20px; }
  .trv-ans-p { font-size: 16px; }
  .trv-form, .trv-out { padding: 22px 20px; }
  .trv-out-btn, .trv-final .r-btns, .trv-final .r-btn { align-self: stretch; width: 100%; }
  .trv .r-hero-txt .r-btns .r-btn { flex: 1 1 100%; }
  /* Таблица набора — карточками: заголовок строки сверху, ячейки с подписью столбца. */
  .trv-tbl-wrap { overflow: visible; border: 0; background: none; box-shadow: none; }
  .trv-tbl, .trv-tbl tbody, .trv-tbl tr, .trv-tbl th, .trv-tbl td { display: block; width: auto; }
  .trv-tbl thead { display: none; }
  .trv-tbl tr { margin-bottom: 10px; border-radius: 20px; border: 1px solid var(--r-line); background: var(--r-surface); overflow: hidden; }
  .trv-tbl :is(th, td) { padding: 10px 16px; border-bottom: 0; font-size: 14px; }
  .trv-tbl tbody th { padding-top: 14px; font-size: 16px; }
  .trv-tbl td { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
  .trv-tbl td::before { content: attr(data-t-l); font-size: 12px; font-weight: 800; color: var(--r-faint); flex: 1 1 100%; }
  .trv-tbl td > bdi { margin-inline-start: auto; }
  .trv-tbl .trv-td-sum { padding-bottom: 14px; }
  .trv-final { padding: 28px 20px; }
  .trv-qa-i summary { padding: 16px 18px; font-size: 15px; }
  .trv-qa-i p { padding: 0 18px 18px; }
  .trv-lim-i { padding: 18px; }
  .trv-sp-i { padding: 20px; }
}
@media (max-width: 359px) {
  .trv-pass { padding: 16px; }
  .trv-pass-row { font-size: 13px; }
  .trv-pass-cut { margin: 2px -16px; }
  .trv-form, .trv-out { padding: 18px 16px; }
  .trv-in { font-size: 16px; }
  .trv .r-chip { white-space: normal; height: auto; min-height: 34px; padding: 6px 12px; }
}
@media (max-width: 379px) {
  .trv main .r-btn, .trv .r-btn { white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
}
