/* ==========================================================================
   SuccesiuneLaNotar.ro — sistemul vizual „Patrimoniu”
   Arhivă juridică modernă: grile precise, linii arhitecturale, fișe indexate,
   titluri geometrice (Outfit) și text lizibil (Instrument Sans). Mobile-first.
   ========================================================================== */

/* ---------- 1. Fonturi locale (subseturi latin + latin-ext: ă â î ș ț) ---------- */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/outfit-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: "Outfit"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/outfit-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: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-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: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-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; }
/* Fallback cu metrici apropiate — limitează deplasarea textului la încărcarea fonturilor */
@font-face { font-family: "Outfit Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 100%; ascent-override: 100%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 97%; ascent-override: 96%; descent-override: 25%; line-gap-override: 0%; }

/* ---------- 2. Variabile ---------- */
:root {
  --petrol: #193c3a;
  --petrol-2: #24524f;
  --petrol-deep: #102927;
  --sage: #dde5dd;
  --sage-2: #c8d4c9;
  --sage-3: #eef2ee;
  --stone: #f1f3f0;
  --white: #ffffff;
  --copper: #b18c64;
  --copper-text: #84623e;
  --copper-light: #d2b28d;
  --copper-tint: #f5eee6;
  --ink: #202b29;
  --muted: #4b5a57;
  --line: #d4dbd4;
  --line-2: #b7c3b8;

  --display: "Outfit", "Outfit Fallback", system-ui, sans-serif;
  --text: "Instrument Sans", "Instrument Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs: 0.78rem;
  --fs-s: 0.9rem;
  --fs-0: 1.0625rem;
  --fs-1: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem);
  --fs-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  --fs-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem);
  --fs-4: clamp(2.15rem, 1.5rem + 3vw, 4rem);

  --wrap: 78rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r: 2px;
  --shadow: 0 1px 0 rgba(16, 41, 39, .06), 0 10px 30px -18px rgba(16, 41, 39, .35);
}

/* ---------- 3. Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font-family: var(--text); font-size: var(--fs-0); line-height: 1.65;
  font-feature-settings: "kern"; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; color: var(--petrol-deep); margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--copper-text); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
strong { font-weight: 650; }
small { font-size: 0.85em; }
abbr[title] { text-decoration: underline dotted; }
table { border-collapse: collapse; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.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; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--petrol); color: var(--white); padding: .6rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; color: var(--white); }
main:focus { outline: none; }
[hidden] { display: none !important; }

/* Etichete „de arhivă” */
.label {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper-text); font-variant-numeric: tabular-nums;
}
.label::before { content: ""; width: .55rem; height: .55rem; background: var(--copper); flex: none; }

