/* ==========================================================================
   Mentivira — site de prezentare
   Sistem de design. Paleta: navy profund (paleta pitch-ului, tradusa in dark).
   Fara fonturi web, fara biblioteci externe. Totul in acest fisier.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* suprafete */
  --bg:            #0B1220;
  --bg-deep:       #070C16;
  --surface:       #111C31;
  --surface-2:     #16233B;
  --surface-hi:    #1B2A45;
  --line:          #1E2D4A;
  --line-soft:     #172340;

  /* text */
  --text:          #E8EEF7;
  --text-dim:      #93A4BF;
  --text-faint:    #64748B;

  /* accente — din paleta pitch-ului */
  --brand:         #60A5FA;   /* navy luminat */
  --brand-deep:    #1E3A8A;
  --amber:         #F59E0B;
  --amber-soft:    #FBBF24;
  --green:         #10B981;
  --green-soft:    #34D399;
  --red:           #F87171;

  /* tipografie */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* ritm */
  --gutter: 20px;
  --maxw: 1140px;
  --maxw-prose: 68ch;
  --radius: 14px;
  --radius-sm: 9px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Inaltimea cromei lipite. Saltul la o ancora trebuie sa se opreasca SUB ea,
   altfel banda numerotata ajunge exact dedesubtul antetului si nu se vede.
   Pe desktop se adauga si indicele lipit. */
/* masurat in browser: antet 63px (62 min-height + 1px bordura), indice 64px */
:root { --hdr-h: 63px; --chrome: calc(var(--hdr-h) + 11px); }
@media (min-width: 700px) { :root { --chrome: calc(var(--hdr-h) + 64px + 1px); } }
[id^="s-"], #index { scroll-margin-top: var(--chrome); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- primitive ---------- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; font-weight: 650; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: var(--text-dim); max-width: 60ch; line-height: 1.55; }
.prose { max-width: var(--maxw-prose); }
.prose p + p { margin-top: 0; }

/* ---------- antet ---------- */

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-deep) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr__in { display: flex; align-items: center; gap: 1.5rem; min-height: 62px; }

.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 680; letter-spacing: -.02em; font-size: 1.1rem; }
.logo:hover { text-decoration: none; }
.logo svg { display: block; flex: none; width: 30px; height: 30px; }

.nav { display: flex; gap: .15rem; margin-left: auto; flex-wrap: wrap; }
.nav a {
  padding: .4rem .7rem; border-radius: 8px; color: var(--text-dim);
  font-size: .94rem; font-weight: 550; white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-hi); }

.lang { display: flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; flex: none; }
.lang a { padding: .25rem .5rem; border-radius: 6px; font-size: .8rem; font-weight: 650; color: var(--text-faint); letter-spacing: .03em; }
.lang a:hover { color: var(--text); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--brand-deep); color: #fff; }

.burger { display: none; }

/* lockup orizontal complet, pentru subsol */
.lockup { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); }
.lockup:hover { text-decoration: none; }
.lockup__g { flex: none; display: block; line-height: 0; }
.lockup__t { display: flex; flex-direction: column; gap: .18rem; }
.lockup__t strong { font-size: 1.22rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.lockup__t em { font-style: normal; font-size: .62rem; font-weight: 400; letter-spacing: .21em; color: var(--text-faint); line-height: 1; }

/* ---------- erou ---------- */

.hero { position: relative; padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto -10%; height: 130%;
  background:
    radial-gradient(48rem 26rem at 18% 12%, rgba(30,58,138,.42), transparent 62%),
    radial-gradient(34rem 20rem at 88% 4%, rgba(16,185,129,.13), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 { max-width: 22ch; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { margin-top: 1.1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.1rem;
}
.avail { margin-top: 1.2rem; }
.avail .badge { white-space: normal; text-align: left; line-height: 1.45; padding: .45rem .85rem; }

.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); border-radius: 2px; }

/* ---------- secțiuni ---------- */

.sec { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line-soft); }
.sec:first-of-type { border-top: 0; }
.sec__hd { max-width: 54ch; margin-bottom: 2rem; }
.sec__hd p { margin-top: .8rem; color: var(--text-dim); margin-bottom: 0; }
.sec--alt { background-color: var(--bg-deep); }

/* ---------- grile ---------- */

.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }

/* ---------- carduri ---------- */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem 1.4rem;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.card:hover { border-color: var(--surface-hi); background: var(--surface-2); transform: translateY(-2px); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--text-dim); font-size: .96rem; margin-bottom: 0; }
.card__ico { width: 34px; height: 34px; margin-bottom: .9rem; color: var(--brand); }
.card__ico svg { width: 100%; height: 100%; display: block; }

