/* ============================================================
   FIMAN EXPERT — foaie de stil principală
   Paletă: grafit industrial + galben de avertizare (hi-vis)
   Tipografie: Barlow Semi Condensed (titluri) / Barlow (text) / Roboto Mono
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* suprafețe & text — tema deschisă */
  --bg:          #F1F4F7;
  --surface:     #FFFFFF;
  --surface-2:   #E6ECF0;
  --ink:         #0D161C;
  --ink-2:       #3B4A55;
  --muted:       #64737F;
  --line:        #D2DBE2;
  --line-strong: #B9C6CF;

  /* accent de avertizare */
  --accent:      #E39109;
  --accent-ink:  #96590A;
  --accent-soft: rgba(227, 145, 9, .13);

  /* panourile accentuate (hero, proces, contact) — set propriu de culori */
  --deep-bg:      #E7EDF1;
  --deep-bg-2:    #F0F4F7;
  --deep-ink:     #0D161C;
  --deep-ink-2:   #4A5A66;
  --deep-line:    #C9D5DD;
  --deep-line-soft: #DCE4EA;

  /* umpluturi în interiorul panourilor */
  --panel-fill:     rgba(255, 255, 255, .74);
  --panel-fill-2:   rgba(255, 255, 255, .55);
  --panel-note-bg:  rgba(13, 22, 28, .045);
  --ghost-fill:     rgba(255, 255, 255, .6);
  --input-bg:       #FFFFFF;
  --input-bg-focus: #FFFFFF;
  --placeholder:    #8A99A4;
  --stripe-ink:     #12222C;

  /* semantice */
  --ok:   #2E9068;
  --work: #3F7FBF;
  --due:  #C9602F;

  /* tipografie */
  --f-display: "Barlow Semi Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --f-body:    "Barlow", "Segoe UI", Arial, sans-serif;
  --f-mono:    "Roboto Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --fs-xs:  .875rem;
  --fs-sm:  1rem;
  --fs-cap: 1.0625rem;
  --fs-b:   1.125rem;
  --fs-md:  1.25rem;
  --fs-lg:  1.5625rem;
  --fs-xl:  1.9375rem;
  --fs-2xl: clamp(2.1rem, 1.5rem + 2.2vw, 2.95rem);
  --fs-3xl: clamp(2.2rem, 1.5rem + 2.9vw, 3.35rem);

  /* Măsura — lățimea coloanei de text curent.
     Optimul tipografic este 60–75 de caractere pe rând; peste 80, ochiul pierde
     începutul rândului următor. Unitatea `ch` se ajustează singură cu fontul. */
  --masura: 64ch;

  /* ritm */
  --pad: clamp(3.75rem, 2rem + 6vw, 6.75rem);
  --rad: 4px;
  --rad-lg: 8px;

  /* Site cu identitate vizuală deschisă, fără variantă întunecată. */
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-b);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); letter-spacing: 0; }
/* `pretty` împiedică rămânerea unui singur cuvânt pe ultimul rând */
p  { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}

.sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #14100A;
  padding: .7rem 1.1rem; font-weight: 600;
}
.skip:focus { left: 0; }

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

/* iconografie */
.ico {
  width: 30px; height: 30px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico--sm { width: 22px; height: 22px; stroke-width: 1.7; }

/* bandă de avertizare — motivul grafic al identității */
.hazard {
  height: 4px;
  background: repeating-linear-gradient(
    115deg,
    var(--accent) 0 11px,
    var(--stripe-ink) 11px 22px
  );
}

/* ---------- 3. Structură ---------- */
.wrap {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}
.wrap--narrow { width: min(820px, 100% - 2.5rem); }

.section { padding-block: var(--pad); }
.section--alt  { background: var(--surface-2); }
.section--deep {
  background:
    radial-gradient(120% 90% at 88% 0%, var(--deep-bg-2) 0%, transparent 62%),
    var(--deep-bg);
  color: var(--deep-ink);
  border-block: 1px solid var(--deep-line);
}

.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}
/* reperul care ancorează fiecare secțiune */
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  flex: none;
  background: var(--accent);
}
.section--deep .eyebrow,
.hero .eyebrow { color: var(--accent-ink); }