/* ---------- 4. Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.25rem; border: 1px solid transparent; border-radius: var(--r);
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .005em; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--petrol { background: var(--petrol); color: var(--white); }
.btn--petrol:hover { background: var(--petrol-2); color: var(--white); }
.btn--copper { background: var(--copper); color: var(--petrol-deep); }
.btn--copper:hover { background: var(--copper-light); color: var(--petrol-deep); }
.btn--line { border-color: currentColor; color: var(--petrol); background: transparent; }
.btn--line:hover { background: var(--petrol); border-color: var(--petrol); color: var(--white); }

/* ---------- 5. Antet + navigație tip „file de dosar” ---------- */
.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead__in { display: flex; flex-direction: column; gap: .4rem; padding-top: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--petrol-deep); align-self: flex-start; }
.brand__mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand__word { font-family: var(--display); font-size: 1.22rem; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.brand__a { font-weight: 650; }
.brand__b { font-weight: 350; }
.brand__c { font-weight: 500; color: var(--copper-text); }
.brand:hover { color: var(--petrol-deep); }
.tabs { margin-inline: calc(var(--gutter) * -1); position: relative; }
.tabs::after { content: ""; position: absolute; right: 0; top: 0; bottom: 1px; width: 2rem; background: linear-gradient(to right, rgba(255,255,255,0), var(--white)); pointer-events: none; }
.tabs__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list li { scroll-snap-align: start; flex: none; }
.tabs__link {
  display: flex; align-items: baseline; gap: .4rem; padding: .7rem .7rem .75rem; min-height: 44px;
  font-family: var(--display); font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.tabs__code { font-size: .7rem; font-weight: 600; color: var(--copper-text); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tabs__link:hover { color: var(--petrol); border-bottom-color: var(--sage-2); }
.tabs__link[aria-current="page"] { color: var(--petrol-deep); border-bottom-color: var(--petrol); font-weight: 600; }

@media (min-width: 64em) {
  .masthead__in { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 0; min-height: 4.5rem; }
  .brand { align-self: center; }
  .tabs { margin: 0; }
  .tabs::after { display: none; }
  .tabs__list { padding: 0; overflow: visible; }
  .tabs__link { padding: 1.45rem .7rem 1.35rem; }
}

/* ---------- 6. Pagina principală — zona de deschidere asimetrică ---------- */
.hero { position: relative; background: var(--stone); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__grid { position: relative; display: grid; gap: 2.25rem; padding-top: clamp(2.25rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
/* Linii de grilă arhitecturale */
.hero__grid::before {
  content: ""; position: absolute; inset: 0 var(--gutter); pointer-events: none;
  background-image: linear-gradient(to right, rgba(25, 60, 58, .07) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  border-right: 1px solid rgba(25, 60, 58, .07);
}
.hero__text { position: relative; }
.hero__eyebrow { margin-bottom: 1.4rem; }
.hero__h1 { font-size: var(--fs-4); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; max-width: 15ch; }
.hero__h1 span { display: block; font-weight: 300; color: var(--petrol); margin-top: .35em; font-size: .62em; letter-spacing: -0.02em; line-height: 1.12; max-width: 22ch; }
.hero__lead { font-size: var(--fs-1); color: var(--muted); max-width: 38rem; margin: 1.5rem 0 1.75rem; line-height: 1.55; }
.hero__links { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__stamp { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 2rem 0 0; padding: 0; list-style: none; font-size: var(--fs-s); color: var(--muted); }
.hero__stamp li { display: flex; align-items: center; gap: .45rem; }
.hero__stamp li::before { content: ""; width: 1rem; height: 1px; background: var(--copper); }

/* „Dosarul” — trei fișe indexate, în cascadă */
.dossier { position: relative; display: grid; gap: .9rem; list-style: none; margin: 0; padding: 0; }
.fiche { position: relative; }
.fiche__link {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: start;
  padding: 1.15rem 1.25rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: 0 var(--r) var(--r) var(--r);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s;
}
.fiche__link::before { /* fila de index */
  content: attr(data-tab); position: absolute; left: -1px; top: -1.55rem; height: 1.55rem; padding: .28rem .75rem 0;
  background: var(--white); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0;
  font-family: var(--display); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-text);
}
.fiche__link:hover { transform: translateY(-2px); border-color: var(--line-2); color: var(--ink); }
.fiche__n { grid-row: span 3; font-family: var(--display); font-size: 2.6rem; font-weight: 300; line-height: .9; color: var(--petrol); font-variant-numeric: tabular-nums; }
.fiche__t { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--petrol-deep); line-height: 1.2; }
.fiche__d { font-size: var(--fs-s); color: var(--muted); line-height: 1.5; }
.fiche__k { font-family: var(--display); font-size: .95rem; font-weight: 600; color: var(--copper-text); }
.fiche--1 .fiche__link { border-top: 3px solid var(--petrol); }
.fiche--2 .fiche__link { border-top: 3px solid var(--copper); }
.fiche--3 .fiche__link { border-top: 3px solid var(--sage-2); }
.dossier .fiche + .fiche { margin-top: 1.4rem; }

@media (min-width: 60em) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 2rem; }
  .hero__grid::before { background-size: calc(100% / 12) 100%; }
  .hero__text { grid-column: 1 / span 7; padding-right: 1rem; }
  .dossier { grid-column: 8 / span 5; }
  .fiche--2 { margin-left: 1.75rem; }
  .fiche--3 { margin-left: 3.5rem; }
}

/* ---------- 7. Secțiuni ale paginii principale ---------- */
.band { padding-block: clamp(3rem, 7vw, 6rem); }
.band--white { background: var(--white); }
.band--sage { background: var(--sage-3); }
.band--petrol { background: var(--petrol); color: var(--sage); }
.band--petrol h2, .band--petrol h3 { color: var(--white); }
.band--petrol a { color: var(--copper-light); }
.band--petrol a:hover { color: var(--white); }
.band--petrol .label { color: var(--copper-light); }
.band--line { border-top: 1px solid var(--line); }

.sect-head { display: grid; gap: .9rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); max-width: 50rem; }
.sect-head h2 { font-size: var(--fs-3); }
.sect-head p { font-size: var(--fs-1); color: var(--muted); margin: 0; line-height: 1.55; }
.band--petrol .sect-head p { color: var(--sage); }

/* Bloc „răspuns direct” — fișă cu colț tăiat */
.answer {
  position: relative; background: var(--white); border: 1px solid var(--line); padding: 1.4rem 1.4rem 1.3rem;
  clip-path: polygon(0 0, calc(100% - 1.4rem) 0, 100% 1.4rem, 100% 100%, 0 100%);
  margin: 0 0 2rem;
}
.answer::after { content: ""; position: absolute; top: 0; right: 0; width: 1.4rem; height: 1.4rem; background: linear-gradient(225deg, var(--stone) 50%, var(--sage-2) 50%); }
.answer__label { display: block; margin-bottom: .6rem; }
.answer p { font-size: var(--fs-1); line-height: 1.55; color: var(--ink); }
.answer p:last-child { margin-bottom: 0; }
.answer--lead { border-left: 4px solid var(--petrol); }
.band--white .answer::after, .doc .answer::after { background: linear-gradient(225deg, var(--white) 50%, var(--sage-2) 50%); }
.doc .answer { background: var(--sage-3); border-color: var(--sage-2); }

/* Definiție (pagina principală) */
.define { display: grid; gap: 2rem; }
.define__aside { display: grid; gap: 1rem; align-content: start; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-s); }
.facts b { font-family: var(--display); font-weight: 600; color: var(--petrol); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding-top: .1rem; }
@media (min-width: 60em) { .define { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: start; } }

/* Costuri — bandă închisă */
.cost { display: grid; gap: 2.5rem; }
.cost__text p { color: var(--sage); }
.cost__text .sect-head { margin-bottom: 1.5rem; }
.tiers { width: 100%; margin: 1.25rem 0 1.5rem; font-size: var(--fs-s); }
.tiers caption { text-align: left; font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-light); padding-bottom: .6rem; }
.tiers th, .tiers td { text-align: left; padding: .7rem .5rem .7rem 0; border-bottom: 1px solid rgba(221, 229, 221, .22); vertical-align: top; }
.tiers th { font-weight: 600; color: var(--white); padding-right: 1rem; min-width: 7.5rem; }
@media (min-width: 30em) { .tiers th { white-space: nowrap; } }
.calc > *, .calc, .doc > *, .cost > *, .define > *, .closing > *, .hero__grid > *, .heirs > * { min-width: 0; }
.tiers td { color: var(--sage); }
.cost__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
@media (min-width: 64em) { .cost { grid-template-columns: 5fr 6fr; gap: 4rem; align-items: start; } }

/* Procedura — registru orizontal */
.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; border-left: 1px solid var(--line-2); }
.ledger__item { position: relative; padding: 0 0 1.75rem 1.5rem; }
.ledger__item::before { content: ""; position: absolute; left: -5px; top: .55rem; width: 9px; height: 9px; background: var(--white); border: 2px solid var(--petrol); }
.ledger__n { font-family: var(--display); font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: var(--copper-text); text-transform: uppercase; }
.ledger__t { font-size: 1.2rem; margin: .2rem 0 .45rem; }
.ledger__d { font-size: var(--fs-s); color: var(--muted); margin: 0; }
.ledger-note { font-size: var(--fs-s); color: var(--muted); margin-top: 1rem; max-width: 50rem; }
@media (min-width: 64em) {
  .ledger { grid-template-columns: repeat(6, 1fr); border-left: 0; border-top: 1px solid var(--line-2); }
  .ledger__item { padding: 1.6rem 1.25rem 0 0; }
  .ledger__item::before { left: 0; top: -5px; }
  .ledger__item:nth-child(even) { padding-top: 3.2rem; }
  .ledger__item:nth-child(even)::after { content: ""; position: absolute; left: 4px; top: 0; height: 2.6rem; border-left: 1px dashed var(--line-2); }
  .ledger__item:nth-child(even)::before { top: 2.6rem; }
}

