/* ==========================================================================
   divortlanotar.ro — foaie de stil
   Direcție: publicație juridică editorială. Fără framework; mobile-first.
   ========================================================================== */

/* ---------- Fonturi (găzduite local, subseturi latin + latin-ext pentru ș ț ă â î) ---------- */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/newsreader-latin.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: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/newsreader-latin-ext.woff2") format("woff2");
  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; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/newsreader-italic-latin.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: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/newsreader-italic-latin-ext.woff2") format("woff2");
  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; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/sourcesans3-latin.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: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/sourcesans3-latin-ext.woff2") format("woff2");
  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; }

/* Metrici ajustate pentru fallback (reduc saltul de layout la încărcarea fonturilor) */
@font-face { font-family: "Serif Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 96%; ascent-override: 92%; descent-override: 24%; }
@font-face { font-family: "Sans Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 92%; ascent-override: 102%; descent-override: 28%; }

/* ---------- Variabile ---------- */
:root {
  --ivory: #f8f6f2;
  --paper: #ffffff;
  --navy: #172331;
  --navy-2: #22344a;
  --bronze: #947451;
  --bronze-text: #765a3b;
  --bronze-tint: #f2ece3;
  --ink: #1d2833;
  --muted: #5b646c;
  --line: #e4ded4;
  --line-strong: #cbc2b3;
  --ok: #2d5a43;
  --ok-tint: #edf4ef;
  --warn: #874821;
  --warn-tint: #f8efe7;
  --focus: #2b5d93;

  --serif: "Newsreader", "Serif Fallback", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Sans Fallback", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.1875rem, 1.1rem + 0.35vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem);

  --wrap: 75rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
  --header-h: 4.25rem;
}

/* ---------- Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
body.has-bar { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 64rem) { body.has-bar { padding-bottom: 0; } }
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-color: var(--bronze); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--bronze-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--navy); line-height: 1.18; letter-spacing: -0.005em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 500; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 0.75rem; color: #fff; }
mark.ev { background: #ffe58a; color: #000; font-size: 0.75em; padding: 0 0.25em; }

/* ---------- Antet ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 242, 0.96);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
@supports (backdrop-filter: blur(6px)) { .site-header { background: rgba(248, 246, 242, 0.88); backdrop-filter: blur(6px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav-desktop a { display: block; padding: 0.5rem 0.7rem; font-size: 0.97rem; text-decoration: none; color: var(--ink); border-bottom: 2px solid transparent; }
.nav-desktop a:hover { color: var(--navy); border-bottom-color: var(--line-strong); }
.nav-desktop a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--bronze); }

.nav-mobile { position: static; }
.nav-mobile > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 2.75rem; padding: 0.4rem 0.85rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 0.95rem; color: var(--navy); background: var(--paper); user-select: none;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-icon { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-icon span { display: block; height: 1.5px; background: currentColor; transition: transform 0.15s ease, opacity 0.15s ease; }
.nav-mobile[open] .nav-icon span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-mobile[open] .nav-icon span:nth-child(2) { opacity: 0; }
.nav-mobile[open] .nav-icon span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.nav-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 12px 24px -16px rgba(23, 35, 49, 0.35);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  padding: 0.5rem var(--gutter) 1.25rem;
}
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.05rem; color: var(--ink); }
.nav-panel a[aria-current="page"] { color: var(--bronze-text); font-weight: 600; }
.nav-secondary { margin-top: 1rem !important; }
.nav-secondary a { font-size: 0.95rem; color: var(--muted); }
@media (min-width: 64rem) {
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
}
@media (max-width: 26.5rem) { .brand-sub { display: none; } }
@media (max-width: 22rem) { .nav-label { display: none; } }

/* ---------- Elemente comune ---------- */
.kicker { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-text); font-weight: 600; margin-bottom: 0.9rem; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); max-width: 46rem; }
.lead p:last-child { margin-bottom: 0; }
.page-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin-top: 1.4rem; font-size: 0.9rem; color: var(--muted); }
.page-meta a { color: var(--muted); }
.page-meta .verified { display: inline; color: var(--ok); }
.page-meta .verified svg { vertical-align: -0.1em; margin-right: 0.3rem; }