.shead { max-width: 62ch; margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.shead__sub {
  margin-top: 1.15rem;
  font-size: var(--fs-md);
  color: var(--ink-2);
  max-width: 60ch;
}
.shead--deep .shead__sub { color: var(--deep-ink-2); }

.minihead {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: clamp(3rem, 5vw, 4.25rem) 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.note {
  margin-top: 1.4rem;
  font-size: var(--fs-cap);
  color: var(--muted);
  max-width: 72ch;
}

/* ---------- 4. Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--rad);
  font-family: var(--f-body);
  font-size: var(--fs-b);
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn--primary {
  background: var(--accent);
  color: #16110A;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}
.btn--primary {
  position: relative;
  overflow: hidden;
}
/* luciu care traversează butonul la trecerea cursorului */
.btn--primary::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
}
.btn--primary:hover::before { left: 120%; }
.btn--primary:hover { background: #FFB22E; transform: translateY(-1px); }
.btn--primary > * { position: relative; }
.btn--ghost {
  border-color: var(--deep-line);
  color: var(--deep-ink);
  background: var(--ghost-fill);
}
.btn--ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn--full { width: 100%; justify-content: center; }

/* ---------- 5. Antet ---------- */

/* bară utilitară — datele de contact, permanent la vedere */
.utility {
  background: var(--stripe-ink);
  color: #C6D3DB;
  font-size: var(--fs-sm);
}
.utility__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  padding-block: .5rem;
}
.utility__rol { color: #90A3AE; }
.utility__contact { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.utility__contact a { font-weight: 600; color: #E4EDF2; }
.utility__contact a:hover { color: var(--accent); }
.utility__loc {
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, .16);
  color: #90A3AE;
}

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease, border-color .2s ease;
}
/* umbra apare doar când antetul s-a lipit de marginea de sus */
.hdr.is-lipit {
  box-shadow: 0 4px 18px rgba(13, 22, 28, .09);
  border-bottom-color: transparent;
}
.hdr__in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; color: var(--ink); flex: none; }
.brand__txt {
  font-family: var(--f-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__txt b { font-weight: 700; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav > a {
  padding: .55rem .68rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--rad);
  transition: color .15s ease, background-color .15s ease;
}
.nav > a { position: relative; }
/* linia care crește sub linkul din meniu */
.nav > a::after {
  content: "";
  position: absolute; left: .68rem; right: .68rem; bottom: .28rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s cubic-bezier(.22, .68, .3, 1);
}
.nav > a:hover::after, .nav > a.is-active::after { transform: scaleX(1); }
.nav > a:hover { color: var(--ink); }
.nav > a.is-active { color: var(--accent-ink); }
.nav__cta {
  margin-left: .6rem;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1rem !important;
  border: 1px solid var(--line-strong);
  color: var(--ink) !important;
  font-family: var(--f-mono);
  font-weight: 500;
  white-space: nowrap;
}
.nav__cta svg {
  width: 15px; height: 15px;
  fill: none; stroke: var(--accent-ink); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.nav__cta:hover { background: var(--accent-soft) !important; border-color: var(--accent); }

.burger {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--line); border-radius: var(--rad);
  cursor: pointer;
}
.burger span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--deep-bg);
  color: var(--deep-ink);
  border-bottom: 1px solid var(--deep-line);
}
/* caroiaj de planșă tehnică — textura domeniului, foarte discretă */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(13, 22, 28, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 22, 28, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 100% at 70% 0%, #000 30%, transparent 78%);
}
/* aură caldă care se deplasează lent, ca o lumină de hală */
.hero::after {
  content: "";
  position: absolute; inset: -20%;
  z-index: -1;
  background: radial-gradient(38% 46% at 72% 18%, var(--accent-soft) 0%, transparent 70%);
  animation: aura 22s ease-in-out infinite alternate;
}
@keyframes aura {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.12); }
}
.hero__in { position: relative; z-index: 1; }
.hero__in {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3.25rem, 6vw, 5rem);
}
.hero__copy { max-width: 46rem; }
.hero h1 { line-height: 1.16; }
.lede {
  margin-top: 1.6rem;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  color: var(--deep-ink-2);
  max-width: 56ch;
}
.lede b { color: var(--deep-ink); font-weight: 600; }

.hero__act { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* banda de reper de la baza hero-ului, pe toată lățimea */
.hero__trust {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 1.25rem 2rem;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--deep-line);
  font-size: var(--fs-cap);
  color: var(--deep-ink-2);
}
.hero__trust li { display: flex; align-items: baseline; gap: .6rem; }
.hero__trust li::before {
  content: ""; width: 7px; height: 7px; flex: none;
  align-self: center;
  background: var(--accent-ink); transform: rotate(45deg);
}
.hero__trust b { color: var(--deep-ink); font-weight: 600; }