/* Ce intră în moștenire — mozaic */
.estate { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.estate__item { background: var(--white); padding: 1.4rem 1.3rem; display: grid; gap: .5rem; align-content: start; }
.estate__icon { width: 2.4rem; height: 2.4rem; color: var(--petrol); }
.estate__t { font-size: 1.12rem; }
.estate__d { font-size: var(--fs-s); color: var(--muted); margin: 0; }
.estate__item--debt { background: var(--copper-tint); }
.estate__item--debt .estate__icon { color: var(--copper-text); }
@media (min-width: 40em) { .estate { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) {
  .estate { grid-template-columns: repeat(4, 1fr); }
  .estate__item--wide { grid-column: span 2; }
}

/* Infografic — transmiterea moștenirii */
.flow { background: var(--white); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2rem); }
.flow svg { display: block; width: 100%; height: auto; }
.flow__steps { display: grid; gap: .75rem; list-style: none; margin: 1.25rem 0 0; padding: 0; counter-reset: fl; }
.flow__steps li { counter-increment: fl; display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; font-size: var(--fs-s); color: var(--muted); }
.flow__steps li::before { content: counter(fl, decimal-leading-zero); font-family: var(--display); font-weight: 600; color: var(--copper-text); }
.flow__steps strong { color: var(--ink); }
.flow--wide { display: none; }
@media (min-width: 52em) { .flow--wide { display: block; } .flow--tall { display: none; } .flow__steps { grid-template-columns: repeat(5, 1fr); } .flow__steps li { grid-template-columns: 1fr; gap: .2rem; } }

/* Diagrama claselor de moștenitori */
.heirs { display: grid; gap: 1rem; }
.heirs__spouse { background: var(--petrol); color: var(--sage); padding: 1.25rem; display: grid; gap: .5rem; align-content: start; }
.heirs__spouse h3 { color: var(--white); font-size: 1.2rem; }
.heirs__spouse p { font-size: var(--fs-s); margin: 0; }
.heirs__classes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); background: var(--white); }
.heirs__class { display: grid; grid-template-columns: 3rem 1fr; gap: .25rem 1rem; padding: 1.1rem 1.1rem 1.1rem 0; border-bottom: 1px solid var(--line); position: relative; }
.heirs__class:last-child { border-bottom: 0; }
.heirs__roman { grid-row: span 3; font-family: var(--display); font-weight: 300; font-size: 1.9rem; line-height: 1; color: var(--copper-text); text-align: center; padding-top: .1rem; }
.heirs__t { font-size: 1.08rem; }
.heirs__d { font-size: var(--fs-s); color: var(--muted); margin: 0; }
.heirs__share { justify-self: start; display: inline-flex; align-items: center; gap: .45rem; margin-top: .3rem; padding: .2rem .6rem; background: var(--sage); color: var(--petrol-deep); font-family: var(--display); font-weight: 600; font-size: .85rem; border-radius: var(--r); }
.heirs__share b { font-size: 1rem; }
.heirs__rule { font-size: var(--fs-s); color: var(--muted); border-left: 3px solid var(--copper); padding-left: 1rem; margin: 1rem 0 0; }
@media (min-width: 52em) {
  .heirs { grid-template-columns: 15rem 1fr; gap: 0; }
  .heirs__spouse { padding: 1.75rem 1.5rem; }
  .heirs__class { grid-template-columns: 4rem 1fr auto; align-items: center; padding-right: 1.25rem; }
  .heirs__roman { grid-row: span 2; }
  .heirs__share { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
}

/* Indexul ghidurilor — registru */
.register { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--petrol); }
.register__row { display: grid; grid-template-columns: 3rem 1fr; gap: .2rem 1rem; padding: 1.15rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color .15s; }
.register__row:hover { background: var(--sage-3); color: var(--ink); }
.register__code { grid-row: span 2; font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--copper-text); letter-spacing: .08em; padding-top: .25rem; }
.register__t { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--petrol-deep); }
.register__d { font-size: var(--fs-s); color: var(--muted); }
@media (min-width: 52em) {
  .register__row { grid-template-columns: 4rem minmax(0, 22rem) 1fr 1.5rem; align-items: baseline; }
  .register__code { grid-row: auto; }
  .register__row::after { content: "→"; font-family: var(--display); color: var(--petrol); }
}

