/* Prime Tour Bus — v1 */

:root {
  --graphite: #1C272B;
  --graphite-deep: #131B1E;
  --graphite-line: #2E3B40;
  --champagne: #E3D5B0;
  --champagne-dim: #B9AD8C;
  --silver: #E7EAE9;
  --silver-line: #CDD3D2;
  --white: #FFFFFF;
  --ink: #1C272B;
  --ink-soft: #4A585D;
  --mist: #A7B2B5;
  --viber: #7360F2;
  --telegram: #2AABEE;
  --whatsapp: #25D366;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-15: 0.9375rem;
  --t-17: 1.0625rem;
  --t-21: 1.3125rem;
  --t-28: 1.75rem;
  --t-40: 2.5rem;
  --t-64: 4rem;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-text);
  font-size: var(--t-17);
  line-height: 1.6;
  color: var(--ink);
  background: var(--silver);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}
.on-light :focus-visible { outline-color: var(--graphite); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--champagne); color: var(--graphite);
  padding: 10px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--graphite);
  color: var(--white);
  border-bottom: 1px solid var(--graphite-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.logo {
  display: flex; flex-direction: column; text-decoration: none; line-height: 1.1;
}
.logo__name {
  font-family: var(--f-display); font-weight: 600;
  font-size: 1.0625rem; letter-spacing: 0.04em; color: var(--champagne);
}
.logo__sub { font-size: 0.75rem; color: var(--mist); margin-top: 3px; }

.header-contacts { display: flex; align-items: center; gap: 8px; }
.header-phone {
  font-family: var(--f-display); font-weight: 500; font-size: var(--t-15);
  text-decoration: none; color: var(--white); padding: 8px 12px; white-space: nowrap;
}
.header-phone:hover { color: var(--champagne); }

.nav-link {
  color: var(--mist); text-decoration: none; font-size: var(--t-15);
  padding: 8px 12px; margin-right: 8px;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--champagne); }

