/* =====================================================================
   EuroVan Group Transport — design system
   Direcție: indicator rutier european. Albastru de autostradă, galben de
   marcaj rutier, Archivo lățit pentru titluri (ca pe panourile de drum).
   Un singur moment memorabil: drumul care se desenează în formularul de
   căutare și duba care îl parcurge. Restul rămâne calm.
   ===================================================================== */

:root {
  --ink: #14213D;
  --ink-2: #34435E;
  --muted: #5B6778;
  --paper: #F4F6F9;
  --surface: #FFFFFF;
  --tint: #EAF0F8;
  --line: #DCE3EC;
  --line-strong: #C3CEDC;
  --blue: #2451B7;
  --blue-deep: #16357E;
  --signal: #FFC928;
  --asphalt: #2B3A55;
  --wa: #178A41;
  --wa-deep: #11703A;
  --danger: #B8342A;

  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-card: 0 1px 2px rgba(20, 33, 61, .06), 0 24px 48px -28px rgba(22, 53, 126, .35);
  --focus: 0 0 0 4px rgba(36, 81, 183, .18);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 1200px;
  --gutter: 16px;
  --header-h: 68px;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
svg { flex-shrink: 0; }

.icon    { width: 22px; height: 22px; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 28px; height: 28px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.muted { color: var(--muted); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius);
  transition: top 160ms var(--ease-out);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid rgba(36, 81, 183, .55);
  outline-offset: 2px;
}

.inline-form { display: inline-flex; margin: 0; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 140ms var(--ease-out),
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn-lg    { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }

.btn-outline { background: var(--surface); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink-2); }

.btn-quiet { color: var(--ink-2); padding: 0 12px; }
.btn-quiet:hover { background: var(--tint); color: var(--ink); }

.btn-icon {
  width: 40px; min-height: 40px; padding: 0;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
}
.btn-icon:hover { background: var(--tint); color: var(--ink); }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); }

.btn-danger { color: var(--danger); }
.btn-danger:hover { background: #FCEDEC; color: var(--danger); }

.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #FFD65A; }

.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Câmpuri ---------- */
.field { display: block; min-width: 0; }
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.input::placeholder { color: #8591A3; }
.input:hover { border-color: #A9B6C8; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
.input-sm { height: 44px; font-size: 15px; }

select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6778' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}

/* Rând ascuns care se deschide (landul din Germania). */
.reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
}
.reveal.open { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
.reveal.ready {
  transition:
    grid-template-rows 240ms var(--ease-out),
    opacity 200ms ease,
    visibility 0s linear 240ms;
}
.reveal.ready.open { transition-delay: 0s; }
.reveal-inner { overflow: hidden; min-height: 0; }
.reveal-inner > .input { margin-top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 249, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(20, 33, 61, .5);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--blue-deep);
  color: var(--signal);
}
.brand-name {
  font-size: 19px;
  font-weight: 780;
  font-stretch: 118%;
  letter-spacing: -0.02em;
}
.brand-name span { font-weight: 500; color: var(--muted); }

.nav-desktop { display: none; gap: 4px; }
.nav-desktop a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 160ms ease, background-color 160ms ease;
}
.nav-desktop a:hover { color: var(--ink); background: var(--tint); }

.nav-actions { display: flex; align-items: center; gap: 4px; }
.header-cta { min-height: 40px; padding: 0 14px; }

.mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms var(--ease-out);
}
.mobile-menu > .container { overflow: hidden; min-height: 0; }
.mobile-menu.open { grid-template-rows: 1fr; border-top: 1px solid var(--line); }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.mobile-menu a:last-child { border-bottom: 0; margin-bottom: 8px; }

@media (max-width: 520px) {
  .nav-actions .btn-quiet span { display: none; }
  .nav-actions .btn-quiet { width: 40px; padding: 0; }
}

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .nav-toggle, .mobile-menu { display: none; }
}

