/* BLABUS (blabus.com.ua) - public site. Mobile first, desktop from 900px. */

/* Manrope for everything: display weights for headlines, tabular figures for times and prices. */
@font-face { font-family: "Manrope"; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Manrope"; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Graphite, stone gray and a muted sage accent */
  --black: #0e100f;
  --black-deep: #090a09;
  --black-2: #171a18;
  --black-3: #232624;
  --on-dark: #f1f1ef;
  --on-dark-2: #a8ada9;
  --on-dark-3: #8e948f;
  --accent: #b3c98f;
  --accent-press: #a1b97b;
  --green-ink: #4c6332;
  --green-tint: #edf1e5;
  --bg: #f1f1ef;
  --card: #ffffff;
  --raised: #f6f6f4;
  --ink: #141615;
  --ink-2: #4e5450;
  --ink-3: #6c726e;
  --line: rgba(20, 22, 21, 0.09);
  --line-2: rgba(20, 22, 21, 0.16);
  --line-dark: rgba(255, 255, 255, 0.1);
  --ok: #2f7a3a;
  --err: #c8303f;

  --f-display: "Manrope", system-ui, sans-serif;
  --f-text: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: var(--f-text);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(10, 12, 10, 0.05), 0 12px 32px rgba(10, 12, 10, 0.08);
  --gutter: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 8px; top: -48px; z-index: 50; background: var(--card); padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 2px; }