/* ---------- 6b. Instrumentele celor trei domenii ---------- */
.demo {
  background: var(--panel-fill);
  border: 1px solid var(--deep-line);
  border-radius: var(--rad-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(13, 22, 28, .05);
}
.demo__tabs {
  display: flex;
  border-bottom: 1px solid var(--deep-line);
  background: var(--panel-fill-2);
}
.demo__tabs button {
  flex: 1;
  padding: .7rem .5rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .09em;
  color: var(--deep-ink-2);
  transition: color .15s ease, border-color .15s ease;
}
.demo__tabs button:hover { color: var(--deep-ink); }
.demo__tabs button.is-activ {
  color: var(--accent-ink);
  border-bottom-color: var(--accent);
}
.demo__scena[hidden] { display: none; }
.demo__svg { display: block; width: 100%; height: auto; }
.demo__cap {
  padding: 0 1.25rem 1.15rem;
  font-size: var(--fs-sm);
  color: var(--deep-ink-2);
}
.demo__cap b { color: var(--deep-ink); font-weight: 600; }

/* axe și grilă, comune scenelor */
.ax {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  fill: var(--muted);
  text-anchor: middle;
}
.ax__linie { stroke: var(--deep-line); stroke-width: 1.5; fill: none; }
.grila path { stroke: var(--deep-line-soft); stroke-width: 1; fill: none; }

/* 1 · matricea de risc */
.mx rect {
  rx: 2;
  animation: mx-intra .5s var(--d, 0s) ease both;
}
.mx .r-1 { fill: color-mix(in srgb, var(--ok) 26%, transparent); }
.mx .r-2 { fill: color-mix(in srgb, var(--accent) 34%, transparent); }
.mx .r-3 { fill: color-mix(in srgb, var(--due) 38%, transparent); }
@keyframes mx-intra { from { opacity: 0; transform: translateY(6px); } }

.mx__marcaj circle { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.mx__marcaj { animation: mx-cade .55s .7s ease both; }
@keyframes mx-cade {
  from { opacity: 0; transform: translateY(-26px) scale(.6); }
}
.mx__puls {
  transform-origin: 224px 79px;
  animation: puls 2.4s 1.3s ease-out infinite;
  stroke: var(--accent-ink);
}
@keyframes puls {
  0%   { transform: scale(1);   opacity: .9; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* 2 · triunghiul focului */
.tri__l {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 230;
  animation: tri-deseneaza .7s ease both;
}
.tri__l1 { animation-delay: .05s; }
.tri__l2 { animation-delay: .3s; }
.tri__l3 { animation-delay: .55s; }
@keyframes tri-deseneaza { from { stroke-dashoffset: 230; } to { stroke-dashoffset: 0; } }

/* după ce triunghiul e complet, o latură dispare și flacăra se stinge */
.tri__l3 { animation: tri-deseneaza .7s .55s ease both, tri-dispare 5s 2.2s ease-in-out infinite; }
@keyframes tri-dispare {
  0%, 30%  { opacity: 1; stroke: var(--ink); }
  45%, 75% { opacity: .18; stroke: var(--due); }
  90%,100% { opacity: 1; stroke: var(--ink); }
}
.flacara path { fill: var(--accent); }
.flacara {
  transform-origin: 200px 190px;
  animation: fl-apare .6s 1.2s ease both, fl-stinge 5s 2.2s ease-in-out infinite;
}
@keyframes fl-apare { from { opacity: 0; transform: scale(.4); } }
@keyframes fl-stinge {
  0%, 28%  { opacity: 1;  transform: scale(1) rotate(0deg); }
  14%      { transform: scale(1.04) rotate(-1.5deg); }
  48%, 74% { opacity: 0;  transform: scale(.25); }
  92%,100% { opacity: 1;  transform: scale(1); }
}
.tri__t {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  fill: var(--deep-ink);
}

/* 3 · diagrama de sarcini */
.dg__curba {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 420;
  animation: dg-deseneaza 1.1s .1s ease both;
}
@keyframes dg-deseneaza { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
.dg__aria {
  fill: var(--accent-soft);
  stroke: none;
  animation: dg-umple .8s .9s ease both;
}
@keyframes dg-umple { from { opacity: 0; } }
.dg__punct circle { fill: var(--ink); }
.dg__punct {
  offset-path: path("M92 44 C158 52 208 96 252 148 S330 212 358 220");
  offset-rotate: 0deg;
  animation: dg-merge 5.5s 1.1s ease-in-out infinite;
}
@keyframes dg-merge {
  0%        { offset-distance: 0%; }
  45%, 55%  { offset-distance: 100%; }
  100%      { offset-distance: 0%; }
}
.dg__puls {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2;
  animation: puls 2.2s ease-out infinite;
  transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
  .mx rect, .mx__marcaj, .mx__puls,
  .tri__l, .flacara, .dg__curba, .dg__aria, .dg__punct, .dg__puls {
    animation: none !important;
    opacity: 1;
    stroke-dashoffset: 0;
  }
  .dg__punct { offset-distance: 62%; }
}

/* ---------- 6e. Cuvintele lungi din coloanele înguste ----------
   Româna are cuvinte ca „responsabilitate” sau „îmbolnăvire”, care într-o
   coloană de card lasă goluri mari la capătul rândului. Despărțirea în silabe
   funcționează pentru că documentul declară `lang="ro"`. */
.ticks li, .legi__card li, .mini p, .prod p, .step p,
.demo__cap, .doc__tabel td, .act__titlu, .fact__v {
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 8 4 4;
}

/* ---------- 6d. Apariția la derulare ----------
   Starea ascunsă se aplică DOAR dacă JavaScript a marcat documentul cu `.js`.
   Fără JS, tot conținutul rămâne vizibil — nimic nu depinde de un observator.
   Un cronometru de siguranță afișează oricum totul după 1,5 secunde. */
.js .apare {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .68, .3, 1);
}
.js .apare.e-vazut { opacity: 1; transform: none; }

/* decalaj între elementele aceleiași grile, ca să curgă, nu să sară deodată */
.pillars > .apare:nth-child(2), .minis > .apare:nth-child(2),
.prods > .apare:nth-child(2), .steps > .apare:nth-child(2),
.legi__carduri > .apare:nth-child(2) { transition-delay: .09s; }
.pillars > .apare:nth-child(3), .minis > .apare:nth-child(3),
.prods > .apare:nth-child(3), .steps > .apare:nth-child(3),
.legi__carduri > .apare:nth-child(3) { transition-delay: .18s; }
.minis > .apare:nth-child(4), .prods > .apare:nth-child(4),
.steps > .apare:nth-child(4) { transition-delay: .27s; }
.prods > .apare:nth-child(5) { transition-delay: .36s; }

/* ---------- 6c. Comportament comun al cardurilor ---------- */
.pillar, .prod, .legi__card, .legal__cols article {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pillar:hover, .legi__card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 6px 22px rgba(13, 22, 28, .07);
  transform: translateY(-2px);
}
.prod:hover { background: var(--bg); }

/* ---------- 7. Domenii ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(285px, 100%), 1fr));
  gap: 1.25rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--rad);
  padding: 1.75rem 1.6rem;
  display: flex; flex-direction: column; gap: 1.4rem;
}
.pillar__hd { display: flex; gap: .95rem; align-items: flex-start; }
.pillar__hd .ico {
  color: var(--accent-ink);
  margin-top: 2px;
  transition: transform .25s cubic-bezier(.22, .68, .3, 1);
}
.pillar:hover .pillar__hd .ico { transform: translateY(-3px) scale(1.06); }
.prod:hover .ico, .mini:hover .ico { transform: translateY(-3px); }
.prod .ico, .mini .ico { transition: transform .25s ease; }
.pillar__hd h3 { font-size: 1.2rem; }
.tag {
  margin-top: .45rem;
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  color: var(--muted);
}

.ticks { display: flex; flex-direction: column; gap: .7rem; }
.ticks li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-cap);
  color: var(--ink-2);
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .48em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg);
}
.ticks .mono { font-size: var(--fs-xs); color: var(--muted); }

.pillar__more {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-cap);
  font-weight: 600;
  color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: .45rem;
}
.pillar__more::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.pillar__more:hover { color: var(--ink); }
.pillar__more:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* servicii conexe */
.minis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1.25rem;
}
.mini { display: flex; flex-direction: column; gap: .6rem; }
.mini .ico { color: var(--accent-ink); }
.mini h4 { color: var(--ink); }
.mini p { font-size: var(--fs-cap); color: var(--muted); }

/* ---------- 8. Proces ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 1.5rem;
  counter-reset: none;
}
.step {
  position: relative;
  padding-top: 1.75rem;
  border-top: 1px solid var(--deep-line);
  display: flex; flex-direction: column; gap: .6rem;
}
/* punctul de pe linia de proces — arată că etapele curg una din alta */
.step::before {
  content: "";
  position: absolute; top: -6px; left: 0;
  width: 11px; height: 11px;
  background: var(--accent);
  border: 2px solid var(--deep-bg);
  border-radius: 50%;
}
.step__n {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--accent-ink);
}
.step h3 { font-size: 1.15rem; color: var(--deep-ink); }
.step p { font-size: var(--fs-cap); color: var(--deep-ink-2); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 5vw, 4.25rem);
  padding: 1.6rem;
  background: var(--panel-fill);
  border: 1px solid var(--deep-line);
  border-radius: var(--rad);
}
.fact { display: flex; flex-direction: column; gap: .25rem; }
.fact__k {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-ink);
  letter-spacing: .01em;
}
.fact__v { font-size: var(--fs-sm); color: var(--deep-ink-2); }

