/* ===========================================================
   Time to Travel — Brand Styles (app parity)
   Тёмная палитра darkBackground/darkSurface —
   синхронизировано с lib/theme/colors.dart Flutter-приложения.
   =========================================================== */

:root {
  /* — Brand palette — */
  --primary:        #E53E3E;
  --primary-hover:  #F04A46;
  --primary-dark:   #C53030;
  --primary-glow:   rgba(229, 62, 62, 0.28);
  --primary-tint:   rgba(229, 62, 62, 0.08);

  --accent:         #F59E0B;
  --accent-tint:    rgba(245, 158, 11, 0.15);

  --success:        #10B981;
  --success-dark:   #059669;

  /* — Surfaces (dark theme из Flutter colors.dart darkBackground/darkSurface) — */
  --bg-main:        #1A1A1A;   /* darkBackground */
  --bg-elevated:    #2D2D2D;   /* darkBackgroundSecondary */
  --bg-secondary:   #333333;   /* darkSurface — карточки */
  --bg-tertiary:    #404040;   /* darkBackgroundTertiary — inputs */
  --bg-hover:       #4A4A4A;

  --border:         rgba(255,255,255,0.10);  /* darkSeparator */
  --border-strong:  rgba(255,255,255,0.18);

  --text-main:       #FFFFFF;   /* darkLabel */
  --text-secondary:  #B0B0B0;   /* darkSecondaryLabel */
  --text-muted:      #808080;   /* darkTertiaryLabel */

  /* — Shape — */
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow:    0 10px 30px rgba(0,0,0,0.40);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.25);

  --transition: .2s ease;

  --safe-top:    env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left:   env(safe-area-inset-left);
  --safe-right:  env(safe-area-inset-right);

  --header-h: 64px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip; /* iOS Safari fix: clip не создаёт scroll-context, sticky работает */
}
body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--safe-bottom);
  overflow-x: clip;
  width: 100%;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea, button { font-size: 16px; }

h1, h2, h3, h4 { letter-spacing: -0.01em; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; margin-bottom: 24px; }
h3 { font-size: 1.15rem; font-weight: 700; }

/* ===== Container ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  padding-left:  max(20px, var(--safe-left));
  padding-right: max(20px, var(--safe-right));
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: background var(--transition), transform var(--transition), border-color var(--transition), color var(--transition);
  min-height: 48px;
  min-width: 48px;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 22px var(--primary-glow);
}
.btn--primary:hover  { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn--primary:active { background: var(--primary-dark); }
.btn--outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-strong);
}
.btn--outline:hover  { border-color: var(--primary); color: var(--primary); }
.btn--ghost {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-hover); border-color: var(--border-strong); color: var(--text-main); }
.btn--full { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 14px; min-height: 42px; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,26,26,0.88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: transform .3s ease;
}
.header--hidden { transform: translateY(-100%); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text-main);
  white-space: nowrap;
}
.header__logo:hover { color: var(--text-main); }
.header__logo img {
  width: 34px; height: 34px;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}
.header__nav { display: none; gap: 28px; }
.header__nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}
.header__nav a:hover { color: var(--text-main); }
.header__nav a.active { color: var(--primary); }
.header__nav a.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.header__nav a.nav-cta:hover { background: #c53030; }
.header__nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.header__phone {
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  display: none;
}
.header__phone:hover { color: var(--primary-hover); }
.header__burger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 10px;
  min-width: 44px; min-height: 44px;
  justify-content: center; align-items: center;
}
.header__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.header__burger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger.is-active span:nth-child(2) { opacity: 0; }
.header__burger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.header__nav.is-open {
  /* Legacy — mobile menu вынесен в .mobile-menu вне header.
     Оставлено пустым чтобы не ломать возможные внешние ссылки. */
}
.header__nav.is-open a {
  font-size: 18px; color: var(--text-main);
  padding: 16px 4px; border-bottom: 1px solid var(--border);
}

/* ===== MOBILE MENU (overlay вне header) ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #1A1A1A;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.mobile-menu__close span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}
.mobile-menu__close span:first-child { transform: rotate(45deg); }
.mobile-menu__close span:last-child  { transform: rotate(-45deg); }
.mobile-menu__close:hover span { background: var(--primary); }
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: calc(var(--header-h) + 24px) 24px 40px;
  min-height: 100%;
  box-sizing: border-box;
}
.mobile-menu__inner a {
  display: block;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease;
}
.mobile-menu__inner a:hover,
.mobile-menu__inner a:active {
  color: var(--primary);
}
.mobile-menu__inner a.active {
  color: var(--primary);
}
@media (min-width: 900px) {
  .mobile-menu { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 0;
  background: radial-gradient(900px 500px at 50% -10%, var(--primary-tint) 0%, transparent 60%),
    var(--bg-main);
  overflow: hidden;
}
.hero > .container {
  padding-top: 40px;
  padding-bottom: 48px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

/* Brand logo with red glow (как на splash экране приложения) */
.brand-logo {
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.brand-logo::before {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 65%);
  filter: blur(12px);
  z-index: 0;
}
.brand-logo img {
  position: relative; z-index: 1;
  width: 140px; height: 140px;
  border-radius: 50%;
}

