/* =============================================================================
   DOCISIA – foaie de stil unică (fără framework)
   Tokeni: design/ghid-vizual.md · contrast verificat cu tools/contrast.py
   Teme: deschisă implicit; întunecată prin prefers-color-scheme sau [data-theme="dark"];
         [data-theme="light"] forțează tema deschisă.
   Fără stiluri inline (CSP strict). Mobil-întâi: 360 px -> desktop.
   ========================================================================== */

/* ---------------------------------------------------------------- fonturi */
/* Sora (SIL OFL 1.1), găzduit local. [DE CONFIRMAT] fontul original al logo-ului. */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-latin-ext-wght-normal.woff2") format("woff2");
  /* include ă (U+0103), ș ț Ș Ț (U+0218–021B) */
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- tokeni: temă deschisă */
:root {
  color-scheme: light;

  /* paleta logo-ului (sursă) */
  --brand-blue: #2A3EA8;
  --brand-ink: #0B1220;
  --brand-green: #17B79C;
  --brand-turq: #2FE0C0;
  --brand-lav: #B9A8FF;

  /* suprafețe și text */
  --c-bg: #FFFFFF;
  --c-surface: #F3F5FA;
  --c-surface-2: #E8EBFA;
  --c-text: #0B1220;            /* 18.72 pe bg */
  --c-text-muted: #46506A;      /* 8.03 pe bg, 7.36 pe surface */
  --c-border: #DDE2EC;          /* doar separatoare decorative */
  --c-border-strong: #7A849B;   /* contururi de câmpuri: 3.75 pe bg (UI ≥3) */

  /* interacțiune */
  --c-link: #2A3EA8;            /* 8.93 */
  --c-link-hover: #1E2D80;      /* 12.05 */
  --c-btn-bg: #2A3EA8;          /* text alb 8.93 */
  --c-btn-hover: #1E2D80;       /* text alb 12.05 */
  --c-on-btn: #FFFFFF;
  --c-primary-soft: #E8EBFA;    /* fundal etichete; --c-link pe el 7.52 */
  --c-focus: #2A3EA8;

  /* accent și stări */
  --c-accent-text: #107C6A;     /* derivat din #17B79C: 5.11 pe bg, 4.68 pe surface */
  --c-accent-soft: #E3F7F2;     /* --c-accent-text pe el 4.58 */
  --c-danger: #B42318;          /* 6.57 */
  --c-danger-soft: #FDECEA;
  --c-warning-text: #8A4B00;    /* 6.80 */
  --c-warning-soft: #FFF4E0;
  --c-deco-line: #B9A8FF;       /* lavandă – doar decorativ */
  --c-deco-dot: #17B79C;        /* verde – doar decorativ */

  /* logo */
  --logo-d: #2A3EA8;
  --logo-orbit: #B9A8FF;
  --logo-turq: #2FE0C0;
  --logo-text: #0B1220;
  --logo-ia: #17B79C;

  /* subsol (închis în ambele teme) */
  --f-bg: #0B1220;
  --f-text: #FFFFFF;
  --f-muted: #B3BBD0;           /* 9.75 */
  --f-link: #8C99F4;            /* 7.11 */
  --f-border: #26314A;

  /* tipografie */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.125rem;    /* 18 */
  --fs-lg: 1.25rem;     /* 20 */
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --fs-h1: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
  --lh-tight: 1.2;
  --lh-body: 1.6;

  /* spațiere (baza 4 px) */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;  --sp-9: 6rem;

  /* raze, umbre, dimensiuni */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(11, 18, 32, 0.06), 0 1px 3px rgba(11, 18, 32, 0.08);
  --shadow-2: 0 4px 12px rgba(11, 18, 32, 0.08), 0 2px 4px rgba(11, 18, 32, 0.06);
  --container: 75rem;      /* 1200 px */
  --container-narrow: 50rem;
  --gutter: 1rem;          /* 16 px pe mobil */
  --tap: 44px;             /* țintă minimă de atingere */
  --header-h: 4.5rem;
}

