/* ---------- Fonts (self-hosted, no requests to Google) ----------
   Bodoni Moda and Figtree, SIL Open Font License 1.1.
   The files are created once with tools/fetch-fonts.py (see licence files in /assets/fonts/). */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/bodoni-moda-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);

  --green-900: #080d16;
  --green-800: #0f1624;
  --green-700: #18233a;
  --green-600: #2a3a58;
  --gold: #c9a45c;
  --gold-soft: #e3cf98;
  --cream: #eeeae0;

  --ink: var(--cream);
  --ink-muted: rgba(238, 234, 224, 0.74);
  --line: rgba(201, 164, 92, 0.38);

  --paper: #eeeae0;
  --paper-ink: #0f1624;
  --paper-muted: rgba(15, 22, 36, 0.74);
  --paper-line: rgba(15, 22, 36, 0.36);
  --solid-bg: #0f1624;
  --solid-ink: #eeeae0;
  --solid-hover: #c9a45c;
  --solid-hover-ink: #080d16;
  --error: #9b2c1f;
  --paper-scheme: light;

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(20px, 5vw, 56px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b111c;
    --paper-ink: #eeeae0;
    --paper-muted: rgba(238, 234, 224, 0.76);
    --paper-line: rgba(238, 234, 224, 0.38);
    --solid-bg: #c9a45c;
    --solid-ink: #080d16;
    --solid-hover: #eeeae0;
    --solid-hover-ink: #080d16;
    --error: #ff9f8f;
    --paper-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b111c;
  --paper-ink: #eeeae0;
  --paper-muted: rgba(238, 234, 224, 0.76);
  --paper-line: rgba(238, 234, 224, 0.38);
  --solid-bg: #c9a45c;
  --solid-ink: #080d16;
  --solid-hover: #eeeae0;
  --solid-hover-ink: #080d16;
  --error: #ff9f8f;
  --paper-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
}

body {
  margin: 0;
  background: var(--green-800);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.08; }
p { margin: 0; }

.wrap {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-ink: var(--cream);
  --btn-line: var(--gold);
  --btn-sweep: var(--gold);
  --btn-sweep-ink: var(--green-900);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95em 1.7em;
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: 600 1rem/1 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-sweep);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover, .btn:focus-visible { color: var(--btn-sweep-ink); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn--small { padding: 0.75em 1.25em; font-size: 0.92rem; }
.btn--solid {
  --btn-bg: var(--solid-bg);
  --btn-ink: var(--solid-ink);
  --btn-line: var(--solid-bg);
  --btn-sweep: var(--solid-hover);
  --btn-sweep-ink: var(--solid-hover-ink);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 14px;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header.is-solid {
  background: rgba(8, 13, 22, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  color: var(--cream);
}

/* ---------- Photos ---------- */
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 5);
  border-radius: 2px;
}
.photo--arch { border-radius: 999px 999px 2px 2px; }
.photo img,
.hero__photo img,
.strip__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* photo reveal: a curtain that lifts when the photo scrolls into view.
   The clip-path sits on the <img>, not on the <figure> that the IntersectionObserver watches:
   Chrome treats an element that is fully clipped by its own clip-path as invisible,
   so the observer would never fire and the photo would stay hidden. */
.js .reveal-photo img {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.18);
  transition: clip-path 1.3s var(--ease-out), transform 1.9s var(--ease-out);
}
.js .reveal-photo.is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  text-shadow: 3px 3px 14px #202020;
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  animation: settle 3s var(--ease-out) both;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(8, 13, 22, 0.94) 6%, rgba(8, 13, 22, 0.45) 55%, rgba(8, 13, 22, 0.6) 100%);
}
.hero__content {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: 130px clamp(150px, 24vh, 240px);
}
.hero__title {
  font-size: clamp(2.7rem, 7.6vw, 6.8rem);
  line-height: 1.02;
  max-width: 12em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.1em;
}
.hero__title .line:nth-child(1) > span { --i: 0; }
.hero__title .line:nth-child(2) > span { --i: 1; }
.hero__title .line:nth-child(3) > span { --i: 2; }
.hero__title .line > span {
  display: block;
  animation: rise 1.1s var(--ease-out) both;
  animation-delay: calc(0.4s + var(--i) * 0.14s);
}
.hero__lead {
  margin-top: 32px;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink);
  animation: fade-up 1s 1.5s var(--ease-out) both;
}
.hero .btn--cta {
  margin-top: 32px;
  animation: fade-up 1s 1.7s var(--ease-out) both;
}

