/* LaponiaExpress
   Paleta vine din tricolor, vazut prin scena expeditiei:
   noaptea polara (albastru), farurile (galben), Dacia (rosu). */

/* ── Fonturi (gazduite local) ── */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fonts/barlow-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/fonts/barlow-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('/fonts/barlow-condensed-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ── Valori de baza ── */
:root {
  --night: #0c1b2e;      /* noaptea polara: fundalul */
  --night-deep: #071221;
  --night-up: #122844;   /* suprafete ridicate */
  --fiord: #16304f;
  --snow: #eef3f7;       /* zapada: text pe inchis, hartie */
  --mist: #a9bbce;       /* text secundar pe inchis */
  --red: #d3211c;        /* rosul Daciei */
  --red-hot: #e5352b;
  --far: #f6c445;        /* galbenul farurilor */
  --aurora: #49e3a6;     /* doar pentru semnalul „live” */
  --ink: #0c1b2e;
  --ink-soft: #485b72;
  --paper-line: #cfd9e2;
  --line: rgba(238, 243, 247, 0.14);

  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --pad: clamp(18px, 5vw, 56px);
  --max: 1180px;
  --nav-h: 56px;
  --ease: cubic-bezier(0.16, 0.84, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--night);
  color: var(--snow);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.map-open, html.lb-open, html.map-open body, html.lb-open body { overflow: hidden; }
body.menu-open { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

h2 {
  font: 800 clamp(36px, 6.4vw, 64px)/1.02 var(--cond);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h3 { font: 600 clamp(22px, 2.6vw, 28px)/1.15 var(--cond); }

:focus-visible { outline: 3px solid var(--far); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 2000;
  background: var(--far); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ── Butoane si linkuri ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border: 0; border-radius: 10px;
  font: 600 17px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hot); }
.btn:active { transform: translateY(1px); }
.textlink {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: 500 17px/1.3 var(--font); color: inherit;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-color: var(--far);
}
.textlink:hover { text-decoration-color: currentColor; }

/* ── Steaguri mici, desenate din CSS ── */
.flag {
  display: inline-block; width: 21px; height: 14px; margin-right: 8px; vertical-align: -1px;
  border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.flag--ro { background: linear-gradient(90deg, #002b7f 33.3%, #fcd116 33.3% 66.6%, #ce1126 66.6%); }
.flag--hu { background: linear-gradient(#ce2939 33.3%, #fff 33.3% 66.6%, #477050 66.6%); }
.flag--sk { background: linear-gradient(#fff 33.3%, #0b4ea2 33.3% 66.6%, #ee1c25 66.6%); }
.flag--pl { background: linear-gradient(#fff 50%, #dc143c 50%); }
.flag--lt { background: linear-gradient(#fdb913 33.3%, #006a44 33.3% 66.6%, #c1272d 66.6%); }
.flag--lv { background: linear-gradient(#9e3039 40%, #fff 40% 60%, #9e3039 60%); }
.flag--ee { background: linear-gradient(#0072ce 33.3%, #000 33.3% 66.6%, #fff 66.6%); }
.flag--fi {
  background:
    linear-gradient(90deg, transparent 28%, #003580 28% 44%, transparent 44%),
    linear-gradient(transparent 36%, #003580 36% 64%, transparent 64%), #fff;
}
.flag--no {
  background:
    linear-gradient(90deg, transparent 31%, #00205b 31% 43%, transparent 43%),
    linear-gradient(transparent 41%, #00205b 41% 59%, transparent 59%),
    linear-gradient(90deg, transparent 25%, #fff 25% 49%, transparent 49%),
    linear-gradient(transparent 32%, #fff 32% 68%, transparent 68%), #ba0c2f;
}

/* ── Navigatie ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 var(--pad);
  transition: background-color 0.25s, box-shadow 0.25s;
}
.nav.is-solid, body.menu-open .nav {
  background: rgba(12, 27, 46, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 22px/1 var(--cond); text-decoration: none; margin-right: auto;
}
.brand__flag {
  width: 18px; height: 12px; border-radius: 2px; flex: none;
  background: linear-gradient(90deg, #002b7f 33.3%, #fcd116 33.3% 66.6%, #ce1126 66.6%);
}
.nav__links { display: none; gap: 26px; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 16px; opacity: 0.86; padding: 6px 0; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--far); }
.nav__live {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.dot, .live__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mist); flex: none; }
[data-state='live'] .dot, [data-state='live'] .live__dot { background: var(--aurora); animation: blink 1.8s ease-in-out infinite; }
[data-state='stale'] .dot, [data-state='stale'] .live__dot { background: var(--far); }
[data-state='done'] .dot, [data-state='done'] .live__dot { background: var(--red-hot); }
@keyframes blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(73, 227, 166, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(73, 227, 166, 0); }
}
.nav__burger {
  width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; cursor: pointer;
  display: grid; place-content: center; gap: 7px;
}
.nav__burger span { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s; }
.nav__burger[aria-expanded='true'] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded='true'] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: var(--night); padding: 12px var(--pad) 32px; overflow-y: auto;
}
.menu a {
  display: block; padding: 13px 0; border-bottom: 1px solid var(--line);
  font: 600 30px/1.1 var(--cond); text-decoration: none;
}

/* ── Primul ecran ── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--night-deep) 0%, var(--night) 46%, var(--fiord) 100%);
}
.hero__sky, .hero__sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero__sky canvas { z-index: -2; }
.aurora { position: absolute; inset: 0; overflow: hidden; }
.aurora i {
  position: absolute; left: -20%; width: 140%; height: 34%; top: 4%;
  background: radial-gradient(ellipse at 50% 60%, rgba(73, 227, 166, 0.26), rgba(73, 227, 166, 0.07) 42%, transparent 68%);
  transform: rotate(-7deg); animation: aurora 17s ease-in-out infinite alternate;
}
.aurora i:last-child {
  top: 16%; height: 26%;
  background: radial-gradient(ellipse at 62% 50%, rgba(127, 212, 255, 0.17), transparent 64%);
  transform: rotate(5deg); animation-duration: 23s; animation-delay: -8s;
}
@keyframes aurora {
  from { translate: -5% 0; opacity: 0.55; }
  to { translate: 6% 5%; opacity: 1; }
}
.hero__land {
  position: absolute; left: 0; right: 0; bottom: 84px; z-index: -1;
  width: 100%; height: min(34vh, 320px);
}
.hero__inner {
  position: relative; width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(18px, 6vh, 72px)) var(--pad) 0;
  flex: 1; display: flex; flex-direction: column; align-items: flex-start;
}
/* Dacia reala, parcata pe zapada, cu spatele la noi: pleaca spre nord. */
.hero__car {
  align-self: center; width: min(84vw, 400px); height: auto;
  margin: auto 0 66px; padding-top: 22px;
  filter: drop-shadow(0 20px 16px rgba(0, 0, 0, 0.55));
}
.hero__title {
  font: 800 clamp(52px, 15.4vw, 152px)/0.88 var(--cond);
  letter-spacing: -0.012em;
  margin-left: -0.03em;
}
.hero__lead { max-width: 33ch; margin-top: clamp(14px, 2.4vh, 24px); font-size: clamp(17px, 2.2vw, 21px); line-height: 1.45; color: rgba(238, 243, 247, 0.9); }

/* Kilometrajul */
.odo { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-top: clamp(20px, 3.6vh, 40px); }
.odo__drums {
  display: inline-flex; gap: 3px; padding: 5px;
  background: #05090f; border: 1px solid #2b3d55; border-radius: 9px;
  font: 800 clamp(50px, 12.5vw, 92px)/1 var(--cond);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 12px 30px -14px rgba(0, 0, 0, 0.8);
}
.odo__drum {
  position: relative; width: 0.6em; height: 1em; overflow: hidden; border-radius: 4px;
  background: #0d141f; color: var(--snow);
}
.odo__drum::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, transparent 26%, transparent 72%, rgba(0, 0, 0, 0.72) 100%);
}
.odo__drum:last-child { background: var(--snow); color: var(--ink); }
.odo__drum:last-child::after { background: linear-gradient(180deg, rgba(12, 27, 46, 0.38) 0%, transparent 26%, transparent 72%, rgba(12, 27, 46, 0.38) 100%); }
.odo__strip {
  display: flex; flex-direction: column; text-align: center;
  transition: transform 1.9s var(--ease); transition-delay: calc(var(--i) * 80ms);
}
.odo__strip span { height: 1em; line-height: 1; }
.odo__label { font-size: 16px; line-height: 1.3; color: var(--mist); padding-bottom: 8px; }
.odo__label span { display: block; }

.live {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font-weight: 500; font-size: 17px; line-height: 1.35; text-decoration: none;
}
.live .live__dot { width: 11px; height: 11px; }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: clamp(18px, 3vh, 30px); }

/* Drumul = cat din traseu s-a parcurs */
.road { --p: 0; --car: clamp(86px, 17vw, 150px); position: relative; z-index: 1; }
.road__lane {
  position: relative; height: 84px;
  background: linear-gradient(180deg, #0a1626 0%, #060d18 100%);
  border-top: 2px solid #23364f;
}
.road__lane::before {
  content: ''; position: absolute; left: 0; right: 0; top: 46px; height: 3px;
  background: repeating-linear-gradient(90deg, rgba(238, 243, 247, 0.5) 0 22px, transparent 22px 46px);
}
.road__done {
  position: absolute; left: 0; top: -2px; height: 2px; background: var(--red-hot);
  width: calc(var(--pad) + var(--p) * (100% - 2 * var(--pad)));
  transition: width 2.2s var(--ease);
}
.road__ticks { position: absolute; left: var(--pad); right: var(--pad); top: 0; height: 0; }
.road__ticks i { position: absolute; top: -8px; width: 2px; height: 8px; margin-left: -1px; background: var(--mist); opacity: 0.6; }
.road__ticks i.is-done { background: var(--red-hot); opacity: 1; }
.road__car {
  position: absolute; bottom: 30px; width: var(--car);
  left: clamp(6px, calc(var(--pad) + var(--p) * (100% - 2 * var(--pad)) - var(--car) * 0.5), calc(100% - var(--car) - 6px));
  transition: left 2.2s var(--ease);
}
.road__car img { width: 100%; height: auto; position: relative; }
.road__beam {
  position: absolute; left: 92%; bottom: 22%; width: 150%; height: 46%;
  background: linear-gradient(90deg, rgba(246, 196, 69, 0.42), rgba(246, 196, 69, 0));
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 62%);
}
.borna {
  position: absolute; bottom: calc(100% + 12px); display: grid; gap: 1px;
  padding: 7px 10px 6px; border-radius: 8px 8px 2px 2px;
  background: var(--snow); color: var(--ink); border-top: 6px solid var(--red);
  font: 600 14px/1.1 var(--cond); text-align: center; white-space: nowrap;
}
.borna b { font-weight: 800; font-size: 17px; }
.borna i { font-style: normal; color: var(--ink-soft); }
.borna--start { left: var(--pad); }
.borna--end { right: var(--pad); }

/* ── Cifrele expeditiei ── */
.stats {
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad);
}
.stat { padding: 22px 0 20px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 16px; }
.stat:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.stat b { display: block; font: 800 clamp(40px, 9vw, 64px)/1 var(--cond); }
.stat b i { font: 600 0.42em/1 var(--cond); font-style: normal; color: var(--mist); margin-left: 8px; }
.stat > span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.3; color: var(--mist); }

/* ── Sectiuni ── */
.section { padding: clamp(60px, 9vw, 116px) var(--pad); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.head { margin-bottom: clamp(24px, 4vw, 44px); }
.sub { max-width: 58ch; margin-top: 12px; color: var(--mist); font-size: clamp(17px, 1.8vw, 19px); }
.note { margin-top: 16px; font-size: 15px; color: var(--mist); }

.section--paper { background: var(--snow); color: var(--ink); }
.section--paper .sub, .section--paper .note { color: var(--ink-soft); }
.section--paper :focus-visible { outline-color: var(--red); }

/* ── Harta ── */
.mapsec { padding-left: 0; padding-right: 0; padding-bottom: 0; }
.mapsec .head { padding: 0 var(--pad); }
.mapwrap {
  position: relative; max-width: none; overflow: hidden;
  height: min(78vh, 760px); height: min(78svh, 760px);
  background: radial-gradient(ellipse at 50% 40%, #12284a 0%, var(--night-deep) 72%);
}
.mapwrap.is-immersive {
  position: fixed; inset: 0; z-index: 200; height: auto; border-radius: 0; margin: 0;
}
/* specificitate mai mare decat foaia bibliotecii, care se incarca mai tarziu */
.mapwrap .map { position: absolute; inset: 0; }
.map .maplibregl-canvas { outline: none; }
.map.maplibregl-map { font: inherit; }
.map .maplibregl-ctrl-attrib { font-size: 11px; }
.map .maplibregl-cooperative-gesture-screen { font: 600 18px/1.3 var(--font); padding: 24px; text-align: center; }
.map .maplibregl-ctrl-bottom-right { bottom: 96px; }
.is-immersive .map .maplibregl-ctrl-bottom-right { bottom: calc(96px + env(safe-area-inset-bottom)); }

.map__loading {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--night); color: var(--mist); text-align: center; padding: 24px;
}
.map__loading img { animation: bob 1.2s ease-in-out infinite alternate; }
.map__loading.is-error img { animation: none; opacity: 0.5; }
@keyframes bob { to { translate: 0 -4px; } }

.map__top {
  position: absolute; z-index: 3; top: 12px; left: 12px; right: 68px;
  display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; pointer-events: none;
}
.map__top > * { pointer-events: auto; }
.chip, .legend, .tool, .rcard, .map__explore {
  background: rgba(12, 27, 46, 0.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 10px;
  border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer;
}
.chip svg, .tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool svg .fill { fill: currentColor; stroke: none; }
.legend { display: flex; gap: 14px; padding: 9px 14px; border-radius: 999px; font-size: 13px; line-height: 1.2; }
.legend li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.lg { display: block; width: 20px; height: 0; border-top: 3px solid var(--red-hot); border-radius: 2px; }
.lg--todo { border-top: 3px dotted var(--snow); }
.lg--ferry { border-top: 3px dashed #7fd4ff; }

.map__tools { position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; gap: 8px; }
.tool {
  width: 44px; height: 44px; padding: 0; display: grid; place-content: center;
  border-radius: 12px; cursor: pointer; transition: background-color 0.15s;
}
.tool:hover { background: var(--fiord); }
.tool.is-on, .tool[aria-pressed='true'] { background: var(--red); border-color: transparent; }
.tool--zoom { display: none; }

.map__explore {
  position: absolute; z-index: 3; left: 50%; bottom: 108px; translate: -50% 0;
  min-height: 46px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  background: var(--snow); color: var(--ink); border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}
.is-immersive .map__explore { display: none; }

/* Banda cu opriri */
.rail {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; gap: 8px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rcard {
  flex: none; display: flex; align-items: center; gap: 10px; text-align: left;
  min-width: 190px; max-width: 280px; height: 66px; padding: 8px 14px 8px 8px;
  border-radius: 14px; cursor: pointer; scroll-snap-align: center;
  transition: background-color 0.15s, border-color 0.15s;
}
.rcard:hover { background: var(--fiord); }
.rcard__n {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-content: center;
  font: 800 19px/1 var(--cond); background: rgba(238, 243, 247, 0.1); color: var(--mist);
}
.rcard__thumb { flex: none; width: 50px; height: 50px; border-radius: 9px; overflow: hidden; background: var(--fiord); }
.rcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rcard__thumb + .rcard__n { display: none; }
.rcard__text { min-width: 0; display: grid; }
.rcard__text b { font: 600 20px/1.15 var(--cond); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard__text small { font-size: 13.5px; line-height: 1.25; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard__temp { margin-left: auto; padding-left: 6px; font: 600 19px/1 var(--cond); color: var(--mist); }
.rcard.is-visited .rcard__n { background: var(--red); color: #fff; }
.rcard.is-next { border-color: var(--far); }
.rcard.is-next .rcard__n { background: var(--far); color: var(--ink); }
.rcard.is-next .rcard__text small { color: var(--far); }
.rcard.is-future .rcard__text b { color: rgba(238, 243, 247, 0.78); }
.rcard.is-selected { background: var(--snow); color: var(--ink); border-color: transparent; }
.rcard.is-selected .rcard__text b { color: var(--ink); }
.rcard.is-selected .rcard__text small, .rcard.is-selected .rcard__temp { color: var(--ink-soft); }
.has-panel .rail { display: none; }

/* Figurinele de pe harta. Radacina e pozitionata de harta; scalam doar butonul. */
.mk { cursor: pointer; }
.mk::before { content: ''; position: absolute; left: 50%; bottom: -10px; width: 52px; height: 52px; translate: -50% 0; }
.mk__btn {
  position: relative; display: grid; justify-items: center;
  padding: 0; margin: 0; background: none; border: 0; cursor: pointer;
  transform: scale(var(--mk, 1)); transform-origin: 50% 100%;
  transition: transform 0.2s ease-out;
}
.mk__car { display: block; width: 72px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55)); transition: filter 0.2s, opacity 0.2s; }
.mk__car img { width: 100%; height: auto; pointer-events: none; }
.mk__label {
  position: absolute; bottom: calc(100% + 2px); left: 50%; translate: -50% 0;
  padding: 3px 9px; border-radius: 7px; white-space: nowrap;
  font: 600 15px/1.2 var(--cond); letter-spacing: 0.01em;
  background: rgba(12, 27, 46, 0.92); color: var(--snow); border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.show-labels .mk__label, .mk.is-selected .mk__label, .mk.is-next .mk__label, .mk--live .mk__label, .mk.is-finish .mk__label { opacity: 1; }
.mk.is-future .mk__car { filter: grayscale(1) brightness(1.25) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5)); opacity: 0.62; }
.mk.is-next .mk__label { background: var(--far); color: var(--ink); border-color: transparent; }
.mk.is-selected .mk__btn { transform: scale(calc(var(--mk, 1) * 1.28)); }
.mk.is-selected .mk__car { filter: drop-shadow(0 0 10px rgba(229, 53, 43, 0.9)) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5)); opacity: 1; }
.mk.is-selected .mk__label { background: var(--snow); color: var(--ink); border-color: transparent; }
.mk__flag {
  position: absolute; bottom: 86%; left: 62%; width: 22px; height: 14px; border-radius: 2px;
  background: linear-gradient(90deg, #002b7f 33.3%, #fcd116 33.3% 66.6%, #ce1126 66.6%);
  box-shadow: -2px 0 0 0 #dfe6ee, 0 2px 4px rgba(0, 0, 0, 0.4);
}
.mk.is-finish .mk__label { bottom: calc(100% + 18px); }
.mk.is-extra .mk__car { width: 54px; }

.mk--live { pointer-events: none; }
.mk--live .mk__car { width: 92px; }
.mk--live .mk__label { background: var(--aurora); color: var(--ink); border-color: transparent; font-weight: 800; }
.mk--live[data-state='stale'] .mk__label, .mk--live[data-state='off'] .mk__label { background: var(--far); }
.mk__pulse {
  position: absolute; left: 50%; bottom: -6px; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: var(--aurora);
}
.mk--live[data-state='live'] .mk__pulse { animation: ripple 2s ease-out infinite; }
.mk--live[data-state='stale'] .mk__pulse, .mk--live[data-state='off'] .mk__pulse { background: var(--far); }
@keyframes ripple {
  0% { box-shadow: 0 0 0 0 rgba(73, 227, 166, 0.6); }
  100% { box-shadow: 0 0 0 26px rgba(73, 227, 166, 0); }
}
.mk--replay .mk__car { width: 92px; }
.is-replaying .mk--live { visibility: hidden; }

/* Panoul unei opriri: pe telefon urca de jos, pe ecran lat sta in stanga hartii. */
.panel {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 62%;
  background: var(--night-up); border-radius: 20px 20px 0 0;
  box-shadow: 0 -18px 50px -12px rgba(0, 0, 0, 0.75);
  transform: translateY(105%); visibility: hidden;
  transition: transform 0.34s var(--ease), height 0.3s var(--ease), visibility 0s 0.34s;
}
.panel.is-open { transform: translateY(var(--drag, 0px)); visibility: visible; transition-delay: 0s; }
.panel.is-full { height: calc(100% - 68px); }
.panel.is-dragging { transition: none; }
.panel__in { height: 100%; display: flex; flex-direction: column; }
.panel__grab { flex: none; height: 22px; touch-action: none; cursor: grab; }
.panel__grab::before { content: ''; display: block; width: 44px; height: 5px; margin: 9px auto 0; border-radius: 3px; background: rgba(238, 243, 247, 0.3); }
.panel__head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 2px 18px 14px; touch-action: none; }
.panel__status { font-size: 14.5px; line-height: 1.3; color: var(--mist); }
[data-status='visited'] .panel__status { color: #ff9a8f; }
[data-status='next'] .panel__status { color: var(--far); }
.panel__name { font: 800 clamp(34px, 9vw, 44px)/1 var(--cond); margin: 3px 0 6px; }
.panel__where { font-size: 16px; color: var(--mist); }
.panel__close {
  flex: none; width: 44px; height: 44px; margin: -4px -8px 0 0; padding: 0;
  background: rgba(238, 243, 247, 0.08); border: 0; border-radius: 50%; cursor: pointer;
  font: 400 28px/1 var(--font);
}
.panel__close:hover { background: rgba(238, 243, 247, 0.16); }
.panel__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 18px; -webkit-overflow-scrolling: touch; }
.panel__blurb { font-size: 16.5px; line-height: 1.5; }
.panel__empty { margin-top: 18px; padding: 18px; border: 1px dashed rgba(238, 243, 247, 0.26); border-radius: 12px; color: var(--mist); font-size: 16px; }
.panel__nav { flex: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.panel__go { display: grid; gap: 1px; padding: 11px 18px 12px; background: none; border: 0; cursor: pointer; text-align: left; min-height: 58px; }
.panel__go--next { text-align: right; border-left: 1px solid var(--line); }
.panel__go small { font-size: 13px; color: var(--mist); }
.panel__go b { font: 600 19px/1.15 var(--cond); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel__go:hover:not(:disabled) { background: rgba(238, 243, 247, 0.06); }
.panel__go:disabled { opacity: 0.3; cursor: default; }

.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 16px; }
.facts dt { font-size: 13.5px; line-height: 1.3; color: var(--mist); }
.facts dd { font-weight: 600; font-size: 17px; line-height: 1.3; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 18px; }
.grid__item { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--fiord); cursor: zoom-in; }
.grid__item img, .log__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.grid__item:hover img, .log__photo:hover img { transform: scale(1.04); }

/* ── Jurnal de bord (hartie) ── */
.log { position: relative; }
.log__entry { display: grid; grid-template-columns: 84px 1fr; gap: 0 18px; position: relative; padding-bottom: 38px; }
.log__entry::before { content: ''; position: absolute; left: 92.5px; top: 12px; bottom: -12px; width: 2px; background: var(--paper-line); }
.log__entry:last-child::before { display: none; }
.log__when { text-align: right; padding-top: 3px; }
.log__when b { display: block; font: 800 22px/1.1 var(--cond); }
.log__when span { display: block; font-size: 14px; line-height: 1.3; color: var(--ink-soft); }
.log__body { position: relative; padding-left: 20px; min-width: 0; }
.log__body::before { content: ''; position: absolute; left: -15px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--snow); }
.log__body h3 { font: 800 clamp(30px, 5vw, 40px)/1 var(--cond); }
.log__where { margin: 6px 0 8px; font-size: 15.5px; color: var(--ink-soft); }
.log__body > p:not(.log__where) { max-width: 62ch; }
.log__photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 14px; max-width: 640px; }
.log__photo { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--paper-line); cursor: zoom-in; }
.log__more { position: absolute; inset: 0; display: grid; place-content: center; background: rgba(12, 27, 46, 0.66); color: #fff; font: 800 26px/1 var(--cond); }
.log__body .textlink { margin-top: 12px; font-size: 16px; text-decoration-color: var(--red); }
.upnext { margin-top: 6px; padding: 18px 20px; border-left: 6px solid var(--far); background: #e2eaf0; border-radius: 0 10px 10px 0; font-size: 17px; }

/* ── Vremea ── */
.wx { display: grid; gap: 14px; }
.wx__loading { color: var(--mist); }
.wxcard { padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--night-up); }
.wxcard:first-child { border-top: 6px solid var(--red); }
.wxcard:last-child:not(:first-child) { border-top: 6px solid var(--far); }
.wxcard__where { color: var(--mist); font-size: 15.5px; }
.wxcard__temp { font: 800 clamp(84px, 20vw, 132px)/0.95 var(--cond); margin-top: 10px; letter-spacing: -0.02em; }
.wxcard__sky { font-size: 19px; font-weight: 500; }
.daylight { margin-top: clamp(40px, 6vw, 68px); }
.daylight h3 { font: 800 clamp(26px, 4vw, 36px)/1.05 var(--cond); }
.daylight__list { margin-top: 22px; display: grid; gap: 9px; }
.dl { display: grid; grid-template-columns: 108px 1fr 104px; align-items: center; gap: 12px; font-size: 15.5px; }
.dl__name { font: 600 19px/1.1 var(--cond); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl__bar { height: 12px; border-radius: 6px; background: rgba(238, 243, 247, 0.08); overflow: hidden; }
.dl__bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f6c445, #ffe7a3); }
.dl__val { text-align: right; color: var(--mist); white-space: nowrap; }
.dl--polar .dl__bar { background: repeating-linear-gradient(90deg, rgba(238, 243, 247, 0.16) 0 4px, transparent 4px 9px); }
.dl--polar .dl__val { color: var(--snow); font-weight: 600; }

/* ── Povestea ── */
.section--story { background: linear-gradient(180deg, var(--night) 0%, var(--fiord) 100%); }
.story h2 { max-width: 14ch; }
.story__cols { display: grid; gap: 18px; margin-top: 26px; max-width: 64ch; font-size: clamp(17px, 1.7vw, 19px); }
.story blockquote {
  margin-top: 36px; padding-left: 20px; border-left: 6px solid var(--far);
  font: 600 clamp(28px, 5.2vw, 50px)/1.08 var(--cond); max-width: 18ch;
}

/* ── 1975 si 2026 ── */
.versus { width: 100%; border-collapse: collapse; table-layout: fixed; }
.versus th, .versus td { padding: 14px 10px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.versus thead th { vertical-align: bottom; font: 800 clamp(22px, 3.4vw, 32px)/1.05 var(--cond); padding-bottom: 16px; }
.versus thead th:first-child { width: 27%; }
.versus thead img, .versus thead svg { width: min(100%, 190px); height: auto; margin-bottom: 10px; }
.versus thead img { width: min(100%, 170px); }
.versus thead small { display: block; font: 500 15px/1.3 var(--font); color: var(--mist); margin-top: 2px; }
.versus tbody th { font-weight: 400; font-size: 15px; color: var(--mist); }
.versus td { font-size: 16.5px; font-weight: 500; line-height: 1.35; }

/* ── Convoiul ── */
.convoy { display: grid; gap: 14px; }
.car { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.car:last-child { border-bottom: 1px solid var(--line); }
.car__art img, .car__art svg { width: 100%; height: auto; }
.car__role { color: var(--far); font-weight: 600; font-size: 15.5px; margin: 2px 0 6px; }
.car--lead .car__role { color: #ff9a8f; }
.car__text p:last-child { font-size: 16.5px; }

/* ── Echipa (hartie) ── */
.crew { display: grid; }
.crew li { padding: 16px 0; border-top: 1px solid var(--paper-line); }
.crew li:last-child { border-bottom: 1px solid var(--paper-line); }
.crew h3 { font: 800 26px/1.1 var(--cond); }
.crew h3 em { font: 600 0.82em/1 var(--cond); font-style: normal; color: var(--red); margin-left: 4px; }
.crew p { color: var(--ink-soft); margin-top: 3px; max-width: 52ch; }
.crew__ai { padding-left: 16px !important; border-left: 6px solid var(--far); background: #e2eaf0; }

/* ── Parteneri, urmareste ── */
.partners { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-bottom: 1px solid var(--line); }
.partners li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
.partners b { font: 800 clamp(24px, 3.6vw, 34px)/1.08 var(--cond); }
.partners span { color: var(--mist); font-size: 15.5px; line-height: 1.35; }
.partners__lead { grid-column: 1 / -1; }
.partners__lead b { font-size: clamp(34px, 6vw, 56px); }

.follow { background: var(--fiord); }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px auto 28px; }
.social a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px;
  border: 1px solid rgba(238, 243, 247, 0.3); border-radius: 999px; text-decoration: none; font-weight: 600;
}
.social a:hover { background: rgba(238, 243, 247, 0.08); }
.social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social svg .fill { fill: currentColor; stroke: none; }

.footer { padding: 34px var(--pad) calc(34px + env(safe-area-inset-bottom)); background: var(--night-deep); color: var(--mist); font-size: 15px; display: grid; gap: 8px; }
.footer > * { max-width: var(--max); width: 100%; margin: 0 auto; }
.footer__brand { display: flex; align-items: center; gap: 10px; font: 800 22px/1 var(--cond); color: var(--snow); }
.footer__credits { font-size: 13.5px; }

/* ── Galeria foto ── */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(4, 9, 17, 0.97); display: flex; flex-direction: column; }
.lb__bar { flex: none; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; padding-top: calc(8px + env(safe-area-inset-top)); }
.lb__title { font: 800 24px/1.1 var(--cond); margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb__count { color: var(--mist); font-size: 15px; white-space: nowrap; }
.lb__btn, .lb__nav { width: 48px; height: 48px; padding: 0; display: grid; place-content: center; background: rgba(238, 243, 247, 0.1); border: 0; border-radius: 50%; cursor: pointer; }
.lb__btn:hover, .lb__nav:hover:not(:disabled) { background: rgba(238, 243, 247, 0.2); }
.lb svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb__stage { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lb__stage::-webkit-scrollbar { display: none; }
.lb__slide { flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 6px 0 calc(18px + env(safe-area-inset-bottom)); }
.lb__slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: blur(6px); transition: filter 0.25s; user-select: none; -webkit-user-drag: none; }
.lb__slide.is-sharp img { filter: none; }
.lb__nav { position: absolute; top: 50%; translate: 0 -50%; display: none; }
.lb__nav--prev { left: 16px; }
.lb__nav--next { right: 16px; }
.lb__nav:disabled { opacity: 0.25; cursor: default; }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 1100; translate: -50% 16px;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--snow); color: var(--ink); font-weight: 600; font-size: 15.5px; text-align: center;
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.7); opacity: 0; transition: opacity 0.25s, translate 0.25s;
}
.toast.is-on { opacity: 1; translate: -50% 0; }
.noscript { padding: 20px var(--pad); background: var(--far); color: var(--ink); font-weight: 600; }

/* ── Ecrane late ── */
@media (min-width: 620px) {
  .wx { grid-template-columns: 1fr 1fr; }
  .dl { grid-template-columns: 150px 1fr 130px; }
  .log__entry { grid-template-columns: 120px 1fr; gap: 0 26px; }
  .log__entry::before { left: 132.5px; }
  .crew { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .crew li:nth-last-child(2) { border-bottom: 1px solid var(--paper-line); }
  .car { grid-template-columns: 170px 1fr; gap: 26px; }
  .partners { grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
}

@media (min-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .brand { margin-right: 28px; }
  .nav__live { margin-left: auto; }
  .menu { display: none !important; }

  .hero__land { bottom: 96px; height: min(40vh, 400px); }
  .hero__inner { padding-bottom: 150px; }
  .hero__car {
    position: absolute; right: calc(var(--pad) + 96px); bottom: 14px; margin: 0; padding: 0;
    width: min(42vw, 600px);
    filter: drop-shadow(0 26px 18px rgba(0, 0, 0, 0.6));
  }
  .road__lane { height: 96px; }
  .road__lane::before { top: 54px; }
  .road__car { bottom: 34px; }

  .stats { grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
  .stat, .stat:nth-child(odd), .stat:nth-child(even) { padding: 34px 26px 30px; border-left: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; border-left: 0; }

  .mapsec { padding-left: var(--pad); padding-right: var(--pad); padding-bottom: clamp(60px, 9vw, 116px); }
  .mapsec .head { padding: 0; }
  .mapwrap { max-width: 1480px; height: min(84vh, 860px); border-radius: 20px; }
  .map__explore { display: none; }
  .tool--zoom { display: grid; }
  .rail { padding: 14px; }
  .has-panel .rail { display: flex; left: 432px; }

  .panel {
    left: 14px; right: auto; top: 14px; bottom: 14px; width: 404px; height: auto;
    border-radius: 16px; transform: translateX(calc(-100% - 30px));
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8);
  }
  .panel.is-open { transform: none; }
  .panel.is-full { height: auto; }
  .panel__grab { display: none; }
  .panel__head { padding-top: 20px; }
  .has-panel .map__top { left: 432px; }

  .story__cols { grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: none; }
  .convoy { grid-template-columns: repeat(3, 1fr); gap: 34px; }
  .car, .car:last-child { grid-template-columns: 1fr; grid-template-rows: 250px auto; gap: 14px; border: 0; padding: 0; align-items: start; }
  .car__art { height: 250px; min-height: 0; overflow: hidden; padding: 20px 22px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: center; }
  .car__art img, .car__art svg { width: auto; max-width: 100%; max-height: 100%; }
  .car__art svg { width: 100%; }
  .versus thead th:first-child { width: 22%; }
  .versus th, .versus td { padding: 18px 16px 18px 0; }
  .versus td { font-size: 18px; }
  .lb__nav { display: grid; }
}

@media (hover: none) { .lb__nav { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