/* ---------- Messenger icons ---------- */
.msg {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; min-width: 44px; padding: 0 14px;
  border-radius: 22px; text-decoration: none; font-weight: 500; font-size: var(--t-15);
  border: 1px solid currentColor; transition: background-color .15s, color .15s;
}
.msg svg { width: 20px; height: 20px; flex: none; }
.msg--icon { padding: 0; width: 44px; }
.msg--viber { color: #A396FF; }
.msg--telegram { color: #6CCBFA; }
.msg--whatsapp { color: #5DE38F; }
.msg--viber:hover { background: var(--viber); color: var(--white); border-color: var(--viber); }
.msg--telegram:hover { background: var(--telegram); color: var(--white); border-color: var(--telegram); }
.msg--whatsapp:hover { background: var(--whatsapp); color: var(--graphite); border-color: var(--whatsapp); }

.on-light .msg--viber { color: #5E48DE; }
.on-light .msg--telegram { color: #1672A6; }
.on-light .msg--whatsapp { color: #0E7A40; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 26px;
  font-family: var(--f-text); font-weight: 600; font-size: var(--t-17);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--champagne); color: var(--graphite); }
.btn--primary:hover { background: var(--white); }
.btn--ghost { color: var(--champagne); border-color: var(--champagne-dim); background: transparent; }
.btn--ghost:hover { background: var(--champagne); color: var(--graphite); }
.btn--dark { background: var(--graphite); color: var(--white); }
.btn--dark:hover { background: var(--graphite-deep); }
.btn--whatsapp { background: var(--whatsapp); color: var(--graphite); }
.btn--whatsapp:hover { background: #4BE08A; }

/* ---------- Hero: text on graphite | photo full-bleed right ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr);
  color: var(--white); background: var(--graphite);
}
.hero__media { min-height: 0; }
.hero__media picture, .hero__media img { display: block; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 28% 72%; }
.hero__content { min-width: 0; padding-inline: var(--gutter); padding-block: 40px 48px; }
.hero__title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.875rem, 1.1rem + 3.2vw, 2.75rem);
  line-height: 1.08; letter-spacing: -0.01em; max-width: 15ch;
  overflow-wrap: break-word; hyphens: auto; text-wrap: balance;
}

/* Route board — the one bold element */
.board {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 28px; padding: 12px 18px;
  background: var(--graphite-deep);
  border: 1px solid rgba(227,213,176,.35);
  border-radius: var(--radius);
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1rem, .8rem + .9vw, var(--t-21));
  letter-spacing: 0.08em; color: var(--champagne);
  box-shadow: inset 0 0 24px rgba(227,213,176,.06);
}
.board__arrow { color: var(--champagne-dim); }
/* Split-flap board: all layers share one grid cell; the box is as wide as the longest word */
.board__dest {
  display: inline-grid; position: relative; height: 1.3em; line-height: 1.3em;
  perspective: 240px;
}
.board__dest > * { grid-area: 1 / 1; white-space: nowrap; }
.flap__size { visibility: hidden; }
.flap { background: var(--graphite-deep); }
.flap--top { clip-path: inset(0 0 50% 0); }
.flap--bottom { clip-path: inset(50% 0 0 0); }
.flap--leaf-top, .flap--leaf-bottom { transform-origin: 50% 50%; backface-visibility: hidden; will-change: transform; }
.flap--leaf-top { clip-path: inset(0 0 50% 0); animation: flap-down-top .15s cubic-bezier(.5,0,1,.6) forwards; }
.flap--leaf-bottom { clip-path: inset(50% 0 0 0); transform: rotateX(90deg); animation: flap-down-bottom .15s cubic-bezier(0,.4,.4,1) .15s forwards; }
@keyframes flap-down-top { from { transform: rotateX(0); filter: brightness(1); } to { transform: rotateX(-90deg); filter: brightness(.55); } }
@keyframes flap-down-bottom { from { transform: rotateX(90deg); filter: brightness(1.25); } to { transform: rotateX(0); filter: brightness(1); } }
/* the hinge line between the halves, like a real departure board */
.board__dest::after {
  content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 1px;
  background: rgba(0,0,0,.6); box-shadow: 0 1px 0 rgba(227,213,176,.08); z-index: 3;
}

.hero__facts {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 28px; color: var(--silver); font-size: var(--t-17);
}

.hero__facts strong { color: var(--white); font-weight: 600; }

/* Call button on top, three messengers below — one grid, equal edges */
.hero__actions {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  width: 100%; max-width: 440px; margin-top: 32px;
  container-type: inline-size;
}
.hero__actions .btn--primary { grid-column: 1 / -1; width: 100%; }
.hero__actions .msg { width: 100%; min-width: 0; padding: 0 10px; }
@container (max-width: 400px) {
  .hero__actions .msg { font-size: 0.8125rem; gap: 6px; padding: 0 8px; }
  .hero__actions .msg svg { width: 18px; height: 18px; }
}
@container (max-width: 330px) {
  .hero__actions .msg span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--dark { background: var(--graphite); color: var(--white); }
.section--light { background: var(--silver); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }

.section-title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.625rem, 1.1rem + 2vw, var(--t-40));
  line-height: 1.15; letter-spacing: -0.01em; max-width: 22ch;
}
.section-lead { margin-top: 16px; max-width: 60ch; font-size: var(--t-17); }
.section--dark .section-lead { color: var(--mist); }
.section--light .section-lead,
.section--white .section-lead { color: var(--ink-soft); }

/* ---------- Audience ---------- */
.audience { display: grid; gap: 40px; margin-top: 48px; }
.audience__lead {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px;
  background: var(--graphite); color: var(--white); border-radius: var(--radius); overflow: hidden;
}
.audience__lead img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; object-position: 50% 62%; }
.audience__lead-body { padding: 0 28px 32px; }
.audience__lead h3 {
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-28); color: var(--champagne);
}
.audience__lead p { margin-top: 12px; color: var(--silver); max-width: 48ch; }

.audience__list li { padding-block: 20px; border-top: 1px solid var(--silver-line); }
.audience__list li:last-child { border-bottom: 1px solid var(--silver-line); }
.audience__list h3 { font-size: var(--t-21); font-weight: 600; }
.audience__list p { margin-top: 4px; color: var(--ink-soft); max-width: 52ch; }

/* ---------- Fleet overview ---------- */
.lineup { display: grid; gap: 32px; margin-top: 48px; }
.lineup__item { display: flex; flex-direction: column; }
.lineup__media { border-radius: var(--radius); overflow: hidden; background: var(--graphite-deep); }
.lineup__media img { width: 100%; height: 260px; object-fit: cover; }
.lineup__class { margin-top: 20px; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.0625rem, .9rem + .4vw, var(--t-21)); line-height: 1.25; color: var(--champagne); overflow-wrap: break-word; hyphens: auto; }
.lineup__model { margin-top: 6px; color: var(--white); }
.lineup__seats { color: var(--mist); }
.lineup__use { margin-top: 8px; color: var(--mist); max-width: 40ch; }