/* ---------------------------------------------------------------- tokeni: temă întunecată */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --c-bg: #0B1220;
    --c-surface: #131C30;
    --c-surface-2: #1B2640;
    --c-text: #FFFFFF;
    --c-text-muted: #B3BBD0;
    --c-border: #26314A;
    --c-border-strong: #6B7690;
    --c-link: #8C99F4;
    --c-link-hover: #B3BCF8;
    --c-btn-bg: #485DEE;
    --c-btn-hover: #5468EF;
    --c-on-btn: #FFFFFF;
    --c-primary-soft: #1B2640;
    --c-focus: #2FE0C0;
    --c-accent-text: #2FE0C0;
    --c-accent-soft: #0E2B2C;
    --c-danger: #FF9C94;
    --c-danger-soft: #3A1A1C;
    --c-warning-text: #FFC56B;
    --c-warning-soft: #2E2410;
    --c-deco-line: #C6B8FF;
    --c-deco-dot: #2FE0C0;
    --logo-d: #5B6EF0;
    --logo-orbit: #C6B8FF;
    --logo-turq: #2FE0C0;
    --logo-text: #FFFFFF;
    --logo-ia: #2FE0C0;
    --f-bg: #070B15;
    --f-border: #1B2640;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 4px 14px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --c-bg: #0B1220;
  --c-surface: #131C30;
  --c-surface-2: #1B2640;
  --c-text: #FFFFFF;
  --c-text-muted: #B3BBD0;
  --c-border: #26314A;
  --c-border-strong: #6B7690;
  --c-link: #8C99F4;
  --c-link-hover: #B3BCF8;
  --c-btn-bg: #485DEE;
  --c-btn-hover: #5468EF;
  --c-on-btn: #FFFFFF;
  --c-primary-soft: #1B2640;
  --c-focus: #2FE0C0;
  --c-accent-text: #2FE0C0;
  --c-accent-soft: #0E2B2C;
  --c-danger: #FF9C94;
  --c-danger-soft: #3A1A1C;
  --c-warning-text: #FFC56B;
  --c-warning-soft: #2E2410;
  --c-deco-line: #C6B8FF;
  --c-deco-dot: #2FE0C0;
  --logo-d: #5B6EF0;
  --logo-orbit: #C6B8FF;
  --logo-turq: #2FE0C0;
  --logo-text: #FFFFFF;
  --logo-ia: #2FE0C0;
  --f-bg: #070B15;
  --f-border: #1B2640;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 4px 14px rgba(0, 0, 0, 0.45);
}

@media (min-width: 48em) { :root { --gutter: 1.5rem; } }
@media (min-width: 75em) { :root { --gutter: 2rem; } }

/* ---------------------------------------------------------------- bază */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--sp-5); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p, ul, ol, dl { margin: 0 0 var(--sp-4); }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: var(--sp-1); }
a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--c-link-hover); text-decoration-thickness: 2px; }
strong { font-weight: 650; }
small, .small { font-size: var(--fs-sm); }
.muted { color: var(--c-text-muted); }
.lead { font-size: var(--fs-md); color: var(--c-text-muted); max-width: 42rem; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--sp-6) 0; }
table { border-collapse: collapse; width: 100%; }

/* focus vizibil pentru toate elementele interactive */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 4px;
}
main:focus { outline: none; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 100;
  background: var(--c-btn-bg); color: var(--c-on-btn);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--sp-3); color: var(--c-on-btn); }

/* marcaj pentru conținut lipsă / neconfirmat – vizibil intenționat */
.todo {
  display: inline-block;
  padding: 0 var(--sp-2);
  border: 1px dashed var(--c-warning-text);
  border-radius: var(--r-sm);
  background: var(--c-warning-soft);
  color: var(--c-warning-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* conținut îngust, dar aliniat la stânga cu antetul și logo-ul */
.container--narrow > * { max-width: var(--container-narrow); }
.section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-6); }
.section--surface { background: var(--c-surface); }
@media (min-width: 64em) { .section { padding-block: var(--sp-8); } }
.section__head { margin-bottom: var(--sp-6); max-width: 46rem; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); max-width: none; }
.section__head--row h2 { margin: 0; }
.section__intro { color: var(--c-text-muted); margin: 0; }
.section__more { margin: var(--sp-5) 0 0; }