.closing { display: grid; gap: 2rem; }
.closing__text p { color: var(--muted); }
@media (min-width: 60em) { .closing { grid-template-columns: 4fr 7fr; gap: 4rem; } }

/* ---------- 8. Ghiduri — antet și grilă ---------- */
.ghead { background: var(--stone); border-bottom: 1px solid var(--line); position: relative; }
.ghead__in { position: relative; padding-top: 1.1rem; padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.ghead__in::before {
  content: ""; position: absolute; inset: 0 var(--gutter); pointer-events: none;
  background-image: linear-gradient(to right, rgba(25, 60, 58, .065) 1px, transparent 1px); background-size: calc(100% / 6) 100%;
}
.crumbs { position: relative; font-size: var(--fs-s); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }
.ghead__grid { position: relative; display: grid; gap: 1rem; }
.ghead__code { display: flex; align-items: baseline; gap: .6rem; margin: 0; font-family: var(--display); }
.ghead__code span { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--copper-text); }
.ghead__code b { font-size: 1.6rem; font-weight: 300; color: var(--petrol); }
.ghead__h1 { font-size: var(--fs-4); letter-spacing: -0.03em; line-height: 1.04; max-width: 20ch; }
.ghead__lead { font-size: var(--fs-1); color: var(--muted); max-width: 46rem; margin: 1.25rem 0 1.5rem; line-height: 1.55; }
.ghead__meta { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0; font-size: var(--fs-s); }
.ghead__meta div { display: grid; gap: .1rem; border-left: 1px solid var(--line-2); padding-left: .75rem; }
.ghead__meta dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.ghead__meta dd { margin: 0; font-weight: 600; }
@media (min-width: 60em) {
  .ghead__grid { grid-template-columns: calc(100% / 6) 1fr; gap: 0; }
  .ghead__code { flex-direction: column; gap: .2rem; padding-top: .6rem; }
  .ghead__code b { font-size: 4.2rem; line-height: .9; }
}

.doc { display: grid; gap: 2rem; padding-top: clamp(1.75rem, 4vw, 3rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.doc__body { min-width: 0; }
.doc__rail { display: grid; gap: 1.5rem; align-content: start; }
.toc { background: var(--white); border: 1px solid var(--line); padding: 1rem 1.1rem; }
.toc__h { font-family: var(--display); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--copper-text); margin: 0 0 .5rem; }
.toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: var(--fs-s); }
.toc__list a { display: grid; grid-template-columns: 1.8rem 1fr; padding: .42rem 0; text-decoration: none; color: var(--ink); border-top: 1px solid var(--sage-3); line-height: 1.35; }
.toc__list li:first-child a { border-top: 0; }
.toc__list a span { font-family: var(--display); font-weight: 600; font-size: .75rem; color: var(--copper-text); padding-top: .12rem; }
.toc__list a:hover { color: var(--petrol); }
.doc__rail .office--aside { display: none; }
@media (min-width: 64em) {
  .doc { grid-template-columns: minmax(0, 1fr) 19rem; gap: 4rem; }
  .doc__rail { grid-column: 2; grid-row: 1; position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; scrollbar-width: thin; }
  .doc__body { grid-column: 1; grid-row: 1; }
  .doc__rail .office--aside { display: grid; }
}
@media (min-width: 80em) { .doc { grid-template-columns: minmax(0, 46rem) 19rem; justify-content: space-between; } }