.hero__road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(36px, 7vh, 64px);
  height: 0;
}
.hero__road::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-top: 1px dashed rgba(201, 164, 92, 0.65);
  transform-origin: left;
  animation: draw 1.6s 0.8s var(--ease-out) both;
}
.car {
  position: absolute;
  right: clamp(20px, 11vw, 200px);
  bottom: 0;
  width: clamp(190px, 27vw, 360px);
  height: auto;
  overflow: visible;
  animation: drive 2.7s 1.5s cubic-bezier(0.16, 0.7, 0.25, 1) both;
}
.car .wheel-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 2.7s 1.5s cubic-bezier(0.16, 0.7, 0.25, 1) both;
}
.car .beam { animation: beam 1.4s 4s ease-out both; }

@keyframes settle { from { transform: scale(1.12); opacity: 0; } }
@keyframes rise { from { transform: translateY(108%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes drive { from { transform: translateX(-100vw); } }
/* --wheel-turn is set by main.js: (drive distance / tyre radius) in degrees, so the tyres roll without slipping.
   Same duration, delay and easing as "drive", otherwise the wheels would slip while the car slows down. */
@keyframes spin { from { transform: rotate(var(--wheel-turn, -4000deg)); } }
@keyframes beam { from { opacity: 0; } }

/* ---------- The car ---------- */
.car-section {
  background: var(--green-800);
  padding-block: clamp(88px, 14vw, 180px);
  overflow-x: clip;
}
.car-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.duo { position: relative; margin-bottom: clamp(24px, 5vw, 64px); }
.duo__inset {
  position: absolute;
  width: 48%;
  right: -14%;
  bottom: -12%;
  --ratio: 1 / 1;
  border: 6px solid var(--green-800);
  transform: translate3d(0, var(--shift, 0px), 0);
}
.car-section h2 { max-width: 12em; }
.car-section__text p { margin-top: 24px; max-width: 34rem; color: var(--ink); }
.car-section__text h2 + p { margin-top: 28px; }

.facts { margin: 44px 0 0; padding: 0; }
.facts > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink); font-size: 0.95rem; padding-top: 0.2em; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; }

/* ---------- Occasions ---------- */
.occasions {
  background: var(--green-800);
  padding-block: clamp(88px, 14vw, 180px);
}
.occasions h2 { max-width: 14em; }
.occasions__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 96px);
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.occasions__list li { padding-block: 26px 30px; border-top: 1px solid var(--line); }
.occasions__list h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.2; }
.occasions__list p { margin-top: 8px; max-width: 28rem; color: var(--ink); }

/* ---------- The ride (timeline) ---------- */
.route-section {
  background: var(--green-900);
  padding-block: clamp(88px, 14vw, 180px);
}
.route-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.route-section__intro { position: sticky; top: 120px; }
.route-section__intro p { margin-top: 24px; max-width: 26rem; color: var(--ink); }