.grid { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40em) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid { gap: var(--sp-5); }
}
.card-list { list-style: none; padding: 0; margin: 0; }
.card-list > li + li { margin-top: 0; }

.split { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 56em) {
  .split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--sp-7); }
  .split--form { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
.prose { max-width: 42rem; }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--sp-6); }
.prose h2:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- antet */
.site-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  z-index: 10;
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand tools toggle" "nav nav nav";
  align-items: center;
  column-gap: var(--sp-3);
  min-height: var(--header-h);
  padding-block: var(--sp-2);
}
.brand { grid-area: brand; }
.header-tools { grid-area: tools; justify-self: end; display: flex; align-items: center; gap: var(--sp-1); }
.nav-toggle { grid-area: toggle; padding-inline: var(--sp-3); }
/* pe ecrane înguste butonul de meniu păstrează doar pictograma (eticheta rămâne pentru cititoare de ecran) */
@media (max-width: 29.99em) {
  .nav-toggle { width: var(--tap); padding: 0; }
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-header__inner { column-gap: var(--sp-1); }
  .lang-switch { padding: 0 var(--sp-2); }
}
.site-nav { grid-area: nav; }

.brand {
  display: inline-flex; align-items: center; gap: 0.45rem;
  text-decoration: none; color: var(--logo-text);
  min-height: var(--tap);
  border-radius: var(--r-sm);
}
.brand:hover { color: var(--logo-text); }
.brand__symbol { width: 2.5rem; height: 2.5rem; flex: none; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;           /* raport simbol/text păstrat din sursă (120 / 64) */
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--logo-text);
}
.brand__ia { color: var(--logo-ia); }

/* culorile simbolului inline */
.logo-symbol .lg-d { fill: var(--logo-d); }
.logo-symbol .lg-o { stroke: var(--logo-orbit); }
.logo-symbol .lg-ts { stroke: var(--logo-turq); }
.logo-symbol .lg-t { fill: var(--logo-turq); }

/* meniu: fără JS -> listă vizibilă pe un rând separat (mobil) */
.site-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0 var(--sp-1);
}
.site-nav__list li + li { margin-top: 0; }
.site-nav__link {
  display: inline-flex; align-items: center;
  min-height: var(--tap);
  padding: 0 var(--sp-3);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.site-nav__link:hover { background: var(--c-surface); color: var(--c-text); }
.site-nav__link[aria-current="page"] {
  color: var(--c-link);
  box-shadow: inset 0 -3px 0 var(--c-link);
  border-radius: var(--r-md) var(--r-md) 0 0;
}

/* cu JS, pe mobil: meniu pliabil */
@media (max-width: 63.99em) {
  .js .site-nav { display: none; }
  .js .site-nav.is-open {
    display: block;
    border-top: 1px solid var(--c-border);
    margin-top: var(--sp-2);
    padding-top: var(--sp-2);
  }
  .js .site-nav.is-open .site-nav__list { flex-direction: column; }
  .js .site-nav.is-open .site-nav__link { width: 100%; }
  .js .site-nav.is-open .site-nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--c-link); border-radius: 0 var(--r-md) var(--r-md) 0; }
  .no-js .site-nav { margin-left: calc(-1 * var(--sp-3)); }
}
@media (min-width: 64em) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav tools";
    column-gap: var(--sp-5);
  }
  .site-nav { justify-self: center; }
  .nav-toggle { display: none !important; }
  .brand__symbol { width: 2.75rem; height: 2.75rem; }
  .brand__word { font-size: 1.55rem; }
}

.lang-switch {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  min-height: var(--tap); min-width: var(--tap);
  padding: 0 var(--sp-3);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--c-text-muted);
}
.lang-switch__current { color: var(--c-text); }
.lang-switch__other { color: var(--c-link); text-decoration: underline; text-underline-offset: 0.2em; }
.lang-switch:hover { background: var(--c-surface); }

/* ---------------------------------------------------------------- butoane */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--tap);
  padding: 0.6rem 1.15rem;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: none;
  color: inherit;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn .icon { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--c-btn-bg); color: var(--c-on-btn); }
