/* ==========================================================================
   CAR UCMR Reșița — foaie de stil principală
   ========================================================================== */

/* 1. Declarații Fonturi Locale (/fonts) ---------------------------------- */
@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/PublicSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/PublicSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/Newsreader_24pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/Newsreader_24pt-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 2. Variabile ----------------------------------------------------------- */
:root {
  --ink: #0c2b33;
  --ink-2: #123a44;
  --teal: #0f5c63;
  --teal-2: #0a4a50;
  --aqua: #5fb3b3;
  --brass: #d4a94f;
  --brass-dk: #8a6417;
  --mist: #f2f6f6;
  --mist-2: #e4eded;
  --line: #d5e0e1;
  --text: #17282e;
  --muted: #50656b;
  --white: #ffffff;
  --ok: #1d7a4d;
  --focus: #8a6417;

  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(12, 43, 51, .06), 0 8px 24px rgba(12, 43, 51, .08);
  --header-h: 4.5rem;
}

/* 3. Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
html[data-fs="0"] { font-size: 100%; }
html[data-fs="2"] { font-size: 118%; }
html[data-fs="3"] { font-size: 130%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--text); background: var(--white);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--teal-2); }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* 4. Tipografie ---------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: +.01em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark { --focus: #f3d48a; }
.on-dark a:not(.btn) { color: #cfe8e8; }
.on-dark .calc__title { color: var(--ink); }
.on-dark .btn--brass, .on-dark .btn--brass:hover { color: var(--ink); }

.prose { max-width: 60rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.6rem; font-size: 1.7rem; }
.prose h3 { margin-top: 2rem; font-size: 1.3rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; }
.prose li + li { margin-top: .5rem; }
.prose p, .prose li { max-width: 85ch; }

/* 5. Layout -------------------------------------------------------------- */
.container { width: min(100% - 2.5rem, 84rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tint { background: var(--mist); }
.section--dark { background: var(--ink); color: #d6e6e8; }
.section__head { max-width: 60rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { margin-top: .9rem; color: var(--muted); font-size: 1.08rem; }
.grid-2 { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr 1fr; align-items: start; }

/* 6. Butoane ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; text-decoration: none; line-height: 1.2;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--teal); color: var(--white); }
.btn--solid:hover { background: var(--teal-2); color: var(--white); }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: #e3bd6a; color: var(--ink); }
.btn--outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--outline:hover { background: var(--teal); color: var(--white); }
.btn--outline-light { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.on-dark .btn--outline-light { color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow svg { width: 1em; height: 1em; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* 7. Antet --------------------------------------------------------------- */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--brass); color: var(--ink);
  padding: .7rem 1rem; border-radius: var(--radius); font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.topbar { background: var(--ink); color: #cfe0e2; font-size: .86rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.5rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; }
.topbar__group { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.topbar svg { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; margin-right: .35rem; color: var(--brass); }
.status { display: inline-flex; align-items: center; gap: .5rem; }
.status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #8aa0a5; flex: none; }
.status[data-state="open"]::before { background: #3fcf8e; box-shadow: 0 0 0 0 rgba(63,207,142,.6); animation: pulse 2.4s ease-out infinite; }
.status[data-state="closed"]::before { background: #e39a5c; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(12,43,51,.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 2.9rem; height: 2.9rem; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }
.brand__tag { font-size: .8rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__list { display: flex; align-items: center; gap: .15rem; }
.nav__item { position: relative; }
.nav__link {
  display: block; padding: .6rem .9rem; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 8px;
  background: linear-gradient(var(--brass), var(--brass)) no-repeat 0 100% / 0 2px; background-origin: content-box; transition: background-size .25s, color .2s;
}
.nav__link:hover { background-size: 100% 2px; color: var(--teal-2); }
.nav__link[aria-current="page"] { color: var(--teal); font-weight: 600; background-size: 100% 2px; }
.has-sub > .nav__link::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); }
.subnav {
  position: absolute; left: 0; top: 100%; min-width: 19rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub:hover > .subnav, .has-sub:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: block; padding: .6rem .8rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.subnav a:hover { background: var(--mist); color: var(--teal); }

.tools { display: flex; align-items: center; gap: .3rem; margin-left: .6rem; padding-left: .8rem; border-left: 1px solid var(--line); }
.tools__btn { width: 2.4rem; height: 2.4rem; border-radius: 8px; border: 1px solid var(--line); background: var(--white); font-weight: 700; line-height: 1; transition: background-color .2s, border-color .2s; }
.tools__btn:hover { background: var(--mist); border-color: var(--teal); }
.tools__btn[disabled] { opacity: .4; cursor: not-allowed; }

.nav-toggle { display: none; width: 2.8rem; height: 2.8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1.3rem; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s, background-color .3s;
}
.nav-toggle span::before { transform: translate(-50%, calc(-50% + -6px)); }
.nav-toggle span::after { transform: translate(-50%, calc(-50% + 6px)); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* 8. Hero + calculator --------------------------------------------------- */
.hero { 
  position: relative; 
  overflow: hidden; 
  background: var(--ink); 
  color: #d6e6e8; 
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4.5rem, 9vw, 7rem); 
  isolation: isolate; 
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(95, 179, 179, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(95, 179, 179, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
  animation: gridMove 10s linear infinite;
}

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; }
.hero h1 { color: var(--white); }
.hero__lead { margin-top: 1.3rem; font-size: 1.2rem; max-width: 32rem; color: #c3d8db; }
.hero .btn-row { margin-top: 2rem; }
.hero__legal { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.16); font-size: .88rem; color: #93b0b5; max-width: 32rem; }
.hero__line { display: none; }

.calc { background: var(--white); color: var(--text); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 24px 60px rgba(0,0,0,.35); position: relative; z-index: 2; }
.calc__title { font-size: 1.5rem; }
.calc__intro { color: var(--muted); font-size: .95rem; margin-top: .3rem; }
.seg { border: 0; padding: 0; margin: 1.3rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; flex-direction: column; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: var(--radius); font-weight: 600; line-height: 1.25; transition: border-color .2s, background-color .2s; }
.seg small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.seg input:checked + span { border-color: var(--teal); background: #eaf4f4; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.field { margin-top: 1.3rem; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.field label { font-weight: 600; }
.field output { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; outline-offset: 8px; cursor: pointer; background: linear-gradient(to right, var(--teal) var(--fill, 0%), var(--mist-2) var(--fill, 0%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brass); border: 3px solid var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .15s; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--brass); border: 3px solid var(--ink); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.field__scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: .35rem; }

.calc__result { margin-top: 1.6rem; padding: 1.2rem 1.3rem; background: var(--mist); border-radius: var(--radius); border-left: 4px solid var(--brass); }
.calc__label { font-size: .9rem; color: var(--muted); }
.calc__rate { font-family: var(--font-head); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc__rate small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--muted); }
.calc__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.calc__sub dt { font-size: .82rem; color: var(--muted); }
.calc__sub dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.calc__note { margin-top: 1rem; font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* 9. Secțiuni ------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); margin-top: -3rem; position: relative; z-index: 2; box-shadow: var(--shadow); }
.stats__item { padding: 1.6rem 1.4rem; }
.stats__item + .stats__item { border-left: 1px solid var(--line); }
.stats__value { font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; color: var(--teal); line-height: 1; font-variant-numeric: tabular-nums; }
.stats__value small { font-size: .55em; font-weight: 500; margin-left: .25em; color: var(--ink); }
.stats__label { margin-top: .5rem; font-size: .93rem; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 1.6rem; right: calc(33.333% - 2.93rem); top: 1.6rem; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 1.6rem; right: calc(33.333% - 2.93rem); top: 1.6rem; height: 2px; background: var(--brass); transform-origin: left; transform: scaleX(1); }
.js .steps::after { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.6,.1,.2,1); }
.js .steps.is-in::after { transform: scaleX(1); }
.step { position: relative; }
.step__num { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--white); }
.section--tint .step__num { box-shadow: 0 0 0 6px var(--mist); }
.step h3 { margin-top: 1.2rem; }
.step p { margin-top: .6rem; color: var(--muted); max-width: 22rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); -webkit-overflow-scrolling: touch; }
.compare { min-width: 80rem; width: 100%; table-layout: fixed; }
.compare th, .compare td { padding: 1.2rem 1.4rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); word-break: break-word; }

.compare th:nth-child(1), .compare td:nth-child(1) { width: 15%; }
.compare th:nth-child(2), .compare td:nth-child(2),
.compare th:nth-child(3), .compare td:nth-child(3),
.compare th:nth-child(4), .compare td:nth-child(4) { width: 28.33%; }

.compare thead th { background: var(--ink); color: var(--white); font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.compare tbody th { font-weight: 600; color: var(--ink); background: var(--mist); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare td strong { color: var(--teal); }
.table-foot { margin-top: 1rem; font-size: .9rem; color: var(--muted); }

.checklist li { position: relative; padding-left: 2rem; }
.checklist li + li { margin-top: .9rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.7 2.7L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }

.docs-mini { display: grid; gap: .8rem; }
.doc { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .2s, transform .2s, box-shadow .2s; }
.doc:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.doc__icon { flex: none; width: 2.6rem; height: 3.1rem; border-radius: 6px; background: #fbeaea; color: #b53a3a; display: grid; place-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.doc__meta { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.doc__get { margin-left: auto; color: var(--teal); }
.doc__get svg { width: 1.3rem; height: 1.3rem; }

.cta-band { background: var(--teal); color: #e3f1f1; }
.cta-band__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; padding-block: 2.6rem; }
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin-top: .4rem; }

.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.info-card { display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.info-card:hover { border-color: var(--teal); box-shadow: var(--shadow); color: var(--text); }
.info-card h3 { font-size: 1.25rem; }
.info-card p { margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.info-card .link-arrow { margin-top: auto; padding-top: 1.2rem; }

/* 10. Pagini interioare -------------------------------------------------- */
.page-hero { background: var(--ink); color: #c3d8db; padding-block: clamp(2.4rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: min(14rem, 40%); background: var(--brass); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); color: var(--white); }
.page-hero p { margin-top: .9rem; max-width: 50rem; font-size: 1.1rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; margin-bottom: 1.1rem; color: #93b0b5; }
.crumbs a { color: #cfe8e8; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }

.layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.sidenav { position: sticky; top: 6.5rem; }
.sidenav__title { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .6rem; }
.sidenav a { display: block; padding: .55rem .9rem; border-left: 3px solid var(--line); color: var(--text); text-decoration: none; font-size: .95rem; transition: border-color .2s, background-color .2s, color .2s; }
.sidenav a:hover { background: var(--mist); }
.sidenav a.is-active { border-left-color: var(--brass); color: var(--teal); font-weight: 600; background: var(--mist); }

.block + .block { margin-top: clamp(2.6rem, 5vw, 4rem); padding-top: clamp(2.6rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.block > h2 { margin-bottom: 1.3rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.fact { padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--mist); border-left: 4px solid var(--teal); }
.fact dt { font-size: .85rem; color: var(--muted); }
.fact dd { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.2; margin-top: .15rem; }
.bullets { list-style: disc; padding-left: 1.3rem; max-width: 46rem; }
.bullets li + li { margin-top: .6rem; }

.bars { margin-top: 1.5rem; display: grid; gap: 1rem; max-width: 46rem; }
.bar { display: grid; grid-template-columns: 8.5rem 1fr 5.5rem; align-items: center; gap: 1rem; }
.bar__label { font-weight: 500; }
.bar__track { height: 1.1rem; background: var(--mist-2); border-radius: 99px; overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--teal), var(--aqua)); border-radius: 99px; transform-origin: left; }
.js .bar__fill { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.js .bars.is-in .bar__fill { transform: scaleX(1); }
.js .bars.is-in .bar:nth-child(2) .bar__fill { transition-delay: .12s; }
.js .bars.is-in .bar:nth-child(3) .bar__fill { transition-delay: .24s; }
.js .bars.is-in .bar:nth-child(4) .bar__fill { transition-delay: .36s; }
.bar__value { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.doc-group + .doc-group { margin-top: 2.6rem; }
.doc-group h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.notice { display: flex; gap: .8rem; padding: 1rem 1.2rem; background: #fdf6e3; border: 1px solid #ecd9a4; border-radius: var(--radius); color: #5b4510; margin-bottom: 2rem; max-width: 60rem; }

/* 11. Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.offices { display: grid; gap: .7rem; }
.office { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: center; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.office.is-active { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.office h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.office p { color: var(--muted); font-size: .93rem; grid-column: 1; }
.office__tel { font-weight: 600; text-decoration: none; white-space: nowrap; }
.office__map { grid-column: 2; grid-row: 2; background: none; border: 0; padding: 0; color: var(--teal); font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: .2em; }
.map { position: sticky; top: 6.5rem; }
.map iframe { width: 100%; height: clamp(20rem, 55vh, 32rem); border: 0; border-radius: var(--radius-lg); background: var(--mist-2); }
.map__caption { margin-top: .7rem; font-size: .9rem; color: var(--muted); }

.hours { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.hours__head { padding: 1rem 1.3rem; background: var(--mist); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hours__head h3 { font-size: 1.2rem; }
.hours .status { color: var(--ink); font-weight: 600; font-size: .92rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1.3rem; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hours li.is-today { background: #eaf4f4; font-weight: 700; box-shadow: inset 4px 0 0 var(--brass); }
.hours li.is-closed span:last-child { color: var(--muted); }

.info-list { display: grid; gap: 1.6rem; }
.info-list dt { font-size: .85rem; color: var(--muted); margin-bottom: .2rem; }
.info-list dd { font-size: 1.1rem; font-weight: 500; }
.info-list a { font-weight: 600; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

/* 12. Subsol ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #b8cdd0; font-size: .95rem; }
.site-footer a { color: #e1eeef; text-decoration: none; }
.site-footer a:hover { color: var(--brass); text-decoration: underline; }
.site-footer h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--white); margin-bottom: 1rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 4rem 3rem; }
.footer__brand { display: flex; gap: .8rem; align-items: center; }
.footer__brand img { width: 2.8rem; height: 2.8rem;  }
.footer__brand strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--white); font-weight: 600; }
.footer__legal { margin-top: 1rem; max-width: 22rem; line-height: 1.55; }
.footer__list li + li { margin-top: .55rem; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.3rem; display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; align-items: center; font-size: .86rem; }
.footer__anpc { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: var(--brass); color: var(--ink); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; display: grid; place-items: center; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 1.3rem; height: 1.3rem; }

/* 13. Animații ----------------------------------------------------------- */
@keyframes pulse { 
  0% { box-shadow: 0 0 0 0 rgba(63,207,142,.55); } 
  70% { box-shadow: 0 0 0 9px rgba(63,207,142,0); } 
  100% { box-shadow: 0 0 0 0 rgba(63,207,142,0); } 
}

@keyframes cinematicReveal {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(0.96);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes calcPop {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.93);
    box-shadow: 0 0 0 rgba(212, 169, 79, 0);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 30px 70px rgba(15, 92, 99, 0.25);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  }
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

.hero__copy > * {
  opacity: 0;
  animation: cinematicReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__copy > :nth-child(1) { animation-delay: 0.1s; }
.hero__copy > :nth-child(2) { animation-delay: 0.22s; }
.hero__copy > :nth-child(3) { animation-delay: 0.34s; }
.hero__copy > :nth-child(4) { animation-delay: 0.46s; }

.hero .calc {
  opacity: 0;
  animation: calcPop 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* 14. Responsive --------------------------------------------------------- */
@media (max-width: 62rem) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--white);
    border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.2rem; box-shadow: 0 16px 24px rgba(12,43,51,.1);
    max-height: 0; overflow: hidden; visibility: hidden; opacity: 0; padding-block: 0; transition: max-height .35s ease, opacity .25s, visibility .35s, padding .35s;
  }
  .nav-open .nav { max-height: 90vh; overflow-y: auto; visibility: visible; opacity: 1; padding-block: .5rem 1.2rem; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: .9rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; background-image: none; }
  .has-sub > .nav__link::after { display: none; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .4rem 1rem; min-width: 0; background: transparent; }
  .subnav a { padding: .6rem .4rem; }
  .tools { margin: .8rem 0 0; padding: 0; border: 0; }
  .header-actions { display: flex; align-items: center; gap: .5rem; }
  .hero__grid, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(3) { border-left: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .info-cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; gap: 1.6rem; }
  .sidenav { position: static; }
  .sidenav ul { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; }
  .sidenav a { border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; padding: .5rem 1rem; }
  .sidenav a.is-active { border-color: var(--teal); }
  .sidenav__title { display: none; }
  .map { position: static; }
}
@media (max-width: 44rem) {
  .steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .steps::before, .steps::after { left: 1.6rem; right: auto; top: 1.6rem; bottom: 1.6rem; width: 2px; height: auto; }
  .js .steps::after { transform: scaleY(0); transform-origin: top; }
  .js .steps.is-in::after { transform: scaleY(1); }
  .steps::after { transform-origin: top; transform: scaleY(1); }
  .step { padding-left: 4.6rem; }
  .step__num { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: .2rem; }
  .bar { grid-template-columns: 1fr auto; }
  .bar__track { grid-column: 1 / -1; grid-row: 2; }
  .brand__tag { display: none; }
  .footer__grid { grid-template-columns: 1fr; padding-block: 3rem 2rem; }
  .topbar__group--hide-sm { display: none; }
  .stats__item { padding: 1.2rem 1rem; }
}
@media (max-width: 30rem) {
  .container { width: min(100% - 2rem, 72rem); }
  .btn { width: 100%; }
  .seg { grid-template-columns: 1fr; }
  .office { grid-template-columns: 1fr; }
  .office__map { grid-column: 1; grid-row: auto; justify-self: start; }
}

/* 15. Accesibilitate și Suplimente ---------------------------------------- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (forced-colors: active) {
  .btn, .doc, .info-card { border: 2px solid ButtonText; }
}
@media print {
  .topbar, .site-header, .hero__line, .to-top, .site-footer .footer__anpc { display: none; }
  body { font-size: 12pt; }
}

.hero-sphere-full {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero__grid {
  position: relative;
  z-index: 2;
}

.hero-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: rgba(12, 219, 40, 0.45);
  border-radius: 50%;
  will-change: transform;
}