.fleet-note {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--graphite-line);
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.fleet-note p { color: var(--mist); max-width: 64ch; }
.fleet-note strong { color: var(--white); font-weight: 600; }

/* ---------- Geography ---------- */
.geo { display: grid; gap: 40px; align-items: center; }
.geo__text p + p { margin-top: 16px; }
.geo__text .section-lead + p { margin-top: 16px; }
.geo__media { border-radius: var(--radius); overflow: hidden; }
.geo__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 68%; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 32px; margin-top: 48px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--f-display); font-weight: 300; font-size: var(--t-40); line-height: 1;
  color: var(--ink);
}
.steps li::after {
  content: ""; position: absolute; top: 20px; left: 48px; right: 0;
  height: 1px; background: var(--silver-line);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: var(--t-21); font-weight: 600; }
.steps p { margin-top: 6px; color: var(--ink-soft); }

/* ---------- Docs ---------- */
.docs { display: grid; gap: 0; margin-top: 40px; }
.docs li {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 16px; border-top: 1px solid var(--silver-line);
}
.docs li:last-child { border-bottom: 1px solid var(--silver-line); }
.docs__name { font-weight: 600; }
.docs__value { color: var(--ink-soft); }

/* Placeholder marker — visible only in v1 drafts */
.todo {
  background: #FFF1B8; color: #5A4700; padding: 0 6px; border-radius: 3px;
  font-family: var(--f-text); font-weight: 500; font-size: 0.875em; letter-spacing: 0;
  white-space: nowrap;
}

/* ---------- Final CTA ---------- */
.cta { text-align: left; }
.cta__phone {
  display: inline-block; margin-top: 32px;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.375rem, 1rem + 1.6vw, 2.125rem);
  line-height: 1; letter-spacing: -0.01em;
  color: var(--champagne); text-decoration: none; white-space: nowrap;
}
.cta__phone:hover { color: var(--white); }
/* Same three-button grid as on the hero */
.cta__msgs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  max-width: 440px; margin-top: 28px; container-type: inline-size;
}
.cta__msgs .msg { width: 100%; min-width: 0; padding: 0 10px; }
@container (max-width: 400px) {
  .cta__msgs .msg { font-size: 0.8125rem; gap: 6px; padding: 0 8px; }
  .cta__msgs .msg svg { width: 18px; height: 18px; }
}
@container (max-width: 330px) {
  .cta__msgs .msg span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.cta__hours { margin-top: 20px; color: var(--mist); }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite-deep); color: var(--mist); padding-block: 40px; font-size: var(--t-15); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--champagne); }
.site-footer .logo__name { font-size: var(--t-15); }