/* ---------- cifre ---------- */

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.35rem; }
.stat__v { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; color: var(--amber); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat--green .stat__v { color: var(--green-soft); }
.stat--blue  .stat__v { color: var(--brand); }
.stat__l { margin-top: .5rem; font-weight: 600; font-size: .98rem; }
.stat__n { margin-top: .35rem; font-size: .83rem; color: var(--text-faint); line-height: 1.45; }

/* ---------- tabel ---------- */

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
thead th {
  text-align: left; padding: .8rem 1rem; background: var(--surface-2);
  font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-dim); border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--text-dim); }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: var(--text); font-weight: 580; }

/* ---------- pași ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.35rem 1.2rem 3.9rem;
}
.steps li::before {
  content: counter(s); position: absolute; left: 1.3rem; top: 1.15rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-deep); color: #fff; font-size: .85rem; font-weight: 700;
}
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--text-dim); font-size: .96rem; margin-bottom: 0; }

/* ---------- caseta de precizare ---------- */

.note {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--amber); border-radius: var(--radius-sm);
  padding: 1.15rem 1.35rem;
}
.note h3 { font-size: 1.02rem; margin-bottom: .5rem; color: var(--amber-soft); }
.note p { color: var(--text-dim); font-size: .96rem; }
.note--green { border-left-color: var(--green); }
.note--green h3 { color: var(--green-soft); }

/* ---------- Flows: bloc de automatizare ---------- */