.breadcrumbs { padding-top: 1.25rem; font-size: 0.88rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
  min-height: 2.9rem; padding: 0.7rem 1.25rem; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; text-align: center;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-small { min-height: 2.4rem; padding: 0.45rem 0.9rem; font-size: 0.92rem; }
.btn-sub { font-weight: 400; opacity: 0.85; font-size: 0.92em; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.tag { display: inline-block; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.45rem; border-radius: 2px; vertical-align: 0.15em; margin-left: 0.25rem; white-space: nowrap; }
.tag--all { background: #eef1f4; color: #3c4a58; }
.tag--minori { background: var(--bronze-tint); color: var(--bronze-text); }
.tag--special { background: #f1f1ee; color: var(--muted); }

.chip { font: 500 0.9rem/1 var(--sans); padding: 0.6rem 0.9rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer; min-height: 2.5rem; }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Proză (conținut editorial) ---------- */
.prose { max-width: 44rem; }
.prose--narrow { max-width: 46rem; }
.prose > h2 { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.prose > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 1.8rem; font-size: var(--step-1); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--bronze); }
.prose blockquote { margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.25rem; border-left: 2px solid var(--bronze); font-family: var(--serif); font-size: var(--step-1); color: var(--navy); }
.ref { font-size: 0.86em; color: var(--muted); white-space: nowrap; }
.prose .ref { white-space: normal; }

.callout { margin: 1.6rem 0; padding: 1.1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--bronze); border-radius: 0 var(--radius) var(--radius) 0; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.callout--warn { border-left-color: var(--warn); background: var(--warn-tint); }
.callout--warn .callout-title { color: var(--warn); }
.callout--check { border-left-color: var(--ok); background: var(--ok-tint); }
.callout--check .callout-title { color: var(--ok); }
.callout ul { margin-bottom: 0.6rem; }

.example { margin: 1.6rem 0; padding: 1.1rem 1.25rem; background: var(--bronze-tint); border-radius: var(--radius); }
.example > :last-child { margin-bottom: 0; }
.example-label { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--bronze-text); margin-bottom: 0.45rem; }

.steps { list-style: none; counter-reset: step; padding-left: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.75rem; height: 1.75rem; border: 1px solid var(--bronze); border-radius: 50%; display: grid; place-items: center; font: 600 0.85rem/1 var(--sans); color: var(--bronze-text); }

.defs { display: grid; gap: 0.35rem 1.5rem; margin: 1.2rem 0; }
.defs dt { font-weight: 700; color: var(--navy); }
.defs dd { margin: 0 0 0.8rem; }
@media (min-width: 40rem) { .defs { grid-template-columns: 12rem 1fr; } .defs dd { margin: 0; } }

.table-wrap { margin: 1.6rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; background: var(--paper); min-width: 30rem; }
.data-table caption { text-align: left; font-family: var(--serif); font-size: var(--step-1); color: var(--navy); padding-bottom: 0.6rem; }
.data-table th, .data-table td { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-strong); font-weight: 600; }
.data-table tbody th { font-weight: 600; color: var(--navy); }
.table-note { font-size: 0.88rem; color: var(--muted); margin-top: 0.6rem; }

/* ---------- Articol ---------- */
.article-head { padding: 1.5rem 0 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.article-head h1 { max-width: 22ch; }
.article-head--legal h1 { max-width: none; }
.article-grid { display: grid; gap: 2rem; padding-bottom: 4rem; }
.article-aside { order: -1; }
@media (min-width: 64rem) {
  .article-grid { grid-template-columns: 15.5rem minmax(0, 1fr); gap: 4rem; }
  .article-aside { order: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; }
}
.toc { font-size: 0.94rem; border-top: 2px solid var(--navy); padding-top: 0.8rem; }
.toc-title { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: 0.6rem; padding: 0.5rem 0; text-decoration: none; color: var(--ink); line-height: 1.35; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--bronze-text); font-size: 0.8rem; padding-top: 0.15rem; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--bronze-text); }
@media (max-width: 63.99rem) {
  .toc { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--navy); padding: 0.9rem 1rem 0.4rem; }
  .toc ol { columns: 1; }
}

.summary { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--bronze); padding: 1.25rem 1.4rem 0.6rem; margin-bottom: 2.5rem; max-width: 44rem; }
.summary h2 { font-size: var(--step-1); font-family: var(--sans); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-text); margin-bottom: 0.7rem; }
.summary ul { margin: 0; padding-left: 1.2rem; }
.summary li { margin-bottom: 0.6rem; }
.summary li::marker { color: var(--bronze); }