.route {
  --progress: 0;
  --route-indent: clamp(36px, 5vw, 64px);
  position: relative;
  margin: 0;
  padding: 0 0 0 var(--route-indent);
  list-style: none;
}
.route::before, .route::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
}
.route::before { background: var(--line); }
.route::after { background: var(--gold); transform-origin: top; transform: scaleY(var(--progress)); }
.route__step { position: relative; padding-bottom: clamp(56px, 9vw, 110px); }
.route__step:last-child { padding-bottom: 0; }
.route__dot {
  position: absolute;
  left: calc(-1 * var(--route-indent));
  top: 0.6em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--green-800);
  transition: background 0.4s, transform 0.4s var(--ease-out);
}
.route__step h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }
.route__step p { margin-top: 12px; max-width: 32rem; color: var(--ink); }
.js .route__step { opacity: 0.4; transition: opacity 0.5s; }
.js .route__step.is-active { opacity: 1; }
.route__step.is-active .route__dot { background: var(--gold); transform: scale(1.25); }

/* ---------- Photo strip ---------- */
.strip {
  background: var(--green-900);
  padding-block: clamp(72px, 10vw, 130px);
  overflow: hidden;
}
.strip__viewport {
  margin-top: 48px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;   /* swiping the strip never navigates "back" in the browser */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  cursor: grab;
  touch-action: pan-x pan-y;        /* vertical swipes still scroll the page */
}
.strip__viewport.is-dragging { cursor: grabbing; user-select: none; }
.strip__viewport.is-dragging img { pointer-events: none; }
.strip__viewport:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.strip__viewport::-webkit-scrollbar { height: 6px; }
.strip__viewport::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.strip__viewport::-webkit-scrollbar-track { background: transparent; }
.strip__track { display: flex; width: max-content; }
.strip__set { display: flex; gap: 16px; padding-right: 16px; }
.strip__item {
  position: relative;
  flex: none;
  height: clamp(240px, 32vw, 380px);
  aspect-ratio: var(--ratio, 4 / 5);
  overflow: hidden;
  border-radius: 2px;
}
.strip__item--portrait { --ratio: 3 / 4; }
.strip__item--landscape { --ratio: 4 / 3; }
.strip__item--square { --ratio: 1 / 1; }
.strip__item--wide { --ratio: 16 / 10; }

/* ---------- Photo strip: open button + lightbox dialog ---------- */
.strip__open {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: zoom-in;
}
.strip__open img { transition: transform 0.6s var(--ease-out), filter 0.4s; }
.strip__open:hover img { transform: scale(1.04); filter: brightness(1.08); }
.strip__open:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.strip__viewport.is-dragging .strip__open { cursor: grabbing; }

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  overflow: hidden;
}
.lightbox[open] { display: block; animation: lightbox-in 0.35s var(--ease-out) both; }
.lightbox::backdrop { background: rgba(8, 13, 22, 0.94); backdrop-filter: blur(6px); }
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(56px, 8vh, 80px) clamp(16px, 8vw, 110px);
}
.lightbox__figure { display: grid; justify-items: center; gap: 14px; margin: 0; max-width: 100%; max-height: 100%; }
.lightbox__image {
  display: block;
  width: min(92vw, 1400px);
  height: min(78vh, 1000px);
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; max-width: 46rem; text-align: center; font-size: 0.95rem; color: var(--ink); }
.lightbox__count { color: var(--gold-soft); letter-spacing: 0.08em; }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(8, 13, 22, 0.55);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.lightbox__btn:hover { background: var(--gold); color: var(--green-900); }
.lightbox__btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.lightbox__close { top: clamp(12px, 3vh, 28px); right: clamp(12px, 3vw, 32px); }
.lightbox__prev { left: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
html.lightbox-open { overflow: hidden; }
@keyframes lightbox-in { from { opacity: 0; transform: scale(0.98); } }
@media (max-width: 640px) {
  .lightbox__stage { padding-inline: 8px; }
  .lightbox__image { width: 96vw; height: 70vh; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .lightbox__caption { padding-bottom: 56px; }
}

/* ---------- Prices ---------- */
.prices-section {
  background: var(--green-800);
  padding-block: clamp(88px, 14vw, 180px);
}
.prices-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
  margin-top: 56px;
}
.prices { margin: 0; padding: 0; list-style: none; }
.prices li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.prices li:last-child { border-bottom: 1px solid var(--line); }
.prices h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.2; }
.prices p { margin-top: 6px; max-width: 26rem; color: var(--ink); font-size: 0.98rem; }
.prices__amount {
  flex: none;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1;
  white-space: nowrap;
  font-feature-settings: "lnum" 1;
}
.prices__amount small { margin-left: 2px; font-size: 0.45em; color: var(--ink); }
.included h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.2; }
.included ul { margin: 22px 0 0; padding: 0; list-style: none; }
.included li { position: relative; padding: 9px 0 9px 32px; }
.included li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25em;
  width: 16px;
  height: 1px;
  background: var(--gold);
}
.prices-section__notes { margin-top: 56px; max-width: 40rem; }
.prices-section__notes p { color: var(--ink); }
.prices-section__notes .prices-section__small { margin-top: 12px; font-size: 0.9rem; }

