/* Brightfold — „Planul orașului”: hartă tipărită și pliată, străzi în cerneală, marker galben.
   Un singur font, Archivo (SIL OFL), găzduit local și redus la caracterele românești. */
@font-face { font-family: "Archivo"; font-weight: 400 900; font-stretch: 100% 112%; font-display: swap; src: url(../fonts/bf-archivo-latin.woff2) format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2212, U+00D7; }
@font-face { font-family: "Archivo"; font-weight: 400 900; font-stretch: 100% 112%; font-display: swap; src: url(../fonts/bf-archivo-ro.woff2) format("woff2"); unicode-range: U+0102-0103, U+0218-021B, U+015E-0163, U+2190, U+2192; }
/* Litere condensate pentru nume de străzi și plăcuțe (instanță statică, ~12 KB). */
@font-face { font-family: "Archivo Narrow Labels"; font-weight: 800; font-display: swap; src: url(../fonts/bf-archivo-narrow.woff2) format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2026; }
@font-face { font-family: "Archivo Narrow Labels"; font-weight: 800; font-display: swap; src: url(../fonts/bf-archivo-narrow-ro.woff2) format("woff2"); unicode-range: U+0102-0103, U+0218-021B; }
/* Rezerve cu metrici apropiate, ca textul să nu sară când sosește fontul. */
@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 104%; ascent-override: 88%; descent-override: 21%; }
@font-face { font-family: "Archivo Wide Fallback"; src: local("Arial Bold"), local("Liberation Sans Bold"), local("Helvetica Bold"); font-weight: 600 700; size-adjust: 103%; ascent-override: 90%; descent-override: 21%; }

@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
@property --i { syntax: "<integer>"; inherits: false; initial-value: 0; }
@property --d { syntax: "<integer>"; inherits: false; initial-value: 0; }

:root {
  --paper: #edf1ee;
  --block: #dce3dd;
  --park: #cfdfc2;
  --water: #a9c8da;
  --road: #ffffff;
  --ink: #15171c;
  --ink-2: #464b55;
  --yellow: #ffc629;
  --yellow-2: #ffd75e;
  --plate: #1f4e8c;
  --line: rgba(21, 23, 28, .14);
  --rule: rgba(21, 23, 28, .55);
  --sans: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  --wide: "Archivo", "Archivo Wide Fallback", system-ui, sans-serif;
  --narrow: "Archivo Narrow Labels", "Arial Narrow", "Liberation Sans Narrow", "Archivo Fallback", sans-serif;
  --pad: max(clamp(16px, 4.5vw, 56px), calc((100vw - 1280px) / 2));
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
  accent-color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } @view-transition { navigation: auto; } }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  /* Pliurile hărții desfăcute: două îndoituri verticale, la o treime și la două treimi. */
  background-image:
    linear-gradient(90deg, transparent calc(33.333% - 1px), rgba(21, 23, 28, .07) calc(33.333% - 1px), rgba(255, 255, 255, .9) 33.333%, transparent calc(33.333% + 1px)),
    linear-gradient(90deg, transparent calc(66.666% - 1px), rgba(21, 23, 28, .07) calc(66.666% - 1px), rgba(255, 255, 255, .9) 66.666%, transparent calc(66.666% + 1px));
  font: 400 1.0625rem/1.6 var(--sans);
  font-kerning: normal;
  caret-color: var(--ink);
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--plate); }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 30; padding: 12px 16px; background: var(--ink); color: var(--paper); font-weight: 700; }
.skip:focus { top: 12px; }

/* Butoane */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 1px solid var(--ink); border-radius: 3px;
  font: 650 1rem/1.1 var(--sans);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.0625rem; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2c3039; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--road); }
.link { font-weight: 600; text-decoration-thickness: 1px; }

