@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
/* Material Icons — self-hosted ниже через @font-face (без Google CDN-зависимости) */

:root {
  --navy-900: #072044;
  --navy-800: #0E2D55;
  --navy-700: #1F3A66;
  --navy-600: #1F3A66;
  --navy-500: #3B5A8A;
  --navy-400: #5A7AAF;
  --navy-300: #8AA4C9;
  --navy-200: #B3C7E0;
  --navy-100: #D8E3F0;
  --navy-50:  #EDF4FF;

  --green-600: #4A9A64;
  --green-500: #5BA875;
  --green-400: #7DBF93;
  --green-300: #A0D4B0;
  --green-100: #D4EEDB;
  --green-50:  #EDF7F0;

  --orange-600: #E07E0A;
  --orange-500: #FF9828;
  --orange-400: #FFB05E;
  --orange-300: #FFC88A;
  --orange-100: #FFE6CC;

  --cream: #FFF2DF;

  --success: #0ACF83;
  --warning: #FF9828;
  --error:   #E04848;
  --info:    #5BA875;

  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-blue: #EDF4FF;
  --surface-cream: #FFF2DF;
  --border: #DDE6F2;
  --text-primary: #072044;
  --text-secondary: #61708A;
  --text-muted: #9CA3AF;

  --radius-sm: 8px;
  --radius: 22px;
  --radius-lg: 24px;
  --radius-xl: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-xl: 0 16px 40px rgba(0,0,0,0.12);

  /* Brand colors belbilet (mobile-bus): sage-green + orange. White-label overrides at runtime via JS. */
  --color-primary: #5BA875;
  --color-secondary: #FF9828;

  /* ─────────────────────────────────────────────────────────────
     ЕДИНЫЙ ИСТОЧНИК СТИЛЕЙ (design tokens).
     Используй ЭТИ переменные вместо хардкода px/цвета/веса.
     Типографика — модульная шкала, базовый текст = --fs-md (13px).
     ───────────────────────────────────────────────────────────── */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-3xl: 22px;  /* секционные заголовки */
  --fs-2xl: 18px;  /* время рейса, цена */
  --fs-xl:  16px;
  --fs-lg:  14px;
  --fs-md:  13px;  /* базовый текст */
  --fs-sm:  12px;
  --fs-xs:  11px;  /* подписи */
  --fs-2xs: 10px;  /* лейблы, счётчики */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;

  /* отступы (шаг 4px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Self-hosted Material Icons — без внешней зависимости от Google (надёжно для прода).
   Иначе при недогрузке Google-CSS видны имена-лигатуры: swap_horiz, search… */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/fonts/MaterialIcons.woff2') format('woff2'),
       url('/fonts/MaterialIcons.ttf') format('truetype');
}
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── HEADER ──────────────────────────────────────────────── */
.header {
  width: 100%;
  height: 72px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #C6C8C8;
}