/* ---------- Callback form ---------- */
.callback {
  background: var(--paper);
  color: var(--paper-ink);
  color-scheme: var(--paper-scheme);
  padding-block: clamp(88px, 14vw, 180px);
  border-top: 1px solid var(--line);
}
.callback__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.callback__intro p { margin-top: 24px; max-width: 28rem; color: var(--paper-ink); }
.callback__intro p + p { margin-top: 16px; }
.callback :focus-visible { outline-color: var(--paper-ink); }

.form { display: grid; gap: 30px; }
.form[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { display: grid; gap: 4px; align-content: start; }
.field label { font-size: 0.95rem; font-weight: 500; }
.field .hint { font-weight: 400; color: var(--paper-ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.55em 0;
  border: 0;
  border-bottom: 1px solid var(--paper-line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 5.5em; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--paper-ink);
  box-shadow: 0 1px 0 0 var(--paper-ink);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-bottom-color: var(--error);
  box-shadow: 0 1px 0 0 var(--error);
}
.field__error { color: var(--error); font-size: 0.92rem; }
.field__error:empty { display: none; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field--check .check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.95rem;
  color: var(--paper-ink);
}
.field--check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2em 0 0;
  accent-color: var(--solid-bg);
  box-shadow: none;
}
.check a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status {
  margin: 0;
  padding: 12px 16px;
  border-left: 3px solid var(--error);
  color: var(--error);
  font-weight: 500;
}
.form__status[hidden] { display: none; }
.form__submit { justify-self: start; margin-top: 4px; }

.done { display: grid; gap: 14px; justify-items: start; outline: none; padding-block: 8px; }
.done[hidden] { display: none; }
.done h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; }
.done p { color: var(--paper-ink); max-width: 30rem; }
.done__check { width: 72px; height: 72px; fill: none; stroke: var(--paper-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.done__check circle { stroke-dasharray: 1; animation: stroke 0.9s 0.1s var(--ease-out) both; }
.done__check path { stroke-dasharray: 1; animation: stroke 0.6s 0.7s var(--ease-out) both; }
@keyframes stroke { from { stroke-dashoffset: 1; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--green-900);
  padding: 64px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}
.footer .wordmark { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.footer p { margin-top: 10px; color: var(--ink); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.95rem; }
.footer__legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.footer__legal a:hover, .footer__legal a:focus-visible { color: var(--cream); text-decoration-color: var(--gold); }
.footer small { display: block; margin-top: 10px; color: var(--ink); font-size: 0.88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .car-section__grid, .route-section__grid, .callback__grid, .occasions__list, .prices-section__grid { grid-template-columns: minmax(0, 1fr); }
  .route-section__intro { position: static; }
  .duo { max-width: 460px; margin-bottom: 56px; }
  .duo__inset { right: -4%; width: 44%; bottom: -10%; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lightbox::backdrop { backdrop-filter: none; }
  .js .reveal-photo img { clip-path: none; transform: none; }
  .js .route__step { opacity: 1; }
}
