:root {
  --header-offset: 96px;
  --primary: #0056b3;
  --primary-hover: #004494;
  --bg: #f8f9fa;
  --white: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 14px;
  --shadow: 0 4px 20px rgba(0,0,0,0.05);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: var(--header-offset, 96px); }
#faq,
#contacts {
  scroll-margin-top: var(--header-offset, 96px);
}
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
h1, h2, h3 { letter-spacing: -0.02em; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link.visually-hidden:focus {
  position: fixed !important;
  top: var(--space-2, 8px);
  left: var(--space-2, 8px);
  z-index: 100000;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  background: #111827;
  color: #fff !important;
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  text-decoration: none;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* === BUTTONS (единая шкала: радиус, высота, фокус) === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm, 8px);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: none;
  font-size: 15px;
  min-height: 44px;
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.2;
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border: 1px solid var(--border); background: #fff; color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.routes-all-btn { background: #fff !important; color: #111827 !important; border: 1px solid #d1d5db !important; }
.routes-all-btn:hover { color: #0056b3 !important; border-color: #0056b3 !important; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f1f5f9; }
.btn-sm { padding: 10px 16px; font-size: 14px; min-height: 44px; }
a.btn,
a.btn:hover,
a.btn:visited,
a.btn:active { text-decoration: none !important; }
.section-header-row > a.btn {
  color: #111827 !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  padding: 10px 18px;
  line-height: 1.2;
}
.section-header-row > a.btn:hover {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* === HEADER === */
.site-header {
  background: #eef2f6;
  border-bottom: 0;
  padding: 14px 0 10px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #e7ecf2;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
  padding: 10px 18px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 240px; min-height: 44px; }
.logo-home {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none !important;
  border-bottom: 0 !important;
}
.logo-subtitle { text-decoration: none !important; }
a.logo-title.logo-account {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary, #0052cc);
  text-decoration: none !important;
  border-bottom: 0 !important;
}
a.logo-title.logo-account:hover,
a.logo-title.logo-account:focus-visible {
  text-decoration: underline !important;
}
span.logo-title {
  font-weight: 700;
  font-size: 18px;
  color: #1f2350;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #1f5fae;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  flex: 0 0 auto;
}
.logo-image {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: contain;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  flex: 0 0 auto;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.08; }
.logo-title { font-weight: 700; font-size: 18px; color: #1f2350; }
.logo-subtitle { font-size: 12px; color: #6b7280; max-width: 320px; }
.logo-title, .logo-subtitle { text-shadow: none; }

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.main-nav__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 0;
  row-gap: 8px;
}
.main-nav__cluster {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.main-nav__sep {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, #d1d5db 20%, #d1d5db 80%, transparent);
  margin: 0 10px;
  flex-shrink: 0;
  align-self: center;
}
.main-nav a {
  font-weight: 600;
  font-size: 13px;
  color: #1f2937;
  transition: color 0.2s ease, background 0.2s ease;
  border: 0;
  padding: 10px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 10px;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a:visited { color: #1f2937; }
.main-nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Страницы «Оплата / Документы» — визуально как вторичные CTA */
.main-nav__pill {
  background: #f8fafc;
  color: #1f2937 !important;
  border: 1px solid #dbe3ef;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  min-height: 40px;
}
.main-nav__pill:hover {
  color: var(--primary) !important;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.main-nav__pill:visited {
  color: #1f2937 !important;
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.header-phone-chip {
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2166c3;
  white-space: nowrap;
  line-height: 1.1;
  min-height: 44px;
  text-decoration: none !important;
  border-bottom: 0 !important;
  border: 1px solid #cde0f8;
  border-radius: 10px;
  padding: 8px 10px;
  background: #f5f9ff;
}
.header-phone-chip:hover { background: #eef5ff; color: #0f4ea8; }
.header-phone-chip svg { width: 13px; height: 13px; flex-shrink: 0; }
.header-socials { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.header-socials a {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #c6d6ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2166c3;
  background: #f8fbff;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.header-socials a:hover {
  color: #0f4ea8;
  border-color: #8db2e5;
  background: #eef5ff;
}
.header-socials svg { width: 14px; height: 14px; display: block; }

.header-inner.logo-pos-center {
  grid-template-columns: 1fr auto 1fr;
}
.header-inner.logo-pos-center .main-nav { justify-self: start; }
.header-inner.logo-pos-center .logo { justify-self: center; }
.header-inner.logo-pos-center .header-actions { justify-self: end; }

.header-inner.logo-pos-right {
  grid-template-columns: auto 1fr auto;
}
.header-inner.logo-pos-right .main-nav { justify-self: start; }
.header-inner.logo-pos-right .header-actions { justify-self: center; }
.header-inner.logo-pos-right .logo { justify-self: end; }

/* === HERO (split: текст + img, без full-bleed фото) === */
.hero.hero--split {
  position: relative;
  padding: 72px 0 96px;
  background: var(--bg, #f8fafc);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px 40px;
  align-items: center;
  margin-bottom: 4px;
}
.hero__copy {
  min-width: 0;
}
.hero__visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero__bus-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-lg, 14px);
  box-shadow: var(--shadow-soft, 0 4px 20px rgba(0, 0, 0, 0.08));
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: var(--color-surface, #fff);
}
.hero__booking-wrap {
  margin-top: -20px;
  position: relative;
  z-index: 2;
}
.hero-content {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  max-width: 100%;
}
.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.1; margin-bottom: 16px; color: #111; }
.hero h1 span { color: var(--primary); }
.hero-subtitle { font-size: 18px; color: var(--text-muted); margin-bottom: 24px; }
.hero-badges { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 8px; background: rgba(241, 245, 249, 0.95); padding: 8px 16px; border-radius: 50px; font-size: 14px; font-weight: 500; transition: all 0.3s ease; }
.badge:hover { background: #e0e7ff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,123,255,0.15); }
.badge span { transition: all 0.3s ease; }

/* === BOOKING FORM === */
.booking-box {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  margin-top: 0;
  align-self: stretch;
}
.booking-framework-wrap { border-radius: 12px; transition: box-shadow 0.35s ease, transform 0.35s ease; position: relative; z-index: 1; }

/* Iframe booking shell: load overlay (theme-owned chrome only; iframe document is external). */
.gm-booking-shell {
  position: relative;
  isolation: isolate;
}
.gm-booking-shell__status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  transition: opacity 0.35s ease;
}
.gm-booking-shell--loaded .gm-booking-shell__status {
  opacity: 0;
  pointer-events: none;
}
.gm-booking-shell__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: gmBookingSpin 0.85s linear infinite;
}
@keyframes gmBookingSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .gm-booking-shell__spinner {
    animation: none;
    border-top-color: var(--primary);
  }
}
.booking-prefill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  background: #eff6ff;
  color: #0b4bb0;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}
.booking-framework-wrap.booking-prefill-highlight {
  box-shadow: 0 0 0 3px rgba(0,123,255,0.28), 0 14px 36px rgba(0,123,255,0.2);
  transform: translateY(-1px);
}
.booking-tabs { display: flex; gap: 24px; margin-bottom: 24px; border-bottom: 2px solid #f1f5f9; }
.booking-tab { padding-bottom: 12px; font-weight: 600; font-size: 15px; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.booking-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.booking-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 16px; align-items: end; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.input-with-icon { position: relative; display: flex; align-items: center; }
.field-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--primary); pointer-events: none; z-index: 1; }
.input-with-icon input { width: 100%; padding: 14px 16px 14px 48px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; font-family: inherit; background: #fff; transition: all 0.2s; }
.input-with-icon input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,123,255,0.1); }
.input-with-icon input::placeholder { color: #9ca3af; }
.btn-search { padding: 14px 28px; font-size: 15px; height: 52px; white-space: nowrap; gap: 8px; }

/* === SECTIONS === */
.section { padding: 80px 0; }
.section-surface-white { background: #fff; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header-row { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.section-header-row--single { justify-content: flex-start; align-items: center; }
.routes-title { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.routes-subtitle { color: #6b7280; font-size: 15px; }
.btn-link { min-height: 44px; display: inline-flex; align-items: center; }

/* === SCHEDULE (ROUTE-FIRST) === */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.schedule-toggle {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.schedule-toggle::-webkit-details-marker { display: none; }

.schedule-route-name {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.schedule-route-time {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

.schedule-toggle-icon {
  width: 24px;
  height: 24px;
  position: relative;
}

.schedule-toggle-icon::before,
.schedule-toggle-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.schedule-toggle-icon::before {
  width: 14px;
  height: 2px;
  top: 11px;
  left: 5px;
}

.schedule-toggle-icon::after {
  width: 2px;
  height: 14px;
  top: 5px;
  left: 11px;
}

.schedule-item[open] .schedule-toggle-icon::after { transform: scaleY(0); }

.schedule-content {
  border-top: 1px solid var(--border);
  padding: 12px 16px 14px;
}

.schedule-table-wrap {
  overflow-x: auto;
  border: 1px solid #eef2f7;
  border-radius: 10px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.schedule-table th,
.schedule-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  font-size: 13px;
}

.schedule-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  color: #6b7280;
  background: #f8fafc;
}

.schedule-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

/* === ROUTES GRID === */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.route-card-v2 {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.route-card-v2:hover {
  border-color: #007bff;
  box-shadow: 0 8px 24px rgba(0,123,255,0.12);
  transform: translateY(-2px);
}

/* Duration badge - top left corner */
.duration-label {
  position: absolute;
  top: 12px;
  left: 16px;
  background: #007bff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.route-card-v2:hover .duration-label {
  background: #0056b3;
  transform: scale(1.1);
}

/* Times row - departure, separator with bus, arrival WITH VERTICAL LINES */
.times-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 12px 0;
}

.time-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-label {
  font-size: 10px;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
  margin-bottom: 4px;
}

.time-value {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

/* Time separator - horizontal lines around bus icon */
.time-separator {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 84px;
}

.sep-dash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10px;
  font-size: 20px;
  color: #9ca3af;
  line-height: 1;
  font-weight: 700;
}

/* Bus icon in center */
.duration-center {
  order: 2;
  flex: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bus-icon-center {
  width: 18px;
  height: 18px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: #007bff;
  flex-shrink: 0;
  opacity: 1;
  visibility: visible;
  stroke: currentColor;
  stroke-width: 2.5;
}

.route-card-v2:hover .bus-icon-center {
  animation: busMove 0.6s ease-in-out forwards;
  color: #0056b3;
}

@keyframes busMove {
  0% { transform: translateX(0) scaleX(1); }
  50% { transform: translateX(4px) scaleX(1.05); }
  100% { transform: translateX(-4px) scaleX(0.95); }
}

/* Route info */
.route-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 0 0;
  border-top: 1px solid #f3f4f6;
  text-align: center;
}

.route-name {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

.route-via {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.2;
}

/* Card footer - price, seats, button */
.card-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.info-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
}

.info-label {
  font-size: 10px;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.info-value {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.info-value.price {
  font-size: 15px;
}

.info-value.seats {
  color: #10b981;
}

.info-value.seats.low {
  color: #f59e0b;
}

.btn-book {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm, 8px);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  font-family: inherit;
  line-height: 1.2;
  box-sizing: border-box;
}

.btn-book:hover {
  background: var(--primary-hover);
}
.btn-book,
.btn-book:visited,
.btn-book:active {
  color: #fff;
  text-decoration: none !important;
}

.btn-book:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.arrow-btn {
  transition: transform 0.3s ease;
}

.btn-book:hover .arrow-btn {
  transform: translateX(3px);
}

.bus-icon-label {
  display: inline-block;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.route-card-v2:hover .bus-icon-label {
  transform: rotate(-8deg) translateX(1px);
}

/* === ROUTES CARD 2026+ === */
.route-card-2026 {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  /* stylelint-disable-next-line property-no-vendor-prefix -- Safari fallback */
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}
.route-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.route-card-2026 .duration-label {
  position: static;
  background: #1d4ed8;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #fff;
}
.seat-pill {
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  background: #ecfeff;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 5px 10px;
}
.timeline-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: flex-start;
}
.departure-block,
.arrival-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.departure-block { text-align: left; }
.arrival-block { text-align: right; }
.route-card-2026 .time-value {
  min-height: 1.35em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.city-value {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
}
.station-value {
  font-size: 12px;
  color: #64748b;
  min-height: 2.6em;
  line-height: 1.3;
}
.journey-visual {
  min-width: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.journey-line {
  width: 92px;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  overflow: hidden;
}
.journey-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
  transform-origin: left center;
  transform: scaleX(0.45);
  opacity: 0.95;
  transition: transform 0.45s ease, opacity 0.45s ease;
}
.journey-bus {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: left 0.45s ease, transform 0.45s ease;
  will-change: transform, left;
}
.route-card-2026 .journey-visual { display: flex !important; }
.route-card-2026:is(:hover, :focus-within) .journey-bus {
  left: 68px;
  transform: translateY(-50%);
}
.route-card-2026:hover .journey-line {
  background: #bfdbfe;
}
.route-card-2026:is(:hover, :focus-within) .journey-line::after {
  transform: scaleX(1);
  opacity: 1;
}
.route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}
.route-tag {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 9px;
}
.card-footer-2026 {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
}
.price-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.price-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 700;
}
.price-value {
  font-size: 24px;
  line-height: 1;
  color: #0f172a;
}
.route-card-2026 .btn-book {
  width: auto;
  min-width: 124px;
  min-height: 44px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  position: relative;
  overflow: hidden;
}
.route-card-2026 .btn-book::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.5s ease;
}
.route-card-2026 .btn-book:hover::before {
  left: 150%;
}
.bus-icon-glyph {
  display: inline-flex;
  color: currentColor;
  opacity: 0.9;
  vertical-align: middle;
}
.duration-label .bus-icon-glyph { margin-right: 6px; }
.journey-bus .bus-icon-glyph { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) {
  .route-card-2026 .journey-bus,
  .route-card-2026 .journey-line::after,
  .route-card-2026 .btn-book::before {
    transition: none !important;
    animation: none !important;
  }
}

/* === FEATURES === */
.features-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.feature-card { background: #fff; padding: 24px 16px; border-radius: 12px; text-align: center; border: 1px solid var(--border); transition: 0.2s; }
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.feature-icon { width: 48px; height: 48px; margin: 0 auto 16px; background: #eff6ff; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* === NEWS & PROMOS === */
.section-news-promos .section-header-row h2 { font-size: 32px; margin-bottom: 8px; }
.section-news-promos .section-header-row p { color: var(--text-muted); font-size: 15px; }
.news-promos-group { margin-bottom: 48px; }
.news-promos-subtitle { font-size: 24px; margin-bottom: 20px; }
.promos-grid, .news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.promo-card, .news-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: all 0.2s; position: relative; }
.promo-card:hover, .news-card:hover { border-color: var(--primary); box-shadow: 0 12px 28px rgba(0,123,255,0.12); transform: translateY(-3px); }
.promo-card img, .news-card img { width: 100%; height: 180px; object-fit: cover; }
.promo-body, .news-body { padding: 16px; }
.promo-body h4, .news-body h4 { font-size: 18px; margin-bottom: 10px; }
.promo-body p, .news-body p { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.promo-discount { position: absolute; top: 10px; right: 10px; background: #dc2626; color: #fff; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; z-index: 1; }
.promo-code { background: #f3f4f6; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 8px; }
.promo-end { color: #dc2626; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.news-meta { display: flex; gap: 10px; color: var(--text-muted); font-size: 12px; margin-bottom: 8px; }
.news-link {
  color: #334155;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}
.news-link:hover { color: #0f172a; text-decoration: none !important; }
.news-link:visited { color: #334155; text-decoration: none !important; }
.news-title-link {
  color: #0f172a;
  text-decoration: none;
}
.news-title-link:hover,
.news-title-link:visited { color: #0f172a; text-decoration: none; }
.news-empty { background: #fff; border: 1px dashed var(--border); color: var(--text-muted); border-radius: 12px; padding: 20px; }

/* === REVIEWS === */
.licenses-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.license-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.license-card img { width: 100%; height: 220px; object-fit: cover; }
.license-meta { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.license-meta strong { font-size: 16px; color: #111827; }
.license-meta span { font-size: 13px; color: #6b7280; }
.licenses-grid--photos-only .license-card--photo-only { padding: 0; }
.page-template-page-licenses #main-content h1 {
  text-align: center;
}
.page-template-page-licenses .licenses-page-intro {
  margin-bottom: 28px;
}
#main-content > .section > .container > h1 {
  text-align: center;
}
.licenses-page-intro {
  margin-bottom: 40px;
}
.licenses-grid--photos-only .license-card--photo-only img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 360px;
  object-fit: cover;
}

/* === PROCESS === */
.process-steps { display: flex; justify-content: space-between; position: relative; max-width: 1000px; margin: 0 auto; }
.process-steps::before { content: ''; position: absolute; top: 24px; left: 60px; right: 60px; height: 2px; background: #e5e7eb; z-index: 0; }
.process-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.step-num { width: 48px; height: 48px; background: #eff6ff; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; margin: 0 auto 16px; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(0,123,255,0.1); }
.step-content h3 { font-size: 16px; margin-bottom: 6px; }
.step-content p { font-size: 13px; color: var(--text-muted); }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: 0.2s; }
.faq-question { width: 100%; padding: 16px 20px; text-align: left; display: flex; justify-content: space-between; align-items: center; font-weight: 600; cursor: pointer; background: #fff; border: none; font-size: 16px; }
.faq-icon { width: 24px; height: 24px; position: relative; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--primary); border-radius: 2px; transition: 0.3s; }
.faq-icon::before { width: 14px; height: 2px; top: 11px; left: 5px; }
.faq-icon::after { width: 2px; height: 14px; top: 5px; left: 11px; }
details[open] .faq-icon { transform: rotate(45deg); }

.faq-item summary { list-style: none !important; }
.faq-item summary::-webkit-details-marker { display: none !important; }
.faq-item summary::marker { display: none !important; }
.faq-answer {
  padding: 0 20px 16px;
  color: var(--text);
  line-height: 1.6;
}
.faq-answer p { margin: 0; }
.faq-answer p + p { margin-top: 10px; }

/* === CONTACTS & MAP === */
.section-faq-contacts { background: var(--bg); padding: 80px 0 48px; }
.faq-contacts-wrapper { background: #fff; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); padding: 40px; overflow: hidden; }
.faq-header-row { margin-bottom: 20px; }
.faq-title { font-size: 26px; margin: 0; }
.contacts-title { font-size: 22px; margin-bottom: 20px; font-weight: 700; }
.contact-main { font-weight: 600; margin-bottom: 4px; }
.contact-main:last-child { margin-bottom: 0; }
.contact-phone-link {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}
.contact-phone-link:hover { color: var(--primary); }
.contact-phone-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.contact-link { color: #007bff; font-weight: 500; }
.contact-messenger-label {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
}
.contact-row--messengers {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.contact-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-social-icons li {
  margin: 0;
  padding: 0;
}
.contact-social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.contact-social-icon-link:hover {
  background: #eff6ff;
  border-color: var(--primary);
  color: var(--primary);
}
.contact-social-icon-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.schedule-pick-route-btn {
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}
.contact-muted { color: #6b7280; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.faq-column { display: flex; flex-direction: column; }
.contacts-column { display: grid; grid-template-columns: 300px 1fr; gap: 8px; align-items: stretch; }
.contacts-inner { display: flex; flex-direction: column; gap: 16px; padding: 0; border: none; }
.contact-row { display: flex; gap: 12px; align-items: flex-start; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.contacts-map { border-radius: 12px; overflow: hidden; height: 100%; min-height: 300px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.contacts-map iframe { width: 100%; height: 100%; }
.contacts-map-frame { border: 0; }

@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr; }
  .contacts-column { grid-template-columns: 1fr; }
}

/* === CTA === */
.cta-section { padding: 48px 0 60px; }
.cta-box { background: var(--primary); border-radius: 16px; padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; }
.cta-left { display: flex; align-items: center; gap: 20px; flex: 1; }
.cta-icon-box { width: 56px; height: 56px; background: rgba(255,255,255,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cta-content h2 { font-size: 24px; margin-bottom: 4px; }
.cta-content p { font-size: 15px; opacity: 1; color: rgba(255,255,255,0.9); margin: 0; }
.cta-box .btn-white { color: #0b4bb0; background: #fff; border: 1px solid rgba(255,255,255,0.9); font-weight: 700; }

/* === FOOTER === */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #111827 45%, #0b1220 100%);
  color: #9ca3af;
  padding: 56px 0 28px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px 32px; margin-bottom: 36px; align-items: start; }
.footer-logo { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.footer-brand-account {
  color: #f8fafc;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-brand-account:hover,
.footer-brand-account:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}
.footer-brand-name {
  color: #f8fafc;
  font-weight: 700;
  font-size: 18px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.footer-col--support { min-height: 220px; }
.footer-col h3 {
  color: #fff;
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-col p { color: #c5cad4; line-height: 1.6; }
.footer-col ul { margin: 0; }
.footer-support-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-support-group--legal {
  padding: 10px 0 0;
  border-radius: 12px;
  background: transparent;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}
.footer-legal-accordion {
  margin: 0;
}
.footer-legal-summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-legal-summary::-webkit-details-marker { display: none; }
.footer-legal-summary::after {
  content: '+';
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
}
.footer-legal-accordion[open] .footer-legal-summary::after {
  content: '−';
}
.footer-microheading {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; color: #d1d5db; }
.footer-links li:last-child { margin-bottom: 0; }
.footer-links a {
  color: #e5e7eb;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  margin-left: -10px;
  border-radius: 8px;
}
.footer-links a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); }
.footer-links a:visited { color: #e5e7eb; }
.footer-links a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
.footer-links--legal a { color: #cbd5e1; font-size: 13px; }
.footer-support-group .footer-links li { min-height: 44px; display: flex; align-items: center; }
.faq-readmore { margin: 10px 0 0; }
.faq-readmore a { text-decoration: none; color: var(--primary); font-weight: 600; }
.faq-readmore a:hover,
.faq-readmore a:focus-visible { text-decoration: underline; }
.faq-archive-title a { color: var(--text); text-decoration: none; }
.faq-archive-title a:hover { color: var(--primary); }

/* Архив FAQ: карточки и кнопка «Открыть вопрос» (контраст задаётся .btn-outline + colors-wcag) */
.section-faq-archive .faq-list .faq-item.faq-archive-card {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}
.section-faq-archive .faq-archive-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.35;
}
.section-faq-archive .faq-answer {
  margin: 0 0 14px;
  color: var(--text-muted, #64748b);
  font-size: 15px;
  line-height: 1.55;
}
.section-faq-archive .faq-archive-btn {
  margin-top: auto;
  align-self: flex-start;
}
.archive-pagination { margin-top: 26px; display: flex; justify-content: center; }
.archive-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.archive-pagination .page-numbers {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  text-decoration: none;
  padding: 0 12px;
}
.archive-pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-socials a { width: 44px; height: 44px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; transition: 0.2s; }
.footer-socials a:hover { background: var(--primary); }
.footer-socials svg { width: 18px; height: 18px; display: block; color: #fff; }
.footer-logo img { width: 24px; height: 24px; object-fit: contain; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 13px; }

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.18);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-text { color: #111827; font-size: 14px; line-height: 1.45; }
.cookie-banner-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cookie-banner a { color: var(--primary); text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }
.cookie-banner-panel {
  margin-top: 6px;
  display: grid;
  gap: 8px;
}
.cookie-banner-panel label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #374151;
}
.cookie-settings {
  color: #1f2937 !important;
  border-color: #cbd5e1 !important;
  text-decoration: none !important;
  background: #fff !important;
}
.cookie-close {
  width: 36px;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cookie-close:hover { border-color: #9ca3af; color: #111827; }
.header-phone-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.bus-rental-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bus-rental-form .bus-rental-field label { display: block; font-weight: 600; }
.bus-rental-form .icon-field input {
  min-height: 44px;
}
.rental-estimate { font-weight: 700; margin: 12px 0; }
.bus-rental-status { margin: 10px 0 0; font-size: 14px; line-height: 1.4; }
.bus-rental-status.is-error { color: #b91c1c; }
.bus-rental-status.is-success { color: #15803d; }
.page-links-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.page-shell { padding: 40px 0 72px; background: var(--bg, #f8fafc); }
.page-section .page-container { max-width: 920px; }
.page-article .page-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 28px;
  color: #111827;
  text-align: center;
}
.page-article .page-body {
  font-size: 16px;
  line-height: 1.65;
  color: #334155;
  max-width: 760px;
  margin: 0 auto;
}
.page-article .page-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 1.25em;
}
.page-article .page-body > * + * { margin-top: 1em; }
.page-article .page-body h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  color: #0f172a;
  margin-top: 1.1em;
  margin-bottom: 0.55em;
}
.page-article .page-body h2 { font-size: 1.25rem; margin-top: 1.5em; color: #0f172a; }
.page-article .page-body h3 { font-size: 1.1rem; margin-top: 1.25em; }
.page-article .page-body p { margin: 0; }
.page-article .page-body ul,
.page-article .page-body ol {
  padding-left: 1.25em;
  margin: 0.45em 0 0.9em;
}

/* Specific page: keep semantic h1, but style inner one like h2 (single visual H1 on screen). */
.page-id-207 .page-article .page-body h1 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #0f172a;
}
.page-article .page-links-row .btn,
.page-article .legal-docs-grid .btn {
  min-height: 44px;
  padding: 10px 16px;
  font-weight: 600;
}
.legal-docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.legal-doc-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}
.legal-doc-card .btn { margin-bottom: 8px; }
.legal-doc-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
}

/* === MOBILE MENU === */
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; align-items: center; justify-content: center; }
.mobile-menu-toggle span { display: block !important; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: 0.3s; border-radius: 2px; }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === ANIMATIONS === */

/* Скрыты до появления класса (animations.js). Классы in-view и is-visible — синонимы (см. assets/js/animations.js). */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.reveal.is-visible,
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .routes-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .promos-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .licenses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero.hero--split { padding: 56px 0 88px; }
  .hero__top { grid-template-columns: 1fr; gap: 24px; }
  .hero__visual { justify-content: center; }
  .hero__bus-img { max-width: 420px; margin: 0 auto; }
  .hero__booking-wrap { margin-top: 8px; }
  .gm-booking-iframe { min-height: 430px; }
  .process-steps { flex-direction: column; gap: 24px; }
  .process-steps::before { display: none; }
  .booking-form { grid-template-columns: 1fr; }
  .btn-search { width: 100%; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-contact { display: none; }
  .promos-grid, .news-grid { grid-template-columns: 1fr; }
  .licenses-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logo-title { font-size: 16px; }
  .logo-subtitle { font-size: 11px; max-width: 210px; }
  .hero.hero--split { padding: 48px 0 80px; }
  .gm-booking-iframe { min-height: 360px; }
  .cta-box { flex-direction: column; text-align: center; }
  .cta-left { flex-direction: column; }
  .cta-box .btn-white { width: 100%; }
  .schedule-toggle {
    grid-template-columns: 1fr auto;
    row-gap: 6px;
  }
  .schedule-route-time {
    order: 3;
    grid-column: 1 / -1;
  }
  .card-footer-2026 {
    grid-template-columns: 1fr;
  }
  .route-card-2026 .btn-book {
    width: 100%;
  }
  .timeline-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .timeline-section .departure-block {
    order: 1;
  }
  .timeline-section .journey-visual {
    order: 2;
  }
  .timeline-section .arrival-block {
    order: 3;
  }
  .arrival-block {
    text-align: left;
  }
  .section-header-row > a.btn {
    margin: 0 auto;
    width: fit-content;
    text-align: center;
  }
  .bus-rental-form .form-grid { grid-template-columns: 1fr; }
  .legal-docs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  /* Сетка шапки (≤1024px): см. assets/css/responsive.css — один источник правды, чтобы не конфликтовать с каскадом */

  .header-contact { display: none; }

  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-menu-toggle { width: 38px; height: 38px; border-radius: 10px; }
  .mobile-menu-toggle span { display: block !important; width: 20px; height: 2px; margin: 3px 0; background: #4b5563; }

  .main-nav {
    position: fixed;
    top: 84px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(17,24,39,0.18);
    padding: 10px;
    z-index: 101;
  }

  .main-nav.active { display: flex; }

  .main-nav__track {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .main-nav__sep { display: none; }

  .main-nav__cluster {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .main-nav a {
    border: none;
    padding: 12px 10px;
    border-radius: 10px;
    color: #111827;
    font-weight: 600;
    font-size: 15px;
    justify-content: flex-start;
  }

  .main-nav__pill {
    justify-content: flex-start;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
  }

  .main-nav a:hover {
    background: #eff6ff;
    color: var(--primary);
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* === SINGLE ROUTE PAGE === */
.single-route-page .breadcrumbs {
  background: #f8f9fa;
  padding: 16px 0;
  font-size: 14px;
  border-bottom: 1px solid #e5e7eb;
}
.single-route-page .breadcrumbs .container {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.single-route-page .breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.single-route-page .breadcrumbs a:hover {
  color: #0056b3;
  text-decoration: underline;
}
.single-route-page .breadcrumbs span { color: #d1d5db; }
.single-route-page .breadcrumbs .current { color: #6b7280; }
.single-route-page .route-header {
  padding: 40px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}
.single-route-page .route-timeline,
.single-route-page .route-details-section,
.single-route-page .related-routes {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}
.single-route-page .route-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.single-route-page .route-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}
.single-route-page .route-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.single-route-page .route-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.single-route-page .meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.single-route-page .meta-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.single-route-page .meta-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.single-route-page .price-card {
  background: #fff;
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.single-route-page .price-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.14);
  border-color: #93c5fd;
}
.single-route-page .price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.single-route-page .price-item:last-of-type { border-bottom: none; }
.single-route-page .price-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.single-route-page .price-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.single-route-page .btn-lg {
  padding: 14px 24px;
  font-size: 16px;
}
.single-route-page .btn-block {
  width: 100%;
  display: flex;
  justify-content: center;
}
.single-route-page .route-timeline {
  padding: 60px 0;
  background: #fff;
}
.single-route-page .route-timeline h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}
.single-route-page .timeline {
  position: relative;
  padding: 20px 0;
}
.single-route-page .timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), #e5e7eb);
}
.single-route-page .timeline-point {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  margin-bottom: 30px;
  position: relative;
}
.single-route-page .timeline-marker {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 3px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}
.single-route-page .timeline-point.start .timeline-marker,
.single-route-page .timeline-point.end .timeline-marker {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.single-route-page .timeline-time {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.single-route-page .timeline-location {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}
.single-route-page .timeline-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.single-route-page .route-details-section {
  padding: 60px 0;
  background: #f8f9fa;
}
.single-route-page .details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.single-route-page .detail-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.single-route-page .detail-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  border-color: #bfdbfe;
}
.single-route-page .detail-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.single-route-page .detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.single-route-page .detail-list li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.single-route-page .detail-list li:last-child { border-bottom: none; }
.single-route-page .detail-key {
  color: var(--text-muted);
  font-weight: 500;
}
.single-route-page .detail-value {
  color: var(--text);
  font-weight: 600;
}
.single-route-page .booking-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #dbe5f1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.single-route-page .booking-card:hover {
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.16);
  border-color: #93c5fd;
}
.single-route-page .booking-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.single-route-page .route-booking-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.single-route-page .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.single-route-page .form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.single-route-page .form-group input,
.single-route-page .form-group select {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.single-route-page .form-group input:focus,
.single-route-page .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}
.single-route-page .btn:focus-visible,
.single-route-page a:focus-visible,
.single-route-page input:focus-visible,
.single-route-page select:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}
.single-route-page .form-group.checkbox {
  flex-direction: row;
  gap: 8px;
  align-items: center;
}
.single-route-page .form-group.checkbox input {
  width: auto;
  margin: 0;
}
.single-route-page .form-group.checkbox label {
  margin: 0;
  font-size: 13px;
}
.single-route-page .form-group.checkbox a {
  color: var(--primary);
  text-decoration: none;
}
.single-route-page .form-group.checkbox a:hover { text-decoration: underline; }
.single-route-page .form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  padding-top: 8px;
}
.single-route-page .related-routes {
  padding: 60px 0;
  background: #fff;
}
.single-route-page .related-routes h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
}
.single-route-page .bus-icon-glyph {
  display: inline-flex;
  font-size: 16px;
  line-height: 1;
}
.single-route-page .related-routes .route-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.single-route-page .related-routes .route-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}
@media (max-width: 1024px) {
  .single-route-page .route-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .single-route-page .details-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .single-route-page .booking-card {
    position: static;
  }
}
@media (min-width: 1025px) {
  .single-route-page .booking-card {
    position: sticky;
    top: 96px;
  }
}
@media (max-width: 768px) {
  .single-route-page .route-title {
    font-size: 24px;
  }
  .single-route-page .route-meta-row {
    grid-template-columns: 1fr;
  }
  .single-route-page .timeline::before {
    left: 6px;
  }
  .single-route-page .timeline-point {
    grid-template-columns: 32px 1fr;
    gap: 16px;
  }
  .single-route-page .timeline-marker {
    width: 32px;
    height: 32px;
  }
  .single-route-page .detail-card,
  .single-route-page .booking-card {
    padding: 16px;
  }
  .single-route-page .detail-list li {
    flex-direction: column;
    gap: 4px;
  }
}
@media (max-width: 480px) {
  .single-route-page .breadcrumbs .container {
    font-size: 12px;
  }
  .single-route-page .route-title {
    font-size: 18px;
  }
  .single-route-page .route-header {
    padding: 24px 0;
  }
  .single-route-page .price-card {
    padding: 16px;
  }
  .single-route-page .route-timeline {
    padding: 40px 0;
  }
  .single-route-page .route-timeline h2 {
    font-size: 20px;
    margin-bottom: 24px;
  }
  .single-route-page .timeline-point {
    margin-bottom: 20px;
  }
  .single-route-page .route-details-section {
    padding: 40px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .single-route-page .price-card,
  .single-route-page .detail-card,
  .single-route-page .booking-card,
  .single-route-page .related-routes .route-card {
    transition: none !important;
    transform: none !important;
  }
}

.gm-booking-iframe {
  width: 100%;
  min-height: 520px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}
.gm-booking-fallback {
  min-height: 220px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
}
.gm-booking-fallback-title {
  display: block;
  margin-bottom: 8px;
}
.gm-booking-fallback-text {
  margin: 0 0 12px;
  color: #475569;
}
.gm-noscript-pixel {
  display: none;
}
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  z-index: 999;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.mobile-sticky-bar.visible {
  transform: translateY(0);
}
.sticky-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.sticky-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sticky-count,
.sticky-price {
  font-size: 13px;
  color: var(--color-muted);
}
.sticky-count strong,
.sticky-price strong {
  color: var(--color-text);
  font-weight: 600;
}
#install-button.gm-install-button {
  background: #28a745;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}
#install-button.hidden {
  display: none;
}
@media (min-width: 769px) {
  .mobile-sticky-bar {
    display: none;
  }
}
@media (prefers-color-scheme: dark) {
  .mobile-sticky-bar {
    background: rgba(17, 24, 39, 0.92);
    border-top-color: var(--color-border);
  }
  .sticky-count,
  .sticky-price {
    color: var(--color-muted);
  }
  .sticky-count strong,
  .sticky-price strong {
    color: var(--color-text);
  }
}
@media (max-width: 768px) {
  .routes-grid.routes-grid-mobile-limit-2 .route-card-2026:nth-child(n+3) {
    display: none;
  }
  .routes-grid.routes-grid-mobile-limit-3 .route-card-2026:nth-child(n+4) {
    display: none;
  }
  .routes-grid.routes-grid-mobile-limit-4 .route-card-2026:nth-child(n+5) {
    display: none;
  }
  #install-button {
    bottom: 80px;
    right: 10px;
    left: 10px;
    width: calc(100% - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .badge:hover,
  .route-card-v2:hover,
  .promo-card:hover,
  .news-card:hover,
  .single-route-page .price-card:hover,
  .single-route-page .detail-card:hover,
  .single-route-page .related-routes .route-card:hover {
    transform: none !important;
  }
}