.header_inner {
  max-width: 1200px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-brand img {
  height: 32px;
  width: auto;
}

.header-navbar ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.header-navbar ul li a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-navbar ul li a:hover,
.header-navbar ul li a.active {
  color: var(--color-primary);
  background: var(--blue-50);
}

.header-widgets {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── HAMBURGER ───────────────────────────────────────────── */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.hamburger-btn:hover {
  background: var(--navy-50);
}

.hamburger-btn .material-icons {
  font-size: 26px;
}

/* ─── MOBILE MENU ─────────────────────────────────────────── */
.mobile-menu-overlay {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  backdrop-filter: blur(2px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 88vw;
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
  animation: slideIn 0.25s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

.mobile-menu-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--blue-50);
  border-bottom: 1px solid var(--border);
}

.mobile-menu-nav {
  flex: 1;
  padding: 12px 8px;
  overflow-y: auto;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  min-height: 48px;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.mobile-menu-link:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

.mobile-menu-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.mobile-menu-logout,
.mobile-menu-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  min-height: 48px;
  transition: all 0.2s;
}

.mobile-menu-logout {
  background: #FEF2F2;
  color: #DC2626;
}

.mobile-menu-logout:hover {
  background: #FEE2E2;
}

.mobile-menu-login {
  background: var(--color-primary);
  color: #fff;
}

.mobile-menu-login:hover {
  background: var(--color-primary);
  filter: brightness(1.1);
}

/* ─── HERO BANNER ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 440px;
  background: linear-gradient(135deg, #1B2A4A 0%, #2D4A7A 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/hero-bg.jpg') center / cover no-repeat;
  opacity: 0.35;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,42,74,0.85) 0%, rgba(27,42,74,0.6) 100%);
}

.hero-orb-1,
.hero-orb-2 {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-title span {
  color: #60a5fa;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 480px;
}

/* ─── SEARCH FORM (new layout) ────────────────────────────── */
.search {
  width: 100%;
}

.search-content {
  width: 100%;
}

/* Top labels row: [pin A] Откуда  [pin B] Куда   Сегодня Завтра */
.sf-labels-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.sf-label-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sf-pin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.sf-pin--a { background: #EF4444; }
.sf-pin--b { background: #5BA875; }

.sf-label-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Hero override: white labels */
.atlas-hero .sf-label-text { color: rgba(255,255,255,0.9); }
.atlas-hero .sf-quick-btn { color: rgba(255,255,255,0.8); }
.atlas-hero .sf-quick-btn:hover { color: #fff; }

.sf-quick-dates {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.sf-quick-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary, #6b7280);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
  padding: 0;
  transition: color 0.15s;
}

.sf-quick-btn:hover {
  color: var(--text-primary, #1f2937);
}

/* Search card — точные значения прототипа belbilet (плавающая rounded-карточка) */
.sf-bar {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px;
  box-shadow: 0 18px 50px rgba(7,32,68,0.14);
}

/* Контейнер Откуда+Куда — чтобы swap встал ровно по центру стыка */
.sf-locwrap {
  flex: 2;
  position: relative;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.sf-field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  border: 1px solid #DDE6F2;
  border-radius: 14px;
  padding: 5px 14px;
  transition: border-color 0.15s;
}

.sf-field:hover { border-color: #5BA875; }

.sf-label {
  font-size: 8px;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sf-field--date {
  flex: 0 0 160px;
}

.sf-field input[type=text],
.sf-field input[type=date] {
  border: none;
  border-radius: 0;
  height: auto;
  line-height: 1.15;
  font-size: 13px;
  font-weight: 700;
  color: #072044;
  padding: 0;
  background: transparent;
  width: 100%;
  box-shadow: none;
}

.sf-field input[type=text]:focus,
.sf-field input[type=date]:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.sf-field input::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

/* Иконка внутри поля (как в прототипе: 📍 Откуда / 📍 Куда / 📅 Когда) */
.sf-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sf-input-row input { flex: 1; min-width: 0; }
.sf-input-icon {
  font-size: 14px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.sf-field--date input {
  padding-left: 0;
}

/* Passengers field — лейбл сверху + горизонтальный ряд (как остальные поля) */
.sf-field--pax {
  flex: 0 0 172px;
}
.sf-pax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sf-pax-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border, #DDE6F2);
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.15s;
  flex-shrink: 0;
}

.sf-pax-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.sf-pax-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sf-pax-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  min-width: 0;
  text-align: center;
  flex: 1;
}

/* Swap button — абсолютно по центру стыка Откуда/Куда */
.sf-swap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(7,32,68,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.15s;
}

.sf-swap:hover { background: #4F9468; }

.sf-swap .material-icons {
  font-size: 16px;
  color: #fff;
}

/* «Сегодня/Завтра» над формой — в брендовой главной не нужны */
.sf-labels-row { display: none; }

/* Submit button */
.sf-submit {
  flex-shrink: 0;
  padding: 0 26px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.sf-submit:hover {
  background: #4F9468;
}

/* Keep old input styles for non-search forms (login, profile, etc.) */
input[type=text],
input[type=date],
input[type=password],
input[type=tel] {
  width: 100%;
  border-radius: var(--radius, 8px);
  font-size: 14px;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border, #e5e7eb);
  background: var(--surface, #fff);
  color: var(--text-primary, #1f2937);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type=text]:focus,
input[type=date]:focus,
input[type=password]:focus,
input[type=tel]:focus {
  outline: none;
  border-color: var(--green-500, #5BA875);
  box-shadow: 0 0 0 3px rgba(91,168,117,0.1);
}

input[type=text]::placeholder,
input[type=date]::placeholder {
  color: var(--text-muted, #9ca3af);
}

input[type=text]:disabled,
input[type=date]:disabled {
  background: var(--navy-50, #f0f3f9);
  color: var(--text-muted, #9ca3af);
  cursor: not-allowed;
}

/* ─── DROPDOWN ────────────────────────────────────────────── */
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
}

.dropdown-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.dropdown-item:last-child  { border-radius: 0 0 var(--radius) var(--radius); }

.dropdown-item:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

/* ─── SECTION FEATURES ────────────────────────────────────── */
.features-section {
  padding: 64px 0;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.feature-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── HOW IT WORKS ────────────────────────────────────────── */
.how-section {
  padding: 64px 0;
  background: var(--navy-600);
  overflow: hidden;
  position: relative;
}

.how-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  position: relative;
  z-index: 1;
}

.how-step {
  text-align: center;
  color: #fff;
}

.how-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 12px;
}

.how-step h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.how-step p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* ─── POPULAR ROUTES ──────────────────────────────────────── */
.routes-section {
  padding: 64px 0;
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.route-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.route-card:hover {
  border-color: var(--blue-400);
  box-shadow: 0 2px 12px rgba(37,99,235,0.1);
  transform: translateY(-1px);
}

.route-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-600);
}

.route-card-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.route-card-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ─── STATS SECTION ───────────────────────────────────────── */
.stats-section {
  padding: 48px 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-600);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── CTA SECTION ─────────────────────────────────────────── */
.cta-section {
  padding: 64px 0;
  background: var(--blue-600);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.cta-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
footer {
  background: #0B1C3E;
  color: rgba(255,255,255,0.75);
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 3px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--blue-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--blue-400);
}

/* ─── PAGE LAYOUT ─────────────────────────────────────────── */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrapper main {
  flex: 1;
}

.section-module {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── CARD COMPONENTS ─────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ─── BADGES ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.badge-active    { background: #D1FAE5; color: #065F46; }
.badge-cancelled { background: #FEE2E2; color: #991B1B; }
.badge-completed { background: #DBEAFE; color: #1E40AF; }
.badge-pending   { background: #FEF3C7; color: #92400E; }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--navy-600);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--navy-500);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
  color: var(--blue-600);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--navy-50);
  color: var(--text-primary);
}

.btn-danger {
  background: #FEE2E2;
  color: #DC2626;
}

.btn-danger:hover {
  background: #FECACA;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ─── FORM ELEMENTS ───────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  width: 100%;
  border-radius: var(--radius);
  font-size: 14px;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-select {
  width: 100%;
  border-radius: var(--radius);
  font-size: 14px;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

.form-select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* ─── LOADING ─────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── DIVIDER ─────────────────────────────────────────────── */
.divider {
  height: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
}

/* ─── FLIGHT FILTERS PANEL ────────────────────────────────── */
.filters-panel {
  margin-top: 12px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.filters-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.filters-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group > label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-group select {
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500 !important;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-600);
}

/* ─── BOOKING CARD ────────────────────────────────────────── */
.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
}

.booking-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--navy-200);
}

/* ─── SEAT MAP ────────────────────────────────────────────── */
.seat-free     { background: #EFF6FF; border-color: #93C5FD; color: #1E40AF; }
.seat-selected { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.seat-occupied { background: #F1F5F9; border-color: #CBD5E1; color: #94A3B8; cursor: not-allowed; }

/* ─── RATING STARS ────────────────────────────────────────── */
.star-rating {
  display: flex;
  gap: 4px;
}

.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  font-size: 28px;
  color: #D1D5DB;
  transition: color 0.15s, transform 0.15s;
}

.star-btn.active,
.star-btn:hover {
  color: #F59E0B;
  transform: scale(1.1);
}

/* ─── TRUST BALANCE ───────────────────────────────────────── */
.trust-zone-green  { background: #D1FAE5; color: #065F46; border-color: #6EE7B7; }
.trust-zone-yellow { background: #FEF3C7; color: #92400E; border-color: #FCD34D; }
.trust-zone-red    { background: #FEE2E2; color: #991B1B; border-color: #FCA5A5; }

/* ─── NOTIFICATION DOT ────────────────────────────────────── */
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  border: 2px solid var(--surface);
}

/* ─── TABS ────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  background: transparent;
  padding: 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.tab-btn {
  padding: 10px 18px;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tab-btn.active {
  background: transparent;
  color: var(--blue-600);
  border-bottom-color: var(--blue-600);
  font-weight: 600;
}

/* ── Atlas page layout (2-col) ─────────────────────────────── */
.atlas-page {
  max-width: 1232px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.atlas-page__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5BA875;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.atlas-page__back:hover { text-decoration: underline; }

.atlas-page__title {
  font-size: 28px;
  font-weight: 700;
  color: #020A0D;
  margin-bottom: 24px;
  font-style: italic;
}

.atlas-page__cols {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.atlas-page__sidebar {
  width: 400px;
  flex-shrink: 0;
}

.atlas-page__main {
  flex: 1;
  min-width: 0;
}

/* Thin-bordered blocks */
.atlas-block {
  border: 1px solid #C6C8C8;
  border-radius: 4px;
  background: #fff;
  margin-bottom: 12px;
}

.atlas-block__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 16px;
  border-bottom: 1px solid #C6C8C8;
}

.atlas-block__row:last-child { border-bottom: none; }

.atlas-block__label { font-size: 14px; color: #395462; }
.atlas-block__value { font-size: 14px; font-weight: 600; color: #020A0D; }
.atlas-block__value--blue { color: #5BA875; }
.atlas-block__value--bold { font-size: 16px; font-weight: 700; }

.atlas-block__header {
  padding: 12px 16px;
  border-bottom: 1px solid #C6C8C8;
  font-size: 14px;
  color: #395462;
}

.atlas-block__body { padding: 14px 16px; }

/* Trip summary in sidebar */
.atlas-trip-time {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.atlas-trip-time__time {
  font-size: 16px;
  font-weight: 700;
  color: #020A0D;
  min-width: 50px;
}

.atlas-trip-time__city {
  font-size: 15px;
  font-weight: 500;
  color: #020A0D;
}

.atlas-trip-time__dur {
  font-size: 14px;
  color: #395462;
  margin-left: auto;
}

.atlas-trip-time__stop {
  font-size: 13px;
  color: #395462;
  padding-left: 58px;
  margin-top: 2px;
}

/* Full-width button */
.atlas-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: background 0.15s;
}

.atlas-btn--primary { background: #5BA875; color: #fff; }
.atlas-btn--primary:hover { background: #4A9A64; }
.atlas-btn--green { background: #1B7348; color: #fff; }
.atlas-btn--green:hover { background: #155d3a; }
.atlas-btn--outline { background: transparent; border: 1px solid #C6C8C8; color: #020A0D; }
.atlas-btn--outline:hover { border-color: #5BA875; color: #5BA875; }
.atlas-btn--danger { background: transparent; border: 1px solid #FD363B; color: #FD363B; }
.atlas-btn--danger:hover { background: #FFF5F5; }

/* Stop selection card */
.atlas-stop-card {
  border: 1px solid #C6C8C8;
  border-radius: 4px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

.atlas-stop-card__header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #C6C8C8;
}

.atlas-stop-card__name { flex: 1; font-size: 15px; font-weight: 500; color: #020A0D; }
.atlas-stop-card__close { background: none; border: none; cursor: pointer; color: #9ca3af; font-size: 20px; margin-left: 8px; }
.atlas-stop-card__link { color: #5BA875; font-size: 14px; font-weight: 500; text-decoration: none; margin-left: 12px; }
.atlas-stop-card__link:hover { text-decoration: underline; }

.atlas-stop-card__time {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 14px;
  color: #395462;
}

.atlas-stop-card__time strong { font-weight: 700; color: #020A0D; }

/* Passenger form */
.atlas-passenger {
  border: 1px solid #C6C8C8;
  border-radius: 4px;
  background: #fff;
  padding: 20px;
  margin-bottom: 12px;
}

.atlas-passenger__title {
  font-size: 18px;
  font-weight: 700;
  color: #020A0D;
  margin-bottom: 16px;
}

.atlas-passenger__row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.atlas-passenger__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.atlas-passenger__field label {
  font-size: 12px;
  color: #395462;
}

.atlas-passenger__field input,
.atlas-passenger__field select,
.atlas-passenger__field textarea {
  border: 1px solid #C6C8C8;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  color: #020A0D;
  font-family: inherit;
  outline: none;
  background: #fff;
}

.atlas-passenger__field input:focus,
.atlas-passenger__field select:focus,
.atlas-passenger__field textarea:focus {
  border-color: #5BA875;
}

/* Atlas timer */
.atlas-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #C6C8C8;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 14px;
  color: #395462;
  background: #fff;
}

.atlas-timer__value {
  font-size: 20px;
  font-weight: 700;
  color: #5BA875;
}

.atlas-timer--danger { border-color: #FD363B; }
.atlas-timer--danger .atlas-timer__value { color: #FD363B; }

/* Atlas error */
.atlas-error {
  border: 1px solid #FD363B;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 12px;
  color: #FD363B;
  font-size: 14px;
  background: #FFF5F5;
}

/* Atlas section title */
.atlas-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #020A0D;
  margin-bottom: 16px;
}

/* Atlas confirmation result */
.atlas-result {
  text-align: center;
  padding: 48px 24px;
}

.atlas-result__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #D1FAE5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.atlas-result__title {
  font-size: 24px;
  font-weight: 700;
  color: #020A0D;
  margin-bottom: 8px;
}

.atlas-result__text {
  font-size: 15px;
  color: #395462;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   3D FOLD TICKET CARD (pizza3 CodePen style)
   ══════════════════════════════════════════════════════════ */
.fold-cards-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  perspective: 700px;
}

.fold-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 100px;
  border-radius: 8px;
  transform-origin: bottom;
  margin: 16px auto;
  cursor: pointer;
  transition: height 0.9s;
}

/* ── Always-visible closed face ── */
.fold-card__display {
  width: 100%;
  height: 100px;
  position: absolute;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 16px 24px;
  gap: 0;
  backface-visibility: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  z-index: 1;
}

.fold-card__from,
.fold-card__to {
  flex: 0 0 auto;
  min-width: 0;
}

.fold-card__to {
  text-align: right;
}

.fold-card__time-label {
  font-size: 18px;
  font-weight: 700;
  color: #020A0D;
  line-height: 1;
  margin-bottom: 2px;
}

.fold-card__city {
  font-size: 20px;
  font-weight: 700;
  color: #020A0D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fold-card__stop {
  font-size: 12px;
  color: #68747E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

.fold-card__mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  min-width: 80px;
}

.fold-card__mid-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}

.fold-card__line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    #C6C8C8 0px, #C6C8C8 4px,
    transparent 4px, transparent 9px
  );
}

.fold-card__anim-wrap {
  width: 30px;
  height: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.fold-card__anim {
  display: flex;
  position: absolute;
  animation: foldSlideDots 1s infinite linear;
}

@keyframes foldSlideDots {
  from { transform: translateX(0); }
  to   { transform: translateX(-14px); }
}

.fold-card__dot {
  width: 4px;
  height: 4px;
  background: #C6C8C8;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.fold-card__date {
  font-size: 14px;
  font-weight: 600;
  color: #020A0D;
  margin-bottom: 4px;
}

.fold-card__seat {
  font-size: 11px;
  color: #68747E;
  margin-top: 4px;
}

.fold-card__status-badge {
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.fold-card__doc-warn {
  font-size: 10px;
  font-weight: 700;
  color: #FD363B;
  margin-top: 2px;
  animation: docBlink 1.2s ease-in-out infinite;
}

@keyframes docBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ── First fold panel ── */
.fold-card__first {
  width: 100%;
  height: 100px;
  position: absolute;
  border-radius: 8px;
  transform-origin: bottom;
  transform-style: preserve-3d;
  transition: 0.5s;
}

.fold-card__first-top {
  width: 100%;
  height: 100px;
  position: absolute;
  background: #fff;
  backface-visibility: hidden;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fold-card__top-time {
  display: flex;
  align-items: flex-start;
  padding: 14px 20px;
}

.fold-card__top-city {
  color: #68747E;
  font-size: 11px;
  text-align: center;
}

.fold-card__top-hour {
  font-weight: 700;
  font-size: 22px;
  color: #020A0D;
  line-height: 1.2;
}

.fold-card__first-behind {
  width: 100%;
  height: 100px;
  position: absolute;
  background: #fff;
  transform: rotateX(-180deg);
  backface-visibility: hidden;
  border-radius: 8px;
  border-top: 1px dashed #d1d1d1;
  border-bottom: 1px dashed #d1d1d1;
}

.fold-card__first-behind-display {
  width: 100%;
  height: 100px;
  position: absolute;
  background: #fff;
  border-radius: 8px;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.fold-card__detail-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}

.fold-card__detail {
  display: flex;
  flex-direction: column;
}

.fold-card__detail strong {
  font-size: 15px;
  color: #020A0D;
}

.fold-card__detail span {
  font-size: 10px;
  color: #68747E;
  letter-spacing: 0.5px;
}

/* ── Second fold ── */
.fold-card__second {
  width: 100%;
  height: 50px;
  position: absolute;
  bottom: -2px;
  transform-origin: bottom;
  transform-style: preserve-3d;
  transition: 0.2s;
  border-radius: 8px;
}

.fold-card__second-top {
  width: 100%;
  height: 50px;
  position: absolute;
  background: #e7e7e7;
  backface-visibility: hidden;
  border-radius: 8px;
}

.fold-card__second-behind {
  width: 100%;
  height: 50px;
  position: absolute;
  background: #fff;
  transform: rotateX(-180deg);
  backface-visibility: hidden;
  border-radius: 8px;
  border-top: 1px dashed #d1d1d1;
  border-bottom: 1px dashed #d1d1d1;
}

.fold-card__second-behind-display {
  width: 100%;
  height: 50px;
  position: absolute;
  background: #fff;
  border-radius: 8px;
  border-bottom: 1px dashed #d1d1d1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.fold-card__price {
  display: flex;
  flex-direction: column;
}

.fold-card__price strong {
  font-size: 15px;
  color: #020A0D;
}

.fold-card__price span {
  font-size: 10px;
  color: #68747E;
}

.fold-card__barcode {
  font-family: monospace;
  font-size: 13px;
  color: #68747E;
  letter-spacing: 1px;
}

/* ── Third fold ── */
.fold-card__third {
  width: 100%;
  height: 50px;
  position: absolute;
  transform-origin: bottom;
  transform-style: preserve-3d;
  transition: 0.2s;
  border-radius: 8px;
}

.fold-card__third-top {
  width: 100%;
  height: 50px;
  position: absolute;
  background: #bebebe;
  backface-visibility: hidden;
  border-radius: 8px;
}

.fold-card__third-behind {
  width: 100%;
  height: 50px;
  position: absolute;
  background: #fff;
  transform: rotateX(-180deg);
  backface-visibility: hidden;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
}

.fold-card__btn {
  font-size: 14px;
  font-weight: 700;
  padding: 8px 0;
  flex: 1;
  border: 1.5px solid #5BA875;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  text-align: center;
}

.fold-card__btn--confirm {
  background: #5BA875;
  color: #fff;
  border-color: #5BA875;
}

.fold-card__btn--confirm:hover {
  background: #4A9A64;
}

.fold-card__btn--cancel {
  background: #fff;
  color: #FD363B;
  border-color: #FD363B;
}

.fold-card__btn--cancel:hover {
  background: #FFF5F5;
}

@media (max-width: 600px) {
  .fold-card { max-width: 100%; }
  .fold-card__city { font-size: 15px; }
  .fold-card__btn { padding: 6px 40px; }
}

/* ══════════════════════════════════════════════════════════
   TICKET CARD (perforated tear + cutouts — kept for other uses)
   ══════════════════════════════════════════════════════════ */
.ticket {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 16px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(2,10,13,.08),
    0 1px 2px rgba(2,10,13,.06),
    0 7px 0 -3px rgba(241,243,245,.98),
    0 7px 4px rgba(2,10,13,.04),
    0 13px 0 -5px rgba(232,234,238,.88),
    0 13px 6px rgba(2,10,13,.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ticket:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(2,10,13,.12),
    0 2px 4px rgba(2,10,13,.08),
    0 8px 0 -3px rgba(241,243,245,.98),
    0 8px 5px rgba(2,10,13,.06),
    0 14px 0 -5px rgba(232,234,238,.88),
    0 14px 7px rgba(2,10,13,.04);
}

/* Ticket body — main info */
.ticket__body {
  padding: 16px 20px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticket__left {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.ticket__point {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ticket__time {
  font-size: 22px;
  font-weight: 700;
  color: #020A0D;
  line-height: 1;
  letter-spacing: -0.5px;
}

.ticket__city {
  font-size: 15px;
  font-weight: 600;
  color: #020A0D;
  margin-top: 4px;
}

.ticket__city--to {
  color: #5BA875;
}

.ticket__stop {
  font-size: 13px;
  color: #68747E;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket__stop--to {
  color: rgba(42,95,207,0.6);
}

.ticket__arrow {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 4px 0;
  flex-shrink: 0;
  position: relative;
}

.ticket__arrow-line {
  width: 40px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    #C6C8C8 0px, #C6C8C8 4px,
    transparent 4px, transparent 9px
  );
}

.ticket__right {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.ticket__price {
  font-size: 22px;
  font-weight: 700;
  color: #020A0D;
  line-height: 1;
}

.ticket__currency {
  font-size: 14px;
  font-weight: 400;
  color: #68747E;
}

.ticket__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Perforated tear line with semicircle cutouts */
.ticket__perf {
  position: relative;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 4px,
    rgba(198,200,200,0.5) 4px, rgba(198,200,200,0.5) 9px
  );
}

.ticket__perf::before,
.ticket__perf::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F1F3F5;
  z-index: 2;
}

.ticket__perf::before { left: -9px; }
.ticket__perf::after  { right: -9px; }

/* Ticket stub — meta info */
.ticket__stub {
  padding: 8px 20px;
  background: #fafbfd;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ticket__meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #68747E;
  white-space: nowrap;
}

.ticket__meta .material-icons {
  color: #C6C8C8;
}

.ticket__chevron {
  margin-left: auto;
  font-size: 20px !important;
  color: #C6C8C8;
}

@media (max-width: 767px) {
  .ticket__body {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ticket__right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .ticket__stub {
    gap: 10px;
  }
}

/* Atlas profile card */
.atlas-profile-card {
  border: 1px solid #C6C8C8;
  border-radius: 4px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

.atlas-profile-card__header {
  padding: 14px 16px;
  border-bottom: 1px solid #C6C8C8;
  font-size: 15px;
  font-weight: 700;
  color: #020A0D;
  display: flex;
  align-items: center;
  gap: 8px;
}

.atlas-profile-card__body {
  padding: 16px;
}

.atlas-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #C6C8C8;
}

.atlas-profile-row:last-child { border-bottom: none; }

.atlas-profile-row__label {
  font-size: 12px;
  color: #395462;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 4px;
}

.atlas-profile-row__value {
  font-size: 15px;
  font-weight: 500;
  color: #020A0D;
}

/* ── Atlas shared helpers (compact, tokenized) ──────────────────
   Переиспользуемые блоки для внутренних страниц (профиль/документы/
   настройки/бронирования). Только токены — без локального хардкода. */
.atlas-page__lead {
  color: var(--text2);
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-6);
  max-width: 720px;
}

.atlas-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  border: 1px solid var(--gm-border);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-card);
  background: var(--blue-bg);
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-md);
  color: var(--text2);
  line-height: var(--lh-normal);
}
.atlas-note .material-icons { font-size: 18px; color: var(--blue); flex-shrink: 0; }
.atlas-note p { margin: 0; }

.atlas-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.atlas-empty {
  text-align: center;
  padding: 48px var(--space-6);
  border: 1px solid var(--gm-border);
  border-radius: var(--r-card);
  background: #fff;
}
.atlas-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gm-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
}
.atlas-empty__icon .material-icons { font-size: 28px; color: var(--text3); }
.atlas-empty__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--dark);
  margin-bottom: var(--space-1);
}
.atlas-empty__text {
  font-size: var(--fs-md);
  color: var(--text2);
  margin-bottom: var(--space-4);
}

.atlas-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px var(--space-2);
  border-radius: var(--r-card);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}
.atlas-pill--ok   { background: #D1FAE5; color: #166534; }
.atlas-pill--bad  { background: #FEE2E2; color: #991B1B; }
.atlas-pill--info { background: #E0E7FF; color: #1E3A8A; }

.atlas-link-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  font-family: inherit;
  padding: 0;
}
.atlas-link-btn:hover { text-decoration: underline; }

.atlas-field-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.atlas-field-value {
  font-size: var(--fs-md);
  color: var(--text2);
}

/* Responsive */
@media (max-width: 767px) {
  .atlas-page__cols { flex-direction: column; }
  .atlas-page__sidebar { width: 100%; }
  .atlas-card-grid { grid-template-columns: 1fr; }
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 767px) {
  .header-navbar--desktop { display: none; }
  .header-desktop-only    { display: none; }
  .hamburger-btn          { display: flex; }
  .header-desktop-nav     { display: none !important; }

  .hero { min-height: 360px; }
  .hero-content { padding: 32px 16px; }

  .search { padding: 16px; }
  .search-content--inputs {
    grid-template-columns: 1fr;
  }

  .search-content--radios {
    flex-wrap: wrap;
  }

  .features-grid    { grid-template-columns: 1fr 1fr; }
  .how-grid         { grid-template-columns: 1fr 1fr; }
  .routes-grid      { grid-template-columns: 1fr; }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }

  .footer-main {
    grid-template-columns: 1fr;
    padding: 32px 16px 20px;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-bottom-links {
    justify-content: center;
    gap: 12px;
  }

  .filters-content {
    grid-template-columns: 1fr;
  }

  .section-module { padding: 0 12px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .header-navbar--desktop { display: none; }
  .header-desktop-only    { display: none; }
  .hamburger-btn          { display: flex; }

  .search-content--inputs {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (min-width: 1024px) {
  .hamburger-btn          { display: none; }
  .header-navbar--desktop { display: block; }
  .header-desktop-only    { display: block; }
}

/* ═══════════════════════════════════════════════════════════════
   ATLAS / FIGMA — Homepage + SERP + Flight Card
   ═══════════════════════════════════════════════════════════════ */

/* ── Design tokens (Figma) ──────────────────────────────────── */
:root {
  --blue:        #5BA875;
  --blue-logo:   #5BA875;
  --blue-h:      #4A9A64;
  --blue-bg:     #EDF7F0;
  --dark:        #020A0D;
  --dark2:       #08293B;
  --text2:       #395462;
  --text3:       #68747E;
  --gm-border:   #C6C8C8;
  --gm-bg:       #F1F3F5;
  --bg2:         #F5F6F7;
  --green:       #1B7348;
  --green-bg:    #89FFB6;
  --green2:      #419157;
  --olive:       #6D9009;
  --red:         #FD363B;
  --orange:      #F3660B;
  --footer-bg:   #0B1C3E;
  --r-card:      4px;
  --r-btn:       4px;
  --gm-shadow:   0 2px 8px rgba(2,10,13,.08), 0 1px 2px rgba(2,10,13,.06);
}

/* ══════════════════════════════════════════════════════════
   HOMEPAGE — HERO / SEARCH
   ══════════════════════════════════════════════════════════ */
.atlas-hero {
  position: relative;
  /* overflow:hidden убран: clip'ил выпадающие подсказки CityAutocomplete (Карточка 6a0cb0f3...). */
  isolation: isolate;
  display: flex;
  align-items: stretch;
  padding: 43px 0 70px;
  /* Бренд belbilet: градиент sage-green → orange, скруглённый низ */
  background: linear-gradient(160deg, #5BA875 0%, #FF9828 100%);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.atlas-hero::before { content: none; }

/* Плавающая карточка поиска — нахлёст на стык hero / следующий блок */
.atlas-searchwrap {
  max-width: 1232px;
  margin: -46px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

.atlas-hero__inner {
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.atlas-hero__text { flex-shrink: 0; }

.atlas-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.atlas-hero__badge .material-icons { font-size: 15px; }

.atlas-hero__title {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.atlas-hero__sub {
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.atlas-hero__search { width: 100%; }

/* SERP: слим-hero — тонкая брендовая полоса только с формой (прототип .sbar).
   Без крупного заголовка/подзаголовка и без скруглённого низа. */
.atlas-hero--slim {
  padding: 14px 0 12px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* ── Search form inside hero ─────────────────────────────────── */
.atlas-hero__search .sf-bar {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.12);
}

.atlas-hero__search .inputs-btn {
  flex: 0 0 auto;
  gap: 0;
  border-right: none;
  padding: 0;
}

.atlas-hero__search .btn-search {
  height: 100%;
  min-height: 52px;
  width: 180px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  background: var(--blue);
  letter-spacing: 0.2px;
  padding: 0 20px;
}

.atlas-hero__search .btn-search:hover {
  background: var(--blue-h);
}

.atlas-hero__search .filters-panel {
  margin: 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--gm-border);
}

.atlas-hero__search .dropdown {
  border-radius: var(--r-card);
}

/* ══════════════════════════════════════════════════════════
   COLLAPSING SEARCH BAR (redBus-стиль)
   Фиксированный компактный бар поиска, выезжающий из-под Header
   при прокрутке в результаты. Управляется классом --shown из
   flights.tsx (IntersectionObserver по sentinel).
   ══════════════════════════════════════════════════════════ */
.serp-search-sentinel {
  height: 1px;
  margin-top: -1px;
  pointer-events: none;
}

.serp-searchbar {
  position: fixed;
  top: 56px;            /* под фиксированным Header (height 56px) */
  left: 0;
  right: 0;
  z-index: 900;
  background: #fff;
  border-bottom: 1px solid #E5E9F0;
  box-shadow: 0 6px 20px rgba(7, 32, 68, 0.10);
  transform: translateY(-115%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.22s ease,
              visibility 0s linear 0.28s;
}

.serp-searchbar--shown {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.22s ease,
              visibility 0s;
}

.serp-searchbar__inner {
  max-width: 1232px;
  margin: 0 auto;
  padding: 8px 20px;
}

/* Summary-пилюля (только мобилка) — компактная сводка, тап ведёт наверх. */
.serp-searchbar__summary { display: none; }

@media (min-width: 769px) {
  /* десктоп: показываем компактную форму, прячем пилюлю */
  .serp-searchbar__summary { display: none !important; }
  .serp-searchbar .search { display: block; }
}

/* Компактная форма внутри бара: меньше радиус/тень/паддинги,
   прячем мини-лейблы (ОТКУДА/КУДА/КОГДА) ради высоты ~64px. */
.serp-searchbar .sf-bar {
  border-radius: 12px;
  padding: 5px;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(7, 32, 68, 0.12);
}
.serp-searchbar .sf-field {
  padding: 4px 12px;
  border-radius: 10px;
}
.serp-searchbar .sf-label { display: none; }
.serp-searchbar .sf-field--date { flex: 0 0 140px; }
.serp-searchbar .sf-field--pax  { flex: 0 0 150px; }
.serp-searchbar .sf-submit { padding: 0 22px; border-radius: 12px; }
/* кнопку «Фильтры» под формой в компактном баре не показываем —
   фильтр/сортировка доступны в шапке списка результатов (result-meta) */
.serp-searchbar form ~ div { display: none !important; }

@media (max-width: 768px) {
  /* мобилка: вместо полной формы — summary-пилюля */
  .serp-searchbar__inner { padding: 8px 12px; }
  .serp-searchbar .search { display: none; }
  .serp-searchbar__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: #fff;
    border: 1px solid #DDE6F2;
    border-radius: 14px;
    padding: 9px 12px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    box-shadow: 0 1px 3px rgba(7, 32, 68, 0.10);
  }
  .serp-searchbar__summary-ic { font-size: 20px; color: var(--color-primary); flex-shrink: 0; }
  .serp-searchbar__summary-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .serp-searchbar__route {
    font-size: 14px; font-weight: 700; color: #072044;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .serp-searchbar__meta { font-size: 11.5px; color: #6b7280; }
  .serp-searchbar__summary-edit { font-size: 17px; color: #9CA3AF; flex-shrink: 0; }
}

/* ══════════════════════════════════════════════════════════
   HOMEPAGE — POPULAR ROUTES
   ══════════════════════════════════════════════════════════ */
.atlas-popular {
  background: transparent;
  padding: 37px 0;
}

.atlas-popular__inner {
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 20px;
}

.atlas-popular__title {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 18px;
}

.atlas-popular__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.atlas-popular__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #DDE6F2;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(7,32,68,0.06);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.atlas-popular__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(7,32,68,0.12);
  border-color: #5BA875;
  background: #fff;
}

/* Плитка с иконкой-достопримечательностью города */
.atlas-popular__ico {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(160deg, #EDF4FF, #FFF2DF);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.atlas-popular__ico img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.atlas-popular__item:hover .atlas-popular__ico img { transform: scale(1.1) translateY(-2px); }
.atlas-popular__body { flex: 1; min-width: 0; }

.atlas-popular__route {
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
}

.atlas-popular__price {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: #E07E0A;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   HOMEPAGE — APP BANNER
   ══════════════════════════════════════════════════════════ */
.atlas-app-banner {
  background: transparent;
  padding: 0 0 37px;
}

.atlas-app-banner__inner {
  max-width: 1232px;
  margin: 0 auto;
  padding: 32px 40px;
  background: #FFF2DF;
  border-radius: 16px;
  text-align: center;
}

.atlas-app-banner__inner h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.atlas-app-banner__accent {
  font-size: 32px;
  font-weight: 800;
  color: #FF9828;
}

.atlas-app-banner__inner p {
  font-size: 14px;
  color: var(--text2);
}

/* ══════════════════════════════════════════════════════════
   HOMEPAGE — APP INFO (text left + phones right)
   ══════════════════════════════════════════════════════════ */
.atlas-app-info {
  background: transparent;
  padding: 0 0 50px;
}

.atlas-app-info__inner {
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.atlas-app-info__text { flex: 1; min-width: 0; }

.atlas-app-info__block { margin-bottom: 24px; }

.atlas-app-info__block h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.atlas-app-info__block p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 420px;
}

.atlas-app-info__stores {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.atlas-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}

.atlas-store-btn:hover {
  background: #1a1a2e;
  color: #fff;
}

/* Real app screenshot in a phone frame */
.atlas-app-info__phones {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.atlas-phone-real {
  width: 248px;
  border-radius: 34px;
  border: 9px solid #072044;
  background: #072044;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(7, 32, 68, 0.28);
}
.atlas-phone-real img {
  display: block;
  width: 100%;
  height: auto;
}

.atlas-phone {
  position: absolute;
  width: 200px;
  background: #1a1a2e;
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(0, 0, 0, 0.08);
}

.atlas-phone--back  { top: 0; left: 0; height: 380px; z-index: 1; }
.atlas-phone--front { top: 30px; left: 140px; height: 380px; z-index: 2; }

.atlas-phone__screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.atlas-phone__header {
  background: #f8f9fb;
  color: var(--dark);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.atlas-phone__header--blue {
  background: linear-gradient(160deg, #5BA875, #FF9828);
  color: #fff;
  border-bottom: none;
}

.atlas-phone__list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.atlas-phone__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8f9fb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.atlas-phone__card-time {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: var(--dark);
  gap: 1px;
}

.atlas-phone__card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}

.atlas-phone__search-fields {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.atlas-phone__field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}

.atlas-phone__btn-find {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.atlas-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 20px rgba(91, 168, 117, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
}

.atlas-play-icon:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

/* ══════════════════════════════════════════════════════════
   SERP — Search Results Page
   ══════════════════════════════════════════════════════════ */
.serp-search {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  min-height: 100px;
  display: flex;
  align-items: center;
  padding: 20px 0;
}

.serp-search__inner {
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Search form inside SERP hero */
.atlas-hero .sf-bar {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ── Date strip — пилюли (бренд belbilet) ──────────────────── */
.serp-dates {
  background: transparent;
}

.serp-dates__inner {
  max-width: 1232px;
  margin: 0 auto;
  padding: 18px 20px 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.serp-dates__label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text2);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1.2;
}

.serp-dates__row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.serp-dates__row::-webkit-scrollbar { display: none; }

.serp-dates__cell {
  flex-shrink: 0;
  padding: 7px 16px;
  cursor: pointer;
  border: 1px solid #DDE6F2;
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
}

.serp-dates__cell:hover { border-color: var(--color-primary); }

.serp-dates__cell.on {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.serp-dates__day {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text2);
}

.serp-dates__cell.on .serp-dates__day {
  color: #fff;
}

.serp-dates__price {
  font-size: 12px;
  font-weight: 400;
  color: var(--dark2);
}

/* ─── CHARTER BANNER ─────────────────────────────────────── */
.charter-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100px;
  background: #E9E2CF;
  border: 1px solid #DDE6F2;
  border-radius: var(--radius-lg);
  padding: 0;
  margin: 12px 0 4px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  color: var(--text-primary);
}
.charter-banner::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: url('/images/charter-banner2-faded.png') right center/contain no-repeat;
}
.charter-banner::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #fff 0%, #fff 46%, rgba(255,255,255,0) 72%);
}
.charter-banner:hover {
  box-shadow: 0 8px 18px rgba(7,32,68,0.12);
  transform: translateY(-1px);
}
.charter-banner__icon { display: none; }
.charter-banner__icon--legacy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(0, 34, 79, 0.1);
  border-radius: 12px;
  color: var(--navy-900);
}
.charter-banner__icon .material-icons {
  font-size: 28px;
}
.charter-banner__content {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 54%;
  padding: 13px 38px;
}
.charter-banner__tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  color: var(--secondary-dark, #E07E0A);
  background: #fff;
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 6px;
  box-shadow: 0 4px 10px rgba(7,32,68,0.16), 0 8px 22px rgba(255,152,40,0.18);
}
.charter-banner__title {
  font-size: 16px;
  font-weight: 800;
  color: #072044;
  line-height: 1.15;
}
.charter-banner__tags {
  font-size: 11px;
  color: #61708A;
  margin-top: 4px;
  line-height: 1.45;
  white-space: normal;
}
.charter-banner__cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: #fff;
  padding: 7px 18px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  margin-top: 10px;
  transition: background 0.15s;
}
.charter-banner:hover .charter-banner__cta {
  background: #4F9468;
}

/* Charter banner mobile */
@media (max-width: 768px) {
  .charter-banner {
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: 12px;
  }
  .charter-banner__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .charter-banner__icon .material-icons {
    font-size: 24px;
  }
  .charter-banner__content {
    flex: 1;
    max-width: 100%;
  }
  .charter-banner::after { background-position: center bottom; opacity: .5; }
  .charter-banner__title {
    font-size: 14px;
  }
  .charter-banner__tags {
    font-size: 12px;
    white-space: normal;
  }
  .charter-banner__cta {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* SERP main area */
.serp-main {
  flex: 1;
  padding: 16px 0 40px;
}

.serp-results {
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ══════════════════════════════════════════════════════════
   SERP: левый сайдбар фильтров + список (как в прототипе belbilet)
   ══════════════════════════════════════════════════════════ */
.serp-grid {
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 236px 1fr;
  gap: 18px;
  align-items: start;
}
/* внутри грида список занимает всю колонку — без двойного центрирования */
.serp-grid .serp-results {
  max-width: none;
  margin: 0;
  padding: 0;
}
.serp-aside {
  position: sticky;
  top: 64px;
  align-self: start;
}

.serp-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: #072044;
  margin-bottom: 10px;
  padding: 0 2px;
}
.serp-filters__reset {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: #5BA875;
  padding: 0;
}
.serp-filters .fbox {
  background: #fff;
  border: 1px solid #DDE6F2;
  border-radius: 14px;
  padding: 13px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(7, 32, 68, 0.05);
}
.serp-filters .fbox h4 {
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #072044;
}
.serp-filters .frow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #072044;
  margin-bottom: 8px;
  cursor: pointer;
}
.serp-filters .frow:last-child { margin-bottom: 0; }
.serp-filters .frow input {
  accent-color: #5BA875;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}
.serp-filters .frow .cnt {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: #9CA3AF;
}
.serp-filters__rlabels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: #61708A;
  margin-top: 2px;
}

/* Остановки — селекты посадки/высадки */
.serp-filters__field { display: block; margin-bottom: var(--space-2); }
.serp-filters__field:last-child { margin-bottom: 0; }
.serp-filters__field-label {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  margin-bottom: 3px;
}
.serp-filters__field select {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-xs);
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--navy-900);
  cursor: pointer;
}
.serp-filters__field select:focus { outline: none; border-color: var(--color-primary); }

/* App-промо (заглушка «скоро») в сайдбаре */
.app-promo {
  position: relative;
  margin-top: var(--space-2);
  padding: var(--space-4) var(--space-3) var(--space-3);
  border-radius: 14px;
  background: linear-gradient(160deg, #EDF7F0 0%, #FFF2DF 100%);
  border: 1px solid var(--green-100);
  text-align: center;
  overflow: hidden;
}
.app-promo__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-extrabold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--color-secondary);
  padding: 2px 8px;
  border-radius: 999px;
}
.app-promo__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-2);
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-promo__icon .material-icons { font-size: 24px; }
.app-promo__title { font-size: var(--fs-md); font-weight: var(--fw-extrabold); color: var(--navy-900); }
.app-promo__text {
  font-size: var(--fs-2xs);
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: var(--lh-snug);
}
.app-promo__stores { display: flex; flex-direction: column; gap: 6px; margin-top: var(--space-3); }
.app-promo__store {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: #fff;
  background: var(--navy-900);
  border-radius: 8px;
  padding: 7px 0;
  opacity: 0.55; /* заглушка — неактивно */
  cursor: default;
}

/* На узких экранах — сайдбар скрыт, фильтры доступны через мобильный drawer. */
@media (max-width: 880px) {
  .serp-grid { grid-template-columns: 1fr; padding: 0 12px; }
  .serp-aside { display: none; }
}

/* ── Шкала часов над списком (замена бокового фильтра времени) ── */
.hour-scale {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-2) var(--space-3) var(--space-1);
  margin-bottom: var(--space-3);
  box-shadow: 0 4px 12px rgba(7, 32, 68, 0.05);
}
.hour-scale__caption {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}
.hour-scale__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.hour-scale__cell {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px 0 4px;
  background: none;
  border: none;
  font-family: inherit;
  border-radius: 8px;
  transition: transform 0.12s, color 0.12s;
}
.hour-scale__num {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hour-scale__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
}
.hour-scale__cell.is-active { color: var(--navy-900); cursor: pointer; }
.hour-scale__cell.is-active .hour-scale__dot { background: var(--color-primary); }
.hour-scale__cell.is-active:hover {
  color: var(--color-primary);
  transform: translateY(-1px) scale(1.14);
}
.hour-scale__cell.is-empty { color: var(--navy-200); opacity: 0.6; cursor: default; }
/* текущий час — залитая пилюля */
.hour-scale__cell.is-now .hour-scale__num {
  color: #fff;
  background: var(--color-primary);
  border-radius: 6px;
  padding: 2px 4px;
  margin: -2px -1px 1px;
}
.hour-scale__cell.is-now.is-empty .hour-scale__num { background: var(--navy-300); }
.hour-scale__now-label {
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

/* учёт sticky-шапки при scrollIntoView к рейсу */
.serp-flight-item { scroll-margin-top: 130px; }

/* выбранная в фильтре остановка — подсвечена (время показано на ней) */
.fc-stop--sel { color: var(--color-primary); font-weight: var(--fw-semibold); }

@media (max-width: 880px) {
  .hour-scale__num { font-size: 9px; }
  .hour-scale__caption { font-size: 9px; }
}
/* На десктопе кнопка «Фильтры» в поисковой форме не нужна — есть сайдбар. */
@media (min-width: 881px) {
  .atlas-hero__search form ~ div { display: none !important; }
}

/* Лента фото автобуса во вкладке «Автобус» — горизонтальная прокрутка миниатюр. */
.det-photos { margin-top: var(--space-3); }
.det-photos-strip {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-1);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.det-photos-strip::-webkit-scrollbar { height: 6px; }
.det-photos-strip::-webkit-scrollbar-track { background: transparent; }
.det-photos-strip::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
.det-photo-thumb {
  flex: 0 0 auto;
  width: 132px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 0;
  cursor: pointer;
  background: var(--navy-50);
  scroll-snap-align: start;
  transition: border-color 0.15s;
}
.det-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.det-photo-thumb:hover { border-color: var(--color-primary); }

/* Бегущие точки в таймлайне карточки — имитация движения автобуса. */
.fc-march {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background-image: radial-gradient(circle, #5BA875 1.3px, transparent 1.6px);
  background-size: 10px 3px;
  background-repeat: repeat-x;
  background-position: 0 50%;
  animation: fc-march-slide 0.85s linear infinite;
  opacity: 0.85;
  pointer-events: none;
}
@keyframes fc-march-slide {
  from { background-position: 0 50%; }
  to   { background-position: 10px 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-march { animation: none; }
}

.result-meta {
  font-size: 13px;
  color: var(--dark2);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.result-meta strong { color: var(--dark); }

.serp-sort-btn {
  background: #fff;
  border: 1.5px solid var(--gm-border);
  border-radius: var(--r-btn);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark2);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.serp-sort-btn:hover {
  border-color: var(--navy-900);
  color: var(--navy-900);
}

.serp-sort-btn.on {
  background: var(--cream);
  border-color: var(--amber-500);
  color: var(--navy-900);
}

.serp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--gm-shadow);
  gap: 12px;
  text-align: center;
}

.serp-empty__icon { font-size: 48px; color: var(--text-muted); }
.serp-empty__icon--error { font-size: 40px; color: var(--error); opacity: 0.7; }
.serp-empty__icon--filter { font-size: 48px; color: var(--amber-500); }
.serp-empty__title { font-size: 16px; font-weight: 700; color: var(--navy-900); }
.serp-empty__title--sm { font-size: 15px; font-weight: 600; color: var(--navy-900); }
.serp-empty__desc { color: var(--text-secondary); font-size: 13px; max-width: 380px; }
.serp-empty__btn { margin-top: 8px; width: auto; padding: 10px 28px; }

.serp-sort-btn__icon { font-size: 16px; }

.charter-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ══════════════════════════════════════════════════════════
   FLIGHT CARD (.fcard)
   ══════════════════════════════════════════════════════════ */
.fcard {
  background: linear-gradient(160deg, #fffffb 0%, #fdfcf6 100%);
  border-radius: 14px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(90,60,10,0.07), 0 6px 20px rgba(90,60,10,0.09);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.12s ease;
  border: 1px solid rgba(185,148,60,0.35);
}

.fcard:hover {
  box-shadow: 0 4px 10px rgba(90,60,10,0.08), 0 12px 30px rgba(90,60,10,0.13);
  transform: translateY(-1px);
}

/* Card body */
.fcard-body {
  padding: 12px 16px;
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Left: route block */
.fc-route {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.fc-dep, .fc-arr {
  flex-shrink: 0;
  min-width: 0;
}

.fc-time {
  font-size: 16px;
  font-weight: 800;
  color: #072044;
  line-height: 1.05;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.fc-city {
  font-size: 12px;
  font-weight: 700;
  color: #072044;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.fc-stop {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.fc-arr .fc-city { color: #072044; }
.fc-arr .fc-stop { color: #61708A; }

/* Timeline connector */
.fc-timeline {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  min-width: 90px;
}

.fc-duration {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  white-space: nowrap;
}

.fc-timeline-line {
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  position: relative;
}

.fc-timeline-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #5BA875;
  background: white;
}

.fc-timeline-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5BA875;
}

.fc-route-type {
  font-size: 11px;
  font-weight: 600;
  color: #5BA875;
  margin-top: 6px;
}

/* Right: price + button */
.fc-price-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-left: 16px;
  border-left: 1.5px dashed rgba(185,148,60,0.55);
  min-width: 150px;
}

.fc-price {
  font-size: 16px;
  font-weight: 800;
  color: #0A4DD6;
  line-height: 1;
  letter-spacing: -0.5px;
}

.fc-price-currency {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.fc-seats {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #5BA875;
  border: 1px solid #5BA875;
  background: transparent;
  padding: 2px 9px;
  border-radius: 999px;
}

.fc-seats.few { color: #E07E0A; border-color: #E07E0A; }

.btn-select {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 7px 24px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 7px;
  width: 100%;
  height: auto;
  font-family: inherit;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(91,168,117,0.3);
}

.btn-select:hover {
  background: #0A4DD6;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,34,79,0.3);
}

/* Legacy (keep for compat) */
.fc-times { display: flex; align-items: center; gap: 0; flex: 1; min-width: 0; }
.fc-mid { display: none; }
.fc-price-block { display: none; }
.fc-price-note { display: none; }
.btn-select-sub { display: none; }

/* Card footer */
.fcard-foot {
  padding: 6px 14px;
  background: linear-gradient(to bottom, #fff, #fafbff);
  border-top: 1px dashed var(--divider, #DDE6F2);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fcard-expand {
  background: none;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  font-family: inherit;
  transition: background 0.15s;
}

.fcard-expand:hover { background: #EDF7F0; }

.fcard-foot-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
  flex-shrink: 0;
}

.fcard-driver {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.fcard-rating {
  font-size: 11.5px;
  font-weight: 800;
  color: #FF9828;
  display: flex;
  align-items: center;
  gap: 2px;
}

.fcard-bus {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.fcard-dur {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.direct-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

/* Footer layout */
.fcard-foot {
  justify-content: space-between;
}

.fcard-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fcard-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.fcard-foot-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fcard-carrier {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── Footer в стиле прототипа: перевозчик + рейтинг + удобства ── */
.fcard-foot { justify-content: flex-start; gap: 12px; }
.fcarrier {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 50%;
}
.fcarrierLogo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-blue, #EDF4FF);
  color: var(--accent-blue, #0A4DD6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 10px;
  flex-shrink: 0;
}
.fcarrier-meta { min-width: 0; }
.fcarrierName {
  font-size: 12px;
  font-weight: 700;
  color: #072044;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcarrierSub {
  font-size: 10.5px;
  color: #9CA3AF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #072044;
  font-weight: 800;
  font-size: 13px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f5f7fb;
  flex-shrink: 0;
}
.frating-star { font-size: 14px !important; color: #FF9828; }
.famenities {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
  color: #9CA3AF;
  overflow: hidden;
}
.famenity { font-size: 19px !important; color: #9CA3AF; flex-shrink: 0; }
.fcard-foot .fcard-expand { flex-shrink: 0; }

/* ── Card details (fold animation) ───────────────────────── */
.fcard-details {
  border-top: none;
  transform-origin: top center;
  transform: perspective(900px) rotateX(-12deg) scaleY(0.96);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    transform 0.44s cubic-bezier(0.34, 1.25, 0.64, 1),
    opacity 0.32s ease,
    max-height 0.52s cubic-bezier(0.4, 0, 0.2, 1);
}

.fcard-details.open {
  transform: perspective(900px) rotateX(0deg) scaleY(1);
  opacity: 1;
  max-height: 1400px;
  border-top: 1px solid var(--border);
}

.fcard-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  margin: 12px 14px 0;
  background: var(--navy-50);
  border-radius: 8px;
}

.fcard-tab {
  flex: 1;
  padding: 6px 12px;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 6px;
  transition: all 0.15s;
}

.fcard-tab:hover { color: var(--navy-900); }

.fcard-tab.on {
  background: var(--surface);
  color: var(--navy-900);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.fcard-detail-body {
  padding: 14px;
  display: flex;
  gap: 18px;
}

.fcard-detail-body .tl-col { flex: 1; }
.fcard-detail-body .seats-col { width: 220px; flex-shrink: 0; }

/* Route leg card */
.route-leg {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 52px 24px 1fr;
  gap: 0;
}

.rl-times {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rl-time {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.1;
}

.rl-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 0;
}

.rl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-400);
  flex-shrink: 0;
}

.rl-dot-end {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2.5px solid var(--blue-400);
  background: #fff;
  flex-shrink: 0;
}

.rl-dashed {
  flex: 1;
  border-left: 2px dashed #CBD5E1;
  margin: 4px 0;
  min-height: 28px;
}

.rl-cities {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 14px;
}

.rl-city-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.2;
}

.rl-city-addr {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.3;
}

.route-meta-row {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.route-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Vehicle info grid */
.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.vehicle-item {
  padding: 14px;
  background: var(--navy-50);
  border-radius: 8px;
}

.vehicle-item-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.vehicle-item-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
}

/* Carrier info grid */
.carrier-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.carrier-info-item {
  padding: 14px;
  background: var(--navy-50);
  border-radius: 8px;
}

.carrier-info-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.carrier-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
}

.carrier-info-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-400);
  text-decoration: none;
}

.carrier-info-link:hover { text-decoration: underline; }

/* Stops timeline */
.stops-timeline {
  position: relative;
  padding-left: 8px;
  max-width: 520px;
}

/* City header row */
.st-city-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  position: relative;
}

.st-city-header::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #E2E8F0;
}

.st-city-header.st-first::before { top: 50%; }
.st-city-header.st-last::before { bottom: 50%; }

.st-city-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  flex: 1;
}

.st-city-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-left: auto;
}

.st-stop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 6px 3px 2px;
  position: relative;
  border-radius: 4px;
  transition: background 0.1s;
}

.st-stop:hover {
  background: #F8FAFC;
}

.st-stop::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #E2E8F0;
}

.st-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.st-dot-start {
  background: var(--blue-400);
}

.st-dot-mid {
  width: 6px;
  height: 6px;
  margin: 0 2px;
  background: #CBD5E1;
}

.st-dot-end {
  background: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(119,166,253,0.25);
}

.st-time {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  min-width: 46px;
  flex-shrink: 0;
}

.st-name {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text-secondary);
  flex: 1;
}

.st-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.st-badge-pickup {
  background: var(--blue-50);
  color: var(--blue-400);
}

.st-badge-dropoff {
  background: var(--green-100);
  color: var(--success);
}

.st-expand-row {
  display: flex;
  align-items: center;
  padding: 4px 0;
  position: relative;
}

.st-expand-row::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #E2E8F0;
}

.st-line-segment {
  width: 10px;
  flex-shrink: 0;
}

.st-expand-btn {
  background: var(--navy-50);
  border: none;
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: background 0.15s;
  margin-left: 12px;
  position: relative;
  z-index: 1;
}

.st-expand-btn:hover { background: #E2E8F0; }

/* Route info tooltip */
.st-route-info {
  margin-bottom: 14px;
}

.st-route-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-400);
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
}

.st-route-info-btn:hover { text-decoration: underline; }

.st-info-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-400);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.st-route-info-text {
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--navy-50);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Map icon button on stop */
.st-map-btn {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  transition: all 0.15s;
  padding: 0;
  opacity: 0;
}

.st-stop:hover .st-map-btn {
  opacity: 1;
}

.st-map-btn:hover {
  color: var(--blue-400);
}

.st-map-btn svg {
  width: 13px;
  height: 13px;
}

/* Route tab 2-column layout */
.route-tab-layout {
  display: flex;
  gap: 32px;
  width: 100%;
}

.route-tab-left {
  flex: 1;
  min-width: 0;
}

.route-tab-right {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Bonus card */
.bonus-card {
  padding: 20px;
  background: linear-gradient(135deg, var(--navy-50) 0%, var(--blue-50) 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.bonus-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-900);
  line-height: 1.5;
  margin-bottom: 10px;
}

.bonus-badge {
  display: inline-block;
  background: var(--navy-900);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}

.bonus-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
}

.bonus-discount {
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}

/* Route links */
.route-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.route-link {
  font-size: 14px;
  color: var(--blue-400);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid #F1F5F9;
  transition: color 0.15s;
}

.route-link:last-child { border-bottom: none; }
.route-link:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .route-tab-layout { flex-direction: column; gap: 20px; }
  .route-tab-right { width: 100%; }
}

/* Notice text */
.st-notice {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 10px;
}

/* Driver section */
.det-driver {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--navy-50);
  border-radius: 10px;
  margin-bottom: 12px;
}

.det-driver-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  flex-shrink: 0;
}

.det-driver-ava svg { width: 20px; height: 20px; }

.det-driver-info { flex: 1; }

.det-driver-name {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--navy-900);
}

.det-driver-role {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 1px;
}

.det-driver-phone {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--blue-400);
  text-decoration: none;
  flex-shrink: 0;
}

.det-driver-phone:hover { text-decoration: underline; }

/* Vehicle card */
.det-vehicle-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.det-vehicle-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.det-vehicle-name {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--navy-900);
}

.det-vehicle-type {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

.det-vehicle-rating {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--amber-500);
  background: var(--cream);
  padding: 3px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Carrier card layout (2 columns) */
.carrier-card {
  display: flex;
  gap: 40px;
}

.carrier-card-left {
  flex: 1;
  min-width: 0;
}

.carrier-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
}

/* Right: company "business card" */
.carrier-card-right {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px;
  background: linear-gradient(145deg, var(--navy-50) 0%, var(--blue-50) 100%);
  border-radius: 16px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Decorative circle */
.carrier-card-right::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(0,34,79,0.05);
}

.carrier-card-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  color: var(--navy-900);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,34,79,0.12);
  position: relative;
  z-index: 1;
}

.carrier-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.carrier-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  max-height: 80px;
  overflow-y: auto;
  padding-right: 4px;
  position: relative;
  z-index: 1;
}

.carrier-card-desc::-webkit-scrollbar { width: 3px; }
.carrier-card-desc::-webkit-scrollbar-track { background: transparent; }
.carrier-card-desc::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }

.carrier-card-phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.carrier-card-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  color: var(--navy-900);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  border: 1px solid var(--border);
  letter-spacing: 0.3px;
}

.carrier-card-phone svg { color: var(--navy-900); }

.carrier-card-phone:hover {
  background: var(--navy-900);
  color: white;
  border-color: var(--navy-900);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,34,79,0.2);
}

.carrier-card-phone:hover svg { color: white; }

@media (max-width: 767px) {
  .carrier-card { flex-direction: column; gap: 20px; }
  .carrier-card-right { width: 100%; }
}

/* Carrier rows (label — value list) */
.carrier-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.carrier-row {
  display: flex;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
  gap: 24px;
}

.carrier-row:last-child { border-bottom: none; }

.carrier-row-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  min-width: 200px;
  flex-shrink: 0;
}

.carrier-row-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-900);
}

.carrier-row-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-400);
  text-decoration: none;
}

.carrier-row-link:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .carrier-row {
    flex-direction: column;
    gap: 2px;
  }
  .carrier-row-label { min-width: 0; font-size: 12px; }
}

/* Company header */
.det-company-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.det-company-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #EFF6FF;
  color: #5BA875;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.det-company-name {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
}

.det-company-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
}

/* Legacy timeline (keep for compatibility) */
.tl { display: flex; gap: 10px; }

.tl-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  flex-shrink: 0;
}

.tl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5BA875;
  flex-shrink: 0;
}

.tl-dot-end {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #5BA875;
  background: #fff;
  flex-shrink: 0;
}

.tl-line {
  flex: 1;
  width: 1px;
  background: #E2E8F0;
  margin: 3px 0;
  min-height: 16px;
}

.tl-stops {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tl-stop { display: flex; flex-direction: column; gap: 1px; }

.tl-stop-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tl-time {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  width: 40px;
  flex-shrink: 0;
}

.tl-city {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
}

.tl-sub {
  font-size: 12px;
  color: var(--dark2);
  padding-left: 48px;
}

.tl-gap {
  font-size: 10px;
  font-weight: 700;
  color: var(--dark2);
  padding-left: 48px;
  letter-spacing: 0.5px;
}

/* Seats grid */
.seats-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark2);
  margin-bottom: 8px;
}

.seats-grid {
  display: grid;
  grid-template-columns: repeat(4, 24px);
  gap: 4px;
}

.seat {
  width: 24px;
  height: 22px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seat.free  { background: var(--blue-bg); color: var(--blue); }
.seat.taken { background: var(--bg2); color: var(--gm-border); }
.seat.sel   { background: var(--blue); color: #fff; }

/* Bus info */
.bus-info {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bus-photo {
  width: 120px;
  height: 80px;
  background: var(--bg2);
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.bus-specs {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.bus-spec { display: flex; flex-direction: column; gap: 1px; }
.bus-spec-label { font-size: 12px; color: var(--dark2); }
.bus-spec-val { font-size: 14px; font-weight: 500; color: var(--dark); }

/* Carrier info */
.carrier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

/* legacy carrier styles removed — using .carrier-rows now */

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — ATLAS / SERP / FLIGHT CARD
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .atlas-hero__title { font-size: 26px; }
  .atlas-hero__sub { font-size: 15px; }

  /* Search card mobile — поля в столбик, swap-круг между Откуда/Куда */
  .sf-bar { flex-direction: column; gap: 10px; }
  .sf-locwrap { flex-direction: column; gap: 10px; }
  .sf-field { border: 1px solid #DDE6F2; }
  .sf-field--date { flex: auto; }
  .sf-field--pax { flex: auto; }
  .sf-swap { width: 28px; height: 28px; }
  .sf-submit { width: 100%; padding: 14px; }

  .atlas-popular__grid {
    grid-template-columns: 1fr;
  }

  .atlas-popular__item {
    border-right: none !important;
    border-bottom: 1px solid var(--gm-border);
  }

  .atlas-popular__item:last-child {
    border-bottom: none;
  }

  .atlas-app-info__inner {
    flex-direction: column;
    gap: 32px;
  }

  .atlas-app-info__phones { display: none; }
  .atlas-app-info__stores { flex-wrap: wrap; }

  /* Flight card responsive */
  .fcard-body {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .fc-route {
    flex-direction: row;
    gap: 0;
  }

  .fc-time { font-size: 22px; }
  .fc-timeline { min-width: 80px; padding: 0 12px; }
  .fc-city { max-width: 80px; font-size: 12px; }
  .fc-stop { max-width: 80px; }

  .fc-price-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 0;
    padding-top: 16px;
    border-left: none;
    border-top: 1px solid #F1F5F9;
    min-width: 0;
  }

  .fc-price { font-size: 26px; }

  .btn-select {
    width: auto;
    margin-top: 0;
    padding: 10px 24px;
  }

  .fcard-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  .fcard-foot-right {
    flex-wrap: wrap;
    gap: 8px;
  }

  .fcard-detail-body {
    flex-direction: column;
    gap: 16px;
  }

  .vehicle-grid {
    grid-template-columns: 1fr 1fr;
  }

  .carrier-info-grid {
    grid-template-columns: 1fr;
  }

  .route-leg {
    grid-template-columns: 44px 20px 1fr;
    padding: 12px 14px;
  }

  .fcard-detail-body .seats-col {
    width: 100%;
  }

  .result-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .carrier-grid {
    grid-template-columns: 1fr;
  }

  .bus-info {
    flex-direction: column;
  }

  .bus-specs {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .atlas-popular__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .atlas-popular__item:nth-child(3n) {
    border-right: 1px solid var(--gm-border);
  }

  .atlas-popular__item:nth-child(2n) {
    border-right: none;
  }

  .atlas-app-info__phones { width: 280px; }
  .atlas-phone { width: 160px; }
  .atlas-phone--front { left: 100px; }

}

/* ═══════════════════════════════════════════════════════════════
   BOOKING DETAIL — belbilet brand redesign
   ═══════════════════════════════════════════════════════════════ */

/* ── Ticket tokens ── */
:root {
  --ticket-bg: linear-gradient(160deg, #fffffb 0%, #fdfcf6 100%);
  --ticket-edge: rgba(185, 148, 60, .35);
  --ticket-perf: rgba(185, 148, 60, .55);
  --ticket-shadow: 0 2px 6px rgba(90, 60, 10, .07), 0 6px 20px rgba(90, 60, 10, .09);
  --ok: #2E9E5B;
  --ok-bg: #E6F6EC;
  --done: #3A6EA5;
  --done-bg: #E9F1FB;
  --danger: #D23B3B;
  --danger-bg: #FCEBEB;
  --r-card: 18px;
  --r-btn: 14px;
  --r-pill: 999px;
  --shadow-card: 0 4px 12px rgba(7, 32, 68, .06);
  --accent-blue: #0A4DD6;
  --divider: #DDE6F2;
}

/* ── Back link (belbilet) ── */
.bd-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 14px 0 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.bd-back .material-icons { font-size: 17px; }
.bd-back:hover { color: var(--color-primary); }

/* ── Page title + status badge ── */
.bd-ptitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 12px;
}
.bd-ptitle h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-style: normal;
}
.bd-ptitle .bd-sub {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 2px;
}

/* ── Status badge ── */
.bd-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  flex: 0 0 auto;
}
.bd-badge .material-icons { font-size: 14px; }
.bd-badge--active { color: var(--ok); background: var(--ok-bg); }
.bd-badge--done { color: var(--done); background: var(--done-bg); }
.bd-badge--cancelled { color: var(--danger); background: var(--danger-bg); }

/* ── Grid layout (mobile-first → desktop 2-col) ── */
.bd-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  grid-template-areas: "route" "docs" "ticket" "actions" "details" "map";
  padding-bottom: 8px;
}
.bd-layout > * { margin-bottom: 0; }
.bd-a-route { grid-area: route; }
.bd-a-docs { grid-area: docs; }
.bd-a-ticket { grid-area: ticket; }
.bd-a-actions { grid-area: actions; }
.bd-a-details { grid-area: details; }
.bd-a-map { grid-area: map; }

/* ── Route card (ticket-style) ── */
.bd-rcard {
  background: var(--ticket-bg);
  border: 1px solid var(--ticket-edge);
  border-radius: var(--r-card);
  box-shadow: var(--ticket-shadow);
  padding: 16px 18px;
}
.bd-rroute {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.bd-rcol {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.bd-rcol--arr {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
}
.bd-rtime {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.bd-rcity {
  font-size: 14px;
  font-weight: 700;
  margin-top: 3px;
}
.bd-rstation {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
  max-width: 130px;
  margin-top: 2px;
}
.bd-rmid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-top: 4px;
  min-width: 54px;
}
.bd-rmid .material-icons { font-size: 18px; color: var(--color-primary); }
.bd-rdur {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: #f3f0e6;
  white-space: nowrap;
}
.bd-rline {
  height: 2px;
  flex: 1;
  background: repeating-linear-gradient(90deg, var(--text-muted) 0 4px, transparent 4px 8px);
  width: 42px;
  opacity: 0.6;
}
.bd-rmeta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--ticket-perf);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.bd-rmeta .material-icons { font-size: 15px; color: var(--color-primary); }
.bd-rmeta .bd-dot-sep { color: var(--text-muted); }

/* ── Docs-needed banner ── */
.bd-docsban {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-cream);
  border: 1px solid #F4D9A8;
  border-radius: var(--r-card);
  padding: 13px 14px;
}
.bd-docsban__ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--color-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bd-docsban__ico .material-icons { font-size: 21px; }
.bd-docsban__body { flex: 1; min-width: 0; }
.bd-docsban__body h4 {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--orange-600);
}
.bd-docsban__body p {
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.35;
}
.bd-docsban__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 8px 12px;
  border-radius: var(--r-btn);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 152, 40, .3);
  white-space: nowrap;
  font-family: var(--font-sans);
}
.bd-docsban__cta .material-icons { font-size: 15px; }
.bd-docsban__cta:hover { background: var(--orange-600); }

/* ── E-ticket card (with perforation) ── */
.bd-eticket {
  position: relative;
  background: var(--ticket-bg);
  border: 1px solid var(--ticket-edge);
  border-radius: var(--r-card);
  box-shadow: var(--ticket-shadow);
}
.bd-eticket__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
}
.bd-eticket__head .material-icons { font-size: 18px; color: var(--orange-600); }
.bd-eticket__head h3 { font-size: 13px; font-weight: 800; }
.bd-eticket__head .bd-ord {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
/* perforation: dashed line + circular cutouts */
.bd-perf {
  position: relative;
  height: 1px;
  margin: 0 14px;
  border-top: 2px dashed var(--ticket-perf);
}
.bd-perf::before,
.bd-perf::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--ticket-edge);
}
.bd-perf::before { left: -26px; }
.bd-perf::after { right: -26px; }
.bd-eticket__qrwrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 18px 24px;
}
.bd-qrbox {
  width: 188px;
  height: 188px;
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(7, 32, 68, .08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bd-eticket__hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
}
.bd-eticket__hint b { color: var(--text-primary); font-weight: 800; }
.bd-eticket__seat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-blue);
  color: var(--accent-blue);
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.bd-eticket__seat .material-icons { font-size: 15px; }

/* ── Action buttons ── */
.bd-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.bd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  padding: 12px 16px;
  border-radius: var(--r-btn);
  cursor: pointer;
  border: 1px solid var(--divider);
  background: #fff;
  color: var(--text-primary);
  width: 100%;
  font-family: var(--font-sans);
  transition: all 0.15s;
}
.bd-btn .material-icons { font-size: 18px; }
.bd-btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(91, 168, 117, .3);
}
.bd-btn--primary:hover { background: var(--green-600); }
.bd-btn--outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.bd-btn--danger { color: var(--danger); border-color: #F1C9C9; background: #fff; }
.bd-btn--danger:hover { background: var(--danger-bg); }
.bd-btn .bd-icon-primary { color: var(--color-primary); }

/* ── Details card ── */
.bd-dcard {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 6px 16px;
}
.bd-dsection {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 0 8px;
}
.bd-drow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--divider);
}
.bd-drow:first-of-type { border-top: none; }
.bd-drow .material-icons { font-size: 18px; color: var(--text-muted); flex: 0 0 auto; }
.bd-drow .bd-k { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.bd-drow .bd-v { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--text-primary); text-align: right; }
.bd-drow .bd-v--price { color: var(--accent-blue); font-size: 15px; }
.bd-drow .bd-v--muted { color: var(--text-secondary); font-weight: 700; }

/* ── Map / tracking card ── */
.bd-mcard {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.bd-mcard__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
}
.bd-mcard__head .material-icons { font-size: 18px; color: var(--color-primary); }
.bd-mcard__head h3 { font-size: 13px; font-weight: 800; }

/* ── Sheet drawer brand (shared overrides for all bottom sheets) ── */
.bd-sheet-header {
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

/* ── Timestamp / order created ── */
.bd-created {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding: 4px 0;
}

/* ── DESKTOP (≥860px) ── */
@media (min-width: 860px) {
  .bd-back { padding-top: 20px; }
  .bd-ptitle h1 { font-size: 26px; }
  .bd-ptitle .bd-sub { font-size: 12.5px; }

  .bd-layout {
    grid-template-columns: 1fr 358px;
    column-gap: 24px;
    row-gap: 18px;
    align-items: start;
    grid-template-areas:
      "route   ticket"
      "docs    ticket"
      "details ticket"
      "map     actions";
  }
  .bd-rtime { font-size: 30px; }
  .bd-rstation { max-width: none; }
  .bd-qrbox { width: 212px; height: 212px; }
  .bd-ptitle { margin-bottom: 18px; }
}

@media (min-width: 1080px) {
  .bd-layout { grid-template-columns: 1fr 380px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLIGHT DETAIL PAGE — /flights/[id]  (belbilet brand redesign)
   ═══════════════════════════════════════════════════════════════════════════ */

.fd-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Breadcrumbs */
.fd-crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 0 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.fd-crumbs a:hover { color: var(--green-500); }
.fd-crumbs__back {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0;
}
.fd-crumbs__back:hover { color: var(--green-500); }
.fd-crumbs__now { color: var(--text-primary); font-weight: 800; }

/* Page grid */
.fd-page {
  display: grid;
  grid-template-columns: 1fr 332px;
  gap: 22px;
  padding: 6px 0 64px;
  align-items: start;
}
.fd-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ── HERO TIMELINE (ticket-style card) ── */
.fd-hero {
  background: linear-gradient(160deg, #fffffb 0%, #fdfcf6 100%);
  border: 1px solid rgba(185, 148, 60, .35);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(90,60,10,.07), 0 6px 20px rgba(90,60,10,.09);
  padding: 22px 26px 20px;
  position: relative;
  overflow: hidden;
}
.fd-hero__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.fd-hero__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}
.fd-tag-direct {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--green-500);
  border: 1px solid var(--green-500);
  border-radius: 999px;
  padding: 4px 11px;
}
.fd-tag-seats {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--orange-600);
  background: var(--surface-cream);
  border-radius: 999px;
  padding: 4px 11px;
}
.fd-tag-seats--few { color: var(--error); }

/* Timeline */
.fd-tl {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.fd-tl__pt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.fd-tl__pt--arr {
  align-items: flex-end;
  text-align: right;
}
.fd-tl__time {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.fd-tl__city {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}
.fd-tl__station {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 200px;
  line-height: 1.3;
}
.fd-tl__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  flex: 0 0 auto;
}
.fd-tl__dur {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  background: #f5f7fb;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.fd-tl__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.fd-tl__line {
  height: 2px;
  width: 64px;
  background: repeating-linear-gradient(90deg, var(--text-muted) 0 5px, transparent 5px 10px);
}
.fd-tl__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--green-500);
  background: #fff;
  flex: 0 0 auto;
}
.fd-tl__dot--fill { background: var(--green-500); }

/* ── SECTION CARD ── */
.fd-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(7,32,68,.06);
  padding: 18px 22px;
}
.fd-card__h {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.fd-card__sub {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── CARRIER ── */
.fd-carrier {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fd-carrier__logo {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(160deg, var(--surface-blue), var(--surface-cream));
  color: var(--navy-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
}
.fd-carrier__body { flex: 1; min-width: 0; }
.fd-carrier__name { font-size: 14px; font-weight: 800; line-height: 1.25; color: var(--text-primary); }
.fd-carrier__sub { font-size: 11.5px; color: var(--text-secondary); margin-top: 2px; }
.fd-carrier__rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-size: 13px;
  color: var(--text-primary);
  background: #f5f7fb;
  border-radius: 999px;
  padding: 6px 12px;
  flex: 0 0 auto;
}
.fd-carrier__rating small {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Vehicle chips */
.fd-veh {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.fd-veh__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 13px;
  min-width: 0;
}
.fd-veh__chip span {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
}
.fd-veh__chip b {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

/* Amenities */
.fd-amen {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}
.fd-amen__i {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--surface-blue);
  border-radius: 999px;
  padding: 7px 13px;
}

/* Vehicle photos strip */
.fd-photos {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.fd-photo-thumb {
  flex: 0 0 auto;
  width: 100px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #f5f7fb;
}
.fd-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── STOPS TIMELINE ── */
.fd-stops {
  position: relative;
  padding-left: 6px;
}
.fd-stop {
  display: grid;
  grid-template-columns: 58px 22px 1fr;
  align-items: start;
  gap: 10px;
  position: relative;
  padding-bottom: 20px;
}
.fd-stop:last-child { padding-bottom: 0; }
.fd-stop__time {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
  color: var(--text-primary);
}
.fd-stop__rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.fd-stop__node {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 3px solid var(--text-muted);
  background: #fff;
  margin-top: 3px;
  z-index: 1;
}
.fd-stop__line {
  position: absolute;
  top: 6px;
  bottom: -23px;
  width: 2px;
  background: var(--border);
}
.fd-stop:last-child .fd-stop__line { display: none; }
.fd-stop--end .fd-stop__node {
  border-color: var(--green-500);
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(91,168,117,.16);
}
.fd-stop--end .fd-stop__time { color: var(--green-500); }
.fd-stop--mid .fd-stop__node {
  width: 11px;
  height: 11px;
  border-width: 2px;
  margin-top: 4px;
}
.fd-stop__name { font-size: 13px; font-weight: 800; line-height: 1.2; color: var(--text-primary); }
.fd-stop--mid .fd-stop__name { font-weight: 700; color: var(--text-secondary); }
.fd-stop__addr { font-size: 11px; color: var(--text-secondary); margin-top: 2px; line-height: 1.35; }
.fd-stop__tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--orange-600);
  background: var(--surface-cream);
  border-radius: 999px;
  padding: 2px 8px;
  margin-top: 5px;
}

/* ── MAP PLACEHOLDER ── */
.fd-map {
  height: 240px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background:
    radial-gradient(circle at 24% 32%, rgba(91,168,117,.10) 0 14px, transparent 15px),
    radial-gradient(circle at 78% 70%, rgba(10,77,214,.10) 0 14px, transparent 15px),
    repeating-linear-gradient(0deg, #eef2f7 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, #eef2f7 0 1px, transparent 1px 34px),
    #f7f9fc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}
.fd-map::before {
  content: '';
  position: absolute;
  left: 14%;
  top: 30%;
  width: 62%;
  height: 42%;
  border-bottom: 3px solid var(--green-500);
  border-left: 3px dashed var(--orange-500);
  border-radius: 0 0 0 60px;
  opacity: .55;
}
.fd-map__pin {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(7,32,68,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fd-map__t { font-size: 13px; font-weight: 800; color: var(--text-primary); }
.fd-map__s { font-size: 11px; font-weight: 500; }

/* ── BOOKING ASIDE (sticky) ── */
.fd-aside {
  position: sticky;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Price card */
.fd-pricecard {
  background: linear-gradient(160deg, #fffffb 0%, #fdfcf6 100%);
  border: 1px solid rgba(185, 148, 60, .35);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(90,60,10,.07), 0 6px 20px rgba(90,60,10,.09);
  overflow: hidden;
}
.fd-pricecard__body { padding: 18px 20px 16px; }
.fd-pricecard__tariff {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-secondary);
}
.fd-pricecard__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 6px;
}
.fd-pricecard__price {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy-500);
  letter-spacing: -1px;
  line-height: 1;
}
.fd-pricecard__price small {
  font-size: 14px;
  font-weight: 700;
}
.fd-pricecard__per {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
  line-height: 1.3;
}
.fd-pricecard__seats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green-500);
  margin-top: 12px;
}
.fd-pricecard__seats--few { color: var(--error); }
.fd-pricecard__cut {
  height: 1px;
  margin: 14px 0 0;
  border-top: 1.5px dashed rgba(185, 148, 60, .55);
  position: relative;
}
.fd-pricecard__cut::before,
.fd-pricecard__cut::after {
  content: '';
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F5F5F5;
  border: 1px solid rgba(185, 148, 60, .35);
}
.fd-pricecard__cut::before { left: -29px; }
.fd-pricecard__cut::after { right: -29px; }
.fd-pricecard__foot { padding: 16px 20px 18px; }

/* Book button */
.fd-book-btn {
  width: 100%;
  background: var(--green-500);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 14px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(91,168,117,.32);
  transition: background .15s, transform .12s;
  font-family: var(--font-sans);
}
.fd-book-btn:hover { background: var(--green-600); transform: translateY(-1px); }
.fd-book-btn--outline {
  background: transparent;
  border: 2px solid var(--navy-900);
  color: var(--navy-900);
  box-shadow: none;
}
.fd-book-btn--outline:hover { background: var(--navy-50); }
.fd-reassure {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* Documents badge */
.fd-docs {
  display: flex;
  gap: 11px;
  background: var(--surface-cream);
  border: 1px solid #F2D9A8;
  border-radius: 16px;
  padding: 13px 15px;
}
.fd-docs__ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(7,32,68,.06);
}
.fd-docs__t { font-size: 12px; font-weight: 800; color: var(--text-primary); line-height: 1.25; }
.fd-docs__d { font-size: 10.5px; color: var(--text-secondary); margin-top: 3px; line-height: 1.4; }

/* Fare conditions */
.fd-fare { display: flex; flex-direction: column; gap: 9px; }
.fd-fare__row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
}
.fd-fare__row b { color: var(--text-primary); font-weight: 700; }

/* ── MOBILE STICKY BAR ── */
.fd-mbar { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .fd-page {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fd-aside {
    position: static;
  }
}

@media (max-width: 600px) {
  .fd-wrap { padding: 0 14px; }
  .fd-page { padding-bottom: 96px; }
  .fd-hero { padding: 18px 16px 16px; }
  .fd-hero__top { margin-bottom: 14px; }
  .fd-tl { gap: 6px; }
  .fd-tl__time { font-size: 27px; }
  .fd-tl__city { font-size: 13px; }
  .fd-tl__station { font-size: 10px; max-width: 110px; }
  .fd-tl__line { width: 30px; }
  .fd-card { padding: 15px 16px; }
  .fd-carrier__rating { padding: 5px 10px; }

  /* Hide desktop book button, show mobile sticky bar */
  .fd-pricecard__foot,
  .fd-reassure { display: none; }

  .fd-mbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(7,32,68,.10);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }
  .fd-mbar__price {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }
  .fd-mbar__price b {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy-500);
    letter-spacing: -.5px;
  }
  .fd-mbar__price span {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-secondary);
  }
  .fd-mbar .fd-book-btn {
    flex: 1;
    padding: 13px;
    font-size: 14px;
  }
}