/* ---------- 9. Legislație ---------- */
/* ---------- 10. Produse ---------- */
.prods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
}
.prod {
  background: var(--surface);
  padding: 1.65rem 1.5rem;
  display: flex; flex-direction: column; gap: .65rem;
}
.prod .ico { color: var(--accent-ink); }
.prod h3 { font-size: var(--fs-md); }
.prod p { font-size: var(--fs-cap); color: var(--muted); }

/* ---------- 11. Întrebări ---------- */
.faq {
  border-top: 1px solid var(--line);
}
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.15rem 0;
  font-family: var(--f-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  margin-top: .45em;
  border-right: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.qa[open] summary::after { transform: rotate(-135deg); }
.qa summary:hover { color: var(--accent-ink); }
.qa__a { padding: 0 0 1.3rem; }
.qa__a p { font-size: var(--fs-cap); color: var(--ink-2); max-width: 68ch; }

/* ---------- 12. Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.contact h2 { max-width: 18ch; }
.contact .shead__sub { color: var(--deep-ink-2); margin-top: 1.15rem; }

.cinfo {
  display: flex; flex-direction: column; gap: 1.1rem;
  margin-top: 2.4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--deep-line);
}
.cinfo li { display: flex; gap: .85rem; align-items: flex-start; }
.cinfo .ico { color: var(--accent-ink); margin-top: 3px; }
.cinfo div { display: flex; flex-direction: column; }
.cinfo__k {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--deep-ink-2);
}
.cinfo a, .cinfo span:not(.cinfo__k) {
  font-size: var(--fs-md);
  color: var(--deep-ink);
  font-weight: 500;
}
.cinfo a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

.form {
  background: var(--panel-fill);
  border: 1px solid var(--deep-line);
  border-radius: var(--rad-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex; flex-direction: column; gap: 1.05rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--deep-ink-2);
}
.field label i { color: var(--accent-ink); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: var(--fs-cap);
  color: var(--deep-ink);
  background: var(--input-bg);
  border: 1px solid var(--deep-line);
  border-radius: var(--rad);
  padding: .7rem .85rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 100px; line-height: 1.55; }
.field select { appearance: none; cursor: pointer; padding-right: 2.4rem; }

/* săgeata proprie a listei derulante */
.sel { position: relative; display: block; }
.sel::after {
  content: "";
  position: absolute; right: 1rem; top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(45deg);
  pointer-events: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-ink);
  background: var(--input-bg-focus);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input.is-bad, .field textarea.is-bad { border-color: var(--due); }
.err { font-size: var(--fs-xs); color: var(--due); min-height: 0; }
.err:empty { display: none; }

/* capcană anti-spam — scoasă din flux, dar nu display:none (roboții o ignoră) */
.honey {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* acord GDPR */
.field--check { gap: .3rem; }
.check {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--deep-ink-2);
  cursor: pointer;
  line-height: 1.5;
}
.check input {
  flex: none;
  width: 17px; height: 17px;
  margin-top: .18em;
  accent-color: var(--accent-ink);
  cursor: pointer;
}
.check a { color: var(--deep-ink); text-decoration: underline; text-underline-offset: 2px; }
.check a:hover { color: var(--accent-ink); }
.check i { color: var(--accent-ink); font-style: normal; }
#f-acord.is-bad { outline: 2px solid var(--due); outline-offset: 2px; }

.form__status {
  font-size: var(--fs-cap);
  color: var(--deep-ink-2);
  min-height: 0;
  padding-left: 1.6rem;
  position: relative;
}
.form__status:empty { display: none; }
.form__status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form__status::before {
  content: "";
  position: absolute; left: 0; top: .38em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--muted);
}
.form__status.is-ok  { color: var(--ok); }
.form__status.is-ok::before { background: var(--ok); }
.form__status.is-bad { color: var(--due); }
.form__status.is-bad::before { background: var(--due); }