.flow { background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.flow__hd { padding: 1.1rem 1.3rem .9rem; border-bottom: 1px solid var(--line-soft); }
.flow__hd h3 { margin-bottom: .3rem; }
.flow__hd p { color: var(--text-dim); font-size: .93rem; margin: 0; }
.flow__body { padding: 1.1rem 1.3rem; font-family: var(--mono); font-size: .845rem; line-height: 1.85; }
.flow__trig { color: var(--amber); font-weight: 600; }
.flow__trig::before { content: "\25b8  "; color: var(--text-faint); }
.flow__step { color: var(--text-dim); padding-left: 1.6rem; position: relative; white-space: pre-wrap; }
.flow__step::before { content: "\2514\2500"; position: absolute; left: .3rem; color: var(--line); }
.flow__step b { color: var(--green-soft); font-weight: 600; }
.flow__note { padding: .9rem 1.3rem 1.1rem; border-top: 1px solid var(--line-soft); color: var(--text-faint); font-size: .89rem; }

/* ---------- Flows: diagrame de decizie ---------- */

.flowd-stack { display: grid; gap: 1.6rem; }
.flowd { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.flowd__hd { padding: 1.2rem 1.4rem 1rem; border-bottom: 1px solid var(--line-soft); }
.flowd__hd h3 { margin-bottom: .35rem; }
.flowd__hd p { color: var(--text-dim); font-size: .95rem; margin: 0; max-width: 72ch; }
.flowd__canvas { padding: .6rem 1rem 1.2rem; background: var(--bg-deep); overflow-x: auto; }
.flowd__canvas svg { min-width: 560px; }

/* ---------- diagrama pe niveluri ---------- */

.tiers { display: grid; gap: .75rem; }
.tier { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.1rem; align-items: start;
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.3rem; }
.tier__k { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); padding-top: .15rem; }
.tier h3 { margin-bottom: .3rem; }
.tier p { color: var(--text-dim); font-size: .95rem; margin-bottom: 0; }
@media (max-width: 600px) { .tier { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------- apel la acțiune ---------- */

.cta { position: relative; overflow: hidden; background: var(--bg-deep); border-top: 1px solid var(--line-soft); padding: clamp(3rem, 7vw, 5rem) 0; }
.cta::before {
  content: ""; position: absolute; inset: auto -10% -60% 10%; height: 120%;
  background: radial-gradient(40rem 22rem at 50% 100%, rgba(30,58,138,.4), transparent 65%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta__box { max-width: 40rem; }
.cta h2 { margin-bottom: .8rem; }
.cta p { color: var(--text-dim); }

.form { display: flex; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; }
.form input[type="email"] {
  flex: 1 1 16rem; min-width: 0;
  padding: .8rem 1rem; font: inherit; font-size: 1rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.form input[type="email"]::placeholder { color: var(--text-faint); }
.form input[type="email"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; font: inherit; font-size: 1rem; font-weight: 650;
  background: var(--brand-deep); color: #fff; border: 1px solid var(--brand);
  border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap;
  transition: background .18s ease;
}
.btn:hover { background: #24479f; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); }

.form__hint { margin-top: .75rem; font-size: .87rem; color: var(--text-faint); }
.form__priv { margin-top: 1.1rem; font-size: .8rem; color: var(--text-faint); max-width: 46rem; line-height: 1.5; }
.form__ok { margin-top: .9rem; font-size: .95rem; color: var(--green-soft); }

.actions { display: flex; gap: .7rem; margin-top: 1.6rem; flex-wrap: wrap; }

/* ---------- subsol ---------- */

.ftr { border-top: 1px solid var(--line-soft); padding: 2.5rem 0 3rem; background: var(--bg-deep); font-size: .9rem; }
.ftr__in { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.ftr h4 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .7rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.ftr a { color: var(--text-dim); }
.ftr a:hover { color: var(--text); }
.ftr__legal { margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid var(--line-soft); color: var(--text-faint); display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }

/* ---------- diagrame ---------- */

.diag { margin: 0; }
.diag svg { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); padding: .5rem; }
.diag figcaption { margin-top: .9rem; text-align: center; color: var(--text-faint); font-size: .89rem; }

/* ---------- separare pe sectoare ----------
   Sinteza panoului de design: structura (spina + bandă numerotata + indice)
   duce separarea, iar nuanta doar o confirma. Trei nuante ciclate cu perioada
   3, plus o axa NEcromatica (spina plina 01-03 / segmentata 04-06), dau sase
   chei distincte fara sase culori. La deuteranopie, in greyscale si la
   tipărire separarea rămâne, fiindcă nuanta nu e portanta.               */

.sec { --acc: var(--brand); --acc-rgb: 96,165,250; --acc-hair: 0; --acc-chip: 0; --acc-edge: 0; }
.sec--h-amber { --acc: #F59E0B; --acc-rgb: 245,158,11; --acc-hair: .26; --acc-chip: .10; --acc-edge: .22; }
.sec--h-green { --acc: #10B981; --acc-rgb: 16,185,129;  --acc-hair: .32; --acc-chip: .12; --acc-edge: .26; }
.sec--h-blue  { --acc: #60A5FA; --acc-rgb: 96,165,250;  --acc-hair: .32; --acc-chip: .12; --acc-edge: .26; }

/* spina: arata intinderea grupului, nu doar granita lui */
.sec--sector > .wrap, .sec--cont > .wrap { position: relative; padding-left: calc(var(--gutter) + 18px); }
.sec--sector > .wrap::before, .sec--cont > .wrap::before {
  content: ""; position: absolute; left: var(--gutter); top: 0; bottom: 0; width: 3px;
  border-radius: 2px; background: var(--acc); opacity: .9;
}
.sec--w-open > .wrap::before {
  background: repeating-linear-gradient(180deg, var(--acc) 0 9px, transparent 9px 15px);
}
/* secțiunea care continua sectorul precedent: spina mai discreta, fara bandă */
.sec--cont > .wrap::before { opacity: .45; }

/* bandă numerotata, lipita pe desktop ca identitatea sa persiste in grup lung */
.sec__key {
  display: flex; align-items: center; gap: .65rem; margin: 0 0 1.1rem;
  font-size: .69rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim);
}
.sec__key b { color: var(--acc); font-variant-numeric: tabular-nums; letter-spacing: .08em; font-size: .82rem; }
/* Banda nu e lipita: pe desktop o inlocuieste indicele lipit, care arata
   toate sectoarele, nu doar cel curent. */
.sec__key > span { flex: 1 1 auto; }
.sec__up {
  flex: none; font-size: .68rem; font-weight: 650; letter-spacing: .08em;
  color: var(--text-faint); padding: .3rem .6rem; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface);
}
.sec__up:hover { color: var(--text); border-color: rgba(var(--acc-rgb), var(--acc-edge));
                 text-decoration: none; }
/* Pe desktop indicele lipit face treaba, deci linkul din banda e redundant.
   ATENTIE dacă il reactivezi peste 700px: acolo indicele e lipit, iar un
   element lipit e mereu considerat 'in ecran', deci href="#index" nu
   deruleaza nimic. Masurat: scrollY 5863 -> 5798. Ar trebui un buton 'sus'
   care duce la inceputul documentului, nu o ancora catre indice. */
@media (min-width: 700px) { .sec__up { display: none; } }

/* marca pe card: exact doua atingeri de 1px, nicio suprafata colorata mare */
.sec--sector .card, .sec--cont .card { box-shadow: inset 0 1px 0 rgba(var(--acc-rgb), var(--acc-hair)); }
.sec--sector .card:hover, .sec--cont .card:hover { border-color: rgba(var(--acc-rgb), var(--acc-edge)); }
.sec--sector .card__ico {
  color: var(--acc); display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(var(--acc-rgb), var(--acc-chip));
  border: 1px solid rgba(var(--acc-rgb), var(--acc-edge));
}
.sec--sector .card__ico svg { width: 19px; height: 19px; }
.sec--w-open .card__ico { background: transparent; border-radius: 50%; }
.sec--sector .steps li::before { background: var(--acc); color: #0B1220; }

/* indice de sectoare, cu ancore */
.sx { border-bottom: 1px solid var(--line-soft); background: var(--bg-deep); }
@media (min-width: 700px) {
  /* z-index sub antetul (50), ca sa treaca pe dedesubtul lui la derulare */
  .sx { position: sticky; top: var(--hdr-h); z-index: 40;
        background: color-mix(in srgb, var(--bg-deep) 92%, transparent);
        backdrop-filter: blur(12px); }
}
.sx__in { display: flex; gap: .5rem; overflow-x: auto; padding-block: .8rem;
          scrollbar-width: none; }
.sx__in::-webkit-scrollbar { display: none; }
.sx__i { display: inline-flex; align-items: center; gap: .45rem; flex: none;
         padding: .42rem .8rem; border-radius: 99px; font-size: .84rem; font-weight: 600;
         color: var(--text-dim); background: var(--surface); border: 1px solid var(--line); }
.sx__i:hover { color: var(--text); border-color: rgba(var(--acc-rgb), var(--acc-edge)); text-decoration: none; }
.sx__i b { color: var(--acc); font-variant-numeric: tabular-nums; font-size: .78rem; }

@media (max-width: 640px) {
  .sec--sector > .wrap, .sec--cont > .wrap { padding-left: calc(var(--gutter) + 12px); }
  .sec__key { font-size: .63rem; letter-spacing: .1em; }
}

/* contrast forțat: codul cromatic cade, numele sectorului rămâne ca text */
@media (forced-colors: active) {
  .sec--sector > .wrap::before, .sec--cont > .wrap::before { background: CanvasText; }
  .sec--sector .card { box-shadow: none; }
  .sec--sector .card__ico { background: transparent; border-color: CanvasText; }
}

/* ---------- video, cu fatada cu incarcare la clic ---------- */

.vid { margin: 0; }
.vid > .vf, .vid > iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: var(--bg-deep);
}
.vf { position: relative; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.vf img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .74;
          transition: opacity .2s ease, transform .3s ease; }
.vf:hover img { opacity: .92; transform: scale(1.012); }
.vf__btn {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 74px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(30,58,138,.86); border: 1px solid rgba(232,238,247,.35);
  color: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.45);
  transition: transform .2s ease, background .2s ease;
}
.vf:hover .vf__btn { transform: scale(1.07); background: rgba(30,58,138,.97); }
.vf__btn svg { width: 30px; height: 30px; margin-left: 3px; }
.vf__lbl {
  position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%);
  font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim);
}
.vid__cap { margin-top: .9rem; font-size: .86rem; color: var(--text-faint);
            line-height: 1.5; max-width: 62ch; }
@media (max-width: 520px) {
  .vf__btn { width: 58px; height: 58px; }
  .vf__btn svg { width: 24px; height: 24px; }
  .vf__lbl { display: none; }
}

/* ---------- buton sus ---------- */

.top {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease;
}
.top--on { opacity: 1; transform: none; }
.top:hover { color: var(--text); border-color: var(--brand); }
.top svg { width: 19px; height: 19px; }
@media (max-width: 520px) { .top { right: 14px; bottom: 14px; } }

/* ---------- utilitare ---------- */



.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .6rem; border-radius: 99px; font-size: .78rem; font-weight: 650;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-dim);
}
.badge--amber { color: var(--amber-soft); border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.08); }
.badge--green { color: var(--green-soft); border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.08); }

.est { font-size: .8em; color: var(--text-faint); font-weight: 500; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: .5rem; z-index: 99; padding: .6rem 1rem; background: var(--surface); border: 1px solid var(--brand); border-radius: 8px; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- mobil ---------- */

@media (max-width: 860px) {
  .nav { display: none; width: 100%; order: 3; flex-direction: column; gap: 2px; padding-bottom: .8rem; }
  .nav.open { display: flex; }
  .hdr__in { flex-wrap: wrap; gap: .8rem; }
  .burger {
    display: inline-flex; margin-left: auto; align-items: center; justify-content: center;
    width: 38px; height: 38px; background: var(--surface); color: var(--text);
    border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
  }
  .burger svg { width: 18px; height: 18px; }
  .nav a { padding: .55rem .7rem; }
}