.btn--primary:hover { background: var(--c-btn-hover); color: var(--c-on-btn); }
.btn--secondary { border-color: var(--c-link); color: var(--c-link); background: transparent; }
.btn--secondary:hover { background: var(--c-primary-soft); color: var(--c-link-hover); border-color: var(--c-link-hover); }
.btn--ghost { color: var(--c-text); background: transparent; }
.btn--ghost:hover { background: var(--c-surface); color: var(--c-text); }
.btn--icon { padding: 0; width: var(--tap); }
.btn--small { font-size: var(--fs-sm); padding: 0.45rem 0.85rem; }   /* înălțimea rămâne ≥ 44 px */
.btn--on-dark { background: #FFFFFF; color: #0B1220; }               /* 18.72 */
.btn--on-dark:hover { background: #E3F7F2; color: #0B1220; }
.btn--on-dark:focus-visible { outline-color: #2FE0C0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-5) 0 0; }
.actions--center { justify-content: center; }
.icon { width: 1.25rem; height: 1.25rem; max-width: none; flex: none; display: inline-block; vertical-align: middle; }
.icon--ext { width: 0.95em; height: 0.95em; }

.theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon--sun { display: inline-block; }
  :root:not([data-theme="light"]) .theme-toggle .icon--moon { display: none; }
}

.link-arrow { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-family: var(--font-display); min-height: var(--tap); }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform 0.15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------------------------------------------------------------- etichete */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-link);
  margin-bottom: var(--sp-3);
}
.badge {
  display: inline-flex; align-items: center;
  padding: 0.1rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.6;
  background: var(--c-primary-soft);
  color: var(--c-link);
  white-space: nowrap;
}
.badge--ok, .badge--in_vigoare, .badge--act-in_vigoare { background: var(--c-accent-soft); color: var(--c-accent-text); }
.badge--soon, .badge--viitor, .badge--act-modificat { background: var(--c-warning-soft); color: var(--c-warning-text); }
.badge--trecut, .badge--neutral { background: var(--c-surface-2); color: var(--c-text-muted); }
.badge--act-abrogat { background: var(--c-danger-soft); color: var(--c-danger); }
.chip {
  display: inline-flex; align-items: center;
  min-height: var(--tap);
  padding: 0 var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
}
.chip:hover { border-color: var(--c-link); color: var(--c-link); }

/* ---------------------------------------------------------------- hero și antete de pagină */
.hero { background: var(--c-surface); overflow: hidden; }
.hero__inner {
  display: grid; gap: var(--sp-6);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding-block: var(--sp-7);
}
.hero h1 { max-width: 20ch; }
.hero__art { display: none; }
@media (min-width: 56em) {
  .hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-block: var(--sp-8) var(--sp-9); }
  .hero__art { display: flex; justify-content: center; }
  .hero__symbol { width: min(100%, 22rem); height: auto; filter: drop-shadow(0 20px 40px rgba(42, 62, 168, 0.12)); }
  :root[data-theme="dark"] .hero__symbol { filter: none; }
}
@media (min-width: 56em) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero__symbol { filter: none; } }
.page-head { background: var(--c-surface); padding-block: var(--sp-7) var(--sp-6); border-bottom: 1px solid var(--c-border); }
.page-head--compact { padding-block: var(--sp-5) var(--sp-5); }
.page-head h1 { max-width: 28ch; }
.page-head .lead { margin-bottom: var(--sp-4); }
.toc { margin-top: var(--sp-5); }
.toc__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.toc__list li + li { margin-top: 0; }

