/* Страницы направлений /routes/…: поверх site.css и tokens.css. Без inline-стилей: всё, что зависит от данных, — атрибуты SVG и классы. */
.rt { padding-bottom: 8px; }
.rt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 22px 0 0; font-size: 14px; color: var(--muted); }
.rt-crumbs a { color: var(--ink-2); font-weight: 600; }
.rt-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.rt-hero { padding: clamp(18px, 3.4vw, 36px) 0 clamp(12px, 3vw, 28px); max-width: 860px; }
.rt-hero--tile { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); grid-template-areas: "head tile" "cta tile"; gap: 10px clamp(28px, 5vw, 64px); align-items: start; }
.rt-hero__head { grid-area: head; }
.rt-hero__cta { grid-area: cta; }
.rt-hero__cta .cta { margin-top: 8px; }
.rt-price { grid-area: tile; padding: 28px 24px 22px; }
.rt-price .tile__p b { font-size: clamp(44px, 6vw, 60px); }
.rt-price .tile__d { font-size: 22px; }
.rt-meter { display: block; width: 100%; height: 10px; }
.rt-meter__bg { fill: rgba(10, 22, 64, 0.1); }
.rt-meter__fill { fill: #165ca8; }
.tile[data-cls="1"] .rt-meter__bg { fill: rgba(255, 255, 255, 0.28); }
.tile[data-cls="1"] .rt-meter__fill { fill: #ffd60a; }
.tile[data-cls="3"] .rt-meter__fill { fill: #5c46c8; }
.rt-hero h1 { font-size: clamp(30px, 5vw, 50px); }
.rt-hero .lead { max-width: 40em; }
.rt-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.rt-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 56px); align-items: start; }
.rt-cols--one { grid-template-columns: 1fr; }
.rt-fact { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px; border-radius: 20px; background: var(--glass); box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--glass-edge), var(--shadow); }
.rt-fact span { font-size: 13px; font-weight: 600; color: var(--muted); }
.rt-fact b { font-size: clamp(22px, 3vw, 30px); line-height: 1.1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.rt-fact small { font-size: 13px; color: var(--muted); }
.rt-sec { padding: clamp(24px, 4vw, 44px) 0 0; }
.rt-sec .sec__head { margin-bottom: 18px; }
.rt-sec h2 { font-size: clamp(22px, 3vw, 30px); }
.rt-sec .sec__head p { font-size: 16px; }
.rt-sub { color: var(--ink-2); max-width: 46em; margin: 0 0 14px; }

/* блок «коротко» — готовый ответ на вопрос о цене */
.rt-answer { margin-top: clamp(18px, 3vw, 28px); padding: 20px 22px; max-width: 860px; }
.rt-answer h2 { font-size: clamp(18px, 2.4vw, 22px); }
.rt-answer p { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }

/* график по месяцам */
.rt-chartbox { padding: 16px 20px; max-width: 480px; }
.rt-chart { width: 100%; height: auto; overflow: visible; }
.rt-m { fill: var(--muted); font: 600 12px var(--font); }
.rt-v { fill: var(--ink-2); font: 600 12px var(--font); font-variant-numeric: tabular-nums; }
.rt-bar { fill: var(--heat-2); opacity: 0.85; }
.rt-bar--low { fill: var(--heat-1); opacity: 1; }
.rt-tbl { margin-top: 14px; max-width: 640px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge); padding: 0 18px; }
.rt-tbl summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.rt-tbl table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.rt-tbl th, .rt-tbl td { text-align: left; padding: 7px 0; border-top: 1px solid var(--line); }
.rt-tbl th { font-size: 13px; color: var(--muted); border-top: 0; }
.rt-tbl td:last-child, .rt-tbl th:last-child { text-align: right; }

/* ближайшие даты */
.rt-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.rt-date { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 18px; }
.rt-date > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rt-dd { font-size: 18px; letter-spacing: -0.02em; }
.rt-dm { font-size: 14px; color: var(--muted); }
.rt-date .btn { min-height: 44px; }
.rt-dp { display: flex; align-items: center; gap: 12px; flex: none; }
.rt-dp b { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* авиакомпании */
.rt-air { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; max-width: 860px; }
.rt-air li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge); }
.rt-air span { font-size: 14px; color: var(--muted); }

/* как не пропустить */
.rt-tips { margin-top: clamp(28px, 4vw, 48px); }
.rt-band { text-align: left; max-width: 860px; }
.rt-band h2 { font-size: clamp(22px, 3vw, 30px); }
.rt-tiplist { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rt-tiplist li { position: relative; padding-left: 28px; opacity: 0.94; }
.rt-tiplist li::before { content: "→"; position: absolute; left: 0; color: #ffd60a; font-weight: 700; }
.rt-band .cta { justify-content: flex-start; }
.rt-band .rt-bandnote { margin: 14px 0 0; text-align: left; font-size: 13px; opacity: 0.75; max-width: 46em; }

/* ссылки на другие направления */
.rt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge); color: var(--ink); font-weight: 600; font-size: 14px; }
.rt-chip:hover { background: var(--card); text-decoration: none; }

/* поиск на хабе */
.rt-search { position: relative; margin-top: 22px; max-width: 560px; }
.rt-input { width: 100%; min-height: 52px; padding: 0 18px; border-radius: 16px; border: 0; font: inherit; font-weight: 600; color: var(--ink); background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge), var(--shadow); }
.rt-input::placeholder { color: var(--muted); }
.rt-res { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--glass-edge); max-height: 60vh; overflow: auto; }
.rt-res[hidden] { display: none; }
.rt-res a { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--ink); }
.rt-res a:hover, .rt-res a:focus-visible { background: var(--card-2); text-decoration: none; }
.rt-res span { color: var(--accent-text); font-weight: 700; white-space: nowrap; }
.rt-res__none { padding: 12px; color: var(--muted); }

/* хаб */
.rt-hubgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rt-hub { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; color: var(--ink); }
.rt-hub:hover { text-decoration: none; background: var(--card); }
.rt-hub__f { font-size: 28px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.rt-hub__n { display: flex; flex-direction: column; min-width: 0; }
.rt-hub__n small { color: var(--muted); font-size: 13px; }
.rt-hub__p { margin-left: auto; font-weight: 700; color: var(--accent-text); white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 960px) { .rt-cols { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .rt-facts { grid-template-columns: repeat(2, 1fr); }
  .rt-hero--tile { grid-template-columns: 1fr; grid-template-areas: "head" "tile" "cta"; }
}
@media (max-width: 520px) {
  .rt-facts { gap: 10px; }
  .rt-fact { padding: 14px 14px 12px; }
  .rt-date { flex-direction: column; align-items: stretch; gap: 10px; }
  .rt-dp { justify-content: space-between; }
  .rt-chartbox { padding: 14px 12px; }
  .rt-band .cta .btn { width: 100%; }
}
