/* divort.ro, design v2: alb, tip aplicație, accent indigo, Schibsted Grotesk */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.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: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/schibsted-grotesk-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;
}

:root {
  --ink: #0F1A3A;
  --text: #2B344F;
  --muted: #5A637D;
  --faint: #686F86;
  --primary: #3346E8;
  --primary-deep: #2433C4;
  --primary-soft: #EEF0FE;
  --primary-soft-2: #DCE1FD;
  --canvas: #F4F5FA;
  --surface: #FFFFFF;
  --line: #E3E6F0;
  --line-2: #EEF0F5;
  --green: #0B8A5E;
  --green-soft: #E6F6EE;
  --red: #CC3535;
  --red-soft: #FDECEC;
  --amber: #A75A00;
  --amber-soft: #FFF3E0;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-xl: 32px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --shadow-float: 0 1px 2px rgba(15, 26, 58, .06), 0 14px 36px rgba(15, 26, 58, .14);
  --shadow-soft: 0 1px 2px rgba(15, 26, 58, .05);
  --wrap: 1200px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent); }
a:hover { color: var(--primary-deep); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.12; font-weight: 720; letter-spacing: -.028em; margin: 0; }
h1 { font-size: clamp(2.15rem, 4.2vw, 3.15rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.25rem; letter-spacing: -.018em; }
p { margin: 0; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.24em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { left: 12px; }

/* ---------- Butoane, tile-uri, chip-uri ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-sm);
  font-weight: 620; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-deep); color: #fff; }
.btn--line { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--line:hover { border-color: var(--primary); color: var(--primary); }
.btn--text { min-height: 40px; padding: 0 10px; background: none; color: var(--muted); }
.btn--text:hover { color: var(--ink); }

.tile {
  display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
}
.tile .i { width: 22px; height: 22px; }
.tile--sm { width: 36px; height: 36px; border-radius: 10px; }
.tile--sm .i { width: 19px; height: 19px; }
.tile--lg { width: 52px; height: 52px; border-radius: 15px; }
.tile--lg .i { width: 26px; height: 26px; }

.key {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px;
  font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--surface);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--canvas); color: var(--text); font-size: .94rem; font-weight: 560; text-decoration: none;
  border: 1px solid var(--line-2);
}
.chip:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-soft-2); }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 640; background: var(--canvas); color: var(--text); white-space: nowrap; vertical-align: .1em; }
.pill--ok { background: var(--green-soft); color: var(--green); }
.pill--warn { background: var(--red-soft); color: var(--red); }

/* ---------- Bara de progres la citire ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--primary); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { display: block; }
.brand__name { font-size: 1.32rem; font-weight: 760; letter-spacing: -.035em; }
.brand__tld { color: var(--primary); }

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link, .nav__label {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: 10px;
  color: var(--text); font-weight: 560; font-size: .96rem; text-decoration: none;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav__link:hover, .nav__label:hover, .has-sub:hover > .nav__label, .has-sub.is-open > .nav__label { background: var(--canvas); color: var(--ink); }
.nav__item.is-active > .nav__link, .nav__item.is-active > .nav__label { color: var(--primary); }
.nav__chev { width: 16px; height: 16px; opacity: .6; transition: transform .15s; }
.has-sub { position: relative; }
.has-sub:hover .nav__chev, .has-sub.is-open .nav__chev { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: calc(100% + 8px); left: -10px; min-width: 360px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.has-sub:nth-last-child(-n+2) .nav__panel { left: auto; right: -10px; }
.has-sub:hover .nav__panel, .has-sub:focus-within .nav__panel, .has-sub.is-open .nav__panel { opacity: 1; visibility: visible; transform: none; }
.nav__panel ul { list-style: none; margin: 0; padding: 0; }
.nav__panel a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.nav__panel a:hover, .nav__panel a[aria-current] { background: var(--canvas); }
.nav__text { display: flex; flex-direction: column; line-height: 1.3; }
.nav__text strong { font-weight: 640; font-size: .97rem; }
.nav__text small { color: var(--muted); font-size: .86rem; }
.nav__mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 12px; min-width: 210px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--canvas); color: var(--muted);
  cursor: pointer; font-size: .94rem; text-align: left;
}
.search-trigger:hover { border-color: var(--primary-soft-2); color: var(--ink); }
.search-trigger__text { flex: 1; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; place-items: center; color: var(--ink); }
.menu-toggle .i { width: 22px; height: 22px; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

@media (max-width: 1080px) {
  .search-trigger { min-width: 0; padding: 0 10px; }
  .search-trigger__text, .search-trigger .key { display: none; }
}
@media (max-width: 1023px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .menu-toggle { display: inline-grid; }
  .site-header__inner { justify-content: space-between; }
  .nav { display: none; }
  .nav.is-open {
    display: block; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 55;
    background: var(--surface); overflow-y: auto; padding: 12px 20px calc(96px + env(safe-area-inset-bottom));
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line-2); }
  .nav__link { height: 54px; padding: 0 4px; font-size: 1.08rem; font-weight: 620; color: var(--ink); width: 100%; }
  .nav__label { height: 46px; padding: 12px 4px 0; font-size: .92rem; color: var(--muted); font-weight: 600; pointer-events: none; }
  .nav__label:hover, .has-sub:hover > .nav__label { background: none; color: var(--muted); }
  .nav__chev, .has-sub::after { display: none; }
  .nav__panel { position: static; min-width: 0; padding: 4px 0 10px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: none; }
  .nav__panel a { padding: 10px 4px; }
  .nav__mobile-extra { display: flex; gap: 20px; padding: 18px 4px; }
  .nav__mobile-extra a { color: var(--muted); font-weight: 560; text-decoration: none; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Bara de navigare de jos (mobil) ---------- */
.tabbar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
    border: 0; background: none; color: var(--muted); text-decoration: none; font-size: .74rem; font-weight: 600; cursor: pointer; border-radius: 12px;
  }
  .tabbar__item .i { width: 22px; height: 22px; }
  .tabbar__item[aria-current="page"], .tabbar__item[aria-expanded="true"] { color: var(--primary); }
  body.menu-open .tabbar__item[aria-current="page"] { color: var(--muted); }
}

