:root {
  --tb-green: #1ec25c;
  --tb-green-dark: #17a04c;
  /* Оранжевый — второй акцент: галочки, выбранные даты, «Сейчас»,
     счётчики на обложках. С зелёным работает как пара «действие
     (зелёный) — акцент/внимание (оранжевый)». */
  --tb-orange: #f5821f;
  --tb-orange-dark: #d96f0e;
  --tb-orange-soft: #fff3e6;
  --tb-dark: #14203a;
  --tb-text: #1a1a1a;
  --tb-muted: #6b7280;
  --tb-border: #e6e8ec;
}

* { box-sizing: border-box; }

body.tb-body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--tb-text);
  background: #fff;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, .tb-font-display {
  font-family: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -0.02em;
}

.tb-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}

.tb-btn--primary {
  background: var(--tb-green);
  color: #fff;
}

.tb-btn--primary:hover { background: var(--tb-green-dark); }

/* Шапка */
.tb-header {
  border-bottom: 1px solid var(--tb-border);
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
}

.tb-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.tb-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--tb-text);
}

.tb-logo__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tb-green);
  display: inline-block;
}

.tb-logo__accent { color: var(--tb-green); }

.tb-nav {
  display: flex;
  gap: 24px;
  flex: 1;
}

.tb-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--tb-text);
}

.tb-nav a:hover { color: var(--tb-green-dark); }
.tb-nav a.is-active { color: var(--tb-green); }

.tb-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tb-btn--outline-nav {
  background: #fff;
  border: 1px solid var(--tb-border);
  color: var(--tb-text);
}
.tb-btn--outline-nav:hover { border-color: var(--tb-green); color: var(--tb-green-dark); }

.tb-driver-link {
  font-size: 14px;
  color: var(--tb-muted);
}


/* ==================================================================
   ГЛАВНАЯ / АВТОБУСЫ / ТРАНСФЕР — общий визуальный язык (карточки,
   тени, скругления). Цвета — через уже существующие переменные
   (--tb-green/--tb-dark/--tb-orange и т.д.), чтобы не плодить вторую
   палитру рядом с уже принятой.
   ================================================================== */
:root {
  --tb-panel-bg: #f4f7fb;
  --tb-radius: 16px;
  --tb-shadow: 0 10px 30px rgba(15, 28, 51, 0.07);
}