.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 var(--sp-2); display: flex; flex-wrap: wrap; align-items: center; font-size: var(--fs-sm); color: var(--c-text-muted); }
.breadcrumb li + li { margin-top: 0; }
.breadcrumb li + li::before { content: "/"; padding: 0 var(--sp-2); color: var(--c-border-strong); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* ---------------------------------------------------------------- carduri */
.card {
  position: relative;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-1);
}
.section--surface .card, .hero .card { background: var(--c-bg); }
.card--plain { box-shadow: none; background: var(--c-surface); }
.card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.card__text { color: var(--c-text-muted); margin-bottom: var(--sp-3); }
.card__text:last-child { margin-bottom: 0; }
.card__note { font-size: var(--fs-sm); color: var(--c-warning-text); background: var(--c-warning-soft); border-radius: var(--r-sm); padding: var(--sp-2) var(--sp-3); margin: 0; }
.card__action { margin: var(--sp-3) 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); }
.card__top { margin-bottom: var(--sp-3); }
.card__link { color: var(--c-text); text-decoration: none; }
.card__link:hover { color: var(--c-link); text-decoration: underline; }
/* întreg cardul devine zonă de clic (linkul rămâne singurul element focusabil) */
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.card:has(.card__link:hover) { border-color: var(--c-link); }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.card__link:focus-visible { outline: none; }
.card--category { border-top: 4px solid var(--c-btn-bg); }
.card--category .card__items { list-style: none; padding: 0; margin: 0; color: var(--c-text-muted); font-size: var(--fs-sm); }
.card--category .card__items li { padding-left: 1rem; position: relative; }
.card--category .card__items li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-deco-dot); }
.card--muted { background: transparent; box-shadow: none; border-style: dashed; }
.card--service .card__title { font-size: var(--fs-md); }