/* ---------- 9. Tipografia conținutului ---------- */
.prose { counter-reset: h2; }
.prose > section { scroll-margin-top: 1.5rem; }
.prose h2 { font-size: var(--fs-2); margin: 3rem 0 1rem; padding-top: 1.1rem; border-top: 1px solid var(--line-2); position: relative; counter-increment: h2; }
.prose h2::before { content: counter(h2, decimal-leading-zero); display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; color: var(--copper-text); margin-bottom: .45rem; }
.prose > section:first-child h2, .prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.22rem; margin: 2rem 0 .6rem; }
.prose h4 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--copper-text); }
.prose .sources h2::before, .prose .sources__h::before { content: none; }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--sage-2); color: var(--muted); }
.prose blockquote p:last-child { margin: 0; }
.prose .legal-quote { font-size: var(--fs-s); }

/* Tabele */
.tbl-wrap { overflow-x: auto; margin: 1.25rem 0 1.75rem; border: 1px solid var(--line); background: var(--white); -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; font-size: var(--fs-s); min-width: 32rem; }
.tbl caption { text-align: left; padding: .9rem 1rem .6rem; font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--petrol-deep); caption-side: top; }
.tbl th, .tbl td { padding: .7rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.tbl thead th { background: var(--sage-3); font-family: var(--display); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--petrol); border-top: 1px solid var(--line); }
.tbl tbody th { font-weight: 600; color: var(--ink); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot th, .tbl tfoot td { background: var(--sage-3); font-weight: 700; color: var(--petrol-deep); }
.tbl--narrow { min-width: 0; }

/* Note, avertismente, exemple */
.note, .warn { padding: 1.1rem 1.2rem; margin: 1.5rem 0; font-size: var(--fs-s); }
.note { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--sage-2); }
.warn { background: var(--copper-tint); border-left: 4px solid var(--copper); }
.note p:last-child, .warn p:last-child { margin-bottom: 0; }
.note__t, .warn__t { display: block; font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--petrol-deep); margin-bottom: .3rem; }
.example { margin: 1.5rem 0 2rem; background: var(--white); border: 1px solid var(--line); }
.example__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--sage-3); }
.example__head h3, .example__head h4 { margin: 0; font-size: 1.05rem; }
.example__tag { font-family: var(--display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-text); white-space: nowrap; }
.example__body { padding: 1rem 1.1rem; font-size: var(--fs-s); }
.example__body p:last-child { margin-bottom: 0; }
.example .tbl { min-width: 0; }
.example .tbl th, .example .tbl td { padding-inline: 0; }
.example .tbl td:last-child { padding-left: 1rem; }

.keyfacts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.5rem 0 2rem; list-style: none; padding: 0; }
.keyfacts li { background: var(--white); padding: 1rem 1.1rem; margin: 0; }
.keyfacts b { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--petrol); line-height: 1.2; }
.keyfacts span { font-size: var(--fs-s); color: var(--muted); }
@media (min-width: 40em) { .keyfacts { grid-template-columns: repeat(3, 1fr); } }

.compare { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
.compare__col { background: var(--white); border: 1px solid var(--line); padding: 1.2rem; }
.compare__col h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.compare__col--a { border-top: 4px solid var(--petrol); }
.compare__col--b { border-top: 4px solid var(--copper); }
.compare__col ul { margin-bottom: 0; font-size: var(--fs-s); }
@media (min-width: 44em) { .compare { grid-template-columns: 1fr 1fr; } }

.steps { list-style: none; padding: 0; margin: 1.5rem 0 2rem; counter-reset: st; }
.steps > li { counter-increment: st; position: relative; padding: 0 0 1.5rem 3.25rem; margin: 0; border-left: 1px solid var(--line-2); margin-left: 1rem; }
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before { content: counter(st, decimal-leading-zero); position: absolute; left: -1rem; top: -.1rem; width: 2rem; height: 2rem; display: grid; place-items: center; background: var(--petrol); color: var(--white); font-family: var(--display); font-weight: 600; font-size: .8rem; }
.steps h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.steps p { margin-bottom: .6em; }

.timeline-bar { display: grid; gap: .5rem; margin: 1.5rem 0 2rem; }
.timeline-bar__row { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; align-items: center; font-size: var(--fs-s); }
.timeline-bar__track { position: relative; height: 2.2rem; background: var(--white); border: 1px solid var(--line); }
.timeline-bar__fill { position: absolute; top: 0; bottom: 0; left: 0; display: flex; align-items: center; padding: 0 .6rem; font-family: var(--display); font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; }
.timeline-bar__fill--y1 { width: 50%; background: var(--sage); color: var(--petrol-deep); }
.timeline-bar__fill--y2 { width: 100%; background: linear-gradient(to right, var(--sage-3) 0, var(--sage-3) 100%); color: var(--petrol-deep); }
.timeline-bar__mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--copper); }
.timeline-bar__mark--1 { left: 50%; }
.timeline-bar__mark--2 { right: 0; }