/* ---------- Căutare ---------- */
.search { padding: 0; border: 0; background: transparent; width: min(680px, calc(100vw - 32px)); max-width: none; max-height: none; margin: 10vh auto auto; overflow: visible; }
.search::backdrop { background: rgba(15, 26, 58, .42); backdrop-filter: blur(3px); }
.search__box { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-float); overflow: hidden; border: 1px solid var(--line); }
.search__bar { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--line); }
.search__bar > .i { width: 22px; height: 22px; color: var(--muted); }
.search__bar input { flex: 1; height: 62px; border: 0; outline: 0; font: inherit; font-size: 1.12rem; color: var(--ink); background: transparent; }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__close { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: var(--canvas); border-radius: 10px; color: var(--muted); cursor: pointer; }
.search__results { list-style: none; margin: 0; padding: 8px; max-height: min(60vh, 520px); overflow-y: auto; }
.search__results li a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.search__results li[aria-selected="true"] a { background: var(--primary-soft); }
.sr__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.32; }
.sr__text strong { font-weight: 640; }
.sr__text small { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr__sec { font-size: .8rem; color: var(--faint); white-space: nowrap; }
.search__empty { padding: 22px 12px; color: var(--muted); }
.search__group { padding: 10px 12px 4px; font-size: .84rem; font-weight: 640; color: var(--muted); }
.search__hint { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--faint); }
.search__hint span { display: inline-flex; align-items: center; gap: 4px; }
.search__hint .i { width: 14px; height: 14px; }
@media (max-width: 767px) {
  .search { width: 100vw; height: 100dvh; margin: 0; }
  .search__box { height: 100%; border-radius: 0; border: 0; display: flex; flex-direction: column; }
  .search__results { flex: 1; max-height: none; }
  .search__hint { display: none; }
  .sr__sec { display: none; }
}

/* ---------- Prima pagină ---------- */
.hero { padding: 56px 0 64px; }
.hero + .section { padding-top: 48px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; }
.hero__intro h1 { font-size: clamp(2.5rem, 5.4vw, 4.15rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 760; max-width: 12ch; }
.hero__lead { margin-top: 20px; font-size: 1.22rem; line-height: 1.5; color: var(--muted); max-width: 34ch; }
.hero-search {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px; height: 60px; margin-top: 30px; padding: 0 12px 0 18px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-soft);
  color: var(--faint); font-size: 1.04rem; text-align: left; cursor: text;
}
.hero-search:hover { border-color: var(--primary-soft-2); }
.hero-search > .i { width: 22px; height: 22px; color: var(--muted); }
.hero-search > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hero .chips { margin-top: 16px; max-width: 540px; }
.hero__note { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: .92rem; color: var(--muted); }
.hero__note .i { color: var(--primary); }