.btn:disabled { opacity: .65; cursor: progress; transform: none; }

.form__fine { font-size: var(--fs-xs); color: var(--deep-ink-2); opacity: .8; }

/* ---------- 12b. Pagini de documente (legal) ---------- */
.nav--slim > a:not(.nav__cta) { font-size: var(--fs-cap); }

.doc { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 7vw, 6rem); }

.crumbs {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.crumbs a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

.doc h1 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 2.9rem);
  padding-bottom: 1.25rem;
  border-bottom: 3px solid var(--accent);
}
.doc__intro {
  margin: 1.5rem 0 0;
  font-size: var(--fs-md);
  color: var(--ink-2);
  max-width: 58ch;
}

/* Textul curge într-o coloană îngustă; tabelele rămân pe toată lățimea.
   Fără asta, rândul trecea de 95 de caractere pe paginile de document. */
.doc p,
.doc .doc__lista,
.doc .doc__pasi,
.doc .faq { max-width: var(--masura); }
.doc h2 {
  font-size: var(--fs-xl);
  margin: 2.75rem 0 .85rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.doc h3 {
  font-size: var(--fs-md);
  margin: 1.75rem 0 .5rem;
  color: var(--accent-ink);
}
/* spațiul dintre paragrafe se apropie de înălțimea unui rând */
.doc p { margin-bottom: 1.2rem; color: var(--ink-2); }
.doc p:last-child { margin-bottom: 0; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a:not(.btn) {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--accent);
}
.doc a:not(.btn):hover { color: var(--accent-ink); }

.doc__lista {
  display: flex; flex-direction: column; gap: .55rem;
  margin: 0 0 1.1rem;
}
.doc__lista li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-2);
}
.doc__lista li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px;
  background: var(--accent-ink);
  transform: rotate(45deg);
}

.doc__caseta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--rad);
  padding: 1.4rem 1.5rem;
  margin: 1.75rem 0;
}
.doc__caseta h2 {
  margin: 0 0 .6rem;
  padding: 0;
  border: 0;
  font-size: var(--fs-md);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-family: var(--f-mono);
  color: var(--accent-ink);
}
.doc__caseta p:last-child { margin-bottom: 0; }
.doc__caseta .btn { margin-top: .6rem; }

.doc__tabelwrap {
  overflow-x: auto;
  margin: 1.1rem 0 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  /* umbrele de la margini arată că tabelul mai continuă lateral */
  background-image:
    linear-gradient(to right, var(--surface) 30%, rgba(255, 255, 255, 0)),
    linear-gradient(to left,  var(--surface) 30%, rgba(255, 255, 255, 0)),
    linear-gradient(to right, rgba(13, 22, 28, .10), rgba(13, 22, 28, 0)),
    linear-gradient(to left,  rgba(13, 22, 28, .10), rgba(13, 22, 28, 0));
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-repeat: no-repeat;
  background-size: 44px 100%, 44px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}