.review-mark { background: #fff2b3; color: #5b4300; padding: 0 .3rem; font-size: .85em; }

/* Surse și semnătură editorială */
.sources { margin-top: 3.5rem; padding: 1.4rem 1.3rem; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--petrol); }
.prose .sources__h, .sources__h { font-size: 1.15rem; margin: 0 0 .9rem; padding: 0; border: 0; }
.sources__list { font-size: var(--fs-s); padding-left: 1.2rem; }
.sources__list li { margin-bottom: .55rem; }
.sources__date { color: var(--muted); white-space: nowrap; }
.byline { border-top: 1px solid var(--line); padding-top: .9rem; margin-top: 1rem; font-size: var(--fs-s); color: var(--muted); }
.byline p:last-child { margin: 0; }

/* Ghiduri conexe */
.next { padding-bottom: clamp(3rem, 6vw, 5rem); }
.next__h { font-size: var(--fs-2); margin-bottom: 1.25rem; }
.next__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.next__card { display: grid; gap: .4rem; height: 100%; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.next__card:hover { border-color: var(--petrol); color: var(--ink); }
.next__code { font-family: var(--display); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .14em; color: var(--copper-text); }
.next__title { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--petrol-deep); line-height: 1.25; }
.next__desc { font-size: var(--fs-s); color: var(--muted); }
@media (min-width: 52em) { .next__list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 10. Întrebări frecvente (details/summary) ---------- */
.faq { border-top: 1px solid var(--petrol); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: grid; grid-template-columns: 2.4rem 1fr 1.5rem; gap: .75rem; align-items: start; padding: 1.1rem .1rem; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; color: var(--petrol-deep); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover .faq__text { color: var(--petrol); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.faq__n { font-size: .78rem; letter-spacing: .1em; color: var(--copper-text); padding-top: .25rem; }
.faq__icon { position: relative; width: 1.1rem; height: 1.1rem; margin-top: .2rem; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--petrol); transition: transform .2s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding: 0 0 1.25rem 3.15rem; color: var(--ink); }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a ul { padding-left: 1.2rem; }
@media (max-width: 30em) { .faq__a { padding-left: .1rem; } .faq__q { grid-template-columns: 2rem 1fr 1.25rem; } }

/* ---------- 11. Formulare, calculator, listă de verificare ---------- */
.calc { display: grid; gap: 0; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc__form { padding: 1.25rem; display: grid; gap: 1.25rem; }
.calc__group { border: 0; margin: 0; padding: 0; display: grid; gap: .9rem; min-width: 0; }
.calc__legend { display: flex; align-items: center; gap: .6rem; padding: 0; margin-bottom: .2rem; font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--petrol-deep); }
.calc__legend span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; background: var(--petrol); color: var(--white); font-size: .75rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.field__hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.field__help { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.45; }
.field input[type="text"], .field input[type="number"], .field input[type="date"] {
  width: 100%; min-height: 3rem; padding: .6rem .8rem; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--stone); border: 1px solid var(--line-2); border-radius: var(--r); font-variant-numeric: tabular-nums;
}
.field input:focus { outline: 3px solid var(--copper); outline-offset: 0; border-color: var(--petrol); background: var(--white); }
.field input[aria-invalid="true"] { border-color: #a4402a; background: #fbefec; }
.field--short input { max-width: 14rem; }
.choice { display: grid; gap: .5rem; }
.choice__opt, .check { display: flex; gap: .65rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: .95rem; line-height: 1.4; background: var(--white); }
.choice__opt:has(input:checked) { border-color: var(--petrol); background: var(--sage-3); }
.choice__opt input, .check input { width: 1.15rem; height: 1.15rem; margin: .1rem 0 0; accent-color: var(--petrol); flex: none; }
.check small { color: var(--muted); }
.calc__out { background: var(--petrol-deep); color: var(--sage); padding: 1.25rem; display: grid; gap: .9rem; align-content: start; }
.calc__out-h { font-family: var(--display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-light); margin: 0; }
.calc__table { width: 100%; font-size: .95rem; }
.calc__table th, .calc__table td { padding: .55rem 0; text-align: left; font-weight: 400; border-bottom: 1px solid rgba(221, 229, 221, .18); vertical-align: top; }
.calc__table td:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; font-variant-numeric: tabular-nums; color: var(--white); }

.calc__table td[colspan] { white-space: normal; text-align: left; padding-left: 0; color: var(--sage); }
.calc__table tr.is-zero td:last-child { color: var(--sage); }
.calc__total th, .calc__total td { border-bottom: 0; padding-top: .9rem; font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--white); }
.calc__total td { font-size: 1.5rem; color: var(--copper-light) !important; }
.calc__notes { margin: 0; padding-left: 1.1rem; font-size: .82rem; line-height: 1.5; color: var(--sage); }
.calc__notes li { margin-bottom: .35rem; }
.calc__more { margin: 0; font-weight: 600; }
.calc__out a { color: var(--copper-light); }
.calc__noscript { font-size: .9rem; }
@media (min-width: 48em) { .calc:not(.calc--compact) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } .calc__form { padding: 1.5rem; } .calc__out { padding: 1.5rem; } }
@media (min-width: 48em) { .calc--compact { grid-template-columns: 1fr; } }