/* ---------- FAQ ---------- */
.faq { margin-top: 3rem; max-width: 44rem; }
.faq > h2 { padding-top: 1.6rem; border-top: 1px solid var(--line); }
  .faq--plain { margin-top: 0; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item > summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: ""; flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.3rem; background:
  linear-gradient(var(--bronze), var(--bronze)) center / 100% 1.5px no-repeat,
  linear-gradient(var(--bronze), var(--bronze)) center / 1.5px 100% no-repeat; }
.faq-item[open] > summary::after { background: linear-gradient(var(--bronze), var(--bronze)) center / 100% 1.5px no-repeat; }
.faq-q { font-family: var(--serif); font-size: var(--step-1); font-weight: 500; margin: 0; color: var(--navy); }
.faq-a { padding: 0 2rem 1.2rem 0; }
.faq-a > :last-child { margin-bottom: 0; }

.faq-center { margin-bottom: 3rem; }
.faq-tools { position: sticky; top: var(--header-h); z-index: 5; background: var(--ivory); padding: 0.9rem 0 0.7rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.faq-tools input[type="search"] { width: 100%; max-width: 36rem; font: 1rem var(--sans); padding: 0.75rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.faq-filters { display: flex; gap: 0.45rem; overflow-x: auto; padding: 0.75rem 0 0.2rem; scrollbar-width: thin; }
.faq-filters .chip { flex: none; }
.faq-count { font-size: 0.88rem; color: var(--muted); margin: 0.4rem 0 0; min-height: 1.4em; }
.faq-group { margin-top: 2rem; }
.faq-group > h2 { border-top: 0; padding-top: 0; font-size: var(--step-2); }
.faq-empty { padding: 2rem 0; }

/* ---------- Surse și ghiduri conexe ---------- */
.sources { margin-top: 3rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); max-width: 44rem; font-size: 0.95rem; }
.sources h2 { font-size: var(--step-1); font-family: var(--sans); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.sources ol { padding-left: 1.2rem; }
.sources li { margin-bottom: 0.55rem; }
.related { margin-top: 3rem; }
.related h2 { font-size: var(--step-2); }

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.15s ease, transform 0.15s ease; }
.card:hover { border-color: var(--bronze); }
.card a { display: flex; flex-direction: column; gap: 0.45rem; height: 100%; padding: 1.2rem 1.25rem 1.3rem; text-decoration: none; color: var(--ink); }
.card-num { font: 600 0.8rem/1 var(--sans); color: var(--bronze-text); letter-spacing: 0.08em; }
.card-kicker { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-text); font-weight: 700; }
.card-title { font-family: var(--serif); font-size: 1.22rem; line-height: 1.25; color: var(--navy); }
.card-text { font-size: 0.95rem; color: var(--muted); line-height: 1.5; }
.card-grid--compact .card-title { font-size: 1.1rem; }