/* Прозрачная обёртка правой колонки на мобиле */
.hero__right {
  display: contents;
}

/* hero__toprow: горизонтально везде — лого слева, шаги справа */
.hero__toprow {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 0;
  padding: 18px max(20px, var(--safe-left));
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.hero__toprow .brand-logo {
  flex-shrink: 0;
  margin: 0;
  width: 100px; height: 100px;
}
.hero__toprow .brand-logo img {
  width: 100px; height: 100px;
}

/* Блок "Как заказать" — горизонтальный контейнер из логотипа + шагов */
.hero__how {
  display: block;
  flex: 1;
  min-width: 0;
}
.hero__how__title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin: 0 0 10px;
}
.hero__how__steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero__how__step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.hero__how__step .step__num {
  width: 24px;
  height: 24px;
  min-width: 24px;
  font-size: 12px;
  line-height: 24px;
  flex-shrink: 0;
}
.hero__how__step strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 2px;
}
.hero__how__step p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.3;
}

.hero__text {
  container-type: inline-size;
}

.hero__text h1 {
  font-size: clamp(1rem, 7vw, 2.8rem);       /* fallback до JS */
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: 0;
  text-align: left;
}
.hero__text h1 .h1-line {
  display: block;
  white-space: nowrap;
}
.hero__text h1 .accent {
  color: var(--primary);
}
.hero__sub { font-size: 1rem; white-space: nowrap; color: var(--text-secondary); margin-bottom: 18px; }

.hero__schedule {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  word-break: break-word;
  overflow-wrap: break-word;
}
.hero__schedule strong { color: var(--text-main); }

.hero__phones { display: grid; gap: 10px; margin-bottom: 12px; }

.hero__quick-book-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
  background-size: 200% 200%;
  animation: callback-shine 1.8s ease infinite;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.hero__quick-book-btn:hover,
.hero__quick-book-btn:active {
  animation: none;
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  color: #22c55e;
}

.hero__callback-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #ff6b6b 0%, #c0392b 35%, #e8192c 65%, #ff4d4d 100%);
  background-size: 200% 200%;
  animation: callback-shine 1.8s ease infinite;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 18px;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
@keyframes callback-shine {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero__callback-btn:hover,
.hero__callback-btn:active {
  animation: none;
  background: var(--primary-tint);
  border-color: var(--primary);
  color: var(--primary);
}
.hero__phone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.hero__phone-card:active,
.hero__phone-card:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.hero__phone-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero__phone-num {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.hero__badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.hero__badges li {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===== FORM ===== */
.form {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.form__title { font-size: 20px; font-weight: 800; margin-bottom: 20px; text-align: center; }
.form__row { display: flex; flex-direction: column; gap: 12px; }
.form__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form__field label {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.form__field input,
.form__field select {
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text-main);
  font-size: 16px;
  min-height: 48px;
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239CA0A8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form__field input:focus,
.form__field select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-hover);
}
.form__field input.is-invalid,
.form__field select.is-invalid { border-color: var(--primary); }
.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form .btn--primary { margin-top: 8px; }

/* Hero Booking iframe wrapper */
.hero-booking-frame { display: none; } /* убрано, больше не используется */

/* ─── Inline Booking Wizard Embed ─── */
.booking-embed {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  min-height: 480px;
  overflow: hidden;
}
.booking-embed .step-wrap {
  padding-bottom: 80px;
}
.booking-embed.has-price-bar .step-wrap {
  padding-bottom: 160px;
}
.booking-embed .booking-header { display: none !important; }

.form--compact { padding: 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.form--compact .form__title { font-size: 18px; margin-bottom: 0; }

.form-success {
  background: var(--bg-secondary);
  border: 2px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
}
.form-success__icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: var(--success); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700;
}
.form-success h2 { font-size: 24px; margin-bottom: 8px; }
.form-success p { color: var(--text-secondary); margin-bottom: 20px; }

/* ===== TRUST STRIP ===== */
.trust {
  padding: 28px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  text-align: center;
}
@media (min-width: 540px) {
  .trust__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .trust__grid { grid-template-columns: repeat(5, 1fr); }
}
.trust__item { padding: 14px 8px; }
.trust__num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #E53935;
  letter-spacing: -0.02em;
}
.trust__label { font-size: 13px; color: var(--text-secondary); font-weight: 600; }

/* ===== ROUTES (app-style cards) ===== */
.routes { padding: 56px 0; background: var(--bg-elevated); }
.routes__list {
  display: grid;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
}

/* Route card — clean flex layout */
.route-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px 16px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.route-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.route-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.route-card__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  flex: 1;
}
.route-card__prices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.price-badge__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-badge__val {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}

/* ===== STEPS ===== */
.steps { padding: 56px 0; background: var(--bg-elevated); }
.steps__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.step {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: border-color var(--transition);
}
.step:hover { border-color: var(--border-strong); }
.step__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: 14px;
  font-weight: 800; font-size: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--primary);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 14px; }