/* Lista de verificare a actelor */
.checklist { background: var(--white); border: 1px solid var(--line); margin: 1.5rem 0 2rem; }
.checklist__bar { display: grid; gap: .75rem; padding: 1.1rem 1.1rem 1rem; border-bottom: 1px solid var(--line); background: var(--sage-3); }
.checklist__bar legend { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--petrol-deep); padding: 0; margin-bottom: .5rem; }
.checklist__bar fieldset { border: 0; padding: 0; margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: .45rem; }
.seg label { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); cursor: pointer; font-size: .92rem; font-weight: 500; }
.seg input { accent-color: var(--petrol); width: 1.05rem; height: 1.05rem; margin: 0; }
.seg label:has(input:checked) { background: var(--petrol); color: var(--white); border-color: var(--petrol); }
.checklist__progress { font-size: .88rem; color: var(--muted); margin: 0; }
.checklist__group { padding: 1rem 1.1rem .4rem; border-bottom: 1px solid var(--line); }
.checklist__group:last-of-type { border-bottom: 0; }
.checklist__group h3 { font-size: 1.05rem; margin: 0 0 .6rem; display: flex; align-items: baseline; gap: .6rem; }
.checklist__group h3 span { font-size: .72rem; letter-spacing: .12em; color: var(--copper-text); font-weight: 600; }
.checklist__items { list-style: none; margin: 0; padding: 0; }
.checklist__items li { margin: 0; border-top: 1px solid var(--sage-3); }
.checklist__items li:first-child { border-top: 0; }
.checklist__items label { display: grid; grid-template-columns: 1.4rem 1fr; gap: .6rem; padding: .6rem 0; cursor: pointer; font-size: .95rem; line-height: 1.45; }
.checklist__items input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--petrol); }
.checklist__items small { display: block; color: var(--muted); font-size: .84rem; }
.checklist__items li:has(input:checked) label > span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.checklist__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; padding: .9rem 1.1rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.checklist__foot p { margin: 0; max-width: 36rem; }
.js .checklist li.is-off, .js .checklist__group.is-off { display: none; }

/* Simulatorul de moștenitori */
.sim { background: var(--white); border: 1px solid var(--line); margin: 1.5rem 0 2rem; display: grid; }
.sim__form { padding: 1.2rem; display: grid; gap: 1rem; border-bottom: 1px solid var(--line); }
.sim__form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; min-width: 0; }
.sim__form legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .3rem; }
.sim__row { display: flex; flex-wrap: wrap; gap: .45rem; }
.sim__num { display: flex; align-items: center; gap: .6rem; }
.sim__num input { width: 5rem; min-height: 2.75rem; padding: .4rem .6rem; font: inherit; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--stone); }
.sim__out { padding: 1.2rem; background: var(--sage-3); }
.sim__class { font-family: var(--display); font-weight: 600; color: var(--petrol-deep); font-size: 1.1rem; margin: 0 0 .75rem; }
.sim__bars { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.sim__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .75rem; font-size: .92rem; }
.sim__bar-track { grid-column: 1 / -1; height: .6rem; background: var(--white); border: 1px solid var(--line); position: relative; }
.sim__bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--petrol); }
.sim__bar--spouse .sim__bar-fill { background: var(--copper); }
.sim__bar b { font-family: var(--display); font-variant-numeric: tabular-nums; }
.sim__caveats { font-size: .84rem; color: var(--muted); margin: 0; padding-left: 1.1rem; }
.sim__noscript { padding: 1.2rem; font-size: .9rem; }
@media (min-width: 56em) { .sim { grid-template-columns: 1fr 1fr; } .sim__form { border-bottom: 0; border-right: 1px solid var(--line); } }

/* ---------- 12. Modulul de programare (doar vizitatori eligibili) ---------- */
.office { display: grid; gap: .75rem; padding: 1.3rem; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--copper); }
.office__eyebrow { margin: 0; font-family: var(--display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-text); }
.office__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.25; color: var(--petrol-deep); }
.office__text { margin: 0; font-size: var(--fs-s); color: var(--ink); }
.office__actions { display: grid; gap: .5rem; }
.office__actions .btn { width: 100%; font-size: .95rem; }
.office__meta { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.office__name { color: var(--ink); font-weight: 600; }
.office__note { margin: 0; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .7rem; line-height: 1.45; }
.office--inline { margin: 2.5rem 0; background: var(--petrol); border: 0; border-left: 4px solid var(--copper); color: var(--sage); padding: clamp(1.3rem, 3vw, 2rem); }
.office--inline .office__title { color: var(--white); font-size: var(--fs-2); border: 0; padding: 0; margin: 0; }
.prose .office--inline h2::before { content: none; }
.office--inline .office__text { color: var(--sage); font-size: 1rem; }
.office--inline .office__eyebrow { color: var(--copper-light); }
.office--inline .office__meta { color: var(--sage); }
.office--inline .office__meta a { color: var(--copper-light); }
.office--inline .office__name { color: var(--white); }
.office--inline .office__note { color: var(--sage); border-top-color: rgba(221, 229, 221, .2); }
.office--inline .btn--line { color: var(--white); }
.office--inline .btn--line:hover { background: var(--white); color: var(--petrol); border-color: var(--white); }
@media (min-width: 40em) { .office--inline .office__actions { grid-template-columns: auto auto; justify-content: start; } .office--inline .office__actions .btn { width: auto; } }

.officebar {
  position: fixed; left: .5rem; right: .5rem; bottom: .5rem; z-index: 40;
  display: flex; align-items: stretch; background: var(--petrol-deep); color: var(--white);
  border-radius: 4px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); padding-bottom: env(safe-area-inset-bottom);
}
.officebar__call { flex: 1; display: grid; gap: .05rem; padding: .6rem .9rem; text-decoration: none; color: var(--white); min-height: 3.25rem; }
.officebar__label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-light); font-family: var(--display); font-weight: 600; }
.officebar__phone { font-family: var(--display); font-weight: 600; font-size: .98rem; }
.officebar__call:hover { color: var(--white); background: var(--petrol); }
.officebar__close { flex: none; width: 3rem; border: 0; border-left: 1px solid rgba(221, 229, 221, .2); background: transparent; color: var(--sage); cursor: pointer; }
.officebar__close:hover { color: var(--white); }
body.has-officebar { padding-bottom: 4.75rem; }
@media (min-width: 64em) { .officebar { display: none; } body.has-officebar { padding-bottom: 0; } }