.hero__panel { background: var(--primary); border-radius: var(--r-xl); padding: 26px; }
.hero__panel-note { margin: 14px 4px 0; font-size: .88rem; color: rgba(255, 255, 255, .78); }

.router { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-float); padding: 24px; min-height: 380px; display: flex; flex-direction: column; }
.router__head { display: flex; align-items: center; gap: 14px; }
.router__title { font-size: 1.28rem; letter-spacing: -.02em; }
.router__step { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.router__progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 20px 0 22px; }
.router__progress span { height: 5px; border-radius: 99px; background: var(--line-2); transition: background-color .25s; }
.router__progress span.is-on { background: var(--primary); }
.router__body { flex: 1; display: flex; flex-direction: column; }
.router__q { font-size: 1.42rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.22; }
.router__hint { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.router__opts { display: grid; gap: 10px; margin-top: 18px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; padding: 0 16px 0 18px;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  font-size: 1.06rem; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.opt:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--ink); }
.opt .i { color: var(--primary); }
.router__nav { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.router__nav .btn--text .i { width: 18px; height: 18px; }

.result__route { display: flex; align-items: center; gap: 12px; }
.result__route .tile { background: var(--primary); color: #fff; }
.result__kicker { font-size: .9rem; color: var(--muted); }
.result__name { font-size: 1.55rem; font-weight: 740; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.result__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 16px; }
.result__facts div { background: var(--canvas); border-radius: 14px; padding: 10px 12px; }
.result__facts dt { font-size: .8rem; color: var(--muted); }
.result__facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); font-size: 1rem; line-height: 1.25; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; padding: 0; counter-reset: tl; }
.timeline li { position: relative; padding-top: 22px; font-size: .86rem; line-height: 1.3; color: var(--text); counter-increment: tl; }
.timeline li::before { content: counter(tl); position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.timeline li::after { content: ""; position: absolute; left: 24px; right: 4px; top: 9px; height: 2px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.result__alt { font-size: .92rem; color: var(--muted); }
.result__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.section { padding: 80px 0; }
.section--canvas { background: var(--canvas); }
.section__head { max-width: 640px; margin-bottom: 32px; }
.section__head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.035em; }
.section__head p { margin-top: 10px; font-size: 1.1rem; color: var(--muted); }

.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.compare__col { display: flex; flex-direction: column; padding: 26px; }
.compare__col + .compare__col { border-left: 1px solid var(--line); }
.compare__head h3 { margin-top: 14px; }
.compare__price { margin-top: 10px; font-size: 1.85rem; font-weight: 760; letter-spacing: -.035em; color: var(--ink); line-height: 1.1; }
.compare__note { margin-top: 4px; font-size: .9rem; color: var(--muted); }
.compare__rows { margin: 20px 0 22px; }
.compare__rows div { padding: 11px 0; border-top: 1px solid var(--line-2); }
.compare__rows dt { font-size: .84rem; color: var(--muted); }
.compare__rows dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); display: flex; gap: 6px; align-items: flex-start; }
.compare__rows dd .i { width: 18px; height: 18px; margin-top: 3px; }
.compare__rows dd.yes .i { color: var(--green); }
.compare__rows dd.no { color: var(--red); }
.compare__col .btn { margin-top: auto; }

.directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dir-group:first-child { grid-column: 1 / -1; }
.dir-group:first-child ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.dir-group:first-child li:nth-child(2) { border-top: 0; }
.dir-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px 10px; }
.dir-group__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dir-group ul { list-style: none; margin: 0; padding: 0; }
.dir-group li + li { border-top: 1px solid var(--line-2); }
.dir-group li a { display: flex; flex-direction: column; padding: 12px 0; text-decoration: none; color: var(--ink); }
.dir-group li a strong { font-weight: 640; }
.dir-group li a span { font-size: .92rem; color: var(--muted); }
.dir-group li a:hover strong { color: var(--primary); }