/* ---------- Animații de intrare (doar la încărcarea paginii) ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.load-in {
  animation: rise 560ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}
.list-in {
  animation: rise 380ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 50ms + 80ms);
}
.toast-in { animation: rise 320ms var(--ease-out) both; }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 56px; }

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.hero-title {
  max-width: 17ch;
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 800;
  font-stretch: 122%;
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.hero-lead {
  max-width: 54ch;
  margin: 18px 0 28px;
  font-size: 17.5px;
  color: var(--ink-2);
}

.hero-photo {
  position: relative;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--tint);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.next-trip {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  max-width: 320px;
  display: grid;
  gap: 2px;
  padding: 14px 16px 14px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px -16px rgba(20, 33, 61, .55);
  font-size: 14px;
  color: var(--ink-2);
}
.next-trip::before {
  content: '';
  position: absolute;
  left: 8px; top: 14px; bottom: 14px;
  width: 4px;
  border-radius: 4px;
  background: var(--signal);
}
.next-trip-label { font-size: 13px; color: var(--muted); }
.next-trip strong { font-size: 17px; font-stretch: 110%; color: var(--ink); }

@media (min-width: 760px) and (max-width: 1179px) {
  .hero-photo img { aspect-ratio: 21 / 9; }
}
@media (min-width: 1180px) {
  .hero { padding: 48px 0 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; }
  .hero-photo { position: sticky; top: calc(var(--header-h) + 24px); }
  .hero-photo img { aspect-ratio: 4 / 5; }
}

/* ---------- Biletul de căutare ---------- */
.ticket {
  container: ticket / inline-size;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

/* Selector serviciu */
.seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  border: 0;
  border-radius: 16px;
  background: var(--paper);
}
.seg-pill {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(20, 33, 61, .08), 0 4px 12px -6px rgba(20, 33, 61, .25);
  opacity: 0;
  transition: transform 280ms var(--ease-out), width 280ms var(--ease-out);
  pointer-events: none;
}
.seg.ready .seg-pill { opacity: 1; }