/* ---------- Hero (pagina principală) ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.9rem); max-width: 18ch; line-height: 1.08; }
.hero .lead { margin-top: 1.4rem; }
@media (min-width: 64rem) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: center; } }

.hero-panel { margin: 0; background: var(--paper); border: 1px solid var(--line-strong); border-top: 3px solid var(--navy); padding: 1.4rem 1.4rem 1.1rem; position: relative; }
.hero-panel::after { content: ""; position: absolute; inset: 0.45rem; border: 1px solid var(--line); pointer-events: none; }
.panel-head { display: flex; flex-direction: column; gap: 0.3rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); margin-bottom: 0.4rem; }
.panel-kicker { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-text); font-weight: 700; }
.panel-title { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); line-height: 1.25; }
.panel-steps { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.panel-steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.6rem; padding: 0.75rem 0; border-bottom: 1px dashed var(--line); }
.panel-steps li:last-child { border-bottom: 0; }
.panel-num { font: 500 1.05rem/1.3 var(--serif); color: var(--bronze-text); font-variant-numeric: tabular-nums; }
.panel-step { display: flex; flex-direction: column; font-size: 0.95rem; line-height: 1.45; }
.panel-step strong { color: var(--navy); font-weight: 600; font-size: 1rem; }
.panel-step span { color: var(--muted); }
.panel-steps li.is-term { background: var(--bronze-tint); margin: 0.2rem -0.6rem; padding: 0.8rem 0.6rem; border-bottom: 0; border-left: 2px solid var(--bronze); }
.panel-foot { position: relative; z-index: 1; font-size: 0.8rem; color: var(--muted); margin: 0.6rem 0 0; padding-top: 0.7rem; border-top: 1px solid var(--line); }

/* ---------- Secțiunile paginii principale ---------- */
.home-section { padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.home-section--paper { background: var(--paper); }
.home-section--navy { background: var(--navy); color: #e9edf2; }
.home-section--navy h2, .home-section--navy h3 { color: #fff; }
.home-section--navy a { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-num { font: 500 1rem/1 var(--serif); color: var(--bronze-text); margin-bottom: 0.7rem; letter-spacing: 0.04em; }
.home-section--navy .section-num { color: #cdb08a; }
.section-intro { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }
.home-section--navy .section-intro { color: #c4cdd8; }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; } .split--even { grid-template-columns: 1fr 1fr; } }
.home .prose { max-width: 46rem; }

.orient { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .orient { grid-template-columns: repeat(3, 1fr); } }
.orient a { display: flex; flex-direction: column; gap: 0.6rem; height: 100%; padding: 1.5rem 1.4rem; background: var(--paper); border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink); border-radius: var(--radius); transition: border-color 0.15s ease; }
.orient a:hover { border-color: var(--navy); }
.orient-num { font: 400 2rem/1 var(--serif); color: var(--bronze); }
.orient-title { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); line-height: 1.2; }
.orient-text { color: var(--muted); font-size: 0.97rem; }
.orient-go { margin-top: auto; font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.orient-go::after { content: " →"; color: var(--bronze); }

.compare { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col { background: var(--paper); border: 1px solid var(--line); padding: 1.4rem 1.4rem 0.8rem; border-radius: var(--radius); }
.compare-col h3 { font-size: var(--step-1); font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.compare-col--yes { border-top: 3px solid var(--ok); }
.compare-col--no { border-top: 3px solid var(--warn); }
.compare-col ul { padding-left: 1.2rem; }
.compare-col li { margin-bottom: 0.55rem; }

.key-figures { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.5rem 0 2rem; }
@media (min-width: 40rem) { .key-figures { grid-template-columns: repeat(3, 1fr); } }
.key-figure { background: var(--paper); padding: 1.2rem 1.25rem; }
.key-figure-value { display: block; font: 500 var(--step-3)/1.1 var(--serif); color: var(--navy); }
.key-figure-label { display: block; font-size: 0.92rem; color: var(--muted); margin-top: 0.35rem; }

.home-end { padding-block: 1rem 4rem; }

/* ---------- Cronologie ---------- */
.timeline { list-style: none; margin: 1.5rem 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 1.05rem; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--line-strong); }
.timeline-step { position: relative; display: grid; grid-template-columns: 2.2rem 1fr; gap: 1rem; padding-bottom: 1.4rem; }
.timeline-num { position: relative; z-index: 1; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: var(--ivory); border: 1px solid var(--navy); display: grid; place-items: center; font: 500 1rem/1 var(--serif); color: var(--navy); }
.home-section--paper .timeline-num { background: var(--paper); }
.timeline-content p { margin-bottom: 0.3rem; }
.timeline-title { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.timeline-ref { font-size: 0.82rem; color: var(--muted); }
.timeline-step--term .timeline-num { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.timeline-step--term .timeline-content { background: var(--bronze-tint); padding: 0.8rem 1rem; border-radius: var(--radius); margin-top: -0.4rem; }

/* ---------- Instrumente ---------- */
.tool { margin: 2rem 0; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); }
.tool-head { margin-bottom: 1.1rem; }
.tool-kicker { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--bronze-text); margin-bottom: 0.3rem; }
.tool-title { font-family: var(--serif); font-size: var(--step-2); color: var(--navy); margin-bottom: 0.4rem; line-height: 1.2; }
.tool-intro { color: var(--muted); margin: 0; }
.tool-note { font-size: 0.88rem; color: var(--muted); margin: 1rem 0 0; }

.choice { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.5rem; cursor: pointer; background: var(--paper); line-height: 1.45; }
.choice:hover { border-color: var(--line-strong); }
.choice input { flex: none; margin-top: 0.22rem; width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
.choice:has(input:checked) { border-color: var(--navy); background: #f5f7fa; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-family: var(--serif); font-size: var(--step-1); color: var(--navy); margin-bottom: 0.8rem; padding: 0; line-height: 1.3; }
select, input[type="date"], input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%; font: 1rem var(--sans); padding: 0.7rem 0.8rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); min-height: 2.9rem;
}
select:focus, input:focus, textarea:focus { border-color: var(--focus); }
label { display: block; }

.quiz-step { display: none; margin-bottom: 1.6rem; }
.quiz-step.is-current { display: block; }
.quiz-help { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.8rem; }
.quiz-sub { margin-top: 1rem; display: none; }
.quiz-sub.is-visible { display: block; }
.quiz-sub label { display: flex; }
.quiz-progress { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 0.8rem; min-height: 1.3em; }
.quiz-nav { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.quiz-error { color: var(--warn); font-size: 0.95rem; min-height: 1.3em; margin: 0.6rem 0 0; }
.quiz-result { border-top: 3px solid var(--navy); padding-top: 1.2rem; }
.quiz-result:focus { outline: none; }
.quiz-result-label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 0.3rem; }
.quiz-result-title { font-family: var(--serif); font-size: var(--step-2); color: var(--navy); line-height: 1.25; }
.quiz-result[data-tone="ok"] { border-top-color: var(--ok); }
.quiz-result[data-tone="check"] { border-top-color: var(--bronze); }
.quiz-result[data-tone="court"] { border-top-color: var(--warn); }
.quiz-result-body ul { padding-left: 1.2rem; }
.quiz-disclaimer { font-size: 0.88rem; color: var(--muted); border-left: 2px solid var(--line-strong); padding-left: 0.8rem; }

.segmented { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--navy); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.segmented label { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 1rem; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--navy); min-height: 2.75rem; }
.segmented label + label { border-left: 1px solid var(--navy); }
.segmented input { accent-color: var(--navy); }
.segmented label:has(input:checked) { background: var(--navy); color: #fff; }
.segmented label:has(input:checked) input { accent-color: #fff; }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checklist-item { border-bottom: 1px solid var(--line); padding: 0.8rem 0; }
.checklist-item label { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; font-weight: 600; color: var(--navy); line-height: 1.4; }
.checklist-item input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; accent-color: var(--ok); }
.checklist-item:has(input:checked) .checklist-label { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.checklist-detail { margin: 0.35rem 0 0 2rem; font-size: 0.93rem; color: var(--muted); line-height: 1.5; }
.checklist-item.is-hidden { display: none; }
.checklist-progress { font-size: 0.9rem; color: var(--ok); font-weight: 600; min-height: 1.4em; margin-bottom: 0.4rem; }
.checklist-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

.term-row { display: grid; gap: 0.4rem; max-width: 20rem; }
.term-row label { font-weight: 600; color: var(--navy); }
.term-out { margin: 1rem 0 0; font-size: 1.05rem; }
.term-out strong { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); font-weight: 500; }

/* ---------- CTA local (randat doar pentru vizitatori eligibili) ---------- */
.cta-local { margin: 2.2rem 0; padding: 1.4rem 1.4rem 1.5rem; background: var(--navy); color: #e8edf3; border-radius: var(--radius); }
.cta-kicker { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: #cdb08a; margin-bottom: 0.35rem; }
.cta-title { font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; color: #fff; margin-bottom: 0.6rem; }
.cta-text { font-size: 0.97rem; color: #c9d2dc; }
.cta-text strong { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.cta-local .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.cta-local .btn-primary:hover { background: var(--bronze-tint); }
.cta-local .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.cta-local .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cta-local--aside { margin: 1.5rem 0 0; padding: 1.1rem; }
.cta-local--aside .cta-title { font-size: 1.15rem; }
.cta-local--aside .cta-actions { flex-direction: column; }
.cta-local--aside .btn { width: 100%; font-size: 0.93rem; }
@media (max-width: 63.99rem) { .cta-local--aside { display: none; } }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1.4fr 1fr; gap: 1px; background: rgba(255,255,255,0.15); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -6px 18px -12px rgba(23, 35, 49, 0.5); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 3.6rem; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 0 0.75rem; text-align: center; }
.mobile-bar .mobile-bar-book { background: var(--navy-2); }
@media (min-width: 64rem) { .mobile-bar { display: none; } }

.geo-verify { margin: 2rem 0; padding: 1.2rem 1.25rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--paper); font-size: 0.95rem; }
.geo-verify-title { font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.geo-verify-status { margin: 0.7rem 0 0; color: var(--muted); min-height: 1.3em; }

.office { margin: 2.5rem 0; padding: clamp(1.1rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line-strong); border-top: 3px solid var(--navy); border-radius: var(--radius); }
.office .cta-kicker { color: var(--bronze-text); }
.office-head h2 { font-size: var(--step-2); margin-top: 0; padding-top: 0; border-top: 0; }
.office-grid { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .office-grid { grid-template-columns: 1fr 1fr; } }
.office-dl { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.5rem 1rem; margin: 0 0 1.4rem; font-size: 0.97rem; }
.office-dl dt { font-weight: 700; color: var(--navy); }
.office-dl dd { margin: 0; }
@media (max-width: 30rem) { .office-dl { grid-template-columns: 1fr; } .office-dl dd { margin-bottom: 0.6rem; } }
.office-fees { margin-top: 1.4rem; font-size: 0.95rem; }
.office-fees ul { padding-left: 1.2rem; }
.form { display: grid; gap: 1rem; }
.form-title { font-family: var(--serif); font-size: var(--step-1); color: var(--navy); margin: 0; }
.field label, .field legend { font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; font-family: var(--sans); font-size: 0.97rem; }
.field .choice { font-weight: 400; color: var(--ink); }
.field-error { display: block; color: var(--warn); font-size: 0.9rem; margin-top: 0.3rem; }
.field-help { display: block; font-size: 0.86rem; color: var(--muted); margin-top: 0.3rem; }
[aria-invalid="true"] { border-color: var(--warn) !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 0.9rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.notice p:last-child { margin-bottom: 0; }
.notice--ok { background: var(--ok-tint); border: 1px solid #b9d3c2; }
.notice--error { background: var(--warn-tint); border: 1px solid #e3c2aa; }

/* ---------- Hub ---------- */
.hub-pillar { margin-bottom: 2.5rem; }
.pillar-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.6rem 1.6rem 1.7rem; background: var(--navy); color: #dfe5ec; text-decoration: none; border-radius: var(--radius); max-width: 52rem; }
.pillar-card .card-title { color: #fff; font-size: var(--step-2); }
.pillar-card .card-kicker { color: #cdb08a; }
.pillar-card .card-text { color: #c4cdd8; }
.pillar-card:hover { color: #fff; background: var(--navy-2); }
.hub-section { margin-bottom: 3rem; }
.hub-section h2 { font-size: var(--step-2); padding-top: 1.4rem; border-top: 1px solid var(--line); }

.legal-body { padding-bottom: 4rem; }
.notfound { padding-block: 3rem 5rem; }

/* ---------- Subsol ---------- */
.site-footer { background: var(--navy); color: #c7d0da; font-size: 0.94rem; padding-top: clamp(2.5rem, 6vw, 4rem); }
.site-footer a { color: #e9edf2; text-decoration-color: rgba(205, 176, 138, 0.6); }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
@media (min-width: 64rem) { .footer-top { grid-template-columns: 19rem 1fr; gap: 4rem; } }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 0.6rem; }
.footer-note { font-size: 0.86rem; color: #9fb0c1; }
.footer-nav { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr)); }
.footer-heading { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: #cdb08a; margin-bottom: 0.7rem; }
.footer-col ul, .footer-sources ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-sources { padding: 1.8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-sources ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.footer-bottom { padding: 1.6rem 0 2.2rem; font-size: 0.86rem; color: #9fb0c1; }
.footer-bottom p { margin-bottom: 0.5rem; max-width: 60rem; }

/* ---------- Tipărire ---------- */
@media print {
  .site-header, .site-footer, .mobile-bar, .article-aside, .related, .cta-local, .office, .geo-verify, .checklist-actions, .segmented, .quiz-nav, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .tool { border: 0; padding: 0; }
  .checklist-item.is-hidden { display: none !important; }
  a { color: #000; text-decoration: none; }
  .article-grid { display: block; }
}