.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tool-tile { display: flex; flex-direction: column; gap: 20px; padding: 26px; border-radius: var(--r-lg); background: var(--canvas); }
.tool-tile__top { display: flex; gap: 16px; align-items: flex-start; }
.tool-tile__top p { margin-top: 4px; color: var(--muted); }
.tool-tile .btn { align-self: flex-start; }
.mini { background: var(--surface); border-radius: var(--r-md); padding: 18px; border: 1px solid var(--line); }
.mini label { display: block; font-weight: 620; color: var(--ink); margin-bottom: 8px; }
.mini__out { margin-top: 12px; color: var(--text); }
.mini__out strong { color: var(--primary); font-size: 1.15rem; }
.price-list { list-style: none; margin: 0; padding: 4px 18px; background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); }
.price-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; }
.price-list li + li { border-top: 1px solid var(--line-2); }
.price-list span { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.price-list span .i { color: var(--muted); }
.price-list strong { color: var(--ink); white-space: nowrap; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.facts li { display: flex; flex-direction: column; gap: 14px; }
.facts p { color: var(--text); }
.facts strong { color: var(--ink); font-weight: 680; }

.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about h2 { margin-bottom: 14px; }
.about p + p { margin-top: 12px; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trust li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); font-weight: 560; color: var(--ink); }
.trust .i { color: var(--primary); }

@media (max-width: 960px) {
  .hero { padding: 32px 0 56px; }
  .hero__grid, .about { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare__col + .compare__col { border-left: 0; border-top: 1px solid var(--line); }
  .directory, .tools { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .hero__panel { margin: 0 -8px; padding: 14px; border-radius: 26px; }
  .router { padding: 18px; min-height: 0; }
  .result__facts { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 10px; }
  .timeline li { padding: 0 0 0 28px; }
  .timeline li::after { display: none; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .facts li { flex-direction: row; align-items: flex-start; }
  .tool-tile, .dir-group { padding: 20px; }
}
@media (max-width: 640px) {
  .dir-group:first-child ul { grid-template-columns: minmax(0, 1fr); }
  .dir-group:first-child li:nth-child(2) { border-top: 1px solid var(--line-2); }
}

/* ---------- Pagini de ghid ---------- */
.page-hero { padding: 28px 0 34px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs__sep { color: var(--line); }
.page-hero__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-top: 26px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); }
.page-hero__icon .i { width: 28px; height: 28px; }
.page-hero h1 { margin-top: 18px; max-width: 22ch; }
.page-hero .crumbs + h1 { margin-top: 22px; }
.lead { margin-top: 16px; font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 20px 0 0; padding: 0; font-size: .92rem; color: var(--muted); }
.meta li { display: inline-flex; align-items: center; gap: 7px; }
.meta .i { width: 17px; height: 17px; color: var(--faint); }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 72px; padding-top: 40px; padding-bottom: 80px; }
.page-grid--single { grid-template-columns: minmax(0, 740px); }
@media (max-width: 1023px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; padding-bottom: 56px; }
  .sidebar { display: none; }
}

/* Conținut (selectori :where ca să nu bată componentele) */
.prose { max-width: 740px; }
.prose > :first-child { margin-top: 0; }
.prose :where(p, ul, ol) { margin: 0 0 1.05em; }
.prose :where(ul, ol) { padding-left: 1.25em; }
.prose :where(li) { margin: .32em 0; }
.prose :where(ul > li)::marker { color: var(--primary); }
.prose :where(ol > li)::marker { color: var(--primary); font-weight: 700; }
.prose :where(h2) { margin: 2.1em 0 .6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose :where(h3) { margin: 1.7em 0 .5em; }
.prose :where(strong) { color: var(--ink); font-weight: 650; }
.prose :where(table) { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prose :where(th, td) { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.prose :where(thead th) { background: var(--canvas); color: var(--ink); font-weight: 650; font-size: .9rem; border-bottom: 1px solid var(--line); }
.prose :where(tbody tr:last-child td) { border-bottom: 0; }
.prose :where(tfoot td) { font-weight: 700; color: var(--ink); background: var(--canvas); border-bottom: 0; }
.prose :where(td.num, th.num) { text-align: right; white-space: nowrap; }

.table-scroll { overflow-x: auto; margin: 1.3em 0 1.6em; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }

.toc-mobile { display: none; margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.toc-mobile summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 640; color: var(--ink); }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary > span { flex: 1; }
.toc-mobile summary .i { color: var(--primary); }
.toc-mobile__chev { transition: transform .15s; color: var(--muted) !important; }
.toc-mobile[open] .toc-mobile__chev { transform: rotate(180deg); }
.toc-mobile ol { list-style: none; margin: 0 !important; padding: 0 16px 10px !important; }
.toc-mobile li { margin: 0 !important; border-top: 1px solid var(--line-2); }
.toc-mobile a { display: block; padding: 11px 0; color: var(--text); text-decoration: none; }
@media (max-width: 1023px) { .toc-mobile { display: block; } }

.keyfacts { margin: 0 0 2.2em; padding: 22px 24px; border-radius: var(--r-lg); background: var(--primary-soft); }
.keyfacts__title { font-size: 1.05rem; letter-spacing: -.01em; margin: 0 0 12px !important; color: var(--ink); }
.keyfacts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.keyfacts li { display: flex; gap: 10px; margin: 0; }
.keyfacts li > .i { width: 20px; height: 20px; margin-top: 3px; color: var(--primary); stroke-width: 2.5; }

.callout { display: flex; gap: 14px; margin: 1.6em 0; padding: 18px 20px; border-radius: var(--r-md); background: var(--canvas); }
.callout__icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--primary); }
.callout__icon .i { width: 20px; height: 20px; }
.callout__body { min-width: 0; }
.callout__body > :last-child { margin-bottom: 0; }
.callout__title { font-weight: 700; color: var(--ink); margin: 6px 0 4px !important; }
.callout--warn { background: var(--amber-soft); }
.callout--warn .callout__icon { color: var(--amber); }
.callout--tip { background: var(--green-soft); }
.callout--tip .callout__icon { color: var(--green); }
.callout--law .callout__icon { color: var(--ink); }

.steps { list-style: none; padding: 0 !important; margin: 1.4em 0 1.8em !important; counter-reset: step; }
.steps > li { position: relative; margin: 0 !important; padding: 0 0 22px 52px; counter-increment: step; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 750; font-size: .95rem;
}
.steps > li::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--line-2); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps > li > strong { display: block; color: var(--ink); font-size: 1.06rem; margin-bottom: 2px; }

.checklist { list-style: none; padding: 0 !important; }
.checklist > li { position: relative; padding-left: 32px; }
.checklist > li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 21px; height: 21px; border-radius: 7px; background: var(--green-soft);
}
.checklist > li::after {
  content: ""; position: absolute; left: 7px; top: calc(.22em + 4px); width: 6px; height: 10px;
  border-right: 2.4px solid var(--green); border-bottom: 2.4px solid var(--green); transform: rotate(45deg);
}