/* Antet: plăcuțe de stradă albastre drept navigație */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--pad);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@supports (animation-timeline: scroll()) {
  .top { animation: top-lift linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
  @keyframes top-lift { to { box-shadow: 0 8px 20px -14px rgba(21, 23, 28, .45); } }
}
.brand { display: flex; align-items: center; gap: 9px; min-height: 48px; margin-right: auto; text-decoration: none; font: 700 1.1875rem/1 var(--wide); letter-spacing: -.01em; }
.mark { width: 30px; height: 30px; flex: none; }
.nav { display: none; gap: 6px; }
/* Plăcuța de stradă: email albastru, chenar alb în interior, litere condensate albe. */
.map-tag, .ba-tag, .plan-flag, .plate, .nav a:hover, .nav a:focus-visible, .nav a[aria-current] {
  background: var(--plate); color: #fff; border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--plate), inset 0 0 0 3.5px rgba(255, 255, 255, .85);
}
.map-tag, .ba-tag, .plan-flag, .plate, .nav a { font-family: var(--narrow); font-weight: 800; }
/* Navigația e text simplu; plăcuța apare doar la hover, focus și pe secțiunea din ecran. */
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 3px; font-size: .9375rem; line-height: 1; letter-spacing: .02em; text-decoration: none; transition: background-color .18s var(--ease), color .18s var(--ease); }
.nav a:hover { background: #173d70; }
.top-cta { min-height: 44px; padding: 0 16px; font-size: .9375rem; }

/* Hero */
.hero { display: grid; gap: 40px; padding: 40px var(--pad) 0; }
.hero h1 {
  font: 650 clamp(2.25rem, 1.75rem + 2vw, 3.5rem)/1.1 var(--wide);
  letter-spacing: -.022em;
  text-wrap: balance;
  max-width: 16ch;
}
.lead { margin-top: 24px; max-width: 34rem; font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

.hero-map { margin-inline: calc(-1 * var(--pad)); }
.map-frame { position: relative; }
.map { width: 100%; height: auto; aspect-ratio: 6 / 7; }
.m-block { fill: #e3e8e4; }
.m-park { fill: #d9e5d1; }
.m-water { fill: none; stroke: #c3d8e4; stroke-width: 36; }
.m-case { fill: none; stroke: #aab3ac; stroke-width: 17; }
.m-road { fill: none; stroke: var(--road); stroke-width: 15; }
.m-case.m-wide { stroke-width: 26; }
.m-road.m-wide { stroke-width: 24; }
.m-label { font: 800 12px var(--narrow); letter-spacing: .1em; fill: #7d847e; }
.m-route { fill: none; stroke: var(--yellow); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; mix-blend-mode: multiply; }
.m-start { fill: var(--ink); stroke: var(--yellow); stroke-width: 5; }
.map-tag {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 7px 11px; font-size: .875rem; line-height: 1.15; letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px var(--plate), inset 0 0 0 3.5px rgba(255, 255, 255, .85), 0 6px 14px -8px rgba(21, 23, 28, .55);
}
.map-tag svg { width: 22px; height: 22px; flex: none; }
.map-tag span { display: grid; } .map-tag strong { font-size: 1.0625rem; }
.map-index { position: absolute; display: flex; justify-content: space-around; font: 800 .75rem/1 var(--narrow); color: var(--ink-2); pointer-events: none; }
.map-index span { display: grid; place-items: center; width: 22px; height: 22px; background: var(--paper); border-radius: 2px; }
.map-index-x { top: 6px; left: 30px; right: 0; }
.map-index-y { top: 30px; bottom: 0; left: 6px; flex-direction: column; }
.map-start { left: 3%; bottom: calc(7% + 18px); max-width: 44%; }
.map-pin { left: calc(22% - 16px); top: calc(61% - 60px); }

/* Telefonul 3D care derulează demo-ul real */
.device { position: absolute; right: 6%; top: 4%; width: 44%; }
.device-tilt {
  padding: 4.5%; background: #23262d; border-radius: 15% / 7%;
  transform: perspective(1500px) rotateY(-16deg) rotateX(6deg) rotateZ(2deg);
  box-shadow: 1px 1px 0 #30333b, 2px 2px 0 #2b2e35, 3px 3px 0 #26292f, 6px 8px 14px rgba(21, 23, 28, .2), 24px 40px 60px rgba(21, 23, 28, .22);
}
.device-screen { container-type: size; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 11% / 5%; background: #fff; }
.device-page { display: block; width: 100%; height: auto; }
.hero-map figcaption { position: relative; margin: 14px var(--pad) 0; font-size: .875rem; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.hero-map figcaption a { font-weight: 600; color: var(--ink); }
.device-toggle { display: none; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--ink); font-weight: 600; cursor: pointer; }
.hero-map:has(.device-pause:focus-visible) .device-toggle { outline: 3px solid var(--ink); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .device-toggle { display: inline-flex; }
  .device-page { animation: device-scroll 20s cubic-bezier(.45, 0, .25, 1) 2.4s infinite; }
  .device:hover .device-page, .device-screen:focus .device-page, .hero-map:has(.device-pause:checked) .device-page { animation-play-state: paused; }
  .hero-map:has(.device-pause:checked) .device-toggle { background: var(--ink); color: var(--paper); }
  .m-route { stroke-dasharray: 1; animation: route-draw 1.5s var(--ease) .35s backwards; }
  .map-pin { animation: pin-drop .6s var(--ease) 1.5s backwards; }
  @supports (animation-timeline: view()) {
    .device-tilt { animation: device-settle linear both; animation-timeline: view(); animation-range: cover 50% cover 100%; }
  }
}
@media (prefers-reduced-motion: reduce) { .device-screen { overflow-y: auto; overscroll-behavior: contain; } }
@keyframes device-scroll {
  0%, 7% { transform: translateY(0); }
  22%, 29% { transform: translateY(calc((-100% + 100cqh) * .3)); }
  44%, 51% { transform: translateY(calc((-100% + 100cqh) * .62)); }
  68%, 82% { transform: translateY(calc(-100% + 100cqh)); }
  96%, 100% { transform: translateY(0); }
}
@keyframes device-settle { to { transform: perspective(1500px) rotateY(0) rotateX(0) rotateZ(0); } }
@keyframes route-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pin-drop { from { transform: translateY(-14px); opacity: 0; } }

/* Secțiuni: fiecare începe pe un pliu orizontal al hărții */
.section { padding: clamp(80px, 9.5vw, 136px) var(--pad); border-top: 1px solid rgba(21, 23, 28, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.section-head { max-width: 44rem; }
.section h2 { font: 650 clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem)/1.15 var(--wide); letter-spacing: -.018em; text-wrap: balance; }
.section-head p { margin-top: 20px; color: var(--ink-2); max-width: 40rem; }
.section-head p + p { margin-top: 12px; }
.note { margin-top: 28px; max-width: 52rem; font-size: .875rem; line-height: 1.6; color: var(--ink-2); }

/* Bara fixă de pe telefon: apare după hero, dispare la formular și la subsol */
.dock { display: none; }
@media (max-width: 759px) {
  .dock {
    display: block; position: fixed; inset: auto 0 0; z-index: 25;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line);
    transform: translateY(100%); visibility: hidden;
    transition: transform .25s var(--ease), visibility 0s .25s;
  }
  .dock-on .dock { transform: none; visibility: visible; transition-delay: 0s; }
  .dock .btn { width: 100%; }
}

/* Înainte și după */
.market { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); }
.market h3 { font: 650 1.125rem/1.3 var(--sans); }
.market-rows { display: grid; gap: 8px 48px; margin-top: 6px; }
.market-row { display: grid; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.market-label { font-weight: 500; }
.market-values { display: flex; flex-wrap: wrap; gap: 8px 40px; font-family: var(--wide); font-variant-numeric: tabular-nums lining-nums; }
.market-col { display: grid; gap: 6px; }
.market-who { font: 500 .875rem/1.2 var(--sans); color: var(--ink-2); }
.market-col strong { justify-self: start; font-size: clamp(2.25rem, 7vw, 3.25rem); font-weight: 600; letter-spacing: -.025em; line-height: 1; color: var(--ink-2); }
.market-ours strong { color: var(--ink); }
.compare-grid { display: grid; gap: 48px; margin-top: 56px; align-items: center; }
.ba { position: relative; --pos: 50%; aspect-ratio: 390 / 844; max-height: 80vh; margin-inline: auto; width: 100%; overflow: hidden; border: 1px solid var(--rule); border-radius: 4px; background: #fff; user-select: none; }
.ba-before, .ba-after { position: absolute; inset: 0; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.ba-handle svg { max-width: none; width: 20px; height: 20px; position: absolute; top: 50%; left: 50%; box-sizing: content-box; padding: 11px; margin: -22px 0 0 -22px; background: #fff; border: 1px solid var(--ink); border-radius: 50%; fill: none; stroke: var(--ink); stroke-width: 2; box-shadow: 0 4px 12px -6px rgba(21, 23, 28, .45); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba:has(.ba-range:focus-visible) .ba-handle svg { outline: 3px solid var(--ink); outline-offset: 3px; }
.ba-tag { position: absolute; top: 12px; padding: 6px 11px; font-size: .9375rem; line-height: 1.1; letter-spacing: .02em; pointer-events: none; }
.ba-tag-before { left: 12px; } .ba-tag-after { right: 12px; }

.stats { border-top: 1px solid var(--rule); }
.stat { display: grid; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.stat-label { font-weight: 500; }
.stat-values { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; font-family: var(--wide); font-variant-numeric: tabular-nums lining-nums; line-height: 1; }
.stat-values del { font-size: clamp(1.25rem, 3.5vw, 1.625rem); font-weight: 500; color: var(--ink-2); text-decoration-thickness: 1.5px; }
.stat-values strong { font-size: clamp(2.5rem, 8vw, 3.75rem); font-weight: 600; letter-spacing: -.025em; }
.stat-values .unit { margin-left: -8px; font-size: clamp(1.375rem, 4vw, 1.875rem); font-weight: 600; }
.stat-arrow { align-self: center; width: 32px; height: 1px; background: var(--ink); position: relative; }
.stat-arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }

/* Cifrele numără în CSS, de la valoarea veche la cea nouă, când intră în ecran. Textul real rămâne în pagină. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .count .count-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .count { --n: var(--to); counter-reset: n var(--n); animation: count-up linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
    .count::after { content: counter(n) / ""; }
    .count[data-decimal] { --i: calc((var(--n) - 5) / 10); --d: calc(var(--n) - var(--i) * 10); counter-reset: i var(--i) d var(--d); }
    .count[data-decimal]::after { content: counter(i) "," counter(d) / ""; }
    @keyframes count-up { from { --n: var(--from); } to { --n: var(--to); } }
  }
}

/* Google și Maps */
.google-intro { display: grid; gap: 40px; align-items: center; }
.search { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; max-width: 440px; width: 100%; justify-self: center; box-shadow: 0 24px 48px -32px rgba(21, 23, 28, .45); }
.search-bar { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; }
.search-bar svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; }
.search-map { width: 100%; height: auto; margin-top: 12px; border-radius: 8px; }
.search-map .m-case { stroke-width: 12; } .search-map .m-road { stroke-width: 10; } .search-map .m-water { stroke-width: 22; }
.pin-dot circle { fill: var(--ink-2); stroke: #fff; stroke-width: 3; }
.search-list { display: grid; margin-top: 8px; }
.search-list li { display: grid; gap: 2px; padding: 12px 12px; border-bottom: 1px solid var(--line); }
.search-list li:last-child { border-bottom: 0; }
.search-list .who { font-weight: 600; }
.search-list .miss { font-size: .875rem; color: var(--ink-2); }
.search-list .you { background: var(--paper); box-shadow: inset 2px 0 0 var(--ink); border-radius: 0 3px 3px 0; }
.search-list .has { font-size: .875rem; font-weight: 500; }
.search figcaption { margin-top: 10px; font-size: .8125rem; color: var(--ink-2); }

.legend-title {
  width: fit-content; margin: clamp(72px, 9vw, 112px) 0 0 20px; padding: 0 12px;
  position: relative; z-index: 1; background: var(--paper);
  font: 650 1.25rem/1.1 var(--sans);
}
.legend { display: grid; gap: 36px 56px; margin-top: -11px; padding: 44px clamp(20px, 3.5vw, 44px) 40px; border: 1px solid var(--rule); border-radius: 4px; }
.legend li { display: grid; grid-template-columns: 34px 1fr; align-content: start; column-gap: 18px; }
.legend .sym { grid-row: span 2; width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.legend .sym .f { fill: var(--block); }
.legend h4 { font: 650 1.0625rem/1.3 var(--sans); }
.legend p { margin-top: 6px; color: var(--ink-2); }
.promise { margin-top: 44px; max-width: 46rem; font: 500 clamp(1.0625rem, 1rem + .4vw, 1.25rem)/1.5 var(--sans); }

/* Demo-uri în ramă de telefon, pe o bandă care se derulează orizontal */
.phones {
  display: flex; gap: clamp(18px, 3vw, 34px);
  margin: 40px calc(-1 * var(--pad)) 0; padding: 18px var(--pad) 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.phones li { flex: 0 0 min(62vw, 236px); scroll-snap-align: start; }
.phones a { display: grid; gap: 4px; text-decoration: none; perspective: 900px; }
.phone { display: block; padding: 7px; margin-bottom: 14px; background: #23262d; border-radius: 30px; box-shadow: 0 16px 30px -20px rgba(21, 23, 28, .5); }
.phone img { border-radius: 23px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: #fff; }
.phones .kind { font-size: .875rem; color: var(--ink-2); }
.phones strong { font: 650 1.125rem/1.2 var(--wide); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: transparent; text-underline-offset: .2em; transition: text-decoration-color .18s; }
.phones a:hover strong, .phones a:focus-visible strong { text-decoration-color: var(--ink); }
.phones .style { font-size: .9375rem; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .phone { animation: phone-pass linear both; animation-timeline: view(inline); }
    @keyframes phone-pass { 0% { transform: rotateY(24deg) scale(.92); } 30%, 70% { transform: none; } 100% { transform: rotateY(-24deg) scale(.92); } }
  }
}

/* Pași: un traseu galben care se trasează la derulare */
.steps { position: relative; display: grid; gap: 40px; margin-top: 56px; padding-left: 62px; counter-reset: none; }
.steps::before, .steps::after { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 6px; border-radius: 3px; }
.steps::before { background: repeating-linear-gradient(180deg, var(--rule) 0 6px, transparent 6px 12px); width: 1px; left: 23.5px; }
.steps::after { background: var(--yellow); mix-blend-mode: multiply; transform-origin: top; }
.steps li { position: relative; }
.stop { position: absolute; z-index: 1; left: -62px; top: -6px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); border: 1px solid var(--ink); box-shadow: 0 0 0 5px var(--paper); font: 600 1.125rem/1 var(--wide); }
.steps h3 { font: 650 1.25rem/1.25 var(--wide); }
.steps p { margin-top: 10px; color: var(--ink-2); max-width: 30rem; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .steps::after { animation: route-grow linear both; animation-timeline: view(); animation-range: entry 60% cover 62%; }
    @keyframes route-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  }
}
.guarantee { display: grid; gap: 24px; justify-items: start; align-items: center; margin-top: clamp(72px, 9vw, 112px); padding: clamp(28px, 4vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.plate { padding: 14px 20px 15px; font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem); line-height: 1.1; letter-spacing: .01em; box-shadow: inset 0 0 0 2px var(--plate), inset 0 0 0 4px rgba(255, 255, 255, .9); border-radius: 5px; }
.guarantee p:not(.plate) { font-weight: 500; font-size: 1.0625rem; max-width: 32rem; }

/* Prețuri */
.plans { display: grid; gap: 24px; margin-top: 56px; }
.plan { display: grid; grid-template-rows: auto auto 1fr auto; align-content: start; gap: 18px; padding: clamp(28px, 3vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.plan h3 { font: 650 1.25rem/1.2 var(--wide); }
.plan > p:not(.price):not(.plan-flag) { color: var(--ink-2); }
.plan .btn { margin-top: 10px; justify-self: start; }
.price { display: grid; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums lining-nums; }
.price del { color: var(--ink-2); font-size: .9375rem; text-decoration-thickness: 1px; }
.price strong { font: 600 clamp(2rem, 1.7rem + 1.2vw, 2.5rem)/1 var(--wide); letter-spacing: -.025em; }
.price span { font-weight: 500; color: var(--ink-2); }
.plan-best { order: -1; position: relative; border-color: var(--ink); margin-top: 14px; box-shadow: 0 24px 48px -36px rgba(21, 23, 28, .5); }
.plan-flag { position: absolute; top: -14px; left: clamp(28px, 3vw, 40px); padding: 6px 12px; font-size: .875rem; line-height: 1.1; letter-spacing: .03em; }

/* Întrebări */
.faq-side p { margin-top: 16px; color: var(--ink-2); max-width: 24rem; }
.faq-side a { color: var(--ink); font-weight: 600; }
.faq-list { margin-top: 40px; border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top-color: var(--rule); }
.faq summary { position: relative; display: block; padding: 24px 52px 24px 0; font: 600 1.0625rem/1.4 var(--sans); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 1.5px; margin-top: -1px; background: var(--ink); transition: transform .25s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.faq details p { padding: 0 52px 26px 0; color: var(--ink-2); max-width: 44rem; }
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { height: 0; overflow: clip; transition: height .3s var(--ease), content-visibility .3s allow-discrete; }
    .faq details[open]::details-content { height: auto; }
  }
}

/* Contact: destinația traseului; galbenul rămâne doar pe buton */
.contact { display: grid; gap: 40px; }
.contact-copy p { margin-top: 20px; max-width: 34rem; color: var(--ink-2); font-size: 1.0625rem; }
.contact-direct { margin-top: 20px; font-size: 1rem; color: var(--ink-2); }
.contact-direct a { font-weight: 600; color: var(--ink); }
.contact-wa { margin-top: 20px; }
.contact-wa[hidden] { display: none; }
.form { display: grid; gap: 20px; padding: clamp(24px, 3.5vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 24px 48px -36px rgba(21, 23, 28, .45); }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: .9375rem; }
.form .opt { font-weight: 400; color: var(--ink-2); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid #767b84; border-radius: 3px;
}
.form textarea { resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #6a6f78; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--plate); outline-offset: 1px; }
.form input:user-invalid { border-color: #b3261e; }
.form .btn { justify-self: start; margin-top: 4px; }
.form-note { font-size: .875rem; color: var(--ink-2); }

/* Subsol */
.foot { display: grid; gap: 28px; padding: 48px var(--pad) 40px; background: var(--ink); color: #e9eae4; font-size: .9375rem; }
.foot a { color: #fff; }
.foot :focus-visible { outline-color: var(--yellow); }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand strong { font: 700 1.125rem/1.4 var(--wide); color: #fff; }
.foot-contact { display: grid; gap: 6px; }
.foot-contact p:first-child { font-weight: 600; color: #fff; }
.foot-company { color: #c9cbc4; }
.foot-company[hidden] { display: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.foot-note { color: #b4b7ae; font-size: .875rem; }

/* Pagini legale */
.legal { max-width: 46rem; padding: clamp(56px, 8vw, 112px) var(--pad); }
.legal h1 { font: 650 clamp(2rem, 1.6rem + 1.6vw, 2.75rem)/1.15 var(--wide); letter-spacing: -.018em; }
.legal p { margin-top: 20px; color: var(--ink-2); }
.legal p[hidden] { display: none; }

@media (min-width: 760px) {
  .ba { aspect-ratio: 1200 / 750; max-height: none; }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .plan-best { order: 0; margin-top: 0; }
  .contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
  .foot { grid-template-columns: 1.3fr 1.3fr 1fr; align-items: start; }
  .foot-note { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding: 80px 0 0; }
  .steps::before { left: 24px; right: 24px; top: 23.5px; bottom: auto; width: auto; height: 1px; background: repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 12px); }
  .steps::after { left: 24px; right: 24px; top: 21px; bottom: auto; width: auto; height: 6px; transform-origin: left; }
  .stop { left: 0; top: -80px; }
  @keyframes route-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (min-width: 1000px) {
  .nav { display: flex; }
  .market-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; padding-top: 48px; min-height: min(calc(100vh - 70px), 860px); }
  .hero-copy { padding-bottom: 48px; }
  .hero-map { margin: 0 calc(-1 * var(--pad)) 0 0; }
  .hero-map figcaption { margin-inline: 0; }
  .compare-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; }
  .google-intro { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 80px; }
  .legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phones { scroll-snap-type: x proximity; }
  .faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 80px; align-items: start; }
  .faq-side { position: sticky; top: 100px; }
  .faq-list { margin-top: 0; }
  .guarantee { grid-template-columns: auto minmax(0, 1fr); gap: 48px; }
}