/* rândurile alternante fac urmărirea pe orizontală mai ușoară */
.doc__tabel tbody tr:nth-child(even) { background: rgba(13, 22, 28, .022); }
.doc__tabel tbody tr:hover { background: var(--accent-soft); }
.doc__tabel {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: var(--fs-cap);
}
.doc__tabel thead th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.doc__tabel td {
  padding: .85rem 1rem;
  vertical-align: top;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.doc__tabel tr:last-child td { border-bottom: 0; }

/* tabelele de acte normative de pe paginile de legislație */
.acte { min-width: 640px; }
.acte th.act { width: 32%; }
.acte td:last-child { width: 172px; }
.act__cod {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent-ink);
  margin-bottom: .2rem;
}
.act__titlu { display: block; font-weight: 500; color: var(--ink); }
.acte tr.act--cheie th.act { border-left: 3px solid var(--accent); padding-left: .8rem; }

.acte__surse { display: flex; flex-wrap: wrap; gap: .4rem; }

/* butoanele către textul oficial — ținta de atingere minimă 36px pe înălțime */
.src {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 36px;
  padding: .3rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--rad);
  background: var(--surface);
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
/* săgeata care arată că linkul deschide altă filă */
.src::after {
  content: "";
  width: 7px; height: 7px;
  flex: none;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
  opacity: .55;
  transition: transform .15s ease, opacity .15s ease;
}
.src:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink) !important;
}
.src:hover::after { opacity: 1; transform: rotate(45deg) translate(1px, -1px); }