.seg-opt { position: relative; z-index: 1; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-body {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  transition: color 160ms ease, background-color 160ms ease;
}
.seg-body .icon-sm { grid-row: span 2; }
.seg-name  { font-size: 15px; font-weight: 650; line-height: 1.25; }
.seg-price { font-size: 12.5px; line-height: 1.3; }
.seg-opt input:checked + .seg-body { color: var(--ink); }
.seg-opt input:checked + .seg-body .icon-sm { color: var(--blue); }
.seg:not(.ready) .seg-opt input:checked + .seg-body { background: var(--surface); }
.seg-opt input:focus-visible + .seg-body { outline: 3px solid rgba(36, 81, 183, .55); outline-offset: 0; }
.seg-opt:hover input:not(:checked) + .seg-body { color: var(--ink-2); }

@media (max-width: 440px) {
  .seg-body { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 10px 6px; row-gap: 2px; }
  .seg-body .icon-sm { grid-row: auto; }
  .seg-name { font-size: 14px; }
}

/* Ruta */
.route { display: grid; grid-template-columns: minmax(0, 1fr); }

.stop { min-width: 0; }
.stop > .input + .input,
.stop > .reveal + .sr-only + .input { margin-top: 8px; }
.stop-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.input-country {
  height: 54px;
  font-size: 18px;
  font-weight: 700;
  font-stretch: 112%;
}

.route-mid {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
}

/* Drumul: asfalt cu marcaj galben care se desenează, duba care îl parcurge. */
.road {
  position: relative;
  flex: 1;
  height: 36px;
  overflow: hidden;
}
.road::before,
.road::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
}
.road::before {
  bottom: 4px;
  height: 10px;
  border-radius: 6px;
  background: var(--asphalt);
  animation: draw 700ms var(--ease-out) 380ms both;
}
.road::after {
  bottom: 8px;
  height: 2px;
  margin: 0 8px;
  background: repeating-linear-gradient(90deg, var(--signal) 0 10px, transparent 10px 18px);
  animation: draw 900ms var(--ease-out) 520ms both;
}
@keyframes draw {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.road-van {
  position: absolute;
  bottom: 13px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding-right: 6px;
  color: var(--blue-deep);
  transform: translateX(0);
  transition: transform 560ms var(--ease-in-out);
  animation: drive 1100ms var(--ease-out) 620ms both;
}
.road-van .icon-sm { width: 24px; height: 24px; transition: transform 300ms var(--ease-in-out); }
@keyframes drive {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
.route.reversed .road-van { transform: translateX(calc(-100% + 36px)); }
.route.reversed .road-van .icon-sm { transform: scaleX(-1); }

.swap { border: 1px solid var(--line-strong); background: var(--surface); }
.swap .icon-sm { transition: transform 300ms var(--ease-out); }
.swap.flipped .icon-sm { transform: rotate(180deg); }

.ticket-foot {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}
.ticket-foot .field-label .muted { font-weight: 400; }

@container ticket (min-width: 600px) {
  .route {
    grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
  }
  .route-mid { margin-top: 26px; height: 54px; }
  .ticket-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

@media (min-width: 640px) {
  .ticket { padding: 22px; }
}

/* ---------- Secțiuni ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--tint); }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-stretch: 116%; }
.section-head p { margin-top: 12px; font-size: 17px; color: var(--ink-2); }

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
}
.section-head-row > div:first-child { max-width: 640px; }

/* ---------- Prețuri ---------- */
.price-list { display: grid; }
.price-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.price-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--blue);
}
.price-text h3 { font-size: 18px; }
.price-text p { margin-top: 4px; font-size: 15px; color: var(--muted); max-width: 42ch; }
.price-amount {
  display: grid;
  justify-items: end;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 780;
  font-stretch: 120%;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-amount small {
  font-size: 13px;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 4px;
}

@media (min-width: 860px) {
  .price-list { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .price-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 859px) {
  .price-row:last-child { border-bottom: 1px solid var(--line); }
}

/* ---------- Pași ---------- */
.steps { display: grid; gap: 28px; counter-reset: none; }
.step { position: relative; }
.step-num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--signal);
  font-size: 18px;
  font-weight: 800;
  font-stretch: 120%;
  position: relative;
  z-index: 1;
}
.step h3 { font-size: 19px; }
.step p { margin-top: 6px; color: var(--ink-2); max-width: 34ch; }

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 21px;
    left: 56px;
    right: -28px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px);
  }
}

/* ---------- Acoperire ---------- */
.coverage { display: grid; gap: 20px; }

.map-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--tint);
}
#map { height: 340px; z-index: 0; }
#map .leaflet-tile-pane { filter: grayscale(.9) brightness(1.04) contrast(.9); }
.map-fallback {
  display: none;
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-2);
}
.map-fallback.show { display: block; }

/* Lista de destinații (fiecare rând duce la căutare) */
.destinations {
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}
.destinations li + li { border-top: 1px solid var(--line); }
.destination {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--ink);
  transition: background-color 160ms ease;
}
.destination:hover { background: var(--tint); }
/* Abțibildul oval de țară (D, A, CH...), ca pe spatele mașinilor. */
.sticker {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 54px; height: 36px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: 0.02em;
  line-height: 1;
}
.sticker-sm {
  width: 34px; height: 22px;
  border-width: 1.5px;
  font-size: 10.5px;
  margin-left: 2px;
}
a.sticker {
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
a.sticker:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  a.sticker:hover { background: var(--ink); color: var(--signal); transform: translateY(-2px); }
}

.stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 24px;
}
.destination-text { display: grid; gap: 1px; min-width: 0; }
.destination-text strong { font-size: 17px; font-stretch: 108%; }
.destination-text span { font-size: 14px; color: var(--muted); }
.destination-arrow { color: var(--muted); transition: transform 200ms var(--ease-out), color 160ms ease; }
.destination:hover .destination-arrow { color: var(--blue); transform: translateX(3px); }