/* note și alerte */
.note {
  border-left: 4px solid var(--c-deco-line);
  background: var(--c-surface);
  padding: var(--sp-4) var(--sp-5);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--c-text-muted);
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note--inline { display: block; padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); max-width: 46rem; background: var(--c-bg); }
.note--warning { border-left-color: var(--c-warning-text); background: var(--c-warning-soft); color: var(--c-text); margin-top: var(--sp-6); }
.note__title { font-size: var(--fs-md); }
.alert {
  border: 1px solid; border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
}
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert__title { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.alert--compact { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.alert--error { border-color: var(--c-danger); background: var(--c-danger-soft); color: var(--c-text); }
.alert--error .alert__title, .alert--error a { color: var(--c-danger); }
.alert--success { border-color: var(--c-accent-text); background: var(--c-accent-soft); color: var(--c-text); }
.alert--warning { border-color: var(--c-warning-text); background: var(--c-warning-soft); color: var(--c-text); }
.alert--info { border-color: var(--c-border-strong); background: var(--c-surface); color: var(--c-text); }

/* bandă CTA (închisă în ambele teme) */
.cta-band { background: var(--brand-blue); color: #FFFFFF; }        /* alb 8.93; #E8EBFA 7.52 */
.cta-band :focus-visible { outline-color: #2FE0C0; }                   /* 5.33 pe #2A3EA8 */
:root[data-theme="dark"] .cta-band { background: var(--c-surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band { background: var(--c-surface-2); } }
.cta-band__inner { display: flex; flex-direction: column; gap: var(--sp-4); padding-block: var(--sp-7); }
.cta-band h2 { color: #FFFFFF; margin-bottom: var(--sp-2); }
.cta-band p { color: #E8EBFA; margin: 0; max-width: 40rem; }
:root[data-theme="dark"] .cta-band p { color: #B3BBD0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band p { color: #B3BBD0; } }
@media (min-width: 48em) { .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------------------------------------------------------------- subsol */
.site-footer { background: var(--f-bg); color: var(--f-text); font-size: var(--fs-sm); }
.site-footer a { color: var(--f-link); }
.site-footer a:hover { color: #FFFFFF; }
.site-footer :focus-visible { outline-color: #2FE0C0; }
.site-footer .brand { --logo-d: #5B6EF0; --logo-orbit: #C6B8FF; --logo-turq: #2FE0C0; --logo-text: #FFFFFF; --logo-ia: #2FE0C0; color: #FFFFFF; }
.site-footer__grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: minmax(0, 1fr);
  padding-block: var(--sp-7) var(--sp-6);
}
@media (min-width: 40em) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.6fr; } }
.site-footer__tagline { color: var(--f-muted); margin-top: var(--sp-3); max-width: 22rem; }
.site-footer__title {
  font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--f-muted); margin-bottom: var(--sp-3);
}
.site-footer__nav ul { list-style: none; padding: 0; margin: 0; }
.site-footer__nav li + li { margin-top: 0; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 2.25rem; text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.company-data { margin: 0; }
.company-data div { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: var(--sp-2); padding: 0.2rem 0; }
.company-data dt { color: var(--f-muted); }
.company-data dd { margin: 0; color: var(--f-text); }
.company-data .company-data__name { font-weight: 600; grid-column: 1 / -1; }
.company-data div:has(.company-data__name) { grid-template-columns: minmax(0, 1fr); }
.company-data--light dt { color: var(--c-text-muted); }
.company-data--light dd { color: var(--c-text); }
.company-data--light div { padding: var(--sp-2) 0; border-bottom: 1px solid var(--c-border); }
.company-data--light div:last-child { border-bottom: 0; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3);
  position: relative;
  padding-block: var(--sp-4) var(--sp-5);
  color: var(--f-muted);
}
.site-footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--f-border); }
.site-footer__bottom p { margin: 0; align-self: center; }
.site-footer__legal { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); }
.site-footer__legal li + li { margin-top: 0; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* ---------------------------------------------------------------- NIS2: cronologie */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 0.6875rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px; background: var(--c-deco-line); border-radius: 2px;
}
.timeline__item { position: relative; padding-left: 2.75rem; padding-bottom: var(--sp-6); }
.timeline__item + .timeline__item { margin-top: 0; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker {
  position: absolute; left: 0; top: 0.2rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--c-bg); border: 3px solid var(--c-border-strong);
}
.timeline__item--in_vigoare .timeline__marker { border-color: var(--c-deco-dot); background: var(--c-deco-dot); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.timeline__item--viitor .timeline__marker { border-color: var(--c-link); border-style: dashed; }
.timeline__item--trecut .timeline__marker { background: var(--c-border-strong); }
.timeline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-1); font-size: var(--fs-sm); }
.timeline__meta time { font-family: var(--font-display); font-weight: 600; color: var(--c-text); }
.timeline__title { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.timeline__text { color: var(--c-text-muted); margin-bottom: var(--sp-2); }
.timeline__link { margin: 0; }
.timeline__link a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }

/* NIS2: acte (acordeon nativ <details>) */
.toolbar { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.acts { display: grid; gap: var(--sp-3); }
.act {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.act[open] { border-color: var(--c-border-strong); }
.act:target { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.act__summary {
  display: grid; gap: var(--sp-2);
  padding: var(--sp-4) 3.25rem var(--sp-4) var(--sp-5);
  min-height: var(--tap);
  cursor: pointer;
  list-style: none;
  position: relative;
  border-radius: var(--r-lg);
}
.act__summary::-webkit-details-marker { display: none; }
.act__summary::after {
  content: ""; position: absolute; right: var(--sp-5); top: 50%;
  width: 0.65rem; height: 0.65rem;
  border-right: 2px solid var(--c-text); border-bottom: 2px solid var(--c-text);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
.act[open] > .act__summary::after { transform: translateY(-30%) rotate(-135deg); }
.act__summary:hover { background: var(--c-surface); }
.act__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.act__number { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); }
.act__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); line-height: 1.35; }
.act__body { padding: 0 var(--sp-5) var(--sp-5); border-top: 1px solid var(--c-border); padding-top: var(--sp-4); }
.act__full { color: var(--c-text-muted); font-style: italic; }
.act__subtitle { font-size: var(--fs-base); margin: var(--sp-4) 0 var(--sp-2); }
.act__points li::marker { color: var(--c-accent-text); }
.act__links { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.act__sources a { display: inline-flex; min-width: var(--tap); min-height: var(--tap); align-items: center; justify-content: center; }
.meta-list { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0; }
.meta-list div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 40em) { .meta-list div { grid-template-columns: 10rem minmax(0, 1fr); gap: var(--sp-3); } }
.meta-list dt { color: var(--c-text-muted); font-size: var(--fs-sm); }
.meta-list dd { margin: 0; }

/* ---------------------------------------------------------------- formulare */
.form { max-width: 44rem; }
.container--narrow .form { max-width: none; }
.form__legend-note { font-size: var(--fs-sm); color: var(--c-text-muted); }
.field { margin-bottom: var(--sp-5); }
.field__label, .question__text {
  display: block;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--c-text);
}
.field__optional { font-weight: 400; color: var(--c-text-muted); font-size: var(--fs-sm); }
.field__hint { font-size: var(--fs-sm); color: var(--c-text-muted); margin: calc(-1 * var(--sp-1)) 0 var(--sp-2); }
.field__error { color: var(--c-danger); font-size: var(--fs-sm); font-weight: 600; margin: var(--sp-2) 0 0; }
.field__error::before { content: "! "; }
.req { color: var(--c-danger); font-weight: 700; }
.input {
  display: block; width: 100%;
  min-height: var(--tap);
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  background: var(--c-bg);
  color: var(--c-text);
  font: inherit;
}
.input:hover { border-color: var(--c-text-muted); }
.input:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 1px; border-color: var(--c-focus); }
.input[aria-invalid="true"] { border-color: var(--c-danger); border-width: 2px; }
.input--area { min-height: 8rem; resize: vertical; }
.input--num { max-width: 12rem; }
.input-unit { display: flex; align-items: center; gap: var(--sp-2); }
.input-unit__suffix { color: var(--c-text-muted); font-weight: 600; }
.field--check { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-3); align-items: start; }
.field--check .field__hint, .field--check .field__error { grid-column: 2; margin-top: var(--sp-1); }
.field--check label { padding-top: 0.6rem; cursor: pointer; }
.check, .choice__input {
  width: 1.375rem; height: 1.375rem;
  margin: 0;
  accent-color: var(--c-btn-bg);
  flex: none;
}
.field--check .check { margin: 0.65rem 0 0; }
.form__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.form__privacy { margin-top: var(--sp-5); }
/* capcană anti-spam */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* chestionare */
.q-section {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
  background: var(--c-bg);
}
@media (min-width: 48em) { .q-section { padding: var(--sp-6); } }
.q-section__head { margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--c-border); }
.q-section__step { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-link); font-weight: 600; font-family: var(--font-display); margin-bottom: var(--sp-1); }
.q-section__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.q-section__desc, .q-section__max { color: var(--c-text-muted); font-size: var(--fs-sm); margin: 0; }
.question { padding-block: var(--sp-4); }
.question + .question { border-top: 1px dashed var(--c-border); }
.question__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.question__group > legend { padding: 0; float: left; width: 100%; }   /* float: legend urmează fluxul normal */
.question__group > legend + * { clear: both; }
.question__ref { font-size: var(--fs-xs); color: var(--c-text-muted); margin: var(--sp-2) 0 0; }
.question--error { border-left: 3px solid var(--c-danger); padding-left: var(--sp-3); }
.choices { display: grid; gap: var(--sp-2); clear: both; }
.choices--inline { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); max-width: 24rem; }
.choice {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: var(--tap);
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  background: var(--c-bg);
  cursor: pointer;
}
.choice:hover { border-color: var(--c-link); background: var(--c-surface); }
.choice:has(.choice__input:checked) { border-color: var(--c-link); background: var(--c-primary-soft); box-shadow: inset 0 0 0 1px var(--c-link); }
.choice:has(.choice__input:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.choice__input:focus-visible { outline: none; }
.choice__label { flex: 1; }
.choice__pts { font-size: var(--fs-xs); font-weight: 700; color: var(--c-accent-text); background: var(--c-accent-soft); border-radius: var(--r-pill); padding: 0 0.5rem; white-space: nowrap; }
.thresholds { margin-top: var(--sp-3); font-size: var(--fs-sm); }
.thresholds summary { cursor: pointer; color: var(--c-link); font-weight: 600; min-height: var(--tap); display: inline-flex; align-items: center; }
.thresholds__list { margin: var(--sp-1) 0 0; color: var(--c-text-muted); }
.thresholds__list li.is-active { color: var(--c-text); font-weight: 700; }
.source-box { font-size: var(--fs-sm); color: var(--c-text-muted); max-width: 46rem; }
.source-box p { margin-bottom: var(--sp-2); }

/* calculator: formular + panou de scor */
.calc-layout { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); }
.calc-layout__aside { order: -1; }
@media (min-width: 64em) {
  .calc-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--sp-6); align-items: start; }
  .calc-layout__aside { order: 0; position: sticky; top: var(--sp-5); }
  .calc-layout .form { max-width: none; }
}
.score-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.score-panel__title { font-size: var(--fs-md); margin-bottom: var(--sp-3); }
.score-panel__subtitle { font-size: var(--fs-base); margin: var(--sp-5) 0 var(--sp-2); }
.score-panel__nojs { font-size: var(--fs-sm); color: var(--c-text-muted); }
.score-panel__total { font-family: var(--font-display); margin-bottom: var(--sp-2); }
.score-panel__total output { font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--c-text); }
.score-panel__of { color: var(--c-text-muted); font-weight: 600; }
.score-panel__level { font-weight: 600; margin: var(--sp-3) 0; min-height: 1.6em; }
.score-panel__sections { list-style: none; padding: 0; margin: var(--sp-3) 0 0; font-size: var(--fs-sm); }
.score-panel__sections li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; border-top: 1px solid var(--c-border); margin: 0; }
.score-panel__sec { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.levels { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); }
.levels__item { display: flex; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm); margin: 0; }
.levels__item + .levels__item { margin-top: 2px; }
.levels__range { font-variant-numeric: tabular-nums; color: var(--c-text-muted); min-width: 4.5rem; }
.levels__item.is-active { background: var(--c-primary-soft); color: var(--c-link); font-weight: 700; }
.levels__item.is-active .levels__range { color: var(--c-link); }