/* ===== FLEET ===== */
.fleet { padding: 56px 0; }

/* Карусель автопарка */
.fleet__carousel-wrap {
  overflow: hidden;
  position: relative;
  margin: 0;
  cursor: grab;
}
.fleet__track {
  display: flex;
  gap: 16px;
  padding: 8px 0 16px;
  width: max-content;
  animation: fleetScroll 40s linear infinite;
}
.fleet__track:hover {
  animation-play-state: paused;
}
@keyframes fleetScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.fleet__track .fleet-card {
  flex-shrink: 0;
  width: 320px;
}
.fleet-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color var(--transition), transform var(--transition);
}
.fleet-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.icon-badge {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--primary-tint);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.fleet-card__body h3 { margin-bottom: 6px; }
.fleet-card__body p { color: var(--text-secondary); font-size: 14px; }

/* ===== INFO SECTION ===== */
.info-section { padding: 56px 0; background: var(--bg-elevated); }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}
.info-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.info-card h3 { font-size: 1.05rem; }
.info-card ul { display: flex; flex-direction: column; gap: 10px; }
.info-card li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.info-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.info-card li strong { color: var(--text-main); }

/* free-badge — акцент "бесплатно" */
.free-badge {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.05em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Карточка с двумя блоками (животные + детские кресла) */
.info-card--split {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.info-card--split .info-card__part {
  padding: 24px 22px;
}
.info-card--split .info-card__part + .info-card__part {
  border-top: 1px solid var(--border);
}

/* Карточка с телефонами и соцсетями */
.info-card--contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px;
}
.info-card__book-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.18s;
}
.info-card__book-btn:hover { background: var(--primary-dark); color: #fff; }
.info-card--contacts .hero__phones { margin-bottom: 0; }
.info-card--contacts .hero__callback-btn { margin-top: 0; }
.info-card--contacts .hero__socials { margin-top: 4px; }

/* ===== APP SECTION ===== */
.app-section { padding: 56px 0; }
.app-section__inner {
  background: linear-gradient(135deg, rgba(229,57,53,0.10), rgba(245,158,11,0.08));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  text-align: center;
}
.app-section h2 { margin-bottom: 12px; }
.app-section p { color: var(--text-secondary); margin: 0 auto 24px; max-width: 600px; }
.app-section__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ===== FAQ ===== */
.faq { padding: 56px 0; background: var(--bg-elevated); }
.faq__list { display: flex; flex-direction: column; gap: 10px; max-width: 900px; margin: 0 auto; }
.faq__item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq__item:hover, .faq__item[open] { border-color: var(--border-strong); }
.faq__item summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}
.faq__item summary::after {
  content: '+';
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq__item[open] summary::after { content: '−'; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item p {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== CONTACTS ===== */
/* --- contacts секция — полная копия hero --- */
.contacts { padding: 56px 0; }
.contacts .hero__inner { align-items: flex-start; }
.contacts .hero__text { container-type: inline-size; }
.contacts .hero__sub { white-space: nowrap; }
/* Статичный блок карточек — не затрагивается booking.js (нет класса step-wrap) */
.contacts__booking-static {
  padding: 24px 20px 20px;
}
/* Инфо-сетка 2×2 под карточками бронирования */
.contacts__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.contacts__info-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.contacts__info-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contacts__info-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}
.contacts__info-val a {
  color: var(--primary);
  text-decoration: none;
}
.contacts__info-val a:hover { text-decoration: underline; }
.contacts__hero-h2 {
  font-size: clamp(1rem, 7vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contacts__hero-h2 .h1-line { display: block; white-space: nowrap; }
.contacts__hero-h2 .accent { color: var(--primary); }

/* Соцсети в Hero под телефонами */
.hero__socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  width: 100%;
}
.hero__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  border-radius: var(--radius-sm);
  min-height: 48px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.hero__socials a svg { display: block; flex-shrink: 0; }
.hero__socials a:active { opacity: 0.8; transform: scale(0.95); }
.hero__socials a:active { opacity: 0.85; transform: scale(0.97); }
.hero__socials .tg  { background: #229ED9; }
.hero__socials .wa  { background: #25D366; }
.hero__socials .vk  { background: #0077FF; }
.hero__socials .max { background: linear-gradient(90deg, #5B67F8 0%, #9B4FCB 100%); }

/* ===== SEO HUB ===== */
.seo-hub {
  padding: 56px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.seo-hub__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.seo-hub__col h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.seo-hub__col ul { display: flex; flex-direction: column; gap: 6px; }
.seo-hub__col li { font-size: 14px; color: var(--text-secondary); }

/* ===== CTA CARD ===== */
.cta-card {
  margin-top: 40px;
  padding: 40px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, #C62828 100%);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 20px 60px rgba(229,57,53,0.25);
}
.cta-card h2 { color: #fff; margin-bottom: 12px; }
.cta-card p { color: rgba(255,255,255,0.92); margin: 0 auto 24px; max-width: 620px; }
.cta-card .btn {
  background: #fff; color: var(--primary); border-color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.cta-card .btn:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }

/* ===== FOOTER ===== */
.footer {
  padding: 28px 0;
  padding-bottom: max(28px, var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg-main);
}
.footer__inner { text-align: center; display: grid; gap: 6px; }
.footer__copy { font-size: 13px; color: var(--text-secondary); }
.footer__legal { font-size: 12px; color: var(--text-muted); }
.footer__links a { font-size: 13px; color: var(--text-secondary); }
.footer__links a:hover { color: var(--primary); }

/* ===== About page ===== */
.about-hero {
  padding: 80px 0 48px;
  background:
    radial-gradient(700px 380px at 50% 0%, var(--primary-tint) 0%, transparent 65%),
    var(--bg-main);
  text-align: center;
}
.about-hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.about-hero p { font-size: 1.1rem; color: var(--text-secondary); max-width: 720px; margin: 0 auto; }

.about-section { padding: 48px 0; }
.about-section .container { max-width: 920px; }
.about-section article { margin-bottom: 40px; }
.about-section p { line-height: 1.75; margin-bottom: 14px; color: var(--text-secondary); }
.about-section p strong { color: var(--text-main); }
.about-section h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text-main);
}
.about-card {
  padding: 28px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.stats-grid .stat { text-align: center; }
.stats-grid .stat__num {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.stats-grid .stat__label { color: var(--text-secondary); font-size: 14px; }

.advantage-list { display: grid; gap: 12px; }
.advantage-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.advantage-list .check {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.advantage-list strong { display: block; margin-bottom: 4px; color: var(--text-main); }
.advantage-list span { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

.geography-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.geography-grid h3 {
  font-size: 0.95rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.geography-grid p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .route-row {
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "name prices action";
  }
  .route-row__prices { flex-wrap: nowrap; }
}

@media (min-width: 640px) {
  .route-card__prices { flex-wrap: nowrap; }
}

@media (min-width: 770px) {
  :root { --header-h: 68px; }

  .header__nav { display: flex; }
  .header__burger { display: none; }
  .header__phone { display: inline-flex; }

  .hero { padding: 0; }
  .hero > .container { padding-top: 48px; padding-bottom: 64px; }

  /* Горизонтальная строка: логотип + 3 шага — размеры для десктопа */
  .hero__toprow {
    gap: 40px;
    margin-bottom: 0;
    padding: 20px calc((100% - 1180px) / 2 + 20px);
    padding-left:  max(calc((100% - 1180px) / 2 + 20px), 20px);
    padding-right: max(calc((100% - 1180px) / 2 + 20px), 20px);
  }
  .hero__toprow .brand-logo {
    width: 140px; height: 140px;
  }
  .hero__toprow .brand-logo img {
    width: 140px; height: 140px;
  }
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
  .hero__text h1 { /* font-size handled by JS fitH1 */ }

  /* Как заказать — шаги горизонтально в ряд на десктопе */
  .hero__how__title {
    font-size: 0.68rem;
    margin-bottom: 14px;
  }
  .hero__how__steps {
    flex-direction: row;
    gap: 0;
  }
  .hero__how__step {
    flex: 1;
  }
  .hero__how__step + .hero__how__step {
    padding-left: 20px;
    margin-left: 20px;
    border-left: 1px solid var(--border);
  }
  .hero__how__step .step__num {
    width: 28px; height: 28px; min-width: 28px;
    font-size: 12px; line-height: 28px;
  }
  .hero__how__step strong { font-size: 0.82rem; margin-bottom: 2px; }
  .hero__how__step p { font-size: 0.72rem; }

  /* Скрываем внешнюю секцию "Как заказать" на десктопе */
  .steps--compact { display: none; }

  .steps__grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid  { grid-template-columns: repeat(3, 1fr); }

  .seo-hub__grid { grid-template-columns: repeat(4, 1fr); }

  .routes__list { gap: 12px; }
}

@media (min-width: 1000px) {
  /* .hero__text h1 font-size handled by cqi clamp */
  h2 { font-size: 2rem; }
  .trust__num { font-size: 36px; }
}

/* ===== Utility ===== */
[hidden] { display: none !important; }
.text-center { text-align: center; }

/* Лид-абзац перед заголовком секции (например, над "Автопарк") */
.section-lead {
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 12px;
  font-style: italic;
  letter-spacing: 0.01em;
}
.section-lead + h2 { margin-top: 4px; }

/* п.13: на узких экранах цена карточки тип-поездки переносится на новую строку */
@media (max-width: 480px) {
  .booking-embed .type-card__top {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .booking-embed .type-card__info {
    min-width: 0;
    flex: 1 1 100%;
  }
  .booking-embed .type-card__price {
    flex: 1 1 100%;
    margin-top: 8px;
    margin-left: calc(40px + 12px); /* выравнивание под текст справа от иконки */
    text-align: left;
  }
}

/* ===== Animations ===== */
/* Контент видим по умолчанию (для SEO и без JS).
   Класс .js-ready добавляется скриптом — только тогда включаем анимацию. */
@media (prefers-reduced-motion: no-preference) {
  .js-ready .route-card,
  .js-ready .step,
  .js-ready .fleet-card,
  .js-ready .info-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .js-ready .route-card.is-visible,
  .js-ready .step.is-visible,
  .js-ready .fleet-card.is-visible,
  .js-ready .info-card.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ============================================================
   ===== РЕДИЗАЙН 22 ПУНКТА — НОВЫЕ БЛОКИ И УТИЛИТЫ ===========
   ============================================================ */

/* п.11: компактная секция «Как заказать» под hero */
.steps--compact { padding: 32px 0 24px; background: var(--bg-elevated); }
.steps--compact h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-bottom: 16px; text-align: center; }
.steps--compact .step { padding: 18px 18px; }
.steps--compact .step__num {
  width: 34px; height: 34px;
  font-size: 15px;
  margin-bottom: 10px;
}
.steps--compact .step h3 { font-size: 0.95rem; }
.steps--compact .step p { font-size: 13px; }

/* п.9: inline-CTA — встраиваемая ссылка-призыв в каждой секции */
.inline-cta-wrap {
  text-align: center;
  margin-top: 22px;
}
.inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  border-bottom: 1.5px solid var(--primary);
  padding: 4px 0;
  transition: color var(--transition), border-color var(--transition), gap var(--transition);
}
.inline-cta:hover {
  color: var(--primary-hover);
  border-color: var(--primary-hover);
  gap: 10px;
}

/* п.4: блок водителей */
.drivers { padding: 56px 0; }
.drivers .section-lead { margin-bottom: 28px; }

/* ===== Карусель водителей ===== */
.drivers__carousel-wrap {
  overflow: hidden;
  position: relative;
  margin: 0;
  cursor: grab;
}
.drivers__track {
  display: flex;
  gap: 16px;
  padding: 8px 0 16px;
  width: max-content;
  animation: driversScroll 56s linear infinite;
}
.drivers__track:hover {
  animation-play-state: paused;
}
@keyframes driversScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.drivers__track .driver-card {
  flex-shrink: 0;
  width: 340px;
}
.driver-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.driver-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.driver-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-elevated));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.driver-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}
.driver-card__placeholder {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 999px;
  position: relative;
  z-index: 0;
}
.driver-card__body { padding: 18px 20px 20px; }
.driver-card__body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.driver-card__exp {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.driver-card__quote {
  font-size: 14px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

/* Мобильная версия: карточки стопкой в потоке страницы, без scroll-trap */
@media (max-width: 639px) {
  .drivers__carousel-wrap {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .drivers__track {
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 8px;
    width: 100%;
    animation: none !important;
  }
  .drivers__track .driver-card[aria-hidden="true"] {
    display: none;
  }
  .drivers__track .driver-card {
    width: 100%;
    scroll-snap-align: unset;
    min-height: unset;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
  .drivers__track .driver-card__photo {
    aspect-ratio: 4 / 3;
    flex: unset;
    min-height: unset;
  }
  .drivers__track .driver-card__img {
    object-position: top center;
  }
  /* Автопарк — мобиль */
  .fleet__carousel-wrap {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .fleet__track {
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 8px;
    width: 100%;
    animation: none !important;
  }
  .fleet__track .fleet-card[aria-hidden="true"] {
    display: none;
  }
  .fleet__track .fleet-card {
    width: 100%;
  }
}

/* п.5: преимущества — 7 карточек */
.advantages { padding: 56px 0; background: var(--bg-elevated); }
.advantages__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
.advantage {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  transition: border-color var(--transition), transform var(--transition);
}
.advantage:hover { border-color: var(--primary); transform: translateY(-2px); }
.advantage__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}
.advantage h3 { font-size: 1rem; margin-bottom: 6px; }
.advantage p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* п.12: услуги для всех (физ/юр/нал/безнал/посылки) */
.services-extra { padding: 56px 0; }
.services-extra .section-lead { margin-bottom: 24px; }
.services-extra__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-tile {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}
.service-tile__icon {
  width: 56px; height: 56px;
  grid-row: span 2;
  border-radius: var(--radius);
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.service-tile h3 { font-size: 1.05rem; margin-bottom: 6px; }
.service-tile p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* п.6: карта на главной (lazy-load placeholder + iframe) */
.map-section { padding: 56px 0; background: var(--bg-elevated); }
.map-section .section-lead { margin-bottom: 24px; }
.map-section__frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}
.map-section__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-section__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}
.map-section__placeholder p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 380px;
  line-height: 1.5;
}
.map-section__placeholder-icon {
  font-size: 56px;
  opacity: 0.4;
}
.map-section__alt { font-size: 13px; }
.map-section__alt a { color: var(--text-secondary); text-decoration: underline; }
.map-section__alt a:hover { color: var(--primary); }

/* п.7: mobile sticky contact FAB */
.mobile-contact-fab {
  position: fixed;
  top: calc(var(--header-h) + 12px + var(--safe-top));
  left: 12px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.mobile-contact-fab[hidden] { display: none; }
.mobile-contact-fab__btn {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--primary-glow);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mobile-contact-fab__btn:hover,
.mobile-contact-fab__btn:active {
  background: var(--primary-hover);
  transform: scale(1.05);
}
@media (min-width: 900px) {
  .mobile-contact-fab { display: none !important; }
}

/* п.22: callback модал */
.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.callback-modal[hidden] { display: none; }
.callback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.callback-modal__panel {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  max-width: 460px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}
.callback-modal__close {
  position: absolute;
  top: 8px; right: 12px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color var(--transition), background var(--transition);
}
.callback-modal__close:hover { color: var(--text-main); background: var(--bg-tertiary); }
.callback-modal__title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.callback-modal__sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.5;
}
.callback-form .form__field { margin-bottom: 12px; }
.callback-form textarea {
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  transition: border-color var(--transition);
  width: 100%;
}
.callback-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.callback-form__hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}
.callback-form__hint a { color: var(--text-secondary); text-decoration: underline; }
.callback-form__success {
  text-align: center;
  padding: 16px 0 8px;
}
.callback-form__success h3 { font-size: 1.15rem; margin-bottom: 6px; }
.callback-form__success p { color: var(--text-secondary); font-size: 14px; }

/* ===== Адаптив ≥600 ===== */
@media (min-width: 600px) {
  .advantages__grid,
  .services-extra__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .advantages__grid { grid-template-columns: repeat(3, 1fr); }
  .services-extra__grid { grid-template-columns: repeat(3, 1fr); }
  .steps--compact .steps__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .advantages__grid { grid-template-columns: repeat(4, 1fr); }
}

/* п.19: фото-плейсхолдер для карточек автопарка */
.fleet-card { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.fleet-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-elevated));
  display: flex;
  align-items: center;
  justify-content: center;
}
.fleet-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.fleet-card__placeholder {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 999px;
  position: relative;
  z-index: 0;
}
/* Мини-карусель внутри карточек автопарка */
.fc-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.fc-slide {
  background: #111;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.fc-slide.fc-active { opacity: 1; }
.fc-btn {
  display: none !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  transition: background 0.2s;
  user-select: none;
}
.fc-btn:hover { background: rgba(0, 0, 0, 0.72); }
.fc-prev { left: 8px; }
.fc-next { right: 8px; }
.fc-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 5px;
}
.fc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.2s;
  flex-shrink: 0;
}
.fc-dot.fc-active { background: #fff; }
/* Tap-flash зоны переключения фото */
@keyframes fcTapFlash {
  0%   { opacity: 0.25; }
  100% { opacity: 0; }
}
.fc-tap-flash {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: rgba(255, 255, 255, 0.22);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  border-radius: 0;
}
.fc-tap-flash.fc-tap-active {
  animation: fcTapFlash 0.35s ease forwards;
}
.fleet-card__photo { cursor: pointer; }

.fleet-card__body { padding: 18px 20px 20px; }
.fleet-card__seats {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.fleet-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* п.8: единый стиль контактных кнопок — header + контакты */
.header__nav .contact-pill,
.contacts__links a,
.hero__socials a {
  border-radius: var(--radius-sm);
}
.header__contacts {
  display: none;
  align-items: center;
  gap: 6px;
}
.header__contacts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: #fff;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.header__contacts a:hover { opacity: 0.85; transform: translateY(-1px); color: #fff; }
.header__contacts .tg  { background: #229ED9; }
.header__contacts .wa  { background: #25D366; }
.header__contacts .vk  { background: #0077FF; }
.header__contacts .max { background: linear-gradient(90deg, #5B67F8 0%, #9B4FCB 100%); }
.header__contacts svg { display: block; }
@media (min-width: 720px) {
  .header__contacts { display: inline-flex; }
}

/* =====================================================================
   КАРТА МАРШРУТА (вставлена напрямую с /marshrut/)
   ===================================================================== */
.map-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 1168 / 780;
  overflow: hidden;
  background: #0d1b2a;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
}
.map-wrap__overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.route-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route-path-outline {
  fill: none;
  stroke: #E53935;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 1.5px rgba(229,57,53,0.95))
          drop-shadow(0 0 4px rgba(229,57,53,0.45));
}
.route-path-glow {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
  filter: url(#road-glow);
}
.route-path-road {
  fill: none;
  stroke: url(#asphaltPat) #2d2d2d;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route-path-dash {
  fill: none;
  stroke: rgba(255,255,255,0.52);
  stroke-width: 0.22;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 0.6 0.95;
  opacity: 0.9;
}
.city-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.city-pin__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #E53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.25), 0 2px 6px rgba(0,0,0,0.6);
  margin: 0 auto;
}
.city-pin--hub .city-pin__dot {
  background: #E53935;
  border-color: #fff;
  width: 14px; height: 14px;
  box-shadow: 0 0 0 4px rgba(229,57,53,0.35), 0 2px 8px rgba(0,0,0,0.7);
}
.city-pin__label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 16px;
  background: rgba(0,0,0,0.78);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.city-pin--label-top .city-pin__label { top: auto; bottom: 16px; }
.city-pin--label-right .city-pin__label { left: 16px; top: 50%; transform: translateY(-50%); }
.city-pin--label-left .city-pin__label { left: auto; right: 16px; top: 50%; transform: translateY(-50%); }
.city-pin--label-above-left .city-pin__label { top: auto; bottom: 18px; left: 50%; transform: translateX(-50%); }
.city-pin--hub .city-pin__label { background: #E53935; font-size: 13px; }
@media (max-width: 640px) {
  .city-pin__dot { width: 10px; height: 10px; border-width: 1.5px; }
  .city-pin--hub .city-pin__dot { width: 10px; height: 10px; }
  .city-pin__label { font-size: 10px; padding: 3px 6px; }
  .city-pin--hub .city-pin__label { font-size: 10px; }
}
@media (max-width: 420px) {
  .city-pin__label { font-size: 8px; padding: 2px 4px; border-radius: 4px; }
  .city-pin--hub .city-pin__label { font-size: 8px; }
}
.car-marker {
  position: absolute;
  top: 0; left: 0;
  width: 38px; height: 57px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.55));
  will-change: transform, top, left;
}
.car-marker picture, .car-marker img { width: 100%; height: 100%; display: block; }
@media (max-width: 640px) { .car-marker { width: 30px; height: 45px; } }
.map-joy {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.joy-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.22);
  background: rgba(15,15,15,0.72);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.12s, transform 0.08s;
  line-height: 1;
}
.joy-btn:hover  { background: rgba(40,40,40,0.88); }
.joy-btn:active { transform: scale(0.88); }
.joy-btn.is-active { background: var(--primary); border-color: var(--primary); }
@media (max-width: 480px) {
  .joy-btn { width: 30px; height: 30px; font-size: 14px; }
  .map-joy { top: 6px; right: 6px; gap: 3px; }
}
.city-toast {
  position: absolute;
  bottom: 12px; left: 12px;
  z-index: 20;
  max-width: min(260px, calc(100% - 100px));
  padding: 9px 14px;
  background: rgba(8,8,8,0.82);
  border: 1px solid rgba(255,255,255,0.13);
  border-left: 3px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.city-toast.is-visible { opacity: 1; transform: translateY(0); }
.city-toast--hub { border-left-color: #E53935; }
.city-toast__name { font-weight: 700; font-size: 13px; line-height: 1.3; white-space: nowrap; }
.city-toast--hub .city-toast__name { color: #ff7070; }
.city-toast__stops { font-size: 11px; color: rgba(255,255,255,0.55); line-height: 1.4; margin-top: 3px; }
@media (max-width: 480px) {
  .city-toast { padding: 7px 10px; max-width: min(200px, calc(100% - 80px)); }
  .city-toast__name { font-size: 12px; }
  .city-toast__stops { font-size: 10px; }
}
.map-section__alt { text-align: center; margin-top: 14px; font-size: 0.92rem; }
.map-section__alt a { color: var(--primary); }

/* ── Тулбар над картой (mode-tabs + departure-clock) ─────── */
.map-toolbar {
  max-width: 1100px;
  margin: 0 auto 10px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mode-tabs {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}
.mode-tab {
  padding: 7px 18px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.mode-tab.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px var(--primary-glow);
}
.mode-tab:not(.is-active):hover { background: rgba(255,255,255,0.06); }
.departure-clock {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 16px;
  flex-shrink: 0;
}
.clock-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}
.clock-time {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  min-width: 52px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
@media (max-width: 600px) {
  .map-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 6px;
    padding: 0 8px;
  }
  .mode-tabs { justify-content: center; }
  .mode-tab { padding: 6px 10px; font-size: 0.78rem; flex: 1; text-align: center; }
  .departure-clock { justify-content: center; }
  .clock-time { font-size: 1.05rem; min-width: 42px; }
  .clock-label { font-size: 0.68rem; }
}

/* ── КПП Успенка: синий пин с иконкой ───────────────────── */
.city-pin--kpp .city-pin__dot {
  background: #1565C0;
  border-color: #fff;
  width: 22px; height: 22px;
  box-shadow: 0 0 0 4px rgba(21,101,192,0.35),
              0 2px 8px rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1;
}
.city-pin--kpp .city-pin__label {
  background: #1565C0;
  font-size: 13px;
}
.city-pin--kpp.city-pin--label-right .city-pin__label { left: 22px; }
@media (max-width: 640px) {
  .city-pin--kpp .city-pin__dot { width: 18px; height: 18px; }
  .city-pin--kpp .city-pin__label { font-size: 10px; }
  .city-pin--kpp.city-pin--label-right .city-pin__label { left: 18px; }
}
@media (max-width: 420px) {
  .city-pin--kpp .city-pin__dot { width: 16px; height: 16px; }
  .city-pin--kpp .city-pin__label { font-size: 8px; }
  .city-pin--kpp.city-pin--label-right .city-pin__label { left: 16px; }
}

/* ── Точки пассажиров на крыше машины (вид сверху) ──────── */
.car-dot {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.45s ease, background 0.5s ease, box-shadow 0.5s ease;
}
.car-dot[data-seat="p1"] { left: 68%; top: 39%; transform: translate(-50%,-50%); }
.car-dot[data-seat="p2"] { left: 33%; top: 64%; transform: translate(-50%,-50%); }
.car-dot[data-seat="p3"] { left: 67%; top: 64%; transform: translate(-50%,-50%); }
.car-dot--green  { background: #4cde50; box-shadow: 0 0 5px rgba(76,222,80,1); }
.car-dot--yellow { background: #ffca28; box-shadow: 0 0 5px rgba(255,202,40,1); }
@media (max-width: 640px) { .car-dot { width: 5px; height: 5px; } }

/* ── Пешеходы на КПП ─────────────────────────────────────── */
.map-ped {
  position: absolute;
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 30;
  pointer-events: none;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}
.map-ped.is-active { display: flex; }
.map-ped__canvas {
  width:  clamp(18px, 2.2vw, 28px);
  height: clamp(27px, 3.3vw, 42px);
  display: block;
  flex-shrink: 0;
}
.map-ped__pass {
  width:  clamp(7px, 1.4vw, 13px);
  height: clamp(7px, 1.4vw, 13px);
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  transform: scale(0) rotate(12deg);
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 1px;
}
.map-ped.show-pass .map-ped__pass {
  transform: scale(1) rotate(-6deg);
}

/* ── Ходячий человечек ───────────────────────────────────── */
.walking-man {
  position: absolute;
  z-index: 25;
  pointer-events: none;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.55));
  width: clamp(30px, 3.8vw, 48px);
  height: auto;
  overflow: visible;
}

.kpp-section {
  padding: 18px 0 10px;
  background: var(--bg-elevated);
}
.kpp-note {
  max-width: 1100px;
  margin: 0 auto 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: var(--text-main);
}
.kpp-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.kpp-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 16px 16px 14px;
}
.kpp-card h3 {
  margin-bottom: 8px;
  font-size: 1.03rem;
}
.kpp-card p {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.95rem;
}
.kpp-card--group {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.14);
}
.kpp-card--individual {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.14);
}

.stops-section {
  padding: 18px 0 56px;
  background: var(--bg-elevated);
}
.stops-section .section-lead {
  margin-bottom: 16px;
}
.stops-table {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.stops-row {
  display: grid;
  grid-template-columns: 1.1fr 2fr 0.8fr 0.9fr;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.stops-row:last-child {
  border-bottom: 0;
}
.stops-row--head {
  background: var(--bg-tertiary);
  font-weight: 700;
}
.stops-row div {
  font-size: 0.92rem;
  line-height: 1.35;
}

@media (min-width: 860px) {
  .kpp-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 859px) {
  .stops-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .stops-row--head {
    display: none;
  }
  .stops-row div:nth-child(1) {
    font-weight: 700;
    margin-bottom: 2px;
  }
  .stops-row div:nth-child(2) {
    color: var(--text-secondary);
  }
  .stops-row div:nth-child(3),
  .stops-row div:nth-child(4) {
    font-weight: 600;
  }
}

/* Стили для списка остановок в стиле marshrut */
.stops {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 18px 20px 56px;
}
.stops h2 { text-align: center; margin-bottom: 18px; }
.stops__list {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stops__row {
  display: flex;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.stops__row:last-child { border-bottom: none; }
.stops__city {
  flex: 0 0 180px;
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stops__city .pin {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.stops__city.is-hub .pin {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.25);
}
.stops__points {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}
.stops__book {
  margin-left: auto;
  flex: 0 0 auto;
  justify-self: end;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .stops__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    padding: 12px 14px;
  }
  .stops__city { grid-column: 1; flex: none; }
  .stops__points { font-size: 0.85rem; grid-column: 1; }
  .stops__book { grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: end; margin-left: 0; }
}

/* ===== DESTINATIONS GRID ===== */
.destinations { padding: 56px 0; background: var(--bg-secondary, #f8f9fa); }
.destinations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin: 24px 0 32px;
}
.dest-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border, #e8ecf0);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.dest-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  transform: translateY(-2px);
  border-color: var(--primary, #e53e3e);
}
.dest-card__route {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary, #1a1a2e);
}
.dest-card:hover .dest-card__route { color: var(--primary, #e53e3e); }
.dest-card__meta {
  font-size: 0.85rem;
  color: var(--text-secondary, #6b7280);
}
@media (max-width: 600px) {
  .destinations__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dest-card { padding: 12px 14px; }
  .dest-card__route { font-size: 0.9rem; }
}