/* ---------- Mobile contact bar ---------- */
.contact-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  background: var(--graphite-deep); border-top: 1px solid var(--graphite-line);
  padding-bottom: env(safe-area-inset-bottom);
}
.contact-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 60px; text-decoration: none; font-size: 0.75rem; font-weight: 500; color: var(--silver);
}
.contact-bar svg { width: 22px; height: 22px; }
.contact-bar .cb-call { background: var(--champagne); color: var(--graphite); font-size: 0.875rem; font-weight: 600; flex-direction: row; gap: 8px; }
.contact-bar .cb-viber svg { color: #A396FF; }
.contact-bar .cb-telegram svg { color: #6CCBFA; }
.contact-bar .cb-whatsapp svg { color: #5DE38F; }

/* ---------- Fleet page ---------- */
.page-head { padding-block: 64px 32px; background: var(--graphite); color: var(--white); }
.page-head h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); line-height: 1.1; }
.page-head p { margin-top: 16px; max-width: 60ch; color: var(--mist); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tab {
  min-height: 44px; padding: 0 18px; border-radius: 22px;
  border: 1px solid var(--graphite-line); background: transparent; color: var(--silver);
  font: 500 var(--t-15) var(--f-text); cursor: pointer;
}
.tab:hover { border-color: var(--champagne-dim); color: var(--white); }
.tab[aria-pressed="true"] { background: var(--champagne); border-color: var(--champagne); color: var(--graphite); }

.catalog { display: grid; gap: 32px; margin-top: 32px; }
.catalog-block {
  margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--graphite-line);
  scroll-margin-top: 72px;
}
.catalog-title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.375rem, 1rem + 1.4vw, var(--t-28)); color: var(--white);
}
.catalog-block .tabs { margin-top: 20px; }