@media (min-width: 960px) {
  .coverage { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
  #map { height: 460px; }
}

/* Popup hartă */
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 16px 40px -16px rgba(20, 33, 61, .45); }
.leaflet-popup-content { margin: 16px 18px; font-family: 'Archivo', system-ui, sans-serif; }
.leaflet-container a.leaflet-popup-close-button { top: 6px; right: 6px; }
.pop { display: grid; gap: 2px; min-width: 190px; }
.pop-name { font-size: 18px; font-stretch: 112%; color: var(--ink); }
.pop-zone { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.pop-cta {
  display: inline-flex; justify-content: center;
  padding: 9px 14px; border-radius: 10px;
  background: var(--blue); color: #fff !important;
  font-size: 14px; font-weight: 600;
}

/* ---------- Galerie ---------- */
.strip-nav { display: none; gap: 6px; }
.strip-nav .btn-icon { border: 1px solid var(--line-strong); background: var(--surface); }
@media (min-width: 720px) { .strip-nav { display: flex; } }

.strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2)) 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.strip-item {
  flex: 0 0 clamp(250px, 30vw, 360px);
  margin: 0;
  scroll-snap-align: start;
}
.strip-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--line);
}
.strip-item figcaption { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Întrebări ---------- */
.faq-layout { display: grid; gap: 8px; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 64px; }
}
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17.5px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--blue); transition: transform 240ms var(--ease-out); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 64ch; }

.faq-item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 260ms var(--ease-out), content-visibility 260ms allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }

/* ---------- Final ---------- */
.final {
  position: relative;
  padding: clamp(56px, 8vw, 88px) 0;
  background: var(--blue-deep);
  color: #D6DEEE;
  overflow: hidden;
}
.final::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--signal) 0 28px, transparent 28px 48px);
}
.final-inner { display: grid; gap: 24px; align-items: center; }
.final h2 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-stretch: 118%; }
.final p { margin-top: 8px; font-size: 17px; }
.final-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 860px) {
  .final-inner { grid-template-columns: 1fr auto; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 28px;
  background: var(--ink);
  color: #B9C4D6;
  font-size: 15px;
}
.footer-grid { display: grid; gap: 32px; }
.brand-invert { color: #fff; }
.brand-invert .brand-name span { color: #95A3BA; }
.footer-about p { margin-top: 14px; max-width: 44ch; }
.footer-col h2 { font-size: 15px; font-stretch: 100%; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.footer-col li { padding: 4px 0; }
.footer-col a { color: #B9C4D6; transition: color 160ms ease; }
.footer-col a:hover { color: #fff; }
.footer-login { color: #8E9BB2; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.footer-login:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13.5px;
  color: #8E9BB2;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

/* ---------- Notificări ---------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.45;
}
.notice .icon-sm { margin-top: 1px; }
.notice-info    { background: #E6EDFA; color: var(--blue-deep); }
.notice-success { background: #E5F5EB; color: #135E30; }
.notice-error   { background: #FCEDEC; color: #8F261D; }

/* ---------- Rezultate căutare ---------- */
.results { padding: 24px 0 88px; }
.results-grid { display: grid; gap: 24px; align-items: start; }

.modify {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.modify > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 18px;
  cursor: pointer;
  list-style: none;
}
.modify > summary::-webkit-details-marker { display: none; }
.modify-summary { display: grid; gap: 4px; min-width: 0; font-size: 14px; }
.modify-summary > * { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.modify-service { color: var(--blue); font-weight: 600; }
.modify-route { font-size: 17px; font-stretch: 108%; color: var(--ink); }
.modify-btn { pointer-events: none; }
.modify[open] .modify-btn { background: var(--tint); }
.modify-body { padding: 0 10px 10px; }
.modify-body .ticket { box-shadow: none; border-color: var(--line); padding: 14px; }

.modify::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 280ms var(--ease-out), content-visibility 280ms allow-discrete;
}
.modify[open]::details-content { block-size: auto; }

.results-title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-stretch: 114%;
  max-width: 24ch;
}
.results-sub { margin: 10px 0 24px; font-size: 16.5px; max-width: 60ch; }
.results-subtitle { margin: 40px 0 16px; font-size: 20px; }

@media (min-width: 1040px) {
  .results { padding-top: 40px; }
  .results-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; }
  .results-side { position: sticky; top: calc(var(--header-h) + 20px); order: 2; }
  .results-main { order: 1; }
}

/* Curse (tabelă de plecări) */
.trips { display: grid; gap: 12px; }
.trip {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.trip-date {
  display: grid;
  justify-items: center;
  padding: 10px 4px;
  border-radius: var(--radius);
  background: var(--paper);
  line-height: 1.15;
}
.trip-day { font-size: 28px; font-weight: 800; font-stretch: 118%; }
.trip-month { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.trip-wd { margin-top: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.trip-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 18px;
  font-weight: 700;
  font-stretch: 108%;
}
.trip-arrow { color: var(--muted); display: inline-flex; }
.trip-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.trip-service {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 600;
}
.trip-service .icon-sm { width: 15px; height: 15px; }
.trip-phone { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.trip-phone:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.trip-slots {
  padding: 2px 10px;
  border-radius: 999px;
  background: #E5F5EB;
  color: #135E30;
  font-size: 13px;
  font-weight: 600;
}
.trip-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (min-width: 640px) {
  .trip { grid-template-columns: 84px minmax(0, 1fr) auto; padding: 16px 18px 16px 16px; }
  .trip-actions { grid-column: auto; display: flex; }
}

/* Avatar cu inițiale */
.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--blue-deep);
  font-size: 17px;
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: 0.01em;
}
.avatar-sm { width: 26px; height: 26px; font-size: 11px; }
.avatar-dark { background: var(--blue-deep); color: var(--signal); }

/* Persoane de contact (când nu e cursă programată) */
.contacts { display: grid; gap: 12px; }
@media (min-width: 720px) {
  .contacts:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; }
}
.contact {
  display: grid;
  gap: 18px;
  align-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.contact-head { display: flex; align-items: center; gap: 14px; }
.contact-name { font-size: 22px; font-stretch: 116%; }
.contact-phone {
  display: block;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 15.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.contact-phone:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.results-price { margin-top: 20px; font-size: 14.5px; color: var(--muted); }
.results-price strong { color: var(--ink); }

/* ---------- Autentificare ---------- */
.auth {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 220px);
  padding: 48px var(--gutter) 80px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  animation: rise 480ms var(--ease-out) both;
}
.auth-mark {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--blue-deep);
  color: var(--signal);
}
.auth-card h1 { font-size: 28px; font-stretch: 116%; }
.auth-card > .muted { margin: 6px 0 24px; }
.stack { display: grid; gap: 16px; }
.stack .btn { margin-top: 6px; }
.auth-foot { margin-top: 20px; font-size: 13.5px; color: var(--muted); }
@media (min-width: 480px) { .auth-card { padding: 36px 32px; } }

/* ---------- Dashboard ---------- */
.dash { padding: 32px 0 88px; }
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.dash-head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-stretch: 118%; }
.dash-head .muted { margin-top: 6px; }

.stats { display: grid; gap: 12px; margin: 0 0 24px; }
.stat {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.stat dt { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.stat dd {
  margin: 4px 0 0;
  font-size: 36px;
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-hint { display: block; font-size: 13px; color: var(--muted); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }

.panel {
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.panel-quiet { margin-top: 40px; background: transparent; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}
.panel-head::-webkit-details-marker { display: none; }
.panel-head h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; }
.panel-chevron { color: var(--muted); transition: transform 240ms var(--ease-out); }
.panel[open] .panel-chevron { transform: rotate(180deg); }
.panel::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 280ms var(--ease-out), content-visibility 280ms allow-discrete;
}
.panel[open]::details-content { block-size: auto; }

.trip-form { padding: 4px 22px 22px; }
.form-grid { display: grid; gap: 18px; }
.stop-fields { margin: 0; padding: 0; border: 0; }
.stop-fields > .input + .input,
.stop-fields > .reveal + .input { margin-top: 8px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .form-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.dash-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.dash-section-head h2 { font-size: 22px; }

.my-trips { display: grid; gap: 10px; }
.my-trip {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 14px 14px 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.my-trip.is-past { background: transparent; }
.my-trip.is-past .my-trip-main strong { color: var(--muted); }
.my-trip-main { display: grid; gap: 2px; }
.my-trip-main strong { font-size: 17px; }
.my-trip-main .muted { font-size: 14px; }
.my-trip-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 14px;
  color: var(--ink-2);
}
.my-trip-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.my-trip-meta .icon-sm { width: 16px; height: 16px; color: var(--muted); }
.my-trip-actions { display: flex; gap: 4px; justify-self: start; }
@media (min-width: 900px) {
  .my-trip { grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; }
  .my-trip-actions { justify-self: end; }
}

.badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
}
.badge-active    { background: #E5F5EB; color: #135E30; }
.badge-completed { background: var(--paper); color: var(--muted); }
.badge-cancelled { background: #FCEDEC; color: #8F261D; }

.empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 44px 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 20px;
  text-align: center;
  color: var(--ink-2);
}
.empty .icon-lg { color: var(--blue); }

/* ---------- Administrare ---------- */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border-radius: 14px;
  background: var(--tint);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.tab {
  padding: 9px 16px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 33, 61, .08); }

.panel-open { animation: rise 320ms var(--ease-out) both; }
.panel-danger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 22px 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #FDF4F3;
  font-size: 14px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
  cursor: pointer;
  align-self: end;
}
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex-shrink: 0; }

.teams { display: grid; gap: 16px; }
@media (min-width: 960px) { .teams { grid-template-columns: 1fr 1fr; gap: 20px; } }

.team {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.team-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.team-head h2 { font-size: 24px; font-stretch: 118%; }
.team-zones { margin-top: 4px; font-size: 14px; color: var(--muted); }
.team-empty { padding: 20px 0; color: var(--muted); }
.team-add { justify-self: start; margin-top: 6px; }

.rename { position: relative; }
.rename > summary { list-style: none; }
.rename > summary::-webkit-details-marker { display: none; }
.rename-form {
  position: absolute;
  right: 0; top: 46px;
  z-index: 5;
  display: flex;
  gap: 8px;
  width: 300px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 40px -16px rgba(20, 33, 61, .45);
  transform-origin: top right;
  animation: pop-in 180ms var(--ease-out) both;
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.people { display: grid; }
.person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 14px;
  padding: 14px 0;
}
.people > .person + .person { border-top: 1px solid var(--line); }
.person.is-inactive .avatar { background: var(--paper); color: var(--muted); }
.person.is-inactive .person-main strong { color: var(--muted); }
.person-main { display: grid; gap: 1px; min-width: 0; }
.person-main strong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 16.5px; }
.person-line { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.person-line.muted { color: var(--muted); }
.person-stats {
  grid-column: 2 / 3;
  display: flex;
  gap: 18px;
  margin: 0;
}
.person-stats div { display: flex; gap: 6px; align-items: baseline; }
.person-stats dt { font-size: 13px; color: var(--muted); }
.person-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.person > .btn-icon { grid-row: 1; grid-column: 3; }
@media (min-width: 560px) {
  .person { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .person-stats { grid-column: auto; flex-direction: column; gap: 0; text-align: right; }
  .person-stats div { justify-content: flex-end; }
  .person > .btn-icon { grid-row: auto; grid-column: auto; }
}

.admins { margin-top: 40px; }
.admins h2 { font-size: 20px; margin-bottom: 8px; }
.people-inline { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.people-inline .person { grid-template-columns: auto minmax(0, 1fr) auto; border: 0 !important; }

.badge-admin { background: var(--blue-deep); color: var(--signal); }

/* ---------- Hover doar pe dispozitive cu mouse ---------- */
@media (hover: none) {
  .btn-primary:hover { background: var(--blue); }
  .btn-wa:hover { background: var(--wa); }
}

/* ---------- Mișcare redusă ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