/* ---------- Hero (главная) ---------- */
.tb-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(900px 400px at 80% -10%, rgba(30, 194, 92, 0.18), transparent 60%),
              radial-gradient(700px 380px at 10% 110%, rgba(245, 130, 31, 0.12), transparent 60%),
              var(--tb-dark);
  color: #fff;
  padding: 56px 20px 96px;
}
.tb-hero__inner { position: relative; max-width: 1200px; margin: 0 auto; }
.tb-hero__center { max-width: 680px; }
.tb-hero h1 { font-size: 34px; font-weight: 800; line-height: 1.2; margin: 0 0 14px; }
.tb-hero__accent { color: var(--tb-green); }
.tb-hero__lead { color: #cbd5e1; max-width: 640px; margin: 0 0 20px; font-size: 16.5px; }
.tb-hero__checks { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: #e2e8f0; margin-bottom: 22px; }
.tb-hero__checks i { font-style: normal; color: var(--tb-green); margin-right: 6px; font-weight: 700; }

.tb-hero-tabs { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.tb-htab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  font-family: inherit;
}
.tb-htab.is-active { background: var(--tb-green); border-color: var(--tb-green); color: #fff; }

.tb-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tb-hero-chips button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.tb-hero-chips button:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------- Поисковый виджет (переиспользуется на главной и /buses/) ---------- */
.tb-widget {
  background: #fff;
  border-radius: var(--tb-radius);
  padding: 8px;
  display: grid;
  grid-template-columns: 1.1fr 34px 1.1fr 1fr 1fr auto;
  align-items: center;
  gap: 2px;
  box-shadow: var(--tb-shadow);
}
.tb-widget[hidden] { display: none; }
.tb-wfield { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 16px; border-radius: 12px; min-width: 0; }
.tb-wfield:hover { background: var(--tb-panel-bg); }
.tb-wfield > span:first-child { display: block; font-size: 11.5px; color: var(--tb-muted); font-weight: 600; }
.tb-wfield input, .tb-wfield select {
  border: none; outline: none; background: transparent; width: 100%;
  font-size: 15px; font-weight: 700; color: var(--tb-text); font-family: inherit;
}
.tb-wfield .tb-suggest-wrap { position: relative; }
.tb-wcal-trigger {
  border: none; outline: none; background: transparent; width: 100%; text-align: left; padding: 0;
  font-size: 15px; font-weight: 700; color: var(--tb-text); font-family: inherit; cursor: pointer;
}
.tb-wcal-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--tb-border);
  border-radius: 12px;
  padding: 14px;
  width: 260px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.tb-wcal-popup.is-open { display: block; }
.tb-wcal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.tb-wcal-head button { border: none; background: #f0f2f5; border-radius: 6px; width: 26px; height: 26px; cursor: pointer; font-size: 14px; }
.tb-wcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tb-wcal-wd { text-align: center; font-size: 11px; color: var(--tb-muted); padding: 4px 0; }
.tb-wcal-day { border: none; background: none; border-radius: 6px; padding: 6px 0; font-size: 13px; cursor: pointer; }
.tb-wcal-day:hover { background: #f0f2f5; }
.tb-wcal-day.is-selected { background: var(--tb-green); color: #fff; }
.tb-wcal-day--past { color: #c7cad1; cursor: not-allowed; }
.tb-wcal-day--past:hover { background: none; }
.tb-wcal-quick { display: flex; gap: 8px; margin-top: 10px; border-top: 1px solid var(--tb-border); padding-top: 10px; }
.tb-wcal-quick button { flex: 1; border: 1px solid var(--tb-border); background: #fff; border-radius: 8px; padding: 6px; font-size: 12px; cursor: pointer; }
.tb-wcal-quick button:hover { border-color: var(--tb-green); }
.tb-wswap {
  border: 1px solid var(--tb-border); background: #fff; width: 32px; height: 32px;
  border-radius: 50%; font-size: 15px; color: var(--tb-muted); justify-self: center; cursor: pointer;
}
.tb-wswap:hover { color: var(--tb-green-dark); border-color: var(--tb-green); }
.tb-wstepper { display: flex; align-items: center; gap: 8px; }
.tb-wstepper button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--tb-border);
  background: #fff; font-size: 15px; line-height: 1; color: var(--tb-text); cursor: pointer;
}
.tb-wstepper b { min-width: 18px; text-align: center; font-size: 15px; font-weight: 700; color: var(--tb-text); }
.tb-wstepper span { font-size: 13px; color: var(--tb-muted); font-weight: 600; }
.tb-widget .tb-btn { height: 56px; border-radius: 12px; margin: 2px; white-space: nowrap; width: 100%; }
.tb-widget-note { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 14.5px; color: var(--tb-text); }
@media (max-width: 960px) {
  .tb-widget { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tb-wswap { display: none; }
  .tb-widget .tb-btn { grid-column: 1 / -1; height: 50px; }
}

/* ---------- Полоса статистики (реальные счётчики), наезжает на hero ---------- */
.tb-stats-card {
  background: #fff;
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -56px;
  position: relative;
  max-width: 1200px;
  margin-left: auto; margin-right: auto;
}
.tb-stats-card > div { padding: 24px 20px; text-align: center; border-right: 1px solid var(--tb-border); }
.tb-stats-card > div:last-child { border-right: none; }
.tb-stats-card b { display: block; font-size: 26px; font-weight: 800; color: var(--tb-green-dark); }
.tb-stats-card span { font-size: 13px; color: var(--tb-muted); }
@media (max-width: 760px) {
  .tb-stats-card { grid-template-columns: 1fr 1fr; }
  .tb-stats-card > div { border-bottom: 1px solid var(--tb-border); }
}

/* ---------- Секции на главной ---------- */
.tb-sec { padding: 72px 20px; max-width: 1200px; margin: 0 auto; }
.tb-sec-head { margin-bottom: 32px; max-width: 640px; }
.tb-sec-head h2::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--tb-orange); margin-top: 12px; }
.tb-sec-head p { color: var(--tb-muted); margin-top: 12px; }

.tb-svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tb-svc { background: #fff; border-radius: var(--tb-radius); overflow: hidden; box-shadow: var(--tb-shadow); display: flex; flex-direction: column; transition: 0.18s; }
.tb-svc:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15, 28, 51, 0.12); }
.tb-svc--big { grid-column: span 3; }
.tb-svc:not(.tb-svc--big) { grid-column: span 2; }
.tb-svc-img { position: relative; height: 190px; display: flex; align-items: flex-start; padding: 18px; background-size: cover; background-position: center; }
.tb-svc:not(.tb-svc--big) .tb-svc-img { height: 140px; }
.tb-svc-img.g1 { background-image: linear-gradient(135deg, #38bdf8, #818cf8); }
.tb-svc-img.g2 { background-image: linear-gradient(135deg, #34d399, #0ea5e9); }
.tb-svc-img.g3 { background-image: linear-gradient(135deg, #fbbf24, #f97316); }
.tb-svc-img.g4 { background-image: linear-gradient(135deg, #f472b6, #a78bfa); }
.tb-svc-img.g5 { background-image: linear-gradient(135deg, #a3e635, #14b8a6); }
.tb-svc-img.has-photo { background-blend-mode: multiply; }
.tb-svc-credit { margin: 14px 2px 0; font-size: 11.5px; color: var(--tb-muted); }
.tb-svc-emoji { background: #fff; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; box-shadow: 0 6px 16px rgba(15, 28, 51, 0.2); }
.tb-svc-badge { position: absolute; bottom: 14px; left: 18px; background: var(--tb-orange); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.tb-svc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tb-svc-body h3 { font-size: 19px; margin: 0; }
.tb-svc-body p { color: var(--tb-muted); font-size: 14px; flex: 1; margin: 0; }
.tb-svc-link { color: var(--tb-green-dark); font-weight: 700; font-size: 14px; }
@media (max-width: 960px) { .tb-svc, .tb-svc--big { grid-column: span 6; } }

.tb-steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tb-step-card { background: #fff; border-radius: var(--tb-radius); padding: 24px; box-shadow: var(--tb-shadow); }
.tb-step-card .tb-n { width: 40px; height: 40px; border-radius: 50%; background: #f0fdf4; color: var(--tb-green-dark); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; border: 2px solid var(--tb-green); }
.tb-step-card h4 { margin: 0 0 6px; font-size: 16.5px; }
.tb-step-card p { color: var(--tb-muted); font-size: 14px; margin: 0; }
@media (max-width: 860px) { .tb-steps3 { grid-template-columns: 1fr; } }

.tb-cta-drivers {
  background: radial-gradient(600px 300px at 90% 0%, rgba(30, 194, 92, 0.15), transparent 60%), var(--tb-dark);
  border-radius: 24px; color: #fff; padding: 40px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.tb-cta-drivers h2 { margin: 0 0 10px; }
.tb-cta-drivers p { color: #cbd5e1; max-width: 560px; font-size: 15px; margin: 0; }
.tb-cta-btns { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }

.tb-faq2 { max-width: 800px; }
.tb-faq2 details { background: #fff; border-radius: 14px; box-shadow: var(--tb-shadow); margin-bottom: 12px; padding: 18px 22px; }
.tb-faq2 summary { font-weight: 700; cursor: pointer; list-style: none; }
.tb-faq2 summary::-webkit-details-marker { display: none; }
.tb-faq2 summary::before { content: "+"; color: var(--tb-green-dark); font-weight: 800; margin-right: 10px; }
.tb-faq2 details[open] summary::before { content: "\2013"; }
.tb-faq2 p { color: var(--tb-muted); font-size: 14px; margin: 10px 0 0; padding-left: 24px; }

@media (max-width: 700px) {
  .tb-hero h1 { font-size: 27px; }
  .tb-sec { padding: 48px 16px; }
}

/* ------------------------------------------------------------------ */
/* Кнопка «наверх»                                                      */
/* ------------------------------------------------------------------ */
.tb-scroll-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--tb-border);
  background: #fff;
  color: var(--tb-dark);
  box-shadow: 0 14px 30px -14px rgba(20, 32, 58, 0.35);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}
.tb-scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.tb-scroll-top:hover { border-color: var(--tb-green); color: var(--tb-green-dark); }



/* Страницы-заглушки разделов */
.tb-stub {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

.tb-stub h1 { font-size: 30px; margin: 0 0 12px; }
.tb-stub p { color: var(--tb-muted); margin: 0 0 8px; }
.tb-stub__note { font-style: italic; margin-bottom: 24px; }

/* Биржа заказов */
.tb-marketplace__inner { max-width: 900px; margin: 0 auto; padding: 40px 20px 80px; }
.tb-marketplace__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tb-marketplace__head h1 { margin: 0; }

/* Раздел «Автобусы» */
.tb-buses__inner, .tb-route-single__inner, .tb-carrier-single__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.tb-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 32px;
  padding: 16px;
  background: #f7f8fa;
  border-radius: 12px;
}

.tb-search-form input {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border: 1px solid var(--tb-border);
  border-radius: 8px;
  font-size: 14px;
}

.tb-search-form button { flex: 0 0 auto; border: none; cursor: pointer; }

/* Страница «Автобусы» — тёмная плашка сверху с поисковым виджетом
   (переиспользует .tb-widget/.tb-wfield/.tb-wswap/.tb-wstepper из главной,
   см. tb-core.php::tb3_home_tabs()), дата-чипы и двухколоночная выдача
   (реальные фильтры-сайдбар + список рейсов). */
.tb-pagebar { background: var(--tb-dark); padding: 28px 20px 34px; }
.tb-pagebar__inner { max-width: 1200px; margin: 0 auto; }
.tb-pagebar h1 { color: #fff; font-size: 24px; margin: 0 0 18px; }

.tb-date-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tb-date-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px;
  text-decoration: none;
}
.tb-date-chip:hover { background: rgba(255, 255, 255, 0.15); }
.tb-date-chip.is-active { background: var(--tb-green); border-color: var(--tb-green); color: #fff; font-weight: 700; }

.tb-hero-chips--light { margin-top: 14px; }

.tb-route-list { display: flex; flex-direction: column; gap: 12px; }

.tb-res-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}
.tb-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 5px 0; cursor: pointer; }
.tb-check input { flex-shrink: 0; }
.tb-check span { color: var(--tb-muted); font-size: 12px; margin-left: auto; }

.tb-res-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.tb-res-count { font-size: 14.5px; color: var(--tb-muted); }
.tb-res-count b { color: var(--tb-text); font-weight: 700; }
.tb-sort-pill { display: inline-flex; background: #e8edf4; border-radius: 999px; padding: 4px; }
.tb-sort-pill a {
  border-radius: 999px; padding: 8px 16px;
  font-size: 13.5px; font-weight: 600; color: var(--tb-muted); text-decoration: none;
}
.tb-sort-pill a.is-active { background: #fff; color: var(--tb-text); box-shadow: 0 2px 8px rgba(15, 28, 51, 0.12); }

.tb-route-card2__amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tb-amenity-icon {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tb-panel-bg); border-radius: 8px; padding: 4px 8px; font-size: 12.5px;
}

/* Карточка рейса в результатах — 3 колонки: маршрут / перевозчик+удобства /
   цена+кнопка, как в опорном макете (см. .trip в дизайне). */
.tb-route-card2 {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: center;
  background: #fff;
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow);
  padding: 22px 24px;
  color: var(--tb-text);
  cursor: pointer;
  transition: box-shadow 0.18s;
}
.tb-route-card2:hover { box-shadow: 0 14px 36px rgba(15, 28, 51, 0.11); }

.tb-route-card2__badge {
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--tb-green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 4px 12px;
}

.tb-route-card2__route { display: flex; align-items: center; gap: 36px; min-width: 0; }
.tb-route-card2__col { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.tb-route-card2__time { font-size: 22px; font-weight: 800; white-space: nowrap; }
.tb-route-card2__date { display: block; font-size: 12px; color: var(--tb-muted); font-weight: 500; }
.tb-route-card2__place { font-size: 12.5px; color: var(--tb-muted); margin-top: 6px; max-width: 150px; }
.tb-route-card2__dots {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.tb-route-card2__dur-label { font-size: 13px; font-weight: 700; color: var(--tb-text); white-space: nowrap; }
.tb-route-card2__line {
  position: relative;
  width: 86px;
  height: 2px;
  background: var(--tb-border);
}
.tb-route-card2__line::before, .tb-route-card2__line::after {
  content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1;
}
.tb-route-card2__line::before { left: 0; }
.tb-route-card2__line::after { right: 0; }
.tb-route-card2__direct { font-size: 11.5px; color: var(--tb-muted); white-space: nowrap; }

.tb-route-card2__mid { min-width: 0; }
.tb-route-card2__carrier { font-size: 15px; font-weight: 700; }
.tb-route-card2__carrier a { color: inherit; text-decoration: none; }
.tb-route-card2__carrier a:hover { color: var(--tb-green-dark); }
.tb-route-card2__vehicle { font-size: 13px; color: var(--tb-muted); margin: 2px 0 8px; }

.tb-route-card2__side { text-align: right; }
.tb-route-card2__price { font-size: 25px; font-weight: 800; }
.tb-route-card2__pax { display: block; font-size: 12.5px; color: var(--tb-muted); }
.tb-route-card2__seats-left { display: block; font-size: 12.5px; font-weight: 700; color: var(--tb-green-dark); margin: 5px 0 12px; }

.tb-route-card2__cta { width: 100%; padding: 12px; }

.tb-res-note {
  border: 1.5px dashed #cbd5e1; border-radius: var(--tb-radius); padding: 22px;
  text-align: center; color: var(--tb-muted); font-size: 14.5px; background: #fff; margin-top: 14px;
}
.tb-res-note a { color: var(--tb-green-dark); font-weight: 700; }

@media (max-width: 960px) {
  .tb-route-card2 { grid-template-columns: 1fr; gap: 16px; }
  .tb-route-card2__side { text-align: left; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .tb-route-card2__pax, .tb-route-card2__seats-left { display: inline; margin: 0; }
  .tb-route-card2__cta { width: auto; }
}

/* Боковая панель бронирования автобуса — оформление заказа не уводит
   с /buses/ на отдельную страницу рейса, всё заполняется и отправляется
   тут же, поверх ленты. */
.tb-book-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 35, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
}
.tb-book-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.tb-book-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 92vw;
  background: #fff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 101;
  overflow-y: auto;
}
.tb-book-drawer.is-open { transform: translateX(0); }
.tb-book-drawer__body { padding: 28px 24px 40px; }
.tb-book-drawer__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--tb-border);
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--tb-muted);
}
.tb-book-drawer__close:hover { border-color: var(--tb-green); color: var(--tb-green-dark); }

@media (max-width: 640px) {
  .tb-book-drawer { width: 100vw; max-width: 100vw; }
}

/* Сводка по рейсу наверху панели бронирования — компактно, в одну карточку,
   без растянутых блоков с отдельной рамкой на каждое поле. */
.tb-book-summary {
  border: 1px solid var(--tb-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}
.tb-book-summary__route { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.tb-book-summary__arrow { color: var(--tb-muted); font-weight: 400; margin: 0 4px; }
.tb-book-summary__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--tb-border);
  border-bottom: 1px solid var(--tb-border);
}
.tb-book-summary__label { font-size: 11px; color: var(--tb-muted); }
.tb-book-summary__value { font-size: 13px; font-weight: 600; }
.tb-book-summary__total { display: flex; align-items: baseline; gap: 8px; padding-top: 8px; flex-wrap: wrap; }
.tb-book-summary__total .tb-book-summary__label { font-size: 12px; }
.tb-book-summary__price { font-size: 18px; font-weight: 700; }
.tb-book-summary__muted { font-size: 12px; color: var(--tb-muted); }

.tb-route-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid var(--tb-border);
  border-radius: 12px;
  color: var(--tb-text);
}

.tb-route-card:hover { border-color: var(--tb-green); }
.tb-route-card--static:hover { border-color: var(--tb-border); }
.tb-route-card--static {
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  position: relative;
  width: 100%;
}

.tb-route-card__time {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  flex: 0 0 auto;
}

.tb-route-card__dur { font-size: 12px; color: var(--tb-muted); }
.tb-route-card__route { flex: 1; }
.tb-route-card__muted { font-size: 13px; color: var(--tb-muted); }
.tb-route-card__price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tb-empty { color: var(--tb-muted); padding: 20px 0; }

.tb-waiting-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px 20px;
  border: 1px solid var(--tb-border);
  border-radius: 16px;
  background: #fff;
}
.tb-waiting-state__step { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 160px; text-align: center; }
.tb-waiting-state__step p { margin: 0; font-size: 14px; color: var(--tb-text); font-weight: 500; }
.tb-waiting-state__line { width: 80px; height: 2px; background: var(--tb-border); margin-bottom: 34px; }
.tb-waiting-state__icon {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #f1f2f4;
  font-size: 26px;
}
.tb-waiting-state__icon--active { background: var(--tb-orange); }
.tb-waiting-state__glyph { position: relative; z-index: 1; }
.tb-waiting-state__spinner {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: tb-waiting-spin 0.9s linear infinite;
}
@keyframes tb-waiting-spin {
  to { transform: rotate(360deg); }
}

.tb-mini-spinner {
  width: 28px; height: 28px;
  margin: 4px auto 20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 122, 0, 0.2);
  border-top-color: var(--tb-orange);
  animation: tb-waiting-spin 0.8s linear infinite;
}

.tb-fleet-grid { display: flex; flex-direction: column; gap: 14px; }
.tb-fleet-card {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--tb-border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.tb-fleet-card__photo {
  width: 96px; height: 72px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f2f4;
  display: flex; align-items: center; justify-content: center;
}
.tb-fleet-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.tb-fleet-card__photo-stub { font-size: 30px; }
.tb-fleet-card__body { flex: 1; min-width: 0; }
.tb-fleet-card__car { font-weight: 700; font-size: 15px; }
.tb-fleet-card__class { font-size: 13px; color: var(--tb-muted); }
.tb-fleet-card__name { font-size: 13px; color: var(--tb-muted); margin-top: 2px; }
.tb-fleet-card__more {
  border: none; background: none; padding: 0; margin-top: 6px;
  color: var(--tb-green-dark); font-size: 13px; cursor: pointer; text-decoration: underline;
}
.tb-fleet-card__price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tb-fleet-card__price strong { font-size: 18px; }

.tb-fleet-drawer {
  position: fixed; inset: 0; z-index: 200;
  display: none;
}
.tb-fleet-drawer.is-open { display: block; }
.tb-fleet-drawer__overlay { position: absolute; inset: 0; background: rgba(15, 20, 25, 0.45); }
.tb-fleet-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: #fff;
  padding: 28px 24px;
  overflow-y: auto;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.18);
}
.tb-fleet-drawer__close {
  position: absolute; top: 18px; right: 20px;
  border: none; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--tb-muted);
}
.tb-fleet-drawer__photo { width: 100%; border-radius: 12px; margin: 10px 0 18px; display: block; }
.tb-fleet-drawer__photo--stub {
  height: 160px; display: flex; align-items: center; justify-content: center;
  background: #f1f2f4; font-size: 44px;
}
.tb-fleet-drawer__table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.tb-fleet-drawer__table td { padding: 8px 0; border-bottom: 1px solid var(--tb-border); font-size: 14px; }
.tb-fleet-drawer__table td:first-child { color: var(--tb-muted); width: 45%; }
.tb-fleet-drawer__price { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.tb-fleet-drawer__price span { display: block; font-size: 13px; font-weight: 400; margin-top: 4px; }

.tb-order-card__num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 13px;
  font-weight: 400;
  color: var(--tb-muted);
}
.tb-order-card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 60px; }
.tb-order-card__head strong { font-size: 16px; }
.tb-order-card__posted { font-size: 12px; color: var(--tb-muted); }

.tb-order-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tb-order-status--open { background: #e8f5ec; color: #1f8a3d; }
.tb-order-status--done { background: #eef1f6; color: var(--tb-muted); }
.tb-order-flag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tb-order-flag--new { background: #e6f0ff; color: #1d5fd6; }
.tb-order-flag--urgent { background: #fdece8; color: #c23b1f; }

.tb-order-card__facts { border-collapse: collapse; margin: 2px 0; }
.tb-order-card__facts th {
  text-align: left;
  font-weight: 400;
  color: var(--tb-muted);
  padding: 2px 10px 2px 0;
  white-space: nowrap;
  font-size: 14px;
}
.tb-order-card__facts td { padding: 2px 0; font-weight: 600; font-size: 14px; }

.tb-order-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--tb-border);
}
.tb-order-card__actions .tb-btn { padding: 8px 16px; font-size: 13px; }
.tb-btn--outline { background: #fff; border: 1px solid var(--tb-border); color: var(--tb-text); cursor: pointer; }
.tb-btn--outline:hover { border-color: var(--tb-green); color: var(--tb-green); }
.tb-order-card__contacts-btn { cursor: pointer; border: none; font-family: inherit; }
.tb-order-card__notify-btn { cursor: pointer; font-family: inherit; }

.tb-driver-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}
.tb-driver-gate.is-open { display: flex; }
.tb-driver-gate__box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  max-width: 360px;
  text-align: center;
}
.tb-driver-gate__box h3 { margin: 0 0 10px; }
.tb-driver-gate__box p { color: var(--tb-muted); margin: 0 0 18px; }
.tb-driver-gate__close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; font-size: 18px; cursor: pointer; color: var(--tb-muted);
}

.tb-route-single__meta, .tb-route-single__price { color: var(--tb-muted); }
.tb-route-single__price { font-size: 20px; font-weight: 700; color: var(--tb-text); margin-bottom: 24px; }

.tb-directions-group { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--tb-border); }
.tb-directions-group:first-of-type { margin-top: 20px; }
.tb-directions-group h3 { font-size: 16px; margin: 0 0 12px; }
.tb-directions-group__links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.tb-directions-group__links a {
  font-size: 13.5px; color: var(--tb-green-dark); background: var(--tb-panel-bg);
  border-radius: 999px; padding: 6px 14px; text-decoration: none;
}
.tb-directions-group__links a:hover { background: #e7f8ee; }

.tb-carrier-single__meta { display: flex; gap: 20px; flex-wrap: wrap; margin: 10px 0 16px; }
.tb-carrier-single__meta a { color: var(--tb-green-dark); font-weight: 600; }
.tb-carrier-single__desc { color: var(--tb-muted); margin-bottom: 28px; line-height: 1.6; }

.tb-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.tb-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.tb-form input, .tb-form textarea {
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--tb-border);
  border-radius: 8px;
  font-size: 14px;
}
.tb-form button { align-self: flex-start; border: none; cursor: pointer; margin-top: 8px; }

.tb-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.tb-notice--ok { background: #e8f9ee; color: var(--tb-green-dark); }
.tb-notice--err { background: #fdecec; color: #c0392b; }

/* Водителям: вход/регистрация + кабинет */
.tb-driver-auth__inner, .tb-dashboard__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.tb-driver-auth__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.tb-form-block {
  border: 1px solid var(--tb-border);
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tb-form-block legend {
  font-size: 14px;
  font-weight: 700;
  padding: 0 8px;
  color: var(--tb-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tb-passenger-remove { align-self: flex-start; font-size: 13px; color: #c0392b; }

/* Базовый стиль подписи+поля внутри форм-блока — без него <label>Текст
   <input></label> схлопывается в одну строку (подпись и поле впритык). */
.tb-form-block label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tb-muted);
}
.tb-form-block input,
.tb-form-block select,
.tb-form-block textarea {
  border: 1px solid var(--tb-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--tb-text);
  background: #fff;
}
.tb-form-block textarea { resize: vertical; }

.tb-check-group { border: none; padding: 0; margin: 0; }
.tb-check-group legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.tb-check { flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 400 !important; }
.tb-check input { width: auto; }

.tb-dashboard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.tb-dashboard__section {
  padding: 24px 0;
  border-top: 1px solid var(--tb-border);
}

.tb-dashboard__section h2 { font-size: 18px; margin: 0 0 12px; }

/* Трансфер */
.tb-transfer__inner { max-width: 700px; margin: 0 auto; padding: 40px 20px 80px; }
.tb-transfer__lead { color: var(--tb-muted); margin-top: -8px; }

/* Форма трансфера — вся страница светлая (как у getTransfer), карточка
   формы слева с тонкой рамкой, карта справа. */
.tb-transfer-hero { background: #fff; padding: 32px 20px 60px; }
.tb-transfer-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
  align-items: start;
}

.tb-transfer-heading { grid-column: 1 / -1; color: var(--tb-text); margin-bottom: 4px; }
.tb-transfer-heading h1 { margin: 0 0 12px; font-size: 32px; font-weight: 800; line-height: 1.2; }
.tb-transfer-heading__lead { margin: 0 0 10px; color: var(--tb-muted); font-size: 15px; max-width: 640px; }
.tb-transfer-benefits { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--tb-text); font-size: 15px; font-weight: 500; }
.tb-transfer-benefits__check { color: var(--tb-orange); font-weight: 700; margin-right: 2px; }

.tb-transfer-card {
  color: var(--tb-text);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tb-form-label { font-size: 13px; color: #9aa1b5; margin: 4px 0 -4px; }

.tb-tfield { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #c7cede; flex: 1; }
.tb-tfield input, .tb-tfield textarea {
  background: #0f1c38;
  border: 1px solid #2c3f66;
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}
.tb-tfield input::placeholder, .tb-tfield textarea::placeholder { color: #7c88a8; }
.tb-tfield-row { display: flex; gap: 12px; align-items: flex-end; }

/* Внутри светлой карточки трансфера — светлый вариант тех же полей */
.tb-transfer-card .tb-tfield { color: var(--tb-muted); }
.tb-transfer-card .tb-tfield input,
.tb-transfer-card .tb-tfield textarea {
  background: #f5f7fb;
  border: 1px solid var(--tb-border);
  color: var(--tb-text);
  color-scheme: light;
}
.tb-transfer-card .tb-tfield input::placeholder,
.tb-transfer-card .tb-tfield textarea::placeholder { color: #9aa1b5; }
.tb-transfer-card .tb-tfield textarea { min-height: 70px; resize: vertical; }

/* Маршрут — одна карточка с A/B, поля без своих рамок (вложенная рамка
   в рамке выглядела сыро), между точками разделитель. */
.tb-route-points {
  display: flex;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--tb-border);
  border-radius: 14px;
  padding: 8px 16px;
}
.tb-route-point { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.tb-route-point + .tb-route-point { border-left: 1px solid var(--tb-border); padding-left: 16px; margin-left: 16px; }
.tb-route-point__badge {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #2b3445;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.tb-route-point .tb-suggest-wrap { flex: 1; min-width: 0; }
.tb-route-point input {
  width: 100%;
  background: none;
  border: none;
  padding: 8px 0;
  color: var(--tb-text);
  font-size: 15px;
  font-family: inherit;
}
.tb-route-point input:focus { outline: none; }
.tb-route-point input::placeholder { color: #9aa1b5; }

/* Поля-строки в духе getTransfer: рамка на всю ширину, слева иконка,
   потом подпись/значение, справа — управление (счётчик, «Изменить»,
   «Сейчас»). Используются для даты-времени, взрослых и детей. */
.tb-gt-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--tb-border);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  min-height: 64px;
}
.tb-gt-field__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: #2b3445;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tb-gt-field__icon svg { width: 100%; height: 100%; }
.tb-gt-field__main { flex: 1; min-width: 0; }
.tb-gt-field__label { font-size: 12px; color: #9aa1b5; margin-bottom: 4px; }
.tb-gt-field__title { font-size: 15px; color: #9aa1b5; }
.tb-gt-field__title.is-filled { color: var(--tb-text); font-weight: 600; }

/* Поля с вводом внутри такой же строки-карточки: рамка одна, у самого
   input/textarea её нет. */
.tb-gt-field--stack { align-items: flex-start; }
.tb-gt-field--stack .tb-gt-field__icon { margin-top: 2px; }
.tb-gt-input {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  color: var(--tb-text);
  font-size: 15px;
  font-family: inherit;
}
.tb-gt-input:focus { outline: none; }
.tb-gt-input::placeholder { color: #9aa1b5; }
.tb-gt-input--area { min-height: 44px; resize: vertical; line-height: 1.4; }

.tb-calc-status { font-size: 13px; color: var(--tb-muted); }
.tb-calc-status:empty { display: none; }

.tb-gt-field__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-gt-chip {
  background: #eef0f4;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 15px;
  font-family: inherit;
  color: #9aa1b5;
  cursor: pointer;
}
.tb-gt-chip.is-filled { color: var(--tb-text); }
.tb-gt-chip:hover { background: #e4e7ed; }
.tb-gt-chip.is-error { border-color: #e15b5b; color: #c0392b; }

.tb-gt-now {
  flex-shrink: 0;
  background: var(--tb-orange);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}
.tb-gt-now:hover { background: var(--tb-orange-dark); }

.tb-gt-link {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  font-size: 15px;
  font-family: inherit;
  color: var(--tb-text);
  cursor: pointer;
}
.tb-gt-link:hover { color: var(--tb-green-dark); }

/* Счётчик: круглые «−»/«+» и значение в рамке, как в образце */
.tb-gt-stepper { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.tb-gt-stepper__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #eef0f4;
  color: #2b3445;
  font-size: 20px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
}
.tb-gt-stepper__btn:hover { background: #e0e4ea; }
.tb-gt-stepper input {
  width: 52px;
  height: 40px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--tb-border);
  border-radius: 10px;
  color: var(--tb-text);
  font-size: 16px;
  font-family: inherit;
  -moz-appearance: textfield;
}
.tb-gt-stepper input::-webkit-outer-spin-button,
.tb-gt-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Выпадашки даты и времени — всплывают над полем, как в образце */
.tb-gt-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 30;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.18);
  padding: 16px;
  width: 320px;
}
.tb-gt-popup.is-open { display: block; }
.tb-gt-popup--time { padding: 0; overflow: hidden; width: 260px; }

.tb-gt-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tb-gt-cal__group { display: flex; align-items: center; gap: 4px; }
.tb-gt-cal__nav {
  border: none;
  background: none;
  color: #2b3445;
  font-size: 18px;
  line-height: 1;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.tb-gt-cal__nav:hover { color: var(--tb-green-dark); }
.tb-gt-cal__title { font-size: 15px; font-weight: 600; min-width: 74px; text-align: center; }
.tb-gt-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tb-gt-cal__wd { text-align: center; font-size: 12px; color: #9aa1b5; padding: 6px 0; }
.tb-gt-cal__day {
  border: 1px solid transparent;
  background: none;
  border-radius: 50%;
  aspect-ratio: 1;
  font-size: 14px;
  font-family: inherit;
  color: var(--tb-text);
  cursor: pointer;
}
.tb-gt-cal__day:hover { background: #f0f2f5; }
.tb-gt-cal__day.is-today { border-color: var(--tb-border); }
.tb-gt-cal__day.is-selected { background: var(--tb-orange); border-color: var(--tb-orange); color: #fff; }
.tb-gt-cal__day.is-past { color: #c7cad1; cursor: not-allowed; }
.tb-gt-cal__day.is-past:hover { background: none; }

.tb-gt-time { display: grid; grid-template-columns: 1fr 1fr; }
.tb-gt-time__col {
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: none;
}
.tb-gt-time__col::-webkit-scrollbar { display: none; }
.tb-gt-time__item {
  border: none;
  background: none;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 17px;
  font-family: inherit;
  color: var(--tb-text);
  cursor: pointer;
}
.tb-gt-time__item:hover { background: #f0f2f5; }
.tb-gt-time__item.is-selected { background: var(--tb-orange); color: #fff; }

.tb-gt-confirm {
  display: block;
  width: 100%;
  border: none;
  background: var(--tb-green);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  padding: 14px;
  cursor: pointer;
}
.tb-gt-confirm:hover { background: var(--tb-green-dark); }

/* Модалка «Дети» */
.tb-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 35, 0.45);
  z-index: 100;
}
.tb-modal-backdrop.is-open { display: block; }
.tb-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 440px;
  max-width: 92vw;
  z-index: 101;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.tb-modal.is-open { display: block; }
.tb-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.tb-modal__head h3 { margin: 0; font-size: 20px; font-weight: 700; }
.tb-modal__close {
  border: none;
  background: none;
  padding: 0;
  width: 28px;
  height: 28px;
  font-size: 22px;
  line-height: 1;
  color: var(--tb-text);
  cursor: pointer;
}
.tb-modal__close:hover { color: var(--tb-green-dark); }
.tb-modal__body { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.tb-modal__cta {
  display: block;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: var(--tb-green);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  padding: 15px;
  cursor: pointer;
}
.tb-modal__cta:hover { background: var(--tb-green-dark); }

.tb-child-row { display: flex; align-items: center; gap: 12px; }
.tb-child-row__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  color: #8a93a6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tb-child-row__icon svg { width: 100%; height: 100%; }
.tb-child-row__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tb-child-row__info strong { font-size: 15px; font-weight: 500; }
.tb-child-row__info span { font-size: 13px; color: #9aa1b5; }

.tb-suggest-wrap { position: relative; }
.tb-suggest-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #16264a;
  border: 1px solid #2c3f66;
  border-radius: 10px;
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}
.tb-suggest-item {
  padding: 10px 14px;
  font-size: 13px;
  color: #e6ebfa;
  cursor: pointer;
}
.tb-suggest-item:hover { background: #223761; }

/* Компаундный селектор (а не просто .tb-suggest-list--light) — иначе при
   равной специфичности с базовым .tb-suggest-list побеждает тот, что ниже
   по файлу (это и был баг: тёмный фон подсказок поверх тёмного текста). */
.tb-suggest-list.tb-suggest-list--light { background: #fff; border-color: var(--tb-border); }
.tb-suggest-list.tb-suggest-list--light .tb-suggest-item { color: var(--tb-text); }
.tb-suggest-list.tb-suggest-list--light .tb-suggest-item:hover { background: #f0f2f5; }

.tb-class-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.tb-class-tile {
  background: #fff;
  border: 1px solid var(--tb-border);
  border-radius: 12px;
  padding: 14px 10px;
  color: var(--tb-text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tb-class-tile:hover { border-color: var(--tb-green); }
.tb-class-tile.is-selected {
  border-color: var(--tb-green);
  box-shadow: inset 0 0 0 1px var(--tb-green);
  background: rgba(30, 194, 92, 0.07);
}
.tb-class-tile__icon { font-size: 24px; line-height: 1; }
.tb-class-tile__name { font-weight: 600; font-size: 13px; }
.tb-class-tile__price { font-size: 13px; font-weight: 700; color: var(--tb-green-dark); }
.tb-class-tile__price:empty { display: none; }

.tb-transfer-card__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--tb-border);
}
.tb-transfer-card__submit {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
}

/* Правая колонка: карта + блок «как это работает», чтобы страница не
   обрывалась пустотой справа от длинной формы. */
.tb-transfer-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.tb-transfer-map-wrap { border-radius: 16px; overflow: hidden; border: 1px solid var(--tb-border); }
.tb-transfer-map { width: 100%; height: 380px; }

.tb-side-card {
  border: 1px solid var(--tb-border);
  border-radius: 16px;
  padding: 20px 22px;
  background: #fff;
}
.tb-side-card h2 { margin: 0 0 14px; font-size: 18px; }

.tb-transfer-seo-text {
  grid-column: 1 / -1;
  max-width: 760px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--tb-border);
}
.tb-transfer-seo-text h2 { margin: 0 0 12px; font-size: 20px; }
.tb-transfer-seo-text p { margin: 0 0 12px; color: var(--tb-muted); line-height: 1.55; font-size: 14px; }
.tb-transfer-seo-text p:last-child { margin-bottom: 0; }
.tb-transfer-seo-text h3 { margin: 22px 0 10px; font-size: 17px; }
.tb-transfer-seo-prices { border-collapse: collapse; margin: 6px 0 12px; font-size: 14px; min-width: 280px; }
.tb-transfer-seo-prices th, .tb-transfer-seo-prices td { text-align: left; padding: 7px 18px 7px 0; border-bottom: 1px solid var(--tb-border); }
.tb-transfer-seo-prices th { color: var(--tb-muted); font-weight: 600; }
.tb-faq { border-bottom: 1px solid var(--tb-border); padding: 10px 0; }
.tb-faq summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.tb-faq p { margin: 8px 0 0; }
.tb-steps { margin: 0; padding: 0; list-style: none; counter-reset: tb-step; display: flex; flex-direction: column; gap: 14px; }
.tb-steps li { counter-increment: tb-step; display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; align-items: start; }
.tb-steps li::before {
  content: counter(tb-step);
  grid-row: span 2;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(30, 194, 92, 0.12);
  color: var(--tb-green-dark);
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.tb-steps strong { font-size: 15px; font-weight: 600; }
.tb-steps span { font-size: 13px; color: var(--tb-muted); line-height: 1.45; }

.tb-transfer-map--stub {
  min-height: 380px;
  background: #101a30;
  color: #c7cede;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 8px;
}
.tb-transfer-map--stub .tb-route-card__muted { color: #8a92a8; }

@media (max-width: 860px) {
  .tb-transfer-hero { padding: 24px 16px 44px; }
  .tb-transfer-hero__inner { grid-template-columns: 1fr; }
  .tb-transfer-heading h1 { font-size: 26px; }
  .tb-transfer-side { position: static; }
  .tb-transfer-map, .tb-transfer-map--stub { height: 260px; min-height: 260px; }
  .tb-class-tiles { grid-template-columns: repeat(2, 1fr); }
  .tb-route-points { flex-direction: column; padding: 4px 14px; }
  .tb-route-point + .tb-route-point { border-left: none; border-top: 1px solid var(--tb-border); padding-left: 0; margin-left: 0; }
  .tb-tfield-row { flex-wrap: wrap; }
  .tb-gt-popup { width: min(320px, calc(100vw - 56px)); }
  .tb-gt-field { flex-wrap: wrap; }
  .tb-gt-now { margin-left: auto; }
}

.tb-form--wide { max-width: none; }
.tb-form__row { display: flex; gap: 16px; flex-wrap: wrap; }
.tb-form__row label { flex: 1; min-width: 200px; }

/* Строка заказа (используется в кабинете водителя и на страницах заявок) */
.tb-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tb-border);
  flex-wrap: wrap;
}

.tb-inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tb-inline-form input { padding: 8px 10px; border: 1px solid var(--tb-border); border-radius: 8px; font-size: 13px; }
.tb-inline-form input[type="number"] { width: 100px; }
.tb-inline-form button { border: none; cursor: pointer; padding: 8px 16px; font-size: 13px; }

/* Объявления */
.tb-listings__inner, .tb-listing-single__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.tb-search-form select {
  padding: 10px 14px;
  border: 1px solid var(--tb-border);
  border-radius: 8px;
  font-size: 14px;
}

/* Карточка объявления — общая для ленты /ads/ и страницы объявления */
.tb-ad-list { display: flex; flex-direction: column; gap: 24px; margin-top: 20px; }

.tb-ad-card {
  border: 1px solid var(--tb-border);
  border-radius: 14px;
  padding: 20px;
}

.tb-ad-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.tb-ad-card__title { font-size: 20px; font-weight: 700; color: var(--tb-text); }
h1.tb-ad-card__title { margin: 0; line-height: 1.3; }
.tb-ad-card__title:hover { color: var(--tb-green-dark); }
.tb-ad-card__loc { color: var(--tb-muted); font-size: 14px; margin-top: 4px; }
.tb-ad-card__source {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--tb-border);
  font-size: 12px;
  color: var(--tb-muted);
  text-align: right;
}
.tb-ad-card__num { color: var(--tb-muted); font-size: 14px; white-space: nowrap; }

.tb-ad-card__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  margin-top: 16px;
}

.tb-ad-card__photo { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; display: block; }
.tb-ad-gallery__thumbs { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tb-ad-gallery__thumb {
  width: 48px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
}
.tb-ad-gallery__thumb.is-active { opacity: 1; border-color: var(--tb-green, #2ea44f); }

.tb-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}
.tb-lightbox.is-open { display: flex; }
.tb-lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.tb-lightbox__close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; line-height: 1;
}
.tb-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15); border: none; color: #fff;
  font-size: 32px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
}
.tb-lightbox__nav--prev { left: 16px; }
.tb-lightbox__nav--next { right: 16px; }
.tb-lightbox__counter {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 14px; opacity: 0.8;
}
@media (max-width: 640px) {
  .tb-lightbox__nav { width: 40px; height: 40px; font-size: 24px; }
}
.tb-ad-card__photo--stub {
  display: flex; align-items: center; justify-content: center;
  background: #f0f2f5; font-size: 40px; height: 190px; border-radius: 12px;
}
.tb-ad-card__left .tb-price-tiles { margin-top: 16px; }

.tb-ad-card__desc { color: var(--tb-text); margin: 8px 0 0; }

.tb-ad-card__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.tb-btn--call { background: #ffcb3d; color: #1a1a1a; border: none; }
.tb-btn--danger { background: #fdecec; color: #c0392b; border: none; }
.tb-btn--danger:hover { background: #fbd7d7; }

.tb-manage__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tb-manage__head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-manage__details {
  margin: 16px 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--tb-border);
  border-radius: 14px;
  background: #fff;
}
.tb-manage__details-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--tb-border); font-size: 14px; }
.tb-manage__details-row:last-of-type { border-bottom: none; }
.tb-manage__details-row span { color: var(--tb-muted); flex: none; }
.tb-manage__details-row strong { font-weight: 600; text-align: right; }
.tb-btn--call:hover { background: #f3bc1f; }
.tb-btn--whatsapp { background: #25d366; color: #fff; border: none; }
.tb-btn--whatsapp:hover { background: #1fb959; }
.tb-btn--telegram { background: #229ed9; color: #fff; border: none; }
.tb-btn--telegram:hover { background: #1c86ba; }
.tb-btn--max { background: #6c3ce9; color: #fff; border: none; }
.tb-btn--max:hover { background: #5a30c4; }

.tb-ad-card__contact {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--tb-border);
}

.tb-contact-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: #eef0f3; display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

.tb-spec-table { border-collapse: collapse; margin: 12px 0; width: 100%; max-width: 480px; }
.tb-spec-table th, .tb-spec-table td { text-align: left; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--tb-border); font-size: 14px; }
.tb-spec-table th { color: var(--tb-muted); font-weight: 500; width: 40%; }

.tb-price-tiles { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.tb-price-tile {
  background: #f7f8fa; border-radius: 10px; padding: 10px 18px;
  display: flex; flex-direction: column; align-items: center;
}
.tb-price-tile strong { font-size: 18px; }
.tb-price-tile span { font-size: 12px; color: var(--tb-muted); }

.tb-details summary { cursor: pointer; display: inline-block; list-style: none; }
.tb-details summary::-webkit-details-marker { display: none; }

@media (max-width: 640px) {
  .tb-ad-card__grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 640px) {
  .tb-nav { display: none; }
  .tb-hero h1 { font-size: 28px; }
  .tb-hero { padding: 60px 16px; }
  .tb-route-card { flex-wrap: wrap; }
  .tb-driver-auth__cols { grid-template-columns: 1fr; }
  .tb-form__row { flex-direction: column; }
}

/* Футер — на тёмных hero-страницах (Трансфер) фон совпадает с секцией над
   ним, поэтому граница нужна явно: своя, более тёмная заливка + верхняя
   полоса-акцент, а не просто «тот же тёмный цвет продолжается дальше». */
.tb-footer {
  background: #0d1730;
  color: #c7cede;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--tb-green) 0%, var(--tb-orange) 100%) 1;
}

.tb-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}

.tb-footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.tb-footer__col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}
.tb-footer__col { display: flex; flex-direction: column; gap: 12px; }
.tb-footer__col a { color: #c7cede; font-size: 14px; transition: color 0.15s; }
.tb-footer__col a:hover { color: var(--tb-green); }

.tb-footer__brand { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.tb-footer__about { font-size: 13px; color: #8a92a8; max-width: 360px; line-height: 1.6; margin: 0; }

.tb-footer__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tb-footer__mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--tb-green);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.tb-footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #26365c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  flex-wrap: wrap;
}
.tb-footer__copy { font-size: 13px; color: #8a92a8; }
.tb-footer__legal { display: flex; gap: 28px; flex-wrap: wrap; }
.tb-footer__legal a { font-size: 13px; color: #8a92a8; }
.tb-footer__legal a:hover { color: var(--tb-orange); }

/* Правовые страницы: узкая колонка текста, читаемая типографика */
.tb-legal__inner { max-width: 780px; margin: 0 auto; padding: 44px 20px 72px; }
.tb-legal h1 { font-size: 30px; font-weight: 800; margin: 0 0 8px; }
.tb-legal__date { margin: 0 0 28px; font-size: 14px; color: var(--tb-muted); }
.tb-legal h2 { font-size: 18px; font-weight: 700; margin: 30px 0 10px; }
.tb-legal p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; }
.tb-legal ul { margin: 0 0 12px; padding-left: 22px; }
.tb-legal li { font-size: 15px; line-height: 1.65; margin-bottom: 6px; }
.tb-legal a { color: var(--tb-green-dark); text-decoration: underline; }

@media (max-width: 700px) {
  .tb-footer__cols { grid-template-columns: 1fr; gap: 24px; }
}

/* Попутчики — лента в духе телеграм-канала ------------------------------ */
.tb-carpool__inner { max-width: 720px; margin: 0 auto; padding: 32px 20px 60px; }
.tb-carpool-form-toggle { margin: 20px 0 28px; }
.tb-carpool-filter {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tb-carpool-filter label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--tb-muted); flex: 1; min-width: 200px; }
.tb-carpool-filter input {
  border: 1px solid var(--tb-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}
.tb-carpool-form-toggle summary { cursor: pointer; display: inline-block; list-style: none; }
.tb-carpool-form-toggle summary::-webkit-details-marker { display: none; }
.tb-carpool-form { margin-top: 16px; }
.tb-carpool-feed { display: flex; flex-direction: column; gap: 14px; }
.tb-carpool-card {
  background: #fff;
  border: 1px solid var(--tb-border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tb-carpool-card__posted { font-size: 12px; color: var(--tb-muted); }
.tb-carpool-card__route { font-size: 17px; font-weight: 700; }
.tb-carpool-card__meta { font-size: 14px; color: var(--tb-muted); }
.tb-carpool-card__comment { font-size: 14px; color: var(--tb-text); white-space: pre-wrap; }
.tb-carpool-mention { color: #2b6cd4; font-weight: 700; }
.tb-carpool-card__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--tb-border);
  font-size: 14px;
}
.tb-carpool-card__actions { display: flex; gap: 12px; }
.tb-carpool-card__actions a { color: #2ea44f; font-weight: 600; }

.tb-carpool-card--past { opacity: 0.55; filter: grayscale(0.4); }
.tb-carpool-card__past-tag { color: #b0392b; font-weight: 600; }

.tb-carpool-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.tb-status { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tb-status--pending { background: #fff3da; color: #9a5b00; }
.tb-status--confirmed { background: #e3f6e9; color: #1a7f37; }
.tb-status--cancelled { background: #fde7e7; color: #b42318; }

/* ==================================================================
   МОБИЛЬНАЯ ВЕРСИЯ (≤ 640px): шапка с меню-лентой, поиск, карточки рейсов
   ================================================================== */
.tb-more-btn { display: none; width: 100%; margin: 14px 0 0; height: 48px; justify-content: center; }

@media (max-width: 640px) {
  /* Шапка: логотип + кнопки в одну строку, разделы — лентой со свайпом
     (раньше меню на телефоне не было вовсе, а кнопки не помещались). */
  .tb-header__inner { flex-wrap: wrap; gap: 6px 10px; padding: 8px 14px 0; }
  .tb-logo { font-size: 18px; }
  .tb-header__actions { margin-left: auto; gap: 8px; }
  .tb-header__actions .tb-btn { height: 38px; padding: 0 12px; font-size: 13px; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
  .tb-nav {
    display: flex; order: 3; flex: none; width: 100%; gap: 22px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 0 0 2px; margin: 0 -14px; padding-left: 14px; padding-right: 14px;
    box-sizing: border-box; width: calc(100% + 28px);
  }
  .tb-nav::-webkit-scrollbar { display: none; }
  .tb-nav a { white-space: nowrap; padding: 11px 0; font-size: 15px; border-bottom: 2px solid transparent; }
  .tb-nav a.is-active { border-bottom-color: var(--tb-green); }

  /* Форма поиска: поля ≥ 16px (иначе iOS приближает страницу при вводе) */
  .tb-wfield { padding: 10px 12px; }
  .tb-wfield > span:first-child { font-size: 12px; }
  .tb-wfield input, .tb-wfield select, .tb-wcal-trigger { font-size: 16px; }
  .tb-wstepper { gap: 6px; flex-wrap: nowrap; }
  .tb-wstepper button { width: 38px; height: 38px; }
  .tb-wstepper span { display: none; }
  .tb-date-chip { min-height: 40px; display: inline-flex; align-items: center; }
  .tb-sort-pill a { padding: 11px 16px; }

  /* Карточка рейса: помещается в экран, крупные цели нажатия */
  .tb-route-card2 { padding: 16px; }
  .tb-route-card2__route { gap: 10px; }
  .tb-route-card2__dots { min-width: 0; flex: 1 1 56px; }
  .tb-route-card2__line { width: 100%; max-width: 64px; }
  .tb-route-card2__dur-label { font-size: 12px; white-space: normal; text-align: center; }
  .tb-route-card2__place { max-width: 112px; font-size: 12px; }
  .tb-route-card2__direct { font-size: 12px; }
  .tb-book-summary__label, .tb-book-summary__value { font-size: 12px; }
  .tb-route-card2__badge, .tb-route-card2 [class*='cheapest'] { font-size: 12px; }
  .tb-route-card2__col:last-child { text-align: right; align-items: flex-end; }
  .tb-route-card2__carrier a { display: inline-block; padding: 6px 0; }
  .tb-route-card2__side { gap: 12px; }
  .tb-route-card2__cta { flex: 1 1 100%; width: 100%; min-height: 48px; font-size: 16px; }

  /* Длинные списки: сначала 15 рейсов, остальное — по кнопке */
  .tb-route-list:not(.is-expanded) > .tb-route-card2:nth-child(n+16) { display: none; }
  .tb-more-btn { display: flex; }

  /* Панель бронирования */
  .tb-book-drawer input, .tb-book-drawer select, .tb-book-drawer textarea { font-size: 16px; min-height: 48px; }
  .tb-book-drawer .tb-book-submit { width: 100%; min-height: 52px; font-size: 16px; justify-content: center; }
  .tb-book-drawer__close { width: 44px; height: 44px; }
}
.tb-book-note { margin: 10px 0 0; font-size: 13px; color: var(--tb-muted); line-height: 1.4; }