/* Consimțământ (doar dacă GA4 este activ) */
.consent { position: fixed; z-index: 45; left: 1rem; right: 1rem; bottom: 1rem; max-width: 30rem; background: var(--white); border: 1px solid var(--line-2); box-shadow: var(--shadow); padding: 1.1rem; font-size: .9rem; }
.consent__t { font-family: var(--display); font-weight: 600; margin: 0 0 .3rem; }
.consent__a { display: flex; flex-wrap: wrap; gap: .5rem; }
.has-officebar .consent { bottom: 5.25rem; }

/* ---------- 13. Subsol ---------- */
.foot { background: var(--petrol-deep); color: var(--sage); padding-top: clamp(2.5rem, 6vw, 4rem); font-size: var(--fs-s); }
.foot a { color: var(--sage); }
.foot a:hover { color: var(--copper-light); }
.foot__grid { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(221, 229, 221, .15); }
.foot__name { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--white); margin-bottom: .5rem; }
.foot__name span { color: var(--copper-light); font-weight: 500; }
.foot__tag { max-width: 28rem; }
.foot__h { font-family: var(--display); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--copper-light); margin-bottom: .75rem; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.foot__col a { display: inline-block; padding: .3rem 0; text-decoration: none; }
.foot__col a:hover { text-decoration: underline; }
.foot__legal { padding-top: 1.5rem; padding-bottom: 2rem; color: var(--sage); display: grid; gap: .25rem; }
.foot__legal p { max-width: 62rem; }
.foot__small { font-size: .8rem; opacity: .85; }
@media (min-width: 52em) { .foot__grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }

/* ---------- 14. Pagini administrative, 404 ---------- */
.legal-body { max-width: 46rem; }
.legal-body .prose h2 { font-size: 1.45rem; }
.idcard { background: var(--white); border: 1px solid var(--line); padding: 1.1rem 1.2rem; margin: 1.25rem 0 1.75rem; }
.idcard dl { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: .45rem 1rem; margin: 0; font-size: var(--fs-s); }
.idcard dt { color: var(--muted); }
.idcard dd { margin: 0; font-weight: 600; }
.e404 { padding-block: clamp(3rem, 8vw, 6rem); }
.e404__code { font-family: var(--display); font-weight: 300; font-size: clamp(4rem, 12vw, 8rem); line-height: 1; color: var(--copper); margin: 0 0 1rem; }

/* ---------- 15. Accesibilitate, mișcare, tipărire ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff; font-size: 11pt; }
  .masthead .tabs, .foot, .doc__rail, .office, .officebar, .next, .consent, .skip, .checklist__bar, .btn, .calc__form { display: none !important; }
  .ghead, .ghead__in::before { background: none; }
  .doc { display: block; padding: 0; }
  .checklist li.is-off, .checklist__group.is-off { display: none !important; }
  a { color: #000; text-decoration: none; }
  .faq__a { display: block; }
}

/* ---------- 16. Ajustări de specificitate ---------- */
.band--petrol .btn--copper, .band--petrol .btn--copper:hover { color: var(--petrol-deep); }
.sect-head p.label { font-size: var(--fs-xs); color: var(--copper-text); line-height: 1.4; }
.band--petrol .sect-head p.label { color: var(--copper-light); }
.sect-head__h { font-size: var(--fs-3); margin: .9rem 0 1.5rem; }
figure { margin: 0; }
.heirs__rule { grid-column: 1 / -1; }
@media (min-width: 64em) { .estate__item--debt { grid-column: span 2; } }
.prose ul.keyfacts, .prose ol.steps, .prose ul.checklist__items, .prose ul.sim__bars, .prose ul.register, .prose ul.next__list { padding-left: 0; }
.prose ol.steps > li { padding-left: 3.25rem; }
.office--aside .office__text { display: none; }
.office--aside { gap: .6rem; padding: 1.1rem; }
.office--aside .office__title { font-size: 1.05rem; }
@media (min-width: 64em) and (max-height: 820px) { .doc__rail { position: static; max-height: none; } }