/* bară de progres / scor */
.meter {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 0.75rem;
  border: 0; border-radius: var(--r-pill);
  background: var(--c-surface-2);
  overflow: hidden;
  color: var(--c-btn-bg);
}
.meter::-webkit-progress-bar { background: var(--c-surface-2); border-radius: var(--r-pill); }
.meter::-webkit-progress-value { background: linear-gradient(90deg, var(--c-btn-bg), var(--c-deco-dot)); border-radius: var(--r-pill); }
.meter::-moz-progress-bar { background: linear-gradient(90deg, var(--c-btn-bg), var(--c-deco-dot)); border-radius: var(--r-pill); }

/* rezultat */
.result { margin-bottom: var(--sp-6); border-top: 4px solid var(--c-btn-bg); }
.result:focus { outline: none; }
.result__title { font-size: var(--fs-h3); }
.result__verdict { border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4); font-weight: 600; }
.result__verdict p { margin: 0; }
.result__verdict--ok { background: var(--c-accent-soft); color: var(--c-accent-text); }
.result__verdict--ko { background: var(--c-danger-soft); color: var(--c-danger); }
.result__subtitle { font-size: var(--fs-base); }
.result__total { font-family: var(--font-display); color: var(--c-text-muted); font-weight: 600; margin-bottom: var(--sp-2); }
.result__num { font-size: 2.5rem; color: var(--c-text); font-weight: 700; }
.result__level { margin-top: var(--sp-3); }
.result__disclaimer { color: var(--c-text-muted); margin-top: var(--sp-4); }
.table { margin: var(--sp-4) 0; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--c-border); }
.table thead th { color: var(--c-text-muted); font-weight: 600; }
.table tbody th { font-weight: 500; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------------------------------------------------------- 404 */
.error-page__inner { text-align: center; max-width: 40rem; padding-block: var(--sp-7); }
.error-page__symbol { width: 7rem; height: 7rem; margin: 0 auto var(--sp-5); display: block; }
.error-page .lead { margin-inline: auto; }

/* ---------------------------------------------------------------- preferințe utilizator */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .chip, .choice, .card, .act { border: 1px solid CanvasText; }
  .timeline__marker { forced-color-adjust: none; }
}

/* ---------------------------------------------------------------- tipărire */
@media print {
  .site-header .site-nav, .header-tools, .nav-toggle, .skip-link, .cta-band, .toolbar, .form__actions, .hero__art { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
  .site-footer { background: none; color: #000000; border-top: 1px solid #000000; }
  .site-footer a, a { color: #000000; }
  .act { box-shadow: none; break-inside: avoid; }
  .act__body { display: block; }
  .section--surface, .hero, .page-head { background: none; }
}
