:root {
  --cherry: #e63946;
  --cherry-deep: #b3122f;
  --cherry-soft: #ff4d6d;
  --wine: #3d0c16;
  --dark: #1c070c;
  --dark-2: #2a0a12;
  --cream: #fff7f2;
  --ink: #3a1220;
  --muted: #8a5a68;
  --white: #ffffff;
  --grad: linear-gradient(135deg, #ff4d6d 0%, #e63946 45%, #b3122f 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,77,109,.16), rgba(179,18,47,.10));
  --shadow: 0 24px 60px -24px rgba(120, 10, 30, .45);
  --radius: 22px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.icon { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn--lg { padding: 16px 32px; font-size: 16px; }

.btn--cherry {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 12px 30px -12px rgba(227, 57, 70, .75);
}
.btn--cherry:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(227, 57, 70, .9); }

.btn--outline {
  background: transparent;
  color: var(--cherry-deep);
  border: 2px solid rgba(179, 18, 47, .35);
}
.btn--outline:hover { background: var(--cherry); border-color: var(--cherry); color: var(--white); transform: translateY(-3px); }

.btn--ghost {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .18); transform: translateY(-3px); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}
.navbar.is-scrolled {
  padding: 10px 0;
  background: rgba(28, 7, 12, .85);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,.5);
}
.navbar__inner { display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 42px; height: 42px; filter: drop-shadow(0 6px 14px rgba(255,77,109,.4)); }
.brand__text { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--white); letter-spacing: .02em; }
.brand__text b { color: var(--cherry-soft); }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav__link {
  color: rgba(255,255,255,.78);
  font-weight: 600;
  font-size: 14.5px;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background .25s, color .25s;
}
.nav__link:hover { background: rgba(255,255,255,.1); color: var(--white); }

.navbar__actions { display: flex; align-items: center; gap: 10px; }
.navbar__phone { font-size: 14px; padding: 11px 18px; }
.navbar__tg { padding: 11px 18px; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.burger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 90% at 15% 0%, #3d0c16 0%, #1c070c 55%, #10040a 100%);
  color: var(--white);
  padding: 88px 0 0;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.blob--1 { width: 520px; height: 520px; background: #e63946; top: -160px; right: -80px; animation: float 12s ease-in-out infinite; }
.blob--2 { width: 380px; height: 380px; background: #7d1d33; bottom: -120px; left: -100px; animation: float 15s ease-in-out infinite reverse; }
.blob--3 { width: 260px; height: 260px; background: #ff4d6d; top: 40%; left: 45%; opacity: .3; animation: float 10s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 0 40px;
}

.hero__badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cherry-soft);
  background: rgba(255, 77, 109, .12);
  border: 1px solid rgba(255, 77, 109, .35);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.hero__title span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin-top: 12px;
  font-size: clamp(14.5px, 1.8vw, 17px);
  color: rgba(255, 255, 255, .78);
  font-weight: 500;
  letter-spacing: .04em;
}

/* search in hero */
.hero__search { width: min(860px, 100%); margin: 22px auto 0; }
.hero__search-head { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.hero__search-head .section-tag {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .25);
  color: var(--cherry-soft);
  margin-bottom: 0;
}
.hero__search-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--white);
}

/* stats */
.hero__stats { position: relative; background: rgba(255, 255, 255, .04); border-top: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
.hero__stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px 0; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 12.5px; color: rgba(255, 255, 255, .6); font-weight: 600; }

/* ---------- Sections head ---------- */
.section-head { margin-bottom: 44px; }
.section-head--center { text-align: center; }
.section-tag {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cherry-deep);
  background: rgba(227, 57, 70, .1);
  border: 1px solid rgba(227, 57, 70, .25);
  margin-bottom: 16px;
}
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -.01em; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 16.5px; max-width: 640px; }
.section-head--center .section-sub { margin-inline: auto; }

/* ---------- Search ---------- */
.search-form {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(179, 18, 47, .08);
}
.search-form__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1.1fr auto;
  gap: 18px;
  align-items: end;
}

.field { position: relative; }
.field__label { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field__input {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #f0dfe4;
  border-radius: 14px;
  transition: border-color .25s, box-shadow .25s;
}
.field__input:focus-within { border-color: var(--cherry); box-shadow: 0 0 0 4px rgba(227,57,70,.12); }
.field__input input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 44px 14px 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink);
}
.field__calendar { position: absolute; right: 14px; color: var(--muted); pointer-events: none; }
.field__input--date input { padding-right: 44px; }

.city-desc { display: block; margin-top: 7px; font-size: 12px; color: var(--muted); }

.switch {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  border: 2px solid rgba(179,18,47,.18);
  color: var(--cherry-deep);
  margin-bottom: 7px;
  transition: transform .35s ease, background .25s;
}
.switch:hover { transform: rotate(180deg) scale(1.05); background: var(--grad); color: var(--white); }
.switch img { width: 20px; height: 20px; }