.model { background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 24px 26px; font-size: 1rem; line-height: 1.75; margin: 1.3em 0 1.7em; }
.model p { margin: 0 0 .9em; }
.model .center { text-align: center; }

.faq { margin-top: 2.6em; }
.faq__list { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.faq__item + .faq__item { border-top: 1px solid var(--line-2); }
.faq__item summary { display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 640; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary > span { flex: 1; }
.faq__item summary:hover { background: var(--canvas); }
.faq__chev { color: var(--muted); transition: transform .18s; }
.faq__item[open] .faq__chev { transform: rotate(180deg); color: var(--primary); }
.faq__answer { padding: 0 20px 18px; color: var(--text); }
.faq__answer p:last-child { margin-bottom: 0; }

.disclaimer { display: flex; gap: 12px; margin: 2.6em 0 0; padding: 16px 18px; border-radius: var(--r-md); background: var(--canvas); font-size: .93rem; color: var(--muted); }
.disclaimer > .i { color: var(--faint); margin-top: 2px; }
.disclaimer p { margin: 0; }
.disclaimer strong { color: var(--text); }
.sources { margin-top: 1.8em; font-size: .92rem; color: var(--muted); }
.sources h2 { font-size: 1rem; letter-spacing: -.01em; margin: 0 0 8px; }
.sources ul { padding-left: 1.1em; margin: 0; }
.sources li { margin: .3em 0; }

.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 28px); }
.toc__title { font-size: .92rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-2); }
.toc li { margin: 0; }
.toc a { display: block; margin-left: -2px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font-size: .92rem; line-height: 1.35; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--primary); border-left-color: var(--primary); font-weight: 620; }
.side-tools { margin-top: 26px; padding: 18px; border-radius: var(--r-md); background: var(--canvas); }
.side-tools__title { font-size: .92rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.side-tools a { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 600; color: var(--ink); text-decoration: none; }
.side-tools a .i { color: var(--primary); }
.side-tools a:hover { color: var(--primary); }

.related { padding: 64px 0 80px; background: var(--canvas); border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 22px; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.link-card:hover { border-color: var(--primary); color: var(--ink); }
.link-card .tile { margin-bottom: 8px; }
.link-card__title { font-weight: 700; font-size: 1.06rem; letter-spacing: -.015em; line-height: 1.25; }
.link-card__text { color: var(--muted); font-size: .92rem; }

/* ---------- Calculatoare ---------- */
.tool { margin: 0 0 2.4em; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.tool__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.tool__title { font-size: 1.32rem; font-weight: 720; letter-spacing: -.025em; color: var(--ink); margin: 0 !important; }
.tool__badge { font-size: .86rem; color: var(--muted); }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > legend, .field > label { display: block; padding: 0; margin-bottom: 10px; font-weight: 640; color: var(--ink); }
.field__hint { display: block; margin-top: 2px; font-size: .9rem; font-weight: 400; color: var(--muted); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--canvas); border: 1px solid var(--line-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 9px 16px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .97rem; color: var(--muted); user-select: none; transition: background-color .12s, color .12s; }
.seg label:hover { color: var(--ink); }
.seg input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 26, 58, .1), 0 0 0 1px var(--line); }
.seg input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 1px; }
.input-money { position: relative; max-width: 320px; }
.input-money input {
  width: 100%; height: 54px; padding: 0 56px 0 16px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--canvas); color: var(--ink); font: inherit; font-size: 1.18rem; font-weight: 620;
  -moz-appearance: textfield; appearance: textfield;
}
.input-money input::-webkit-inner-spin-button, .input-money input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.input-money input:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-soft-2); }
.input-money input:disabled { opacity: .6; }
.input-money span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.field > label.check, .check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-weight: 400; font-size: .97rem; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }

.result { margin-top: 6px; padding: 24px; border-radius: var(--r-lg); background: var(--primary); color: #fff; }
.result p, .result ul { margin: 0; }
.result__label { font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .8); }
.result__big { margin-top: 4px !important; font-size: clamp(2.1rem, 5vw, 2.9rem); font-weight: 780; letter-spacing: -.04em; line-height: 1.05; }
.result__sub { margin-top: 6px !important; color: rgba(255, 255, 255, .88); }
.result__rows { list-style: none; margin-top: 18px !important; padding: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.result__rows li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.result__rows li span:last-child { font-weight: 700; text-align: right; }
.result__note { margin-top: 14px !important; font-size: .88rem; color: rgba(255, 255, 255, .78); }

.routes { display: grid; gap: 12px; margin-top: 6px; }
.route { padding: 18px 20px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); }
.route.is-best { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.route.is-off { background: var(--canvas); border-color: var(--line-2); }
.route.is-off .route__name { color: var(--muted); }
.route__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.route__name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.12rem; font-weight: 700; color: var(--ink); margin: 0 !important; }
.route__name .i { color: var(--primary); }
.route__cost { font-size: 1.22rem; font-weight: 760; letter-spacing: -.02em; color: var(--ink); }
.route__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: .92rem; color: var(--muted); }
.route__meta span { display: inline-flex; align-items: center; gap: 6px; }
.route__meta .i { width: 16px; height: 16px; }
.route p { margin: 8px 0 0 !important; font-size: .95rem; color: var(--text); }
.routes__note { margin: 4px 0 0 !important; font-size: .92rem; color: var(--muted); }
.route__rows { list-style: none; margin: 12px 0 0 !important; padding: 0; border-top: 1px solid var(--line); }
.route__rows li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.route__rows li span:first-child { min-width: 0; }
.route__rows li span:last-child { flex: none; font-weight: 650; color: var(--ink); text-align: right; }
@media (max-width: 520px) {
  .tool { padding: 18px; margin-left: -4px; margin-right: -4px; }
  .seg { display: flex; }
  .seg label { flex: 1 1 auto; text-align: center; }
  .result { padding: 20px; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding: 64px 0 0; background: var(--ink); color: rgba(255, 255, 255, .72); font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__title { margin-bottom: 12px; color: #fff; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.brand--footer { color: #fff; margin-bottom: 14px; }
.brand--footer .brand__tld { color: #A9B3FF; }
.site-footer__about p + p { margin-top: 10px; }
.site-footer__note { font-size: .86rem; color: rgba(255, 255, 255, .55); }
.site-footer__help { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); font-size: .88rem; line-height: 1.5; }
.site-footer__help strong { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .86rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .sidebar, .related, .tool, .tabbar, .progress, .toc-mobile { display: none !important; } body { padding: 0; } }