.hero :focus-visible, .top :focus-visible { outline-color: #fff; }

/* ---------- Header ---------- */

.top { background: var(--black); color: #fff; }
.top-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.logo-word { font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.logo-tag { font-size: 12px; font-weight: 500; color: var(--accent); margin-top: 4px; }
.top-nav { display: none; }
.top-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--black-3); text-decoration: none; font-weight: 600;
  transition: background-color 160ms var(--ease);
}
.top-phone span { display: none; }
.top-phone:active { background: var(--black-3); }

.notice { background: #fff4d6; color: #5a4300; font-size: 14px; }
.notice-row { display: flex; gap: 10px; padding-top: 12px; padding-bottom: 12px; align-items: flex-start; }
.notice .i { margin-top: 2px; }

.flash { font-size: 14px; font-weight: 500; padding: 12px 0; }
.flash-error { background: #fde8ec; color: #8f1730; }
.flash-ok { background: #e3f6ec; color: #0f5e3a; }

/* ---------- Hero ---------- */

.hero { background: var(--black); color: #fff; padding: 12px 0 24px; }
.hero-title { font-size: 26px; line-height: 1.2; font-weight: 600; color: var(--on-dark); letter-spacing: -0.01em; text-wrap: balance; }
.hero-title span { display: block; color: #fff; }
.hero-sub { margin-top: 8px; color: rgba(255, 255, 255, 0.82); font-size: 15px; }
.hero-form { margin-top: 20px; }
.hero-compact { padding: 8px 0 16px; }
.page-title { font-size: 24px; line-height: 1.2; font-weight: 600; color: #fff; }
.crumb { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 12px -4px; padding: 4px; color: rgba(255,255,255,0.86); text-decoration: none; font-size: 14px; font-weight: 500; }
.crumb .i { width: 16px; height: 16px; }

.facts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.facts li { flex: none; background: var(--black-2); border-radius: var(--r); padding: 10px 14px; display: flex; flex-direction: column; }
.facts strong { font-size: 16px; font-weight: 600; }
.facts span { font-size: 12px; color: rgba(255,255,255,0.8); }

/* ---------- Search form ---------- */

.sf { color: var(--ink); }
.sf-places, .sf-when { background: var(--card); border-radius: var(--r); position: relative; }
.sf-places { display: flex; flex-direction: column; }
.sf-when { display: grid; grid-template-columns: 1fr auto; margin-top: 8px; }
.sf-field { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 10px 16px; }
.sf-from { border-bottom: 1px solid var(--line); padding-right: 64px; }
.sf-to { padding-right: 64px; }
.sf-date { border-right: 1px solid var(--line); cursor: pointer; padding-right: 12px; min-width: 0; }
.sf-date .sf-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-date .sf-ico { display: none; }
.sf-label { font-size: 12px; font-weight: 500; color: var(--ink-3); line-height: 16px; }
.sf-select, .sf-value {
  font-size: 17px; font-weight: 600; line-height: 24px; color: var(--ink);
}
.sf-select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0; margin: 0;
  width: 100%; cursor: pointer; outline: none;
}
.sf-select:focus-visible { outline: none; }
.sf-field { transition: background-color 180ms var(--ease); }
.sf-label { transition: color 180ms var(--ease); }
.sf-from { border-radius: var(--r) var(--r) 0 0; }
.sf-to { border-radius: 0 0 var(--r) var(--r); }
.sf-date { border-radius: var(--r) 0 0 var(--r); }
.sf-from.is-open, .sf-to.is-open, .sf-from:focus-within, .sf-to:focus-within, .sf-date:focus-within { background: var(--green-tint); }
.sf-field.is-open .sf-label, .sf-from:focus-within .sf-label, .sf-to:focus-within .sf-label, .sf-date:focus-within .sf-label { color: var(--green-ink); }
.sf-field:has(:focus-visible) { box-shadow: inset 0 0 0 2px rgba(59, 87, 22, 0.5); }
.sf-pax:has(:focus-visible) { box-shadow: none; }

/* Enhanced city picker (JS replaces the native select) */
.sf-field .sf-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sf-trigger { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; background: transparent; padding: 0; border-radius: inherit; cursor: pointer; }
.sf-trigger:focus-visible { outline: none; }
.sf-chev { display: none; position: absolute; right: 64px; top: 50%; margin-top: -8px; width: 16px; height: 16px; color: var(--ink-3); transition: transform 220ms var(--ease); pointer-events: none; }
.sf-field.is-open .sf-chev { transform: rotate(180deg); color: var(--green-ink); }
.sf-value-city { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dd {
  position: absolute; z-index: 40; min-width: 280px; padding: 6px;
  background: var(--card); border-radius: var(--r); color: var(--ink);
  box-shadow: 0 2px 4px rgba(10, 12, 10, 0.06), 0 16px 40px rgba(10, 12, 10, 0.16);
  opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top left; pointer-events: none;
  transition: opacity 180ms var(--ease), transform 220ms var(--ease);
}
.dd.is-open { opacity: 1; transform: none; pointer-events: auto; }
.dd.is-up:not(.is-sheet) { transform: translateY(6px) scale(0.98); transform-origin: bottom left; }
.dd.is-up.is-open:not(.is-sheet) { transform: none; }
.dd-head { display: none; }
.hero-form, .summary { position: relative; z-index: 5; }
.dd-list { position: relative; outline: none; max-height: min(440px, 60vh); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.dd-opt {
  display: grid; grid-template-columns: 14px 1fr auto 18px; align-items: center; column-gap: 12px;
  min-height: 48px; padding: 6px 12px; border-radius: var(--r-sm); cursor: pointer; user-select: none;
  transition: background-color 120ms var(--ease);
}
.dd-opt.is-active { background: var(--raised); }
.dd-opt[aria-selected="true"] { background: var(--green-tint); }
.dd-dot { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--card); justify-self: center; }
.dd-opt.is-end .dd-dot { border-color: var(--ink); background: var(--accent); }
.dd-name { font-weight: 600; font-size: 16px; }
.dd-opt[aria-selected="true"] .dd-name { color: var(--green-ink); }
.dd-meta { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.dd-check { width: 18px; height: 18px; color: var(--green-ink); opacity: 0; }
.dd-opt[aria-selected="true"] .dd-check { opacity: 1; }
.dd-sep { height: 1px; background: var(--line); margin: 6px 12px; }
.dd-backdrop { position: fixed; inset: 0; z-index: 39; background: rgba(8, 10, 8, 0.55); opacity: 0; pointer-events: none; transition: opacity 220ms var(--ease); }
.dd-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* Calendar */
.cal { width: 340px; padding: 16px 16px 12px; }
.cal-top { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 14px 6px; }
.cal-month { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
.cal-nav { display: flex; gap: 6px; }
.cal-arrow {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  display: grid; place-items: center; transition: background-color 140ms var(--ease), opacity 140ms var(--ease), transform 120ms var(--ease);
}
.cal-arrow .i { width: 16px; height: 16px; }
.cal-arrow:active { transform: scale(0.94); }
.cal-arrow:disabled { opacity: 0.3; cursor: default; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week { margin-bottom: 6px; }
.cal-week span { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); text-align: center; padding: 4px 0; }
.cal-week span:nth-child(n+6) { color: var(--green-ink); }
.cal-day {
  position: relative; aspect-ratio: 1; min-height: 40px; border: 0; border-radius: var(--r-sm); background: transparent;
  font-family: var(--f-text); font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background-color 140ms var(--ease), color 140ms var(--ease), transform 160ms var(--ease);
}
.cal-day.is-weekend { color: var(--green-ink); }
.cal-day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-day:disabled { color: #c4c8c5; cursor: default; }
.cal-day.is-selected { background: var(--accent); color: var(--ink); font-weight: 600; animation: calPop 260ms var(--ease); }
.cal-day:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
@keyframes calPop { 40% { transform: scale(0.88); } }
.cal-grid.slide-l { animation: calL 280ms var(--ease); }
.cal-grid.slide-r { animation: calR 280ms var(--ease); }
@keyframes calL { from { opacity: 0; transform: translateX(14px); } }
@keyframes calR { from { opacity: 0; transform: translateX(-14px); } }
.cal-quick { display: flex; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.cal-chip {
  flex: 1; height: 36px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--card);
  font-size: 13px; font-weight: 500; color: var(--ink-2); transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}
.cal-chip:disabled { opacity: 0.4; cursor: default; }
@media (hover: hover) {
  .cal-day:not(:disabled):not(.is-selected):hover { background: var(--raised); }
  .cal-arrow:not(:disabled):hover { background: var(--raised); }
  .cal-chip:not(:disabled):hover { border-color: var(--ink); color: var(--ink); }
}

/* Phones: the list becomes a bottom sheet */
@media (max-width: 599px) {
  .dd.is-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; min-width: 0; width: auto !important;
    padding: 8px 8px calc(12px + var(--safe-b)); border-radius: 20px 20px 0 0;
    transform: translateY(100%); transform-origin: bottom; transition: transform 320ms var(--ease), opacity 200ms var(--ease);
  }
  .dd.is-sheet.is-open { transform: none; }
  .dd.is-sheet .dd-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 10px 12px; }
  .dd.is-sheet .dd-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-2); }
  .dd-title { font-size: 18px; font-weight: 600; padding-top: 10px; }
  .dd-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--raised); display: grid; place-items: center; margin-top: 6px; }
  .dd.is-sheet .dd-list { max-height: 70vh; }
  .dd.is-sheet .dd-opt { min-height: 56px; }
  .cal.is-sheet { padding: 8px 16px calc(16px + var(--safe-b)); }
  .cal.is-sheet .dd-head { padding-left: 4px; padding-right: 0; }
  .cal.is-sheet .cal-day { min-height: 44px; font-size: 16px; }
  .cal.is-sheet .cal-chip { height: 44px; border-radius: 22px; font-size: 14px; }
}
.sf-date-native {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0;
}
.sf-date-native::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sf-ico { position: absolute; right: 16px; top: 50%; margin-top: -9px; color: var(--ink-3); pointer-events: none; }
.sf-swap {
  position: absolute; right: 12px; top: 50%; margin-top: -20px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card);
  display: grid; place-items: center; color: var(--ink);
  transition: transform 300ms var(--ease), border-color 160ms var(--ease);
}
.sf-swap.is-turned { transform: rotate(180deg); }
.sf-swap:active { border-color: var(--ink); }
.sf-pax { padding-right: 12px; }
.sf-submit { margin-top: 12px; width: 100%; }

.stepper { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.stepper-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card);
  display: grid; place-items: center; color: var(--ink);
  transition: background-color 140ms var(--ease), transform 140ms var(--ease), opacity 140ms var(--ease);
}
.stepper-btn .i { width: 16px; height: 16px; }
.stepper-btn:active { transform: scale(0.94); background: var(--green-tint); }
.stepper-btn:disabled { opacity: 0.35; cursor: default; }
.stepper-input {
  width: 32px; border: 0; background: transparent; text-align: center; font-size: 17px; font-weight: 600; padding: 0;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper-input::-webkit-outer-spin-button, .stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-input.bump { animation: bump 220ms var(--ease); }
@keyframes bump { 40% { transform: translateY(-3px); opacity: 0.6; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: var(--r-sm); border: 0;
  font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:active { background: var(--accent-press); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-quiet { background: transparent; color: var(--ink-2); font-weight: 600; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn.is-loading { pointer-events: none; opacity: 0.75; }

/* ---------- Sections ---------- */

.section { padding: 32px 0; }
.section-tight { padding-top: 8px; }
.section-head { margin-bottom: 16px; }
.section-title { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.section-sub { margin-top: 4px; color: var(--ink-2); font-size: 15px; }

.card { background: var(--card); border-radius: var(--r); padding: 20px 16px; }
.card-title { font-size: 17px; font-weight: 600; margin-bottom: 16px; }

/* ---------- How it works ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step { background: var(--card); border-radius: var(--r); padding: 16px; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.step-n {
  grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--black); color: var(--accent);
  display: grid; place-items: center; font-weight: 600; font-size: 15px;
}
.step h3 { font-size: 16px; font-weight: 600; line-height: 22px; padding-top: 7px; }
.step p { color: var(--ink-2); font-size: 14px; margin-top: 2px; }

/* ---------- Contact ---------- */

.contact { background: var(--black); color: #fff; border-radius: var(--r-lg); padding: 24px 20px; position: relative; overflow: hidden; }
.contact .section-sub { color: rgba(255, 255, 255, 0.8); }
.contact .section-title { color: #fff; }
.contact-text, .contact-actions { position: relative; z-index: 1; }
.btn-light { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }
.contact-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.contact-actions .btn { width: 100%; }

/* ---------- Search results ---------- */

.summary { background: var(--black-2); border-radius: var(--r); }
.summary-bar { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; min-height: 64px; }
.summary-bar::-webkit-details-marker { display: none; }
.summary-route { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.summary-cities { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 16px; }
.summary-arrow { width: 16px; height: 16px; color: var(--accent); }
.summary-meta { font-size: 13px; color: rgba(255,255,255,0.82); }
.summary-edit { font-size: 14px; font-weight: 600; color: var(--ink); background: var(--accent); border-radius: var(--r-sm); padding: 8px 12px; }
.summary[open] .summary-edit { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4); }
.summary-form { padding: 0 8px 8px; animation: drop 260ms var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

.days { display: flex; gap: 8px; margin: 12px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar, .facts::-webkit-scrollbar { display: none; }
.day {
  flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 76px; height: 56px; padding: 0 10px; border-radius: var(--r-sm); text-decoration: none;
  background: rgba(255,255,255,0.12); color: #fff; transition: background-color 160ms var(--ease);
}
.day-name { font-size: 12px; font-weight: 500; opacity: 0.85; }
.day-date { font-size: 15px; font-weight: 600; }
.day.is-active { background: var(--accent); color: var(--ink); }
.day.is-active .day-name { opacity: 1; }

.results { padding: 20px 0 40px; }
.results-head { margin-bottom: 12px; }
.results-title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.results-sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.hint { display: flex; gap: 8px; align-items: flex-start; background: var(--green-tint); color: var(--green-ink); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.hint .i { margin-top: 1px; width: 16px; height: 16px; }
.hint-inline { margin: 16px 0 0; }

.trips { display: grid; gap: 8px; }
.trip { display: block; background: var(--card); border-radius: var(--r); padding: 16px; text-decoration: none; color: var(--ink); }
.trip-link { transition: box-shadow 160ms var(--ease), transform 120ms var(--ease); }
.trip-link:active { transform: scale(0.99); }
.trip-times { display: grid; grid-template-columns: auto 1fr auto; align-items: start; column-gap: 12px; }
.trip-end { display: flex; flex-direction: column; }
.trip-end-arr { text-align: right; align-items: flex-end; }
.trip-time { font-size: 24px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; display: inline-flex; align-items: baseline; gap: 3px; }
.trip-time small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.trip-time sup { font-size: 11px; font-weight: 600; color: var(--green-ink); align-self: flex-start; margin-top: -2px; }
.trip-city { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.trip-road { position: relative; height: 26px; display: flex; align-items: center; justify-content: center; }
.trip-road::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(to right, var(--line-2) 0 5px, transparent 5px 9px);
}
.trip-mover { position: absolute; inset: 0; pointer-events: none; }
.trip-mover i { position: absolute; right: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ink); }
.js [data-reveal] .trip-mover { transform: translateX(calc(-100% + 8px)); }
.js [data-reveal].is-in .trip-mover { transform: none; transition: transform 900ms var(--ease) 200ms; }
.js [data-reveal].is-in > :nth-child(2) .trip-mover { transition-delay: 260ms; }
.js [data-reveal].is-in > :nth-child(3) .trip-mover { transition-delay: 320ms; }
.js [data-reveal].is-in > :nth-child(4) .trip-mover { transition-delay: 380ms; }
.js [data-reveal].is-in > :nth-child(n+5) .trip-mover { transition-delay: 440ms; }
.trip-night { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--black); color: var(--accent); margin-left: 6px; align-self: center; }
.trip-night .i { width: 13px; height: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trip-dur { position: relative; background: var(--card); padding: 0 6px; font-size: 12px; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.trip-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.trip-price { display: flex; align-items: baseline; gap: 6px; }
.trip-price strong { font-size: 20px; font-weight: 600; }
.trip-price span { font-size: 13px; color: var(--ink-3); }

.js [data-reveal] > * { opacity: 0; transform: translateY(8px); }
.js [data-reveal].is-in > * { opacity: 1; transform: none; transition: opacity 360ms var(--ease), transform 360ms var(--ease); }
.js [data-reveal].is-in > :nth-child(2) { transition-delay: 50ms; }
.js [data-reveal].is-in > :nth-child(3) { transition-delay: 100ms; }
.js [data-reveal].is-in > :nth-child(4) { transition-delay: 150ms; }
.js [data-reveal].is-in > :nth-child(5) { transition-delay: 200ms; }
.js [data-reveal].is-in > :nth-child(n+6) { transition-delay: 250ms; }

.empty { background: var(--card); border-radius: var(--r); padding: 24px 16px; text-align: center; }
.empty h2 { font-size: 18px; font-weight: 600; }
.empty p { color: var(--ink-2); font-size: 14px; margin: 8px auto 16px; max-width: 30rem; }

.back-link { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--green-ink); font-weight: 600; font-size: 14px; text-decoration: none; padding: 8px 0; }

/* ---------- Booking ---------- */

.hero-book { padding-bottom: 56px; }
.book { padding: 0 0 40px; }
.hero-book + .book { margin-top: -40px; }
.book-grid { display: grid; gap: 12px; }
.book-date { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--green-ink); margin-bottom: 12px; }
.book-date .i { width: 16px; height: 16px; }
.book-trip .trip { padding: 0; }
.book-form { padding-bottom: 8px; }

.f-row { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.f-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.f-opt { font-weight: 400; color: var(--ink-3); }
.f-input {
  width: 100%; height: 52px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--card);
  padding: 0 14px; font-size: 16px; font-weight: 500;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.f-input::placeholder { color: #9aa0aa; font-weight: 400; }
.f-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(179, 201, 143, 0.45); }
.f-input[aria-invalid="true"] { border-color: var(--err); }
.f-text { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.f-error { color: var(--err); font-size: 13px; font-weight: 500; margin-top: 6px; }
.f-row-inline { display: flex; align-items: center; justify-content: space-between; }
.f-row-inline .f-label { margin: 0; font-size: 15px; color: var(--ink); }
.stepper-light .stepper-btn { width: 40px; height: 40px; }
.stepper-light .stepper-input { width: 40px; font-size: 18px; }
.f-note { color: var(--ink-3); font-size: 13px; margin: 12px 0 8px; }
.alert { background: #fde8ec; color: #8f1730; border-radius: var(--r-sm); padding: 12px; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 20px;
  border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.chip input:checked + span { background: var(--green-tint); border-color: var(--green-ink); color: var(--green-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--green-ink); outline-offset: 2px; }

.book-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 8px -16px 0; padding: 12px 16px calc(12px + var(--safe-b));
  background: var(--card); border-top: 1px solid var(--line);
}
.book-total { display: flex; flex-direction: column; line-height: 1.2; }
.book-total-label { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.book-total strong { font-size: 22px; font-weight: 600; }
.book-submit { flex: 1; max-width: 240px; }

/* ---------- Done ---------- */

.hero-done { text-align: center; padding: 24px 0 64px; }
.hero-done .hero-sub { max-width: 28rem; margin-left: auto; margin-right: auto; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; margin: 0 auto 16px; }
.done-mark .i { width: 30px; height: 30px; stroke-width: 2.5; }
.hero-done + .book { margin-top: -40px; }
.done-wrap { max-width: 720px; }
.done-note { color: var(--ink-2); font-size: 14px; text-align: center; margin: 16px 0; }
.done-actions { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Route page ---------- */

.sched-grid { display: grid; gap: 12px; }
.sched-table { width: 100%; border-collapse: collapse; }
.sched-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.sched-table td { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.sched-table tr:last-child td { border-bottom: 0; }
.sched-table td:last-child, .sched-table th:last-child { text-align: right; }
.sched-table a { color: var(--green-ink); text-decoration: none; }
.next { font-size: 11px; color: var(--green-ink); font-weight: 600; margin-left: 2px; }
.sched-note { color: var(--ink-3); font-size: 13px; margin-top: 12px; }
.others { display: grid; gap: 8px; margin-top: 16px; }
.other { display: flex; justify-content: space-between; align-items: center; background: var(--card); border-radius: var(--r); padding: 16px; text-decoration: none; font-weight: 600; min-height: 56px; }
.other strong { font-weight: 600; }

/* ---------- Footer ---------- */

.foot { background: var(--black-deep); color: rgba(255, 255, 255, 0.72); margin-top: 32px; padding: 0 0 calc(24px + var(--safe-b)); font-size: 14px; }
.foot-road { position: relative; height: 28px; background: var(--black-2); overflow: hidden; margin-bottom: 32px; }
.foot-road::before, .foot-road::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, 0.1); }
.foot-road::before { top: 4px; }
.foot-road::after { bottom: 4px; }
.foot-lane {
  position: absolute; left: 0; top: 50%; width: calc(100% + 48px); height: 3px; margin-top: -1.5px;
  background: repeating-linear-gradient(to right, var(--accent) 0 24px, transparent 24px 48px); opacity: 0.8;
}
.foot-lane.is-moving { animation: lane 1.6s linear infinite; }
@keyframes lane { to { transform: translateX(-48px); } }
.foot-grid { display: grid; gap: 28px; }
.foot-brand .logo-word { color: #fff; }
.foot-brand p { color: rgba(255, 255, 255, 0.66); margin-top: 8px; max-width: 22rem; }
.foot-col { display: flex; flex-direction: column; gap: 2px; }
.foot-col h2 { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.foot-col a { text-decoration: none; padding: 6px 0; color: rgba(255, 255, 255, 0.88); transition: color 160ms var(--ease); }
.foot-base { color: rgba(255, 255, 255, 0.5); font-size: 13px; margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* ---------- Hero video ---------- */

.hero { position: relative; z-index: 2; }
.hero-media { overflow: hidden; }
.hero-book + .book, .hero-done + .book { position: relative; z-index: 3; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--black) center / cover no-repeat; }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 900ms var(--ease); }
.hero-video.is-playing { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(14, 16, 15, 0.72) 0%, rgba(14, 16, 15, 0.5) 30%, rgba(14, 16, 15, 0.62) 60%, rgba(14, 16, 15, 0.94) 100%);
}
.page-home .top, .page-route .top { position: absolute; left: 0; right: 0; top: 0; z-index: 20; background: transparent; }
.page-home .hero, .page-route .hero { padding-top: 80px; }

/* ---------- Hero road: one direct line, city -> Chisinau ---------- */

.road { margin-top: 20px; padding: 0 22px; overflow: hidden; }
.road-track { position: relative; height: 66px; }
.road-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 2px;
  background: repeating-linear-gradient(to right, rgba(241, 241, 239, 0.45) 0 8px, transparent 8px 14px);
}
.road-end { position: absolute; top: 0; width: 0; height: 100%; }
.road-start { left: 0; }
.road-finish { right: 0; }
.road-dot, .road-ping { position: absolute; left: 0; top: 35px; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; }
.road-dot { background: var(--black); border: 2px solid rgba(241, 241, 239, 0.8); }
.road-finish .road-dot { background: var(--accent); border-color: var(--black); box-shadow: 0 0 0 2px var(--accent); }
.road-ping { border: 2px solid var(--accent); opacity: 0; }
.road-name { position: absolute; top: 46px; white-space: nowrap; font-size: 13px; font-weight: 700; letter-spacing: -0.01em; color: var(--on-dark); transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
.road-start .road-name { left: -8px; }
.road-finish .road-name { right: -8px; }
.road-meta { position: absolute; left: 50%; top: 46px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--on-dark-2); transition: opacity 240ms var(--ease); }
.road-name.is-swap { opacity: 0; transform: translateY(4px); }
.road-meta.is-swap { opacity: 0; }
.road-mover { position: absolute; inset: 0; pointer-events: none; }
.road-bus { position: absolute; left: 0; top: 11px; width: 46px; height: 26px; margin-left: -23px; z-index: 2; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }

/* ---------- Route cards: every city has its own line to Chisinau ---------- */

.rc-grid { display: grid; gap: 8px; }
.rc {
  display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px; border-radius: var(--r);
  background: var(--card); color: var(--ink); text-decoration: none;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.rc:active { transform: scale(0.99); }
.rc-top, .rc-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rc-city { font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.rc-price { font-size: 19px; }
.rc-line { display: flex; align-items: center; }
.rc-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); }
.rc-dot-end { background: var(--accent); }
.rc-track { flex: 1; position: relative; height: 24px; margin: 0 6px; container-type: inline-size; }
.rc-track::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: repeating-linear-gradient(to right, var(--line-2) 0 6px, transparent 6px 11px); }
.rc-bus {
  position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--black); color: var(--accent); display: grid; place-items: center;
}
.rc-bus .i { width: 13px; height: 13px; }
.js .rc-grid.is-in .rc-bus { transform: translateX(calc(100cqw - 24px)); transition: transform 1300ms cubic-bezier(0.45, 0, 0.25, 1) 350ms; }
.js .rc-grid.is-in .rc:nth-child(2) .rc-bus { transition-delay: 450ms; }
.js .rc-grid.is-in .rc:nth-child(3) .rc-bus { transition-delay: 550ms; }
.js .rc-grid.is-in .rc:nth-child(4) .rc-bus { transition-delay: 650ms; }
.js .rc-grid.is-in .rc:nth-child(5) .rc-bus { transition-delay: 750ms; }
.js .rc-grid.is-in .rc:nth-child(n+6) .rc-bus { transition-delay: 850ms; }
.rc-to { font-size: 14px; font-weight: 700; }
.rc-meta { font-size: 13px; color: var(--ink-3); }
.rc-to { text-align: right; }

/* ---------- Contact card: the same road, darkened ---------- */

.contact { background: var(--black) url("../media/hero-1280.jpg") center 40% / cover no-repeat; }
.contact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 16, 15, 0.94) 0%, rgba(14, 16, 15, 0.8) 55%, rgba(14, 16, 15, 0.55) 100%); }

/* ---------- SEO text ---------- */

.seo { background: var(--card); border-radius: var(--r); padding: 24px 16px 8px; }
.seo-body { position: relative; overflow: hidden; transition: max-height 500ms var(--ease); }
.seo-body.is-clamped::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--card)); pointer-events: none;
  transition: opacity 300ms var(--ease);
}
.seo-body.is-open::after { opacity: 0; }
.seo-title { font-size: 20px; line-height: 1.3; font-weight: 600; margin-bottom: 12px; text-wrap: balance; }
.seo h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; }
.seo p { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.seo p + p { margin-top: 10px; }
.seo a { color: var(--green-ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(59, 87, 22, 0.35); text-underline-offset: 3px; }
.seo-prices { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.seo-prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.seo-prices span { color: var(--ink-2); font-size: 14px; text-align: right; white-space: nowrap; }
.seo-more {
  display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; padding: 12px 0; border: 0; background: none;
  color: var(--green-ink); font-weight: 600; font-size: 15px;
}
.seo-chev { transition: transform 300ms var(--ease); }
.seo-more[aria-expanded="true"] .seo-chev { transform: rotate(180deg); }

/* ---------- Search button: a bus drives through while the results load ---------- */

.sf-submit { position: relative; overflow: hidden; }
.sf-submit-text { transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.sf-submit-bus { position: absolute; left: 0; top: 50%; margin-top: -11px; opacity: 0; }
.sf-submit-bus .i { width: 22px; height: 22px; }
.sf-submit.is-loading .sf-submit-text { opacity: 0; transform: translateY(-6px); }
.sf-submit.is-loading .sf-submit-bus { opacity: 1; animation: drive 900ms cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes drive { from { transform: translateX(-30px); } to { transform: translateX(calc(100vw)); } }
.sf .sf-submit.is-loading { opacity: 1; }

/* ---------- Done: check draws itself, the ticket prints out of a slot ---------- */

.done-check { stroke-dasharray: 26; stroke-dashoffset: 26; animation: draw 500ms var(--ease) 250ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-mark { animation: pop 420ms var(--ease) both; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-24px); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* ---------- Load motion ---------- */

.rise { animation: rise 480ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
/* ---------- Typography: Manrope throughout. Tight, heavy headlines; tabular figures for times and prices ---------- */

.logo-word { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.logo-word b { font-weight: inherit; color: var(--accent); }
.logo-tag { font-size: 11px; font-weight: 500; color: var(--on-dark-3); margin-top: 5px; letter-spacing: 0.02em; }
.hero-title { font-family: var(--f-display); font-weight: 700; font-size: 34px; line-height: 1.04; letter-spacing: -0.045em; color: var(--on-dark); }
.hero-title span { color: var(--on-dark-3); }
.hero-sub { color: var(--on-dark-2); font-size: 15px; }
.hero-sub b { font-weight: 700; color: var(--accent); }
.page-title { font-family: var(--f-display); font-weight: 700; font-size: 28px; letter-spacing: -0.04em; }
.section-title, .seo-title, .results-title { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.04em; }
.section-title { font-size: 26px; line-height: 1.1; }
.seo-title { font-size: 22px; line-height: 1.2; }
.results-title { font-size: 22px; }
.facts strong, .line-price, .trip-price strong, .book-total strong, .other strong, .rc-price { font-weight: 700; letter-spacing: -0.03em; }
.trip-price strong { font-size: 20px; }
.trip-time { font-weight: 700; font-size: 27px; letter-spacing: -0.04em; }
.sf-label, .f-label, .sched-table th { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.trip-dur { font-size: 12px; }
.btn { font-weight: 700; letter-spacing: -0.01em; }
.card-title, .step h3, .line-city, .summary-cities { font-weight: 700; letter-spacing: -0.02em; }


/* ---------- Hover only where hover exists ---------- */

@media (hover: hover) {
  .top-phone:hover { background: var(--black-3); }
  .btn-primary:hover { background: var(--accent-press); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .btn-quiet:hover { color: var(--ink); }
  .sf-swap:hover { border-color: var(--ink); }
  .stepper-btn:hover:not(:disabled) { background: var(--green-tint); }
  a.line-link:hover { background: var(--raised); }
  a.line-link:hover .line-chev { color: var(--green-ink); }
  .trip-link:hover { box-shadow: var(--shadow); }
  .day:hover:not(.is-active) { background: rgba(255,255,255,0.22); }
  .other:hover, .back-link:hover { color: var(--green-ink); }
  .foot-col a:hover { color: #fff; }
  .btn-light:hover { background: rgba(255, 255, 255, 0.22); }
  .seo a:hover { text-decoration-color: currentColor; }
  .top-nav a:hover { color: #fff; }
}

/* ---------- Small phones ---------- */

@media (max-width: 359px) {
  .hero-title { font-size: 23px; }
  .trip-time { font-size: 21px; }
  .sf-select, .sf-value { font-size: 16px; }
}

/* ---------- Tablet ---------- */

@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; row-gap: 12px; align-content: start; }
  .step-n { grid-row: auto; }
  .step h3 { padding-top: 0; }
  .contact-actions { flex-direction: row; flex-wrap: wrap; }
  .contact-actions .btn { width: auto; }
  .done-actions { flex-direction: row; justify-content: center; }
  .sf-date { padding-right: 44px; }
  .sf-date .sf-ico { display: block; }
  .sched-grid, .others { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  body { font-size: 16px; }
  .top-row { height: 72px; gap: 32px; }
  .logo-word { font-size: 21px; }
  .top-nav { display: flex; gap: 28px; margin-right: auto; }
  .logo { margin-right: 0; }
  .top-nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: rgba(255,255,255,0.86); transition: color 160ms var(--ease); }
  .top-phone { width: auto; height: 44px; padding: 0 18px; border-radius: var(--r-sm); }
  .top-phone span { display: inline; }

  .hero { padding: 40px 0 48px; }
  .hero-title { font-size: 60px; line-height: 1; letter-spacing: -0.05em; }
  .hero-title span { display: inline; }
  .hero-sub { font-size: 17px; margin-top: 12px; }
  .hero-form { margin-top: 32px; }
  .hero-compact { padding: 20px 0 24px; }
  .page-title { font-size: 38px; }

  .sf { display: grid; grid-template-columns: 1fr 0.9fr auto; gap: 8px; align-items: stretch; }
  .sf-places { flex-direction: row; }
  .sf-places > .sf-field { flex: 1; min-width: 0; }
  .sf-from { border-bottom: 0; border-right: 1px solid var(--line); padding-right: 32px; }
  .sf-to { padding-left: 32px; padding-right: 16px; }
  .sf-from { border-radius: var(--r) 0 0 var(--r); }
  .sf-to { border-radius: 0 var(--r) var(--r) 0; }
  .sf-chev { display: block; }
  .sf-from .sf-chev { right: 36px; }
  .sf-to .sf-chev { right: 16px; }
  .sf-swap { left: 50%; right: auto; margin-left: -20px; }
  .sf-when { margin-top: 0; }
  .sf-submit { margin-top: 0; height: auto; min-height: 64px; padding: 0 32px; }
  .sf-field { min-height: 68px; }

  .section { padding: 56px 0; }
  .section-tight { padding-top: 8px; }
  .section-head { margin-bottom: 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
  .section-title { font-size: 40px; }

  .contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; }
  .contact-actions { margin-top: 0; }
  .seo { padding: 32px 40px 12px; }
  .seo-body { max-width: 760px; }
  .seo-title { font-size: 28px; }
  .seo h3 { font-size: 18px; margin-top: 24px; }
  .seo p { font-size: 16px; }
  .foot-road { height: 32px; margin-bottom: 40px; }

  .results { padding-top: 32px; }
  .results-title { font-size: 30px; }
  .trips { gap: 12px; }
  .trip-link { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 40px; padding: 20px 24px; }
  .trip-link .trip-foot { margin: 0; padding: 0 0 0 32px; border-top: 0; border-left: 1px solid var(--line); gap: 24px; align-self: stretch; }
  .trip-link .trip-price { flex-direction: column; gap: 0; align-items: flex-end; }
  .trip-time { font-size: 30px; }
  .trip-times { column-gap: 24px; }

  .book-grid { grid-template-columns: 1fr 380px; align-items: start; gap: 16px; }
  .book-trip { order: 2; position: sticky; top: 16px; }
  .book-form { order: 1; padding: 28px; }
  .card { padding: 24px; }
  .book-bar { position: static; margin: 8px 0 0; padding: 20px 0 0; }
  .hero-book { padding-bottom: 64px; }
  .days { margin-left: 0; margin-right: 0; padding: 0; }
  .facts li { padding: 12px 18px; }
  .facts strong { font-size: 18px; }
}

/* Desktop: search page shows the form right away instead of the summary bar */
@media (min-width: 900px) {
  .js .page-search .summary { background: transparent; }
  .js .page-search .summary-bar { display: none; }
  .js .page-search .summary-form { padding: 0; animation: none; }
  .page-search .days { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Video hero, route cards: wider screens ---------- */
@media (min-width: 600px) {
  .rc-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (min-width: 900px) {
  .page-home .hero, .page-route .hero { padding-top: 132px; padding-bottom: 56px; }
  .page-home .hero { min-height: 700px; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(14, 16, 15, 0.86) 0%, rgba(14, 16, 15, 0.55) 45%, rgba(14, 16, 15, 0.2) 100%),
      linear-gradient(to bottom, rgba(14, 16, 15, 0.55) 0%, rgba(14, 16, 15, 0) 25%, rgba(14, 16, 15, 0) 60%, rgba(14, 16, 15, 0.85) 100%);
  }
  .rc-grid { grid-template-columns: repeat(3, 1fr); }
  .rc { padding: 22px 22px 18px; gap: 18px; }
  .rc-city, .rc-price { font-size: 22px; }
  .road { margin-top: 28px; padding: 0 30px; }
  .road-name { font-size: 14px; }
  .road-meta { font-size: 13px; }
}
@media (hover: hover) {
  .rc:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
}

/* ---------- Social links ---------- */
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--on-dark); background: rgba(241, 241, 239, 0.08); box-shadow: inset 0 0 0 1px rgba(241, 241, 239, 0.12);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.social-link .i { width: 18px; height: 18px; }
.social-top { margin-left: auto; }
.social-top li:nth-child(n+4) { display: none; }
.social-foot { margin-top: 18px; flex-wrap: wrap; }
.social-foot .social-link { width: 44px; height: 44px; }
.top-phone { flex: none; }
@media (min-width: 900px) {
  .social-top { margin-left: 0; }
  .social-top li:nth-child(n+4) { display: list-item; }
}
@media (hover: hover) {
  .social-link:hover { background: var(--accent); color: var(--ink); }
}

/* ---------- Smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Preloader: the dash in the logo becomes the road, a bus drives it ---------- */
.pl {
  --road: 150px;
  position: fixed; inset: 0; z-index: 100; background: var(--black); color: var(--on-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: transform 850ms cubic-bezier(0.76, 0, 0.24, 1);
  animation: plFailsafe 0s linear 4.5s forwards;
}
.pl-stage { position: relative; width: 1px; height: 60px; }
.pl-word {
  position: absolute; top: 50%; font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1;
  letter-spacing: -0.02em; white-space: nowrap; transform: translateY(-50%);
  animation: plIn 500ms var(--ease) both;
}
.pl-left { right: 8px; animation-name: plIn, plLeft; animation-duration: 500ms, 700ms; animation-delay: 0ms, 450ms; animation-fill-mode: both, both; }
.pl-right { left: 8px; animation-name: plIn, plRight; animation-duration: 500ms, 700ms; animation-delay: 0ms, 450ms; animation-fill-mode: both, both; }
.pl-road {
  position: absolute; top: 50%; left: calc(var(--road) / -2); width: var(--road); height: 3px; margin-top: 2px; border-radius: 2px;
  background: repeating-linear-gradient(to right, var(--accent) 0 10px, transparent 10px 17px);
  transform: scaleX(0.08); animation: plRoad 700ms var(--ease) 450ms both;
}
.pl-mover { position: absolute; top: 50%; left: calc(var(--road) / -2); width: var(--road); height: 0; animation: plDrive 1100ms cubic-bezier(0.45, 0, 0.25, 1) 900ms both; }
.pl-bus { position: absolute; left: 0; bottom: 6px; width: 40px; height: 23px; margin-left: -20px; opacity: 0; animation: plBus 1100ms linear 900ms both; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.pl-caption { margin: 0; padding: 0 24px; font-size: 12px; font-weight: 600; color: var(--on-dark-3); text-align: center; letter-spacing: 0.02em; animation: plIn 600ms var(--ease) 700ms both; }
.pl.is-done { transform: translateY(-100%); }
.pl.is-done .pl-stage, .pl.is-done .pl-caption { opacity: 0; transition: opacity 300ms var(--ease); }
html.pl-lock { overflow: hidden; }
@keyframes plIn { from { opacity: 0; transform: translateY(calc(-50% + 14px)); } to { opacity: 1; transform: translateY(-50%); } }
.pl-caption { animation-name: plCap; }
@keyframes plCap { from { opacity: 0; transform: translateY(8px); } }
@keyframes plLeft { from { transform: translateY(-50%); } to { transform: translate(calc(var(--road) / -2 + 8px), -50%); } }
@keyframes plRight { from { transform: translateY(-50%); } to { transform: translate(calc(var(--road) / 2 - 8px), -50%); } }
@keyframes plRoad { to { transform: scaleX(1); } }
@keyframes plDrive { from { transform: translateX(0); } to { transform: translateX(var(--road)); } }
@keyframes plBus { 0% { opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes plFailsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
@media (min-width: 900px) {
  .pl { --road: 240px; }
  .pl-word { font-size: 64px; }
  .pl-caption { font-size: 13px; }
}

/* Home hero entrance after the preloader */
.js .page-home .hero > .wrap > * { opacity: 0; transform: translateY(22px); }
.is-ready .page-home .hero > .wrap > * { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
.is-ready .page-home .hero > .wrap > :nth-child(2) { transition-delay: 90ms; }
.is-ready .page-home .hero > .wrap > :nth-child(3) { transition-delay: 180ms; }
.is-ready .page-home .hero > .wrap > :nth-child(4) { transition-delay: 270ms; }
.page-home .hero-form.rise { animation: none; }

/* ---------- Done page: ticket with stub, barcode, perforation and notches ---------- */
.hero.hero-done { padding-bottom: 72px; }
.hero-done + .book { margin-top: -44px; }
.done-wrap { max-width: 720px; }
.tk-wrap { filter: drop-shadow(0 1px 2px rgba(10, 12, 10, 0.06)) drop-shadow(0 12px 28px rgba(10, 12, 10, 0.09)); }
.tk {
  --cut: 92px; --r-notch: 14px;
  position: relative; display: grid; grid-template-rows: var(--cut) auto;
  border-radius: 22px; color: var(--ink);
  background-color: var(--card);
  -webkit-mask:
    radial-gradient(circle at 0 var(--cut), transparent var(--r-notch), #000 calc(var(--r-notch) + 0.5px)),
    radial-gradient(circle at 100% var(--cut), transparent var(--r-notch), #000 calc(var(--r-notch) + 0.5px));
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle at 0 var(--cut), transparent var(--r-notch), #000 calc(var(--r-notch) + 0.5px)),
    radial-gradient(circle at 100% var(--cut), transparent var(--r-notch), #000 calc(var(--r-notch) + 0.5px));
  mask-composite: intersect;
}
.tk-stub {
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  border-bottom: 2px dashed var(--line-2); margin: 0 18px; padding-left: 6px; padding-right: 6px;
}
.tk-barcode { width: 128px; height: 40px; flex: none; }
.tk-code { font-weight: 800; font-size: 20px; letter-spacing: 0.04em; color: var(--ink); margin-left: auto; font-variant-numeric: tabular-nums; }
.tk-main { padding: 22px 24px 24px; }
.tk-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tk-label { font-size: 12px; font-weight: 600; color: var(--green-ink); letter-spacing: 0.02em; }
.tk-status { font-size: 12px; font-weight: 600; color: var(--green-ink); padding: 4px 10px; border-radius: 999px; background: var(--green-tint); }
.tk-route { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 14px 0 20px; font-weight: 800; font-size: 30px; line-height: 1.05; letter-spacing: -0.045em; }
.tk-arrow { color: var(--green-ink); font-weight: 600; }
.tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 0; }
.tk-grid dt { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.tk-grid dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tk-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.tk-total span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.tk-total strong { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.done-actions .btn-primary { order: -1; }

@media (min-width: 720px) {
  .tk {
    --cut: 150px; grid-template-rows: none; grid-template-columns: var(--cut) 1fr;
    -webkit-mask:
      radial-gradient(circle at var(--cut) 0, transparent var(--r-notch), #000 calc(var(--r-notch) + 0.5px)),
      radial-gradient(circle at var(--cut) 100%, transparent var(--r-notch), #000 calc(var(--r-notch) + 0.5px));
    -webkit-mask-composite: source-in;
    mask:
      radial-gradient(circle at var(--cut) 0, transparent var(--r-notch), #000 calc(var(--r-notch) + 0.5px)),
      radial-gradient(circle at var(--cut) 100%, transparent var(--r-notch), #000 calc(var(--r-notch) + 0.5px));
    mask-composite: intersect;
  }
  .tk-stub {
    flex-direction: row; justify-content: center; gap: 14px; margin: 18px 0; padding: 0;
    border-bottom: 0; border-right: 2px dashed var(--line-2);
  }
  .tk-barcode { width: 36px; height: 100%; max-height: 220px; }
  .tk-code { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0; font-size: 18px; }
  .tk-main { padding: 28px 32px 28px; }
  .tk-route { font-size: 40px; margin: 16px 0 24px; }
  .tk-grid { grid-template-columns: repeat(4, auto); justify-content: space-between; }
}
.tk-bc { display: flex; color: var(--ink); }
.tk-bc-v { display: none; }
.tk-bc-h .tk-barcode { width: 128px; height: 40px; }
@media (min-width: 720px) {
  .tk-bc-h { display: none; }
  .tk-bc-v { display: flex; align-self: stretch; }
  .tk-bc-v .tk-barcode { width: 34px; height: 100%; }
}
.tk-status-confirmed { background: var(--black); color: var(--accent); }
.tk-status-done { background: var(--raised); color: var(--ink-2); }
.tk-status-cancelled { background: #fbe9ea; color: #9b2230; }