.quick-dates { display: flex; gap: 8px; margin-top: 10px; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: #fdf0f2;
  transition: .2s;
}
.chip:hover { background: #f7dbe0; }
.chip.is-active { background: var(--grad); color: var(--white); box-shadow: 0 6px 16px -6px rgba(227,57,70,.6); }

.btn--search { align-self: end; padding: 16px 34px; font-size: 16px; }

/* autocomplete */
.autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 101;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 24px 50px -20px rgba(58,18,32,.4);
  border: 1px solid rgba(179,18,47,.12);
  overflow: hidden;
  display: none;
  max-height: 260px;
  overflow-y: auto;
}
.autocomplete.is-open { display: block; }
.autocomplete-item { padding: 12px 16px; cursor: pointer; transition: background .15s; }
.autocomplete-item:hover, .autocomplete-item.is-active { background: #fdf0f2; }
.autocomplete-item b { display: block; font-size: 15px; }
.autocomplete-item span { font-size: 12.5px; color: var(--muted); }

/* ---------- Ride buy button ---------- */
.ride__buy { justify-self: end; padding: 12px 20px; font-size: 14.5px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 4, 9, .65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: min(480px, 100%);
  background: var(--white);
  border-radius: 26px;
  padding: 42px 34px 34px;
  text-align: center;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
  animation: modalIn .3s cubic-bezier(.2, .9, .3, 1.2);
  overflow: hidden;
}
.modal::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227,57,70,.14), transparent 70%);
  top: -80px; right: -80px;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.95); } to { opacity: 1; transform: none; } }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  background: #fdf0f2;
  transition: background .2s, color .2s, transform .2s;
}
.modal__close:hover { background: var(--cherry); color: var(--white); transform: rotate(90deg); }

.modal__bus { width: 130px; margin: 0 auto 18px; filter: drop-shadow(0 16px 26px rgba(120,10,30,.35)); }
.modal h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 12px; }
.modal__route { font-size: 15.5px; color: var(--muted); margin-bottom: 14px; }
.modal__route b { color: var(--ink); }
.modal__note { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }
.modal__actions { display: flex; flex-direction: column; gap: 12px; }
.modal__actions .btn { width: 100%; }

/* ---------- Results ---------- */
.results { padding: 40px 0 20px; }
.results[hidden] { display: none; }
.results__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.results__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.results__count { color: var(--muted); font-weight: 600; }
.results__list { display: flex; flex-direction: column; gap: 14px; }

.ride {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid rgba(179,18,47,.1);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 12px 34px -20px rgba(120,10,30,.35);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  animation: rise .4s ease both;
}
.ride:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -22px rgba(120,10,30,.5); border-color: rgba(227,57,70,.35); }

@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.ride__time { display: flex; flex-direction: column; }
.ride__time b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.ride__time span { font-size: 13px; color: var(--muted); margin-top: 4px; }

.ride__path { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ride__path-line { position: relative; width: 90px; height: 2px; background: repeating-linear-gradient(90deg, var(--cherry) 0 6px, transparent 6px 12px); }
.ride__path-line i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; transform: translate(-50%,-50%) rotate(45deg); background: var(--cherry-soft); }
.ride__path div { display: flex; flex-direction: column; min-width: 0; }
.ride__path div b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ride__path div span { font-size: 12px; color: var(--muted); }

.ride__duration { text-align: center; padding: 8px 14px; background: var(--grad-soft); border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--cherry-deep); }

.ride__price { text-align: right; }
.ride__price b { font-size: 22px; font-weight: 800; display: block; }
.ride__price span { font-size: 12.5px; color: var(--muted); }

.results__empty { text-align: center; padding: 50px 20px; color: var(--muted); background: var(--white); border-radius: var(--radius); border: 1px dashed rgba(179,18,47,.3); }

/* ---------- Routes ---------- */
.routes { padding: 90px 0; }
.routes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.route-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(179,18,47,.1);
  box-shadow: 0 14px 40px -24px rgba(120,10,30,.4);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.route-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.route-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(120,10,30,.55); }
.route-card:hover::before { transform: scaleX(1); }

.route-card--primary { background: linear-gradient(150deg, var(--dark) 0%, var(--wine) 100%); color: var(--white); }
.route-card--primary .route-card__num { color: rgba(255,255,255,.35); }
.route-card--primary .route-card__title span { color: var(--white); }
.route-card--primary .route-card__title i { background: var(--cherry-soft); }

.route-card__top { display: flex; align-items: center; justify-content: space-between; }
.route-card__num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: rgba(179,18,47,.3); }
.route-card__duration { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(0,0,0,.04); padding: 6px 12px; border-radius: 999px; }
.route-card--primary .route-card__duration { background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); }
.route-card__duration img { width: 14px; height: 14px; color: var(--muted); }