/* Fleet lineup cards are links into the catalog */
.lineup__link { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
.lineup__more {
  margin-top: 14px; align-self: flex-start;
  font-size: var(--t-15); font-weight: 500; color: var(--champagne);
  border-bottom: 1px solid rgba(227,213,176,.4); padding-bottom: 2px;
}
.lineup__link:hover .lineup__more { border-bottom-color: var(--champagne); }
.vehicle { background: var(--white); color: var(--ink); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.vehicle[hidden] { display: none; }
.vehicle__photo {
  position: relative; display: block; padding: 0; border: 0; cursor: zoom-in; background: var(--graphite);
}
.vehicle__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vehicle__count {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(19,27,30,.82); color: var(--white); font-size: 0.8125rem; font-weight: 500;
  padding: 4px 10px; border-radius: 12px;
}
.vehicle__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.vehicle__class { color: var(--ink-soft); font-size: var(--t-15); }
.vehicle__name { font-family: var(--f-display); font-weight: 600; font-size: var(--t-21); line-height: 1.2; }
.vehicle__seats { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.vehicle__seats svg { width: 22px; height: 22px; flex: none; color: var(--ink); stroke-width: 1.6; }
.vehicle__amen { display: flex; flex-wrap: wrap; gap: 6px; }
.vehicle__amen li {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.8125rem; line-height: 1.3; padding: 3px 9px 3px 7px; border-radius: 12px;
  background: var(--chip-bg, var(--silver)); color: var(--chip-fg, var(--ink-soft));
}
.vehicle__amen svg { width: 14px; height: 14px; flex: none; color: currentColor; stroke-width: 1.7; }
/* Колір за змістом: клімат — блакитний, медіа — фіолетовий, світло — бурштиновий,
   крісла — коньячний, багаж — зелений */
.amen--air   { --chip-bg: #E2F1F8; --chip-fg: #1F6286; }
.amen--media { --chip-bg: #ECEBFA; --chip-fg: #4A43A8; }
.amen--light { --chip-bg: #FBF0D6; --chip-fg: #7D5A0E; }
.amen--seat  { --chip-bg: #F6E8DF; --chip-fg: #7E4523; }
.amen--bag   { --chip-bg: #E5EFE4; --chip-fg: #3E6A3B; }
/* Один рядок: WhatsApp розтягується, Viber і Telegram — круглі іконки праворуч */
.vehicle__actions {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: center; gap: 8px; container-type: inline-size;
}
.vehicle__actions .btn {
  flex: 1 1 auto; min-width: 0; min-height: 48px; padding-inline: 12px;
  font-size: var(--t-15); white-space: nowrap;
}
.vehicle__actions .msg--icon { flex: none; width: 48px; height: 48px; border-radius: 50%; }
/* Вузька картка — лишаємо на кнопці тільки «WhatsApp» */
@container (max-width: 310px) { .vehicle__wa-pre { display: none; } }

/* Lightbox: горизонтальна стрічка зі snap — свайп працює нативно */
.lightbox { padding: 0; border: 0; background: rgba(10,14,16,.96); max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; overflow: hidden; }
.lightbox::backdrop { background: rgba(10,14,16,.6); }
.lightbox__track {
  display: flex; gap: 16px; width: 100%; height: 100%;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; outline: none;
}
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide {
  flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 16px 56px;
}
.lightbox__slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); user-select: none; -webkit-user-drag: none; }
.lightbox__btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: rgba(19,27,30,.62); color: var(--white);
  border: 1px solid rgba(255,255,255,.32);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  cursor: pointer; transition: background-color .15s, border-color .15s;
}
.lightbox__btn svg { width: 22px; height: 22px; stroke-width: 2; }
.lightbox__btn:hover { background: rgba(19,27,30,.85); border-color: var(--champagne); }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; text-align: center; color: var(--mist); font-size: var(--t-15); pointer-events: none; }
@media (min-width: 760px) {
  .lightbox__slide { padding-inline: 80px; }
  .lightbox__prev { left: 20px; }
  .lightbox__next { right: 20px; }
}

/* ---------- Breakpoints ---------- */
@media (max-width: 759px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .header-contacts .msg, .header-phone, .nav-link--hide-sm { display: none; }
  .hero__media { height: 52svh; min-height: 300px; max-height: 520px; }
  .hero__media img { object-position: 22% 70%; }
  .board { letter-spacing: 0.04em; padding: 10px 14px; gap: 10px; }
}

@media (max-width: 340px) {
  .cta__phone { font-size: 1.375rem; }
}

@media (min-width: 760px) {
  .contact-bar { display: none; }
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    min-height: clamp(560px, 82vh, 780px);
  }
  .hero__content {
    order: -1; align-self: center;
    padding-block: 64px;
    padding-left: max(var(--gutter), calc((100vw - var(--sbw, 0px) - var(--wrap)) / 2 + var(--gutter)));
    padding-right: 48px;
  }
  .hero__title { font-size: clamp(1.875rem, 4.4vw - 6px, 3rem); }
  .audience { grid-template-columns: 1.15fr 1fr; align-items: start; gap: 48px; }
  .audience__lead { grid-template-columns: 1fr; }
  .lineup { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .geo { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .catalog { grid-template-columns: repeat(3, 1fr); }
  .lineup__media img { height: 300px; }
}

/* =====================================================================
   MOTION
   ===================================================================== */

/* Header becomes denser after scroll */
.site-header { transition: background-color .3s, box-shadow .3s; }
.site-header.is-scrolled { background: rgba(19,27,30,.94); box-shadow: 0 8px 24px rgba(0,0,0,.25); backdrop-filter: blur(8px); }

/* Hero entrance on load */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1.04); } }
.hero__title  { animation: rise .9s cubic-bezier(.2,.7,.2,1) both .1s; }
.board        { animation: rise .9s cubic-bezier(.2,.7,.2,1) both .35s; }
.hero__facts  { animation: rise .9s cubic-bezier(.2,.7,.2,1) both .5s; }
.hero__actions{ animation: rise .9s cubic-bezier(.2,.7,.2,1) both .65s; }
.hero__media { overflow: hidden; }
.hero__media img {
  animation: settle 2.2s cubic-bezier(.2,.7,.2,1) both;
  transform: scale(1.04);
}
/* Hero slideshow: extra photos fade in over the first one */
.hero__media { position: relative; }
.hero__slides { position: absolute; inset: 0; pointer-events: none; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transform: scale(1.04);
  transition: opacity 1.6s ease, transform 8s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1.1); }
/* Mouse parallax: JS sets --mx / --my from -1 to 1 */
.hero__media picture, .hero__slides {
  transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -10px), 0);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

/* Elements sliding in from the right must not widen the page */
main { overflow-x: clip; }

