@font-face { font-family: 'Fira Sans'; src: url('fonts/fira-regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('fonts/fira-medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('fonts/fira-semibold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('fonts/fira-bold.woff') format('woff'); font-weight: 700; font-display: swap; }

:root {
  --paper: #ffffff;
  --sheet: #f2f4f7;
  --ink: #142031;
  --muted: #556173;
  --rule: #cdd5df;
  --blue: #1b4f9c;
  --blue-deep: #123a75;
  --blue-tint: #e8eef8;
  --red: #b8292f;
  --ok: #1d6e46;
  --wrap: 1160px;
  --gut: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 'Fira Sans', system-ui, sans-serif;
  font-feature-settings: 'kern', 'lnum';
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* ---------- Header ---------- */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a[aria-current='page'] { color: var(--blue); font-weight: 600; }
.nav a:hover { color: var(--blue); }
.lang { display: flex; gap: 2px; font-size: 14px; }
.lang a { color: var(--muted); text-decoration: none; padding: 4px 7px; border-radius: 4px; }
.lang a[aria-current='true'] { color: var(--ink); font-weight: 600; background: var(--sheet); }
.menu-btn { display: none; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.04; max-width: 15ch; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.12; font-weight: 600; max-width: 24ch; }
h3 { font-size: 1.18rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--muted); max-width: 56ch; margin: 22px 0 0; }
p { margin: 0; }
.small { font-size: 14px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: clamp(44px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Tour card: the one orchestrated moment */
.tour { border: 1.5px solid var(--ink); background: var(--paper); position: relative; }
.tour-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.tour-head strong { font-size: 16px; }
.tour-map { padding: 18px 16px 6px; }
.tour-map svg { width: 100%; height: auto; }
.route-bg { stroke: var(--rule); stroke-width: 6; fill: none; stroke-linecap: round; }
.route-done { stroke: var(--blue); stroke-width: 6; fill: none; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3.2s 0.4s cubic-bezier(.45,.05,.3,1) forwards; }
.stop { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.stop-label { font: 500 12px 'Fira Sans', sans-serif; fill: var(--ink); }
.stop-sub { font: 400 11px 'Fira Sans', sans-serif; fill: var(--muted); }
.truck { fill: var(--blue); offset-path: path('M24 70 C 110 70, 140 30, 230 34 S 380 70, 476 40'); offset-distance: 0%; animation: drive 3.2s 0.4s cubic-bezier(.45,.05,.3,1) forwards; }
.events { list-style: none; margin: 0; padding: 4px 16px 72px; display: grid; gap: 0; }
.events li { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--rule); font-size: 14px; opacity: 0; animation: show .35s forwards; }
.events li:nth-child(1) { animation-delay: .5s; }
.events li:nth-child(2) { animation-delay: 1.3s; }
.events li:nth-child(3) { animation-delay: 2.1s; }
.events li:nth-child(4) { animation-delay: 3.2s; }
.events time { font-variant-numeric: tabular-nums; color: var(--muted); }
.stamp {
  position: absolute; right: 18px; bottom: 18px; transform: rotate(-8deg) scale(1.6); opacity: 0;
  border: 2.5px solid var(--red); color: var(--red); padding: 6px 10px 5px; border-radius: 6px;
  font-weight: 700; font-size: 13px; line-height: 1.15; text-align: center; background: rgba(255,255,255,.88);
  animation: stamp .45s 3.55s cubic-bezier(.2,1.4,.4,1) forwards;
}
.stamp b { display: block; font-size: 22px; letter-spacing: -0.01em; }
.tour-note { position: absolute; left: 16px; top: -11px; background: var(--paper); padding: 0 6px; font-size: 12px; color: var(--muted); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drive { to { offset-distance: 100%; } }
@keyframes show { to { opacity: 1; } }
@keyframes stamp { to { opacity: 1; transform: rotate(-8deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .route-done { animation: none; stroke-dashoffset: 0; }
  .truck { animation: none; offset-distance: 100%; }
  .events li, .stamp { animation: none; opacity: 1; }
  .stamp { transform: rotate(-8deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  font: 600 16px/1 'Fira Sans', sans-serif; border-radius: 6px; border: 1.5px solid var(--blue);
  background: var(--blue); color: #fff; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--blue-tint); color: var(--blue-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- CMR field grid (the doors) ---------- */
.band { padding: clamp(48px, 7vw, 84px) 0; }
.band.sheet { background: var(--sheet); }
.band-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--paper); }
.field { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 46px 22px 22px; border-right: 1px solid var(--rule); color: var(--ink); text-decoration: none; min-height: 250px; }
.field:last-child { border-right: 0; }
.field:hover { background: var(--blue-tint); color: var(--ink); }
.field:hover .go { text-decoration-thickness: 2px; }
.fno { position: absolute; left: 0; top: 0; display: flex; align-items: center; height: 28px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fno b { display: inline-block; min-width: 30px; padding: 0 8px; color: var(--blue); font-weight: 700; font-size: 14px; text-align: center; border-right: 1px solid var(--rule); line-height: 28px; }
.fno span { padding: 0 10px; font-size: 12.5px; color: var(--muted); }
.field h3 { font-size: 1.45rem; letter-spacing: -0.02em; }
.field p { color: var(--muted); font-size: 15.5px; }
.go { margin-top: auto; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.field-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border: 1.5px solid var(--ink); border-top: 0; background: var(--paper); padding: 16px 22px 16px 0; position: relative; }
.field-row .fno { position: static; height: auto; border: 0; }
.field-row .fno b { line-height: 32px; }
.field-row p { font-weight: 500; }
.field-row a { margin-left: auto; font-weight: 600; }

/* ---------- Steps (a real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 1.5px solid var(--ink); }
.step { padding: 22px 24px 4px 0; border-right: 1px solid var(--rule); margin-right: 24px; }
.step:last-child { border-right: 0; margin-right: 0; }
.step-n { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border: 1.5px solid var(--blue); color: var(--blue); font-weight: 700; border-radius: 50%; margin-bottom: 14px; font-size: 15px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; max-width: 34ch; }

/* ---------- Q&A list ---------- */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.qa div { padding: 18px 0; border-top: 1px solid var(--rule); }
.qa dt { font-weight: 600; margin-bottom: 6px; }
.qa dd { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 52ch; }

/* ---------- Segment pages ---------- */
.page-hero { padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--rule); }
.page-hero .fno { position: static; display: inline-flex; border: 1px solid var(--rule); margin-bottom: 22px; height: 28px; }
.page-hero .fno span { border: 0; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.point { padding: 26px 28px 8px 0; margin-right: 28px; border-right: 1px solid var(--rule); }
.point:last-child { border-right: 0; margin-right: 0; }
.point h3 { margin-bottom: 8px; }
.point p { color: var(--muted); font-size: 15.5px; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--blue-deep); background: var(--blue-tint); padding: 2px 8px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split .lead { margin-top: 14px; }

/* ---------- Form (laid out like a filled-in form) ---------- */
.form { border: 1.5px solid var(--ink); background: var(--paper); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f { display: flex; flex-direction: column; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 14px 8px; }
.f:nth-child(2n) { border-right: 0; }
.f.wide { grid-column: 1 / -1; border-right: 0; }
.f label { font-size: 13px; color: var(--muted); }
.f input, .f textarea, .f select {
  font: 400 17px/1.4 'Fira Sans', sans-serif; color: var(--ink); border: 0; outline: 0; padding: 6px 0 4px; background: transparent; width: 100%;
}
.f textarea { resize: vertical; min-height: 84px; }
.f:focus-within { background: var(--blue-tint); }
.f:focus-within label { color: var(--blue-deep); }
.f.err { background: #fbecec; }
.f .msg { font-size: 13px; color: var(--red); min-height: 0; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); max-width: 46ch; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.form-foot .btn { margin-left: auto; }
.form-status { padding: 0 14px 14px; font-size: 15px; }
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.bad { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Calculator ---------- */
.calc { border: 1.5px solid var(--ink); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; background: var(--paper); }
.calc > div { padding: 12px 16px; border-right: 1px solid var(--rule); }
.calc > div:last-child { border-right: 0; background: var(--blue-tint); }
.calc label, .calc .k { font-size: 13px; color: var(--muted); display: block; }
.calc input { font: 600 26px/1.3 'Fira Sans', sans-serif; border: 0; outline: 0; width: 100%; color: var(--ink); background: transparent; font-variant-numeric: tabular-nums; }
.calc output { font: 600 26px/1.3 'Fira Sans', sans-serif; display: block; font-variant-numeric: tabular-nums; }
.calc > div:last-child output { color: var(--blue-deep); }

/* ---------- Driver page ---------- */
.open-link { display: flex; border: 1.5px solid var(--ink); margin-top: 28px; max-width: 640px; background: var(--paper); }
.open-link .f { flex: 1; border: 0; }
.open-link .btn { border-radius: 0; min-height: auto; }

/* ---------- Footer ---------- */
.foot { border-top: 1.5px solid var(--ink); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: baseline; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.foot a { color: var(--muted); }

/* ---------- Header extras ---------- */
.nav-login { font-weight: 600; }
.top-cta { min-height: 40px; padding: 0 14px; font-size: 15px; }
.lang { margin-left: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .fields, .steps, .points { grid-template-columns: 1fr; }
  .field { border-right: 0; border-bottom: 1px solid var(--rule); min-height: 0; }
  .field:last-child { border-bottom: 0; }
  .step, .point { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 20px; }
  .step:last-child, .point:last-child { border-bottom: 0; }
  .qa { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 12px var(--gut) 18px; z-index: 5; }
  .menu-btn { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 6px; padding: 8px 12px; font: 500 15px 'Fira Sans', sans-serif; color: var(--ink); }
  .top .wrap { position: relative; gap: 12px; }
  .top-cta { display: none; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .f { border-right: 0; }
  .calc { grid-template-columns: 1fr; }
  .calc > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stamp { right: 12px; bottom: 12px; }
  .field-row a { margin-left: 22px; }
}