.route-card__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; line-height: 1.25; flex-wrap: wrap; }
.route-card__title span { color: var(--ink); }
.route-card__title i { width: 22px; height: 2px; background: var(--cherry); border-radius: 2px; flex-shrink: 0; }

.route-card__price { margin-top: auto; font-family: var(--font-display); font-weight: 800; font-size: 30px; }
.route-card__price span { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.route-card--primary .route-card__price span { color: rgba(255,255,255,.6); }

.route-card__btn { width: 100%; }

/* ---------- Why ---------- */
.why {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, #fdf1f3 100%);
  padding: 90px 0;
}
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid rgba(179,18,47,.08);
  box-shadow: 0 14px 40px -28px rgba(120,10,30,.4);
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.why-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -28px rgba(120,10,30,.55); }
.why-card::after {
  content: "";
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227,57,70,.12), transparent 70%);
  top: -50px; right: -50px;
}
.why-card__icon {
  width: 58px; height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  color: var(--cherry-deep);
  margin-bottom: 20px;
  transition: transform .3s;
}
.why-card:hover .why-card__icon { transform: rotate(-8deg) scale(1.06); }
.why-card__icon img { width: 26px; height: 26px; }
.why-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.why-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Contacts ---------- */
.contacts { padding: 90px 0; }
.contacts__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: start;
}
.contacts__list { display: flex; flex-direction: column; gap: 14px; margin: 34px 0; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid rgba(179,18,47,.1);
  border-radius: 16px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.contact-row:hover { transform: translateX(6px); border-color: rgba(227,57,70,.4); box-shadow: 0 14px 34px -22px rgba(120,10,30,.5); }
.contact-row__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  color: var(--cherry-deep);
  flex-shrink: 0;
  font-size: 20px;
}
.contact-row__icon img { width: 22px; height: 22px; }
.contact-row b { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.contact-row em { font-style: normal; font-weight: 800; font-size: 16.5px; }

.contacts__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.contacts__card {
  background: linear-gradient(160deg, var(--dark) 0%, var(--wine) 100%);
  color: var(--white);
  border-radius: 28px;
  padding: 38px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.contacts__card::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,109,.4), transparent 70%);
  top: -70px; right: -70px;
}
.contacts__card h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-bottom: 22px; }

.contacts__requisites { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.contacts__requisites li { display: flex; gap: 12px; font-size: 14.5px; }
.contacts__requisites span { width: 62px; flex-shrink: 0; color: rgba(255,255,255,.55); font-weight: 600; }
.contacts__requisites b { font-weight: 700; }

.contacts__docs { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.contacts__docs a { font-size: 14px; color: rgba(255,255,255,.82); text-decoration: underline; text-underline-offset: 4px; transition: color .2s; }
.contacts__docs a:hover { color: var(--cherry-soft); }

.contacts__reviews { margin-top: 22px; width: 100%; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 60px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__brand p { margin-top: 16px; font-size: 14px; max-width: 300px; color: rgba(255,255,255,.55); }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__contacts a { font-size: 14.5px; color: rgba(255,255,255,.7); transition: color .2s; }
.footer__nav a:hover, .footer__contacts a:hover { color: var(--cherry-soft); }
.footer__contacts { display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.footer__heart { color: var(--cherry-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .search-form__grid { grid-template-columns: 1fr 1fr; }
  .switch { grid-column: span 2; width: 100%; border-radius: 14px; margin: 0; }
  .btn--search { grid-column: span 2; }
  .routes__grid { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .contacts__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1000px) {
  .ride { grid-template-columns: 1fr auto; gap: 14px 18px; }
  .ride__path { grid-column: 1 / -1; order: -1; }
  .ride__buy { justify-self: stretch; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 66px;
    flex-direction: column;
    gap: 4px;
    background: rgba(28,7,12,.97);
    padding: 20px;
    border-radius: 0 0 24px 24px;
    transform: translateY(-120%);
    transition: transform .3s ease;
    margin-left: 0;
  }
  .nav.is-open { transform: none; }
  .nav__link { font-size: 17px; padding: 13px; }
  .burger { display: flex; }
  .navbar__phone { display: none; }
  .hero { padding-top: 76px; }
  .search-form__grid { grid-template-columns: 1fr; }
  .switch, .btn--search { grid-column: auto; }
  .routes__grid, .why__grid { grid-template-columns: 1fr; }
  .ride { grid-template-columns: 1fr; gap: 12px; text-align: left; }
  .ride__path { order: -1; }
  .ride__price, .ride__duration { text-align: left; }
  .ride__buy { width: 100%; justify-self: stretch; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__stats-inner { grid-template-columns: 1fr 1fr; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}