/* Scroll reveal — only when JS is running, so the page is never stuck hidden */
.js [data-reveal],
.js [data-reveal-group] > * {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="right"],
.js [data-reveal-group="right"] > * { transform: translateX(64px); }
.js [data-reveal].is-visible,
.js [data-reveal-group].is-visible > * { opacity: 1; transform: none; }
.vehicle[hidden] { display: none !important; }

/* Route steps: connecting line draws one after another */
.steps li::after { transform-origin: left center; transform: scaleX(0); transition: transform .9s cubic-bezier(.6,0,.2,1); }
.steps.is-visible li::after { transform: scaleX(1); }
.steps.is-visible li:nth-child(1)::after { transition-delay: .35s; }
.steps.is-visible li:nth-child(2)::after { transition-delay: .7s; }
.steps.is-visible li:nth-child(3)::after { transition-delay: 1.05s; }
.no-js .steps li::after, html:not(.js) .steps li::after { transform: none; }

/* Hover / pointer interactions — desktop only */
@media (hover: hover) and (pointer: fine) {

  /* Fleet lineup: the hovered vehicle class widens, others step back */
  .lineup { transition: grid-template-columns .6s cubic-bezier(.2,.7,.2,1); }
  .lineup__item { transition: opacity .4s; }
  .lineup__media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .lineup:has(> .lineup__item:hover) > .lineup__item:not(:hover) { opacity: .7; }
  .lineup__item:hover .lineup__media img { transform: scale(1.06); }

  /* Catalog: lift and enlarge the chosen card */
  .vehicle {
    transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s, opacity .35s;
    will-change: transform;
  }
  .vehicle__photo { overflow: hidden; }
  .vehicle__photo img { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
  .catalog:has(> .vehicle:hover) > .vehicle:not(:hover) { opacity: .82; }
  .vehicle:hover { transform: translateY(-8px) scale(1.025); box-shadow: 0 24px 48px rgba(19,27,30,.22); position: relative; z-index: 2; }
  .vehicle:hover .vehicle__photo img { transform: scale(1.07); }

  /* Audience */
  .audience__lead img { transition: transform 1s cubic-bezier(.2,.7,.2,1); }
  .audience__lead { overflow: hidden; }
  .audience__lead:hover img { transform: scale(1.05); }
  /* Highlight bleeds 16px past the text on both sides; text keeps its column edge */
  .audience__list li { position: relative; isolation: isolate; }
  .audience__list li::before {
    content: ""; position: absolute; inset: -1px -16px; z-index: -1;
    background: rgba(255,255,255,.65); border-radius: var(--radius);
    opacity: 0; transition: opacity .35s;
  }
  .audience__list li > * { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .audience__list li:hover::before { opacity: 1; }
  .audience__list li:hover > * { transform: translateX(6px); }

  /* Geography photo */
  .geo__media img { transition: transform 1s cubic-bezier(.2,.7,.2,1); }
  .geo__media:hover img { transform: scale(1.05); }

  /* Buttons */
  .msg { transition: background-color .2s, color .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
  .msg:hover { transform: translateY(-2px); }
  .btn, .cta__phone { transition: background-color .2s, color .2s, transform .35s cubic-bezier(.2,.7,.2,1); }
  .board { transition: border-color .3s, box-shadow .3s; }
  .board:hover { border-color: rgba(227,213,176,.7); box-shadow: inset 0 0 32px rgba(227,213,176,.12), 0 0 0 4px rgba(227,213,176,.06); }
}

@media (min-width: 1040px) {
  .lineup { grid-template-columns: 4.4fr 3.2fr 2.4fr; }
}
@media (min-width: 1040px) and (hover: hover) and (pointer: fine) {
  .lineup:has(> .lineup__item:nth-child(1):hover) { grid-template-columns: 5.6fr 2.6fr 1.8fr; }
  .lineup:has(> .lineup__item:nth-child(2):hover) { grid-template-columns: 3.4fr 4.4fr 2.2fr; }
  .lineup:has(> .lineup__item:nth-child(3):hover) { grid-template-columns: 3.4fr 2.6fr 4fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; }
  .steps li::after { transform: none; }
  .hero__media picture, .hero__media img { transform: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound .section-lead { margin-bottom: 32px; }