/* directiva europeană — albastru, ca să se distingă de sursa națională */
.src--eur { border-color: #B4C3DC; color: #2F4B78 !important; }
.src--eur:hover {
  border-color: #4B6FA8;
  background: rgba(75, 111, 168, .1);
  color: #233B60 !important;
}

/* cardurile de legislație de pe pagina principală */
.legi__carduri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 1.25rem;
}
.legi__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--rad);
  padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: .8rem;
}
.legi__card h3 { font-size: var(--fs-md); }
.legi__card .mono { font-size: var(--fs-xs); color: var(--muted); }
.legi__card ul { display: flex; flex-direction: column; gap: .35rem; }
.legi__card li { font-size: var(--fs-sm); color: var(--ink-2); }
.legi__card li .mono { color: var(--accent-ink); }
.legi__nr {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.doc__stamp {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.doc__alte { margin-top: 2.5rem; }
.doc__alte h2 {
  font-size: var(--fs-md);
  margin: 0 0 .9rem;
  padding: 0;
  border: 0;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
}
.doc__alte ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.doc__alte a {
  display: inline-block;
  padding: .45rem .85rem;
  font-size: var(--fs-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  text-decoration: none !important;
  color: var(--ink-2) !important;
}
.doc__alte a:hover { border-color: var(--accent); color: var(--ink) !important; }

/* pașii numerotați dintr-o pagină de serviciu */
.doc__pasi {
  counter-reset: pas;
  display: flex; flex-direction: column; gap: 1rem;
  margin: 1.2rem 0 1.4rem;
}
.doc__pasi li {
  counter-increment: pas;
  position: relative;
  padding-left: 2.9rem;
  color: var(--ink-2);
}
.doc__pasi li::before {
  content: counter(pas, decimal-leading-zero);
  position: absolute; left: 0; top: .1em;
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent-ink);
}

/* îndemnul de la finalul paginilor de serviciu */
.doc__cta {
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--deep-bg);
  border: 1px solid var(--deep-line);
  border-left: 4px solid var(--accent);
  border-radius: var(--rad);
}
.doc__cta h2 {
  margin: 0 0 .6rem;
  padding: 0;
  border: 0;
  font-size: var(--fs-lg);
}
.doc__cta p { color: var(--deep-ink-2); margin-bottom: 1.25rem; }
.doc__cta__act { display: flex; gap: .7rem; flex-wrap: wrap; }

/* întrebările frecvente în interiorul unei pagini de document */
.faq--doc { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.faq--doc .qa__a p { margin-bottom: 0; }

/* rutele din varianta de previzualizare într-un singur fișier */
.ruta[hidden] { display: none !important; }

/* ---------- 12c. Cookie-uri: banner și panou ---------- */
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: left;
}
.linkish:hover { color: var(--ink); }

.ck {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--surface);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -8px 26px rgba(13, 22, 28, .12);
}
.ck__in {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
  padding: 1.15rem 0;
  display: flex; align-items: center; gap: 1.5rem 2rem;
  flex-wrap: wrap;
}
.ck__txt { flex: 1 1 340px; }
.ck__txt b {
  display: block;
  font-family: var(--f-display);
  font-size: var(--fs-md);
  margin-bottom: .2rem;
}
.ck__txt p { font-size: var(--fs-sm); color: var(--ink-2); max-width: 78ch; }
.ck__act { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ck .btn { padding: .65rem 1.15rem; font-size: var(--fs-cap); }
.ck .btn--ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.ck .btn--ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

.ckp {
  border: 0;
  padding: 0;
  border-radius: var(--rad-lg);
  background: var(--surface);
  color: var(--ink);
  width: min(560px, calc(100% - 2rem));
  box-shadow: 0 18px 50px rgba(13, 22, 28, .28);
}
.ckp::backdrop { background: rgba(13, 22, 28, .45); }
.ckp__in { padding: clamp(1.5rem, 4vw, 2rem); }
.ckp h2 { font-size: var(--fs-xl); margin-bottom: .65rem; }
.ckp__lead { font-size: var(--fs-cap); color: var(--ink-2); margin-bottom: 1.4rem; }
.ckp__cat { display: flex; flex-direction: column; gap: .75rem; }
.ckp__rand {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .95rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: var(--bg);
  cursor: pointer;
}
.ckp__rand:has(input:disabled) { cursor: default; opacity: .85; }
.ckp__rand input {
  flex: none;
  width: 17px; height: 17px;
  margin-top: .2em;
  accent-color: var(--accent-ink);
}
.ckp__rand b { display: block; font-size: var(--fs-cap); font-weight: 600; }
.ckp__rand em {
  display: block;
  margin-top: .2rem;
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.ckp__nota {
  margin-top: 1.2rem;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.ckp__nota a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.ckp__act { display: flex; gap: .6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.ckp .btn--ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.ckp .btn--ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

/* plachetele oficiale ANPC — 201 x 50 px */
.foot__anpc {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .35rem;
}
.foot__anpc a { display: block; max-width: 201px; }
.foot__anpc img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.foot__anpc a:hover img { opacity: .88; }

/* rezervă text, cât timp fișierele plachetelor nu sunt încă în assets/img/ */
.foot__anpc a.fara-imagine {
  display: inline-flex;
  align-items: center;
  padding: .35rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: var(--bg);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--ink-2);
  max-width: none;
  width: max-content;
}
.foot__anpc a.fara-imagine:hover { border-color: var(--accent); color: var(--accent-ink); }
.foot__nav .linkish { font-size: var(--fs-cap); color: var(--ink-2); text-decoration: none; }
.foot__nav .linkish:hover { color: var(--accent-ink); }
.foot__legal a { text-decoration: underline; text-underline-offset: 2px; }
.foot__legal a:hover { color: var(--accent-ink); }

/* ---------- 13. Subsol ---------- */
.foot {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 2.75rem;
}
.foot__in {
  display: grid;
  grid-template-columns: 1.15fr .85fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.foot__brand .brand__txt { display: block; margin-bottom: .7rem; }
.foot__brand p { font-size: var(--fs-sm); color: var(--muted); max-width: 34ch; }
.foot__nav { display: flex; flex-direction: column; gap: .45rem; }
.foot__cap {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}
.foot__nav a { font-size: var(--fs-cap); color: var(--ink-2); }
.foot__nav a:hover { color: var(--accent-ink); }
.foot__legal { display: flex; flex-direction: column; gap: .45rem; }
.foot__legal p { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 13b. Filtrarea actelor normative ---------- */
.filtru { margin: 1.75rem 0 2.25rem; max-width: var(--masura); }
.filtru__eticheta {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.filtru__camp {
  display: flex; align-items: center; gap: .6rem;
  padding: 0 .85rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--rad);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.filtru__camp:focus-within {
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.filtru__camp svg {
  width: 19px; height: 19px; flex: none;
  fill: none; stroke: var(--muted); stroke-width: 1.9;
  stroke-linecap: round;
}
.filtru__camp input {
  flex: 1; min-width: 0;
  padding: .75rem 0;
  border: 0; background: none; outline: none;
  font-family: var(--f-body);
  font-size: var(--fs-cap);
  color: var(--ink);
}
.filtru__camp input::placeholder { color: var(--placeholder); }
.filtru__camp input::-webkit-search-cancel-button { display: none; }
.filtru__sterge {
  flex: none;
  width: 28px; height: 28px;
  border: 0; border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 18px; line-height: 1;
  cursor: pointer;
}
.filtru__sterge:hover { background: var(--accent-soft); color: var(--accent-ink); }
.filtru__rezultat {
  margin-top: .6rem;
  font-size: var(--fs-sm);
  color: var(--accent-ink);
  font-weight: 600;
  min-height: 1.4em;
}
.grupa[hidden] { display: none; }
/* în timpul filtrării, capul de tabel rămâne util chiar cu puține rânduri */
.filtru.e-filtrat ~ .grupa .doc__tabelwrap { background-image: none; }

/* ---------- 13c. Cardul de locație ---------- */
.loc {
  display: flex; gap: 1.15rem; align-items: center;
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem;
  background: var(--panel-fill);
  border: 1px solid var(--deep-line);
  border-radius: var(--rad);
  font-style: normal;
}
.loc__semn {
  flex: none;
  width: 68px; height: 68px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--deep-line);
  border-radius: var(--rad);
  overflow: hidden;
}
.loc__semn svg { width: 100%; height: 100%; }
.loc__grila { stroke: var(--deep-line); stroke-width: 1.5; fill: none; }
.loc__pin { fill: var(--accent); }
.loc__punct { fill: var(--surface); }
.loc__adresa { margin: .15rem 0 .5rem; color: var(--deep-ink); font-weight: 500; }
.loc__link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-ink);
}
.loc__link::after {
  content: "";
  width: 6px; height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.loc__link:hover { color: var(--ink); }
.loc__link:hover::after { transform: rotate(45deg) translate(1px, -1px); }

/* ---------- 13d. Butonul WhatsApp ---------- */
.wa {
  position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 40;
  display: inline-flex; align-items: center; gap: .5rem;
  height: 48px;
  padding: 0 1rem 0 .85rem;
  background: #1FA855;
  color: #fff;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(13, 22, 28, .22);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.wa svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.wa:hover {
  background: #17914A;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(13, 22, 28, .28);
}
body.cu-banner .wa { bottom: 8.5rem; }

/* ---------- 14. Înapoi sus ---------- */
/* butonul „înapoi sus” poartă și inelul de progres al derulării */
.totop {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: conic-gradient(var(--accent-ink) calc(var(--progres, 0) * 1%), rgba(13, 22, 28, .16) 0);
  color: #16110A;
  border: 0; border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(13, 22, 28, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.totop::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.totop:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(13, 22, 28, .3); }
.totop svg { position: relative; }
.totop svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 15. Adaptare ---------- */
@media (max-width: 1120px) {
  .foot__in { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero h1 { max-width: 30ch; }
  .demo { max-width: 560px; }
  .contact { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1000px) {
  .burger { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .15rem;
    padding: .85rem 1.25rem 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 26px rgba(0, 0, 0, .14);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a { padding: .7rem .5rem; font-size: var(--fs-md); }
  .nav__cta { margin: .5rem 0 0; justify-content: center; padding: .8rem 1rem !important; }
  .hdr__in { position: relative; }
}

/* bannerul de cookie-uri nu trebuie să acopere butonul „înapoi sus” */
body.cu-banner .totop { bottom: 8.5rem; }

@media (max-width: 860px) {
  .utility__rol { display: none; }
  .utility__in { justify-content: center; }
  .utility__loc { display: none; }
}

@media (max-width: 720px) {
  .wa { padding: 0; width: 48px; justify-content: center; }
  .wa__text { display: none; }
  body.cu-banner .wa { bottom: 12rem; }
  .loc { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .ck__in { padding: 1rem 0 1.15rem; }
  .ck__act { width: 100%; }
  .ck__act .btn { flex: 1 1 auto; justify-content: center; }
  body.cu-banner .totop { bottom: 12rem; }
  .doc h2 { margin-top: 2.25rem; }
}

@media (max-width: 600px) {
  :root { --fs-md: 1rem; }
  .wrap, .wrap--narrow { width: min(100% - 1.75rem, 1180px); }
  .form__row { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; gap: 1.75rem; }
  .btn { width: 100%; justify-content: center; }
  .hero__act { gap: .6rem; }
}

/* ecrane foarte înguste — telefoane pliabile, 280–360 px */
@media (max-width: 380px) {
  .wrap, .wrap--narrow { width: calc(100% - 1.25rem); }
  .brand__txt { font-size: .92rem; letter-spacing: .06em; }
  .brand__mark { width: 26px; height: 26px; }
  .hdr__in { gap: .75rem; min-height: 64px; }
  .pillar, .prod, .legi__card { padding-inline: 1.15rem; }
  .demo__tabs button { letter-spacing: .06em; }
  .btn { padding-inline: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .apare { opacity: 1 !important; transform: none !important; }
  .hero::after { animation: none; }
  .btn--primary::before { display: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Paginile de legislație sunt tipărite frecvent — merită un stil propriu. */
@media print {
  .hdr, .utility, .totop, .wa, .filtru, .form, .burger, .ck, .ckp,
  .demo, .doc__alte, .doc__cta, .foot__nav, .hazard { display: none !important; }

  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.45; }
  .section--deep, .hero, .section--alt { background: #fff !important; color: #000 !important; }
  .wrap, .wrap--narrow { width: 100%; }
  .js .apare { opacity: 1 !important; transform: none !important; }

  /* adresa completă apare după fiecare link, ca hârtia să rămână utilă */
  .doc a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8.5pt;
    color: #444;
    word-break: break-all;
  }
  .src { border: 0 !important; padding: 0 !important; min-height: 0 !important; font-size: 9pt; }
  .src::after { display: none; }

  /* tabelele de acte normative nu se rup între pagini la mijlocul unui rând */
  .doc__tabelwrap { overflow: visible; border: 0; background: none; }
  .doc__tabel { min-width: 0; font-size: 9.5pt; }
  .doc__tabel tr { page-break-inside: avoid; }
  .doc__tabel thead { display: table-header-group; }
  h1, h2, h3 { page-break-after: avoid; }
  .doc__caseta { page-break-inside: avoid; border: 1px solid #999; }

  /* antet de hârtie, ca foaia să se identifice singură */
  .doc::before {
    content: "Fiman Expert SRL · fimanexpert.ro · 0758 950 662";
    display: block;
    margin-bottom: 1.5rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #000;
    font-size: 9pt;
    letter-spacing: .04em;
  }
  @page { margin: 16mm 14mm; }
}
