/* =========================================================
   THEME.CSS — motorul temei (peste Bootstrap 5.3)
   Aici sunt structura si componentele. NU contine culori sau fonturi: toate vin din skin
   (skins/<nume>.css, ales cu theme_skin in config.ini). Acelasi HTML, alt skin = alt site.
   Ajustarile unui singur site se scriu in base.css (incarcat ultimul), nu aici.

   Cuprins: 1 Valori implicite si derivate · 2 Legatura cu Bootstrap · 3 Baza si tipografie
   4 Sectiuni · 5 Antet si meniu · 6 Erou si antet de pagina · 7 Butoane · 8 Carduri si blocuri
   9 Acordeon, taburi · 10 Ferestre (modal, offcanvas, tooltip, toast) · 11 Formulare
   12 Alerte, etichete, progres · 13 Tabele si liste · 14 Media (galerie, lightbox, carusel, video)
   15 Navigatie de pagina · 16 Subsol · 17 Utilitare · 18 Miscare
   ========================================================= */

/* ---------- 1. Valori implicite (un skin le poate suprascrie) si valori derivate ---------- */
/* :where() = fara prioritate: valorile din skin castiga indiferent de ordinea fisierelor */
:where(:root) {
  --font-heading: "Segoe UI", Arial, sans-serif;
  --font-body: "Segoe UI", Arial, sans-serif;
  --heading-weight: 700;
  --heading-stretch: 100%;
  --heading-tracking: -0.01em;
  --fs-body: 1.0625rem;

  --c-bg: #fff; --c-surface: #fff; --c-surface-alt: #f3f5f8;
  --c-text: #3a4252; --c-heading: #111827; --c-muted: #6b7280; --c-border: #dde2ea;
  --c-primary: #1a4fd6; --c-primary-strong: #123ba6; --c-on-primary: #fff;
  --c-accent: #ff9f1c; --c-on-accent: #111827;
  --c-ink: #111827; --c-on-ink: #fff;
  --c-success: #17804d; --c-warning: #b76e00; --c-danger: #c62f3b; --c-info: #1b6fa8;

  --r-sm: 4px; --r-md: 8px; --r-lg: 14px;
  --shape-btn: 6px; --shape-card: 8px; --shape-media: 8px; --shape-hero: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08); --shadow-md: 0 6px 18px rgba(0,0,0,.1); --shadow-lg: 0 18px 48px rgba(0,0,0,.16);
  --motif: none;

  /* Scara de spatiere si latimi */
  --container: 1240px;
  --section-y: clamp(3.5rem, 2.2rem + 5vw, 6.5rem);
  --gap: clamp(1.25rem, 1rem + 1vw, 2rem);
  --header-h: 84px;
  --measure: 68ch;                 /* latimea maxima a unui text de citit */

  /* Scara de titluri (fluida) */
  --fs-display: clamp(2.35rem, 1.45rem + 3.6vw, 4.1rem);
  --fs-h1: clamp(2rem, 1.45rem + 2.2vw, 3rem);
  --fs-h2: clamp(1.65rem, 1.3rem + 1.4vw, 2.35rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --fs-h4: 1.2rem;
  --fs-small: 0.9rem;

  /* Derivate (nu se seteaza in skin) */
  --c-primary-soft: color-mix(in srgb, var(--c-primary) 9%, var(--c-surface));
  --c-primary-line: color-mix(in srgb, var(--c-primary) 28%, var(--c-surface));
  --c-ink-soft: color-mix(in srgb, var(--c-on-ink) 9%, var(--c-ink));
  --c-ink-muted: color-mix(in srgb, var(--c-on-ink) 68%, var(--c-ink));
  --c-ink-line: color-mix(in srgb, var(--c-on-ink) 16%, var(--c-ink));
  --c-focus: color-mix(in srgb, var(--c-primary) 55%, transparent);
  --motif-line: color-mix(in srgb, var(--c-primary) 13%, transparent);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Legatura cu Bootstrap ---------- */
:root {
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: var(--fs-body);
  --bs-body-line-height: 1.65;
  --bs-body-color: var(--c-text);
  --bs-body-bg: var(--c-bg);
  --bs-emphasis-color: var(--c-heading);
  --bs-heading-color: var(--c-heading);
  --bs-secondary-color: var(--c-muted);
  --bs-tertiary-color: var(--c-muted);
  --bs-secondary-bg: var(--c-surface-alt);
  --bs-tertiary-bg: var(--c-surface-alt);
  --bs-border-color: var(--c-border);
  --bs-border-color-translucent: var(--c-border);
  --bs-border-radius: var(--r-md);
  --bs-border-radius-sm: var(--r-sm);
  --bs-border-radius-lg: var(--r-lg);
  --bs-border-radius-xl: var(--r-lg);
  --bs-box-shadow: var(--shadow-md);
  --bs-box-shadow-sm: var(--shadow-sm);
  --bs-box-shadow-lg: var(--shadow-lg);
  --bs-primary: var(--c-primary);
  --bs-link-color: var(--c-primary);
  --bs-link-hover-color: var(--c-primary-strong);
  --bs-code-color: var(--c-primary-strong);
  --bs-highlight-bg: color-mix(in srgb, var(--c-accent) 35%, transparent);
}

/* ---------- 3. Baza si tipografie ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { overflow-x: clip; background: var(--c-bg); color: var(--c-text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main.site-main { min-height: 50vh; }
main:focus { outline: none; }
.container, .container-lg, .container-xl, .container-xxl { max-width: var(--container); }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-heading); font-weight: var(--heading-weight); font-stretch: var(--heading-stretch);
  letter-spacing: var(--heading-tracking); color: var(--c-heading); line-height: 1.14; text-wrap: balance; margin-bottom: .6em;
}
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.3; }
h5, .h5 { font-size: 1.0625rem; line-height: 1.35; }
h6, .h6 { font-size: .95rem; line-height: 1.35; }
.display-1, .display-2, .display-3, .display-4, .display-title { font-size: var(--fs-display); line-height: 1.04; }
.display-5, .display-6 { font-size: var(--fs-h1); }

p { margin-bottom: 1.1em; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem); line-height: 1.55; font-weight: 400; color: var(--c-text); }
small, .small { font-size: var(--fs-small); }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .15s; }
a:hover { color: var(--c-primary-strong); }
strong, b { color: var(--c-heading); font-weight: 650; }
hr { border-color: var(--c-border); opacity: 1; margin: 2rem 0; }
::selection { background: var(--c-primary); color: var(--c-on-primary); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
mark, .mark { background: var(--bs-highlight-bg); color: inherit; padding: .05em .25em; }
code { font-size: .9em; }
blockquote, .blockquote { border-left: 4px solid var(--c-accent); padding: .35rem 0 .35rem 1.4rem; margin: 1.8rem 0; font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-size: 1.3rem; line-height: 1.4; color: var(--c-heading); }
blockquote p:last-child { margin-bottom: 0; }
.blockquote-footer, blockquote footer { font-family: var(--font-body); font-size: var(--fs-small); color: var(--c-muted); margin-top: .8rem; }

/* Linia de accent: marcheaza inceputul unei sectiuni sau al unui titlu */
.rule { display: block; width: 56px; height: 4px; background: var(--c-accent); border: 0; opacity: 1; margin: 0 0 1.4rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.text-center > .rule, .rule.mx-auto { margin-inline: auto; border-radius: var(--r-sm); }

/* Continutul scris in editorul din admin */
.page-text-content { max-width: 100%; }
.page-text-content > p, .page-text-content > ul, .page-text-content > ol, .page-text-content > blockquote { max-width: var(--measure); }
.page-text-content h2 { margin-top: 2.2em; }
.page-text-content h3, .page-text-content h4 { margin-top: 1.8em; }
.page-text-content > :first-child { margin-top: 0; }
.page-text-content ul, .page-text-content ol { padding-left: 1.3rem; margin-bottom: 1.3em; }
.page-text-content li { margin-bottom: .4em; }
.page-text-content ul > li::marker { color: var(--c-primary); }
.page-text-content ol > li::marker { color: var(--c-primary); font-weight: 700; }
.page-text-content img { border-radius: var(--r-md); }
.page-text-content table { width: 100%; margin-bottom: 1.5rem; border-collapse: collapse; }
.page-text-content table th, .page-text-content table td { padding: .7rem .9rem; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.page-text-content table th { background: var(--c-surface-alt); color: var(--c-heading); font-weight: 650; }

/* ---------- 4. Sectiuni ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-sm { padding-block: calc(var(--section-y) * .55); }
.section-alt { background: var(--c-surface-alt); }
.section-ink, .section-primary { color: var(--c-ink-muted); --motif-line: color-mix(in srgb, var(--c-on-ink) 9%, transparent); }
.section-ink { background: var(--c-ink); }
.section-primary { background: var(--c-primary); color: color-mix(in srgb, var(--c-on-primary) 86%, var(--c-primary)); --motif-line: color-mix(in srgb, var(--c-on-primary) 16%, transparent); }
.section-ink :is(h1, h2, h3, h4, h5, h6, strong, .lead), .section-ink .stat-value { color: var(--c-on-ink); }
.section-primary :is(h1, h2, h3, h4, h5, h6, strong, .lead) { color: var(--c-on-primary); }
.section-ink a:not(.btn) { color: var(--c-on-ink); }
.section-primary a:not(.btn) { color: var(--c-on-primary); }
.section-motif::before { content: ""; position: absolute; inset: 0; background: var(--motif); pointer-events: none; -webkit-mask-image: linear-gradient(to left, #000 0, transparent 62%); mask-image: linear-gradient(to left, #000 0, transparent 62%); }
.section-motif > * { position: relative; }
.page-content { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head.text-center { margin-inline: auto; }
.section-head > :last-child { margin-bottom: 0; }
.section-head h2 { margin-bottom: .45em; }
.section-head p { font-size: 1.125rem; color: var(--c-muted); }
.section-ink .section-head p, .section-primary .section-head p { color: inherit; }
/* Titlu de sectiune cu buton in dreapta */
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- 5. Antet si meniu ---------- */
.skip-link { position: absolute; left: 8px; top: -80px; z-index: 100000; background: var(--c-ink); color: var(--c-on-ink); padding: 10px 16px; font-weight: 700; border: 2px solid var(--c-accent); }
.skip-link:focus { top: 8px; color: var(--c-on-ink); text-decoration: underline; }

.topbar { background: var(--c-ink); color: var(--c-ink-muted); font-size: var(--fs-small); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 42px; }
.topbar-list { display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.topbar a { color: var(--c-ink-muted); text-decoration: none; }
.topbar a:hover { color: var(--c-on-ink); }
.topbar i { color: var(--c-accent); margin-right: .45rem; font-size: .85em; }
.topbar-social a i { color: inherit; margin: 0; font-size: 1rem; }

.site-header { position: sticky; top: 0; z-index: 1030; background: var(--c-surface); border-bottom: 1px solid var(--c-border); transition: box-shadow .25s; }
.site-header.is-stuck { box-shadow: var(--shadow-md); border-bottom-color: transparent; }
.site-header .navbar { padding-block: 0; min-height: var(--header-h); transition: min-height .25s var(--ease); }
.site-header.is-stuck .navbar { min-height: calc(var(--header-h) - 16px); }
.site-header .navbar > .container { position: relative; gap: .5rem 1.25rem; }
.site-header .navbar-brand { font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--c-heading); padding-block: .5rem; margin-right: 0; }
.site-header .navbar-brand img { max-height: 46px; width: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.btn-icon { --bs-btn-padding-x: 0; --bs-btn-padding-y: 0; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: var(--shape-btn); color: var(--c-heading); background: transparent; }
.btn-icon:hover, .btn-icon[aria-expanded="true"] { background: var(--c-surface-alt); color: var(--c-primary); }

.site-header .navbar-nav { gap: .15rem; }
.site-header .nav-link { color: var(--c-heading); font-weight: 600; font-size: 1rem; padding: .6rem .85rem; position: relative; }
.site-header .nav-link:hover, .site-header .nav-link:focus-visible, .site-header .nav-link.show { color: var(--c-primary); }
.site-header .nav-item.active > .nav-link, .site-header .nav-link.active { color: var(--c-primary); }
.site-header .dropdown-toggle::after { border: 0; content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7em; vertical-align: 0; margin-left: .4em; transition: transform .2s; }
.site-header .dropdown-toggle.show::after { transform: rotate(180deg); }

.dropdown-menu { --bs-dropdown-bg: var(--c-surface); --bs-dropdown-color: var(--c-text); --bs-dropdown-border-color: var(--c-border); --bs-dropdown-border-radius: var(--r-md); --bs-dropdown-link-color: var(--c-text); --bs-dropdown-link-hover-color: var(--c-primary); --bs-dropdown-link-hover-bg: var(--c-primary-soft); --bs-dropdown-link-active-bg: var(--c-primary); --bs-dropdown-link-active-color: var(--c-on-primary); --bs-dropdown-header-color: var(--c-muted); --bs-dropdown-padding-y: .6rem; --bs-dropdown-item-padding-x: 1.1rem; --bs-dropdown-item-padding-y: .45rem; --bs-dropdown-font-size: .98rem; --bs-dropdown-divider-bg: var(--c-border); box-shadow: var(--shadow-lg); }
.dropdown-item { border-radius: 0; }

/* Meniul mare (pe toata latimea), cu coloane */
.mega-title { font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 700; font-size: .95rem; color: var(--c-heading); margin: 0 0 .5rem; padding: 0 0 .5rem; border-bottom: 2px solid var(--c-accent); display: inline-block; }
.mega-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.mega-list a { display: block; padding: .32rem 0; color: var(--c-text); text-decoration: none; }
.mega-list a:hover, .mega-list a.active { color: var(--c-primary); }
.mega-list a small { display: block; color: var(--c-muted); line-height: 1.3; }

@media (min-width: 992px) {
  .site-header .navbar-nav > .nav-item > .nav-link::before { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: -1px; height: 3px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .site-header .navbar-nav > .nav-item > .nav-link { padding-block: calc((var(--header-h) - 1.65rem) / 2); transition: padding .25s var(--ease); }
  .site-header.is-stuck .navbar-nav > .nav-item > .nav-link { padding-block: calc((var(--header-h) - 16px - 1.65rem) / 2); }
  .site-header .navbar-nav > .nav-item > .nav-link:hover::before, .site-header .navbar-nav > .nav-item.active > .nav-link::before, .site-header .navbar-nav > .nav-item > .nav-link.show::before, .site-header .navbar-nav > .nav-item > .nav-link.active::before { transform: scaleX(1); }
  .site-header .dropdown-menu { margin-top: 0; border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); min-width: 15rem; }
  .site-header .has-mega { position: static; }
  .site-header .mega-menu { left: 0; right: 0; padding: 1.75rem 2rem 1rem; }
  .site-header .offcanvas-header { display: none; }
}
@media (max-width: 991.98px) {
  :root { --header-h: 68px; }
  .site-header .offcanvas { --bs-offcanvas-bg: var(--c-surface); --bs-offcanvas-width: min(88vw, 380px); }
  .site-header .offcanvas-header { border-bottom: 1px solid var(--c-border); }
  .site-header .nav-link { padding: .8rem 0; border-bottom: 1px solid var(--c-border); font-size: 1.05rem; }
  .site-header .dropdown-menu { border: 0; box-shadow: none; padding: .5rem 0 .5rem 1rem; }
  .site-header .mega-menu .row > * { margin-bottom: .5rem; }
}

.header-search { background: var(--c-surface-alt); border-top: 1px solid var(--c-border); }
.header-search form { padding-block: 1.1rem; display: flex; gap: .6rem; }

/* ---------- 6. Erou si antet de pagina ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 2rem + 5vw, 6.5rem); background: var(--c-bg); }
.hero-title { font-size: var(--fs-display); line-height: 1.03; margin-bottom: .5em; }
.hero-lead { font-size: clamp(1.12rem, 1.02rem + .5vw, 1.35rem); line-height: 1.55; max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.hero-note { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; font-size: 1rem; color: var(--c-muted); }
.hero-note strong { display: block; font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-size: 1.1rem; }
.hero-note a { color: inherit; text-decoration: none; }

/* Compozitia din dreapta: un panou cu forma din skin, motivul decorativ, o imagine optionala si un card suprapus */
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 540px; margin-inline: auto 0; }
.hero-panel { position: absolute; inset: 0 0 7% 9%; background: var(--c-primary); border-radius: var(--shape-hero); overflow: hidden; --motif-line: color-mix(in srgb, var(--c-on-primary) 22%, transparent); }
.hero-panel::after { content: ""; position: absolute; inset: 0; background: var(--motif); }
.hero-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-panel:has(img)::after { display: none; }
.hero-chip { position: absolute; left: 0; bottom: 0; width: 34%; aspect-ratio: 1 / 1; background: var(--c-accent); border-radius: var(--shape-card); }
.hero-card { position: absolute; left: 4%; bottom: 12%; max-width: 76%; background: var(--c-surface); border-radius: var(--shape-card); box-shadow: var(--shadow-lg); padding: 1.15rem 1.4rem; display: flex; gap: 1rem; align-items: center; }
.hero-card i { width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary); border-radius: var(--r-md); font-size: 1.15rem; }
.hero-card strong { display: block; font-family: var(--font-heading); font-stretch: var(--heading-stretch); line-height: 1.25; }
.hero-card span { font-size: var(--fs-small); color: var(--c-muted); line-height: 1.35; display: block; }
@media (max-width: 991.98px) { .hero-art { max-width: 420px; margin: 3rem auto 0; } }

/* Variante de erou */
.hero-ink { background: var(--c-ink); color: var(--c-ink-muted); --motif-line: color-mix(in srgb, var(--c-on-ink) 9%, transparent); }
.hero-ink .hero-title, .hero-ink .hero-lead, .hero-ink strong { color: var(--c-on-ink); }
.hero-ink .hero-note { border-color: var(--c-ink-line); color: var(--c-ink-muted); }
.hero-center { text-align: center; }
.hero-center .hero-lead { margin-inline: auto; max-width: 40rem; }
.hero-center .hero-actions, .hero-center .hero-note { justify-content: center; }
.hero-motif::before { content: ""; position: absolute; inset: 0; background: var(--motif); -webkit-mask-image: radial-gradient(ellipse at 100% 0, #000 0, transparent 70%); mask-image: radial-gradient(ellipse at 100% 0, #000 0, transparent 70%); pointer-events: none; }
.hero-motif > * { position: relative; }

.page-banner { position: relative; overflow: hidden; background: var(--c-surface-alt); padding-block: clamp(2.25rem, 1.6rem + 3vw, 4rem); border-bottom: 1px solid var(--c-border); }
.page-banner::before { content: ""; position: absolute; inset: 0; background: var(--motif); -webkit-mask-image: linear-gradient(to left, #000 0, transparent 55%); mask-image: linear-gradient(to left, #000 0, transparent 55%); pointer-events: none; }
.page-banner > .container { position: relative; }
.page-banner h1 { margin: 0 0 .6rem; max-width: 22ch; }
.page-banner .lead { max-width: 44rem; margin: 0 0 .8rem; }
.breadcrumb { --bs-breadcrumb-divider: "/"; --bs-breadcrumb-divider-color: var(--c-muted); --bs-breadcrumb-item-active-color: var(--c-muted); --bs-breadcrumb-font-size: var(--fs-small); margin: 0; padding: 0; background: transparent; }
.breadcrumb a { color: var(--c-text); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-primary); }

/* ---------- 7. Butoane ---------- */
.btn { --bs-btn-border-radius: var(--shape-btn); --bs-btn-font-weight: 650; --bs-btn-padding-x: 1.35rem; --bs-btn-padding-y: .68rem; --bs-btn-font-size: 1rem; --bs-btn-font-family: var(--font-body); --bs-btn-border-width: 1.5px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; line-height: 1.3; transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: none; outline: 3px solid var(--c-focus); outline-offset: 2px; }
.btn-lg { --bs-btn-padding-x: 1.7rem; --bs-btn-padding-y: .9rem; --bs-btn-font-size: 1.0625rem; --bs-btn-border-radius: var(--shape-btn); }
.btn-sm { --bs-btn-padding-x: .9rem; --bs-btn-padding-y: .4rem; --bs-btn-font-size: .9rem; --bs-btn-border-radius: var(--shape-btn); }

/* Butoane pline: fiecare varianta da doar culorile (--_bg, --_fg, --_bg-h) */
.btn-primary { --_bg: var(--c-primary); --_fg: var(--c-on-primary); --_bg-h: var(--c-primary-strong); }
.btn-accent, .btn-warning { --_bg: var(--c-accent); --_fg: var(--c-on-accent); --_bg-h: color-mix(in srgb, var(--c-accent) 86%, var(--c-heading)); }
.btn-dark, .btn-ink { --_bg: var(--c-ink); --_fg: var(--c-on-ink); --_bg-h: color-mix(in srgb, var(--c-ink) 82%, var(--c-on-ink)); }
.btn-secondary { --_bg: var(--c-muted); --_fg: var(--c-bg); --_bg-h: color-mix(in srgb, var(--c-muted) 82%, var(--c-heading)); }
.btn-success { --_bg: var(--c-success); --_fg: var(--c-bg); --_bg-h: color-mix(in srgb, var(--c-success) 84%, var(--c-heading)); }
.btn-danger { --_bg: var(--c-danger); --_fg: var(--c-bg); --_bg-h: color-mix(in srgb, var(--c-danger) 84%, var(--c-heading)); }
.btn-info { --_bg: var(--c-info); --_fg: var(--c-bg); --_bg-h: color-mix(in srgb, var(--c-info) 84%, var(--c-heading)); }
.btn-light { --_bg: var(--c-surface-alt); --_fg: var(--c-heading); --_bg-h: var(--c-border); }
.btn-white { --_bg: #fff; --_fg: #111827; --_bg-h: #e9edf3; }
.btn-primary, .btn-accent, .btn-warning, .btn-dark, .btn-ink, .btn-secondary, .btn-success, .btn-danger, .btn-info, .btn-light, .btn-white {
  --bs-btn-bg: var(--_bg); --bs-btn-border-color: var(--_bg); --bs-btn-color: var(--_fg);
  --bs-btn-hover-bg: var(--_bg-h); --bs-btn-hover-border-color: var(--_bg-h); --bs-btn-hover-color: var(--_fg);
  --bs-btn-active-bg: var(--_bg-h); --bs-btn-active-border-color: var(--_bg-h); --bs-btn-active-color: var(--_fg);
  --bs-btn-disabled-bg: var(--_bg); --bs-btn-disabled-border-color: var(--_bg); --bs-btn-disabled-color: var(--_fg);
}
/* Butoane cu contur */
.btn-outline-primary { --_c: var(--c-primary); --_on: var(--c-on-primary); }
.btn-outline-secondary { --_c: var(--c-heading); --_on: var(--c-bg); --_b: var(--c-border); }
.btn-outline-dark { --_c: var(--c-heading); --_on: var(--c-bg); }
.btn-outline-success { --_c: var(--c-success); --_on: var(--c-bg); }
.btn-outline-danger { --_c: var(--c-danger); --_on: var(--c-bg); }
.btn-outline-light { --_c: var(--c-on-ink); --_on: var(--c-ink); --_b: var(--c-ink-line); }
.btn-outline-primary, .btn-outline-secondary, .btn-outline-dark, .btn-outline-success, .btn-outline-danger, .btn-outline-light {
  --bs-btn-color: var(--_c); --bs-btn-border-color: var(--_b, var(--_c)); --bs-btn-bg: transparent;
  --bs-btn-hover-bg: var(--_c); --bs-btn-hover-border-color: var(--_c); --bs-btn-hover-color: var(--_on);
  --bs-btn-active-bg: var(--_c); --bs-btn-active-border-color: var(--_c); --bs-btn-active-color: var(--_on);
  --bs-btn-disabled-color: var(--_c); --bs-btn-disabled-border-color: var(--_b, var(--_c));
}
.btn-link { --bs-btn-color: var(--c-primary); --bs-btn-hover-color: var(--c-primary-strong); --bs-btn-padding-x: 0; text-underline-offset: .2em; }
.btn-close { --bs-btn-close-focus-shadow: 0 0 0 3px var(--c-focus); }
/* Link de actiune, cu sageata care se misca la trecerea cu mouse-ul */
.link-more { display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; text-decoration: none; }
.link-more::after { content: "\f061"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .8em; transition: transform .2s var(--ease); }
.link-more:hover::after { transform: translateX(4px); }

/* ---------- 8. Carduri si blocuri ---------- */
.card { --bs-card-bg: var(--c-surface); --bs-card-color: var(--c-text); --bs-card-border-color: var(--c-border); --bs-card-border-radius: 0; --bs-card-inner-border-radius: 0; --bs-card-spacer-x: 1.6rem; --bs-card-spacer-y: 1.5rem; --bs-card-cap-bg: var(--c-surface-alt); --bs-card-title-color: var(--c-heading); border-radius: var(--shape-card); overflow: hidden; }
.card-title { font-size: 1.2rem; margin-bottom: .5rem; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--c-primary); }
.card-img-top { border-radius: 0; aspect-ratio: 5 / 3; object-fit: cover; }
.card-lift { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-primary-line); }
.card-meta { font-size: var(--fs-small); color: var(--c-muted); margin-bottom: .5rem; }

/* Iconita in caseta */
.icon-tile { width: 56px; height: 56px; display: grid; place-items: center; flex: none; background: var(--c-primary-soft); color: var(--c-primary); border-radius: var(--r-md); font-size: 1.35rem; margin-bottom: 1.25rem; }
.icon-tile-accent { background: var(--c-accent); color: var(--c-on-accent); }
.icon-tile-solid { background: var(--c-primary); color: var(--c-on-primary); }
.section-ink .icon-tile { background: var(--c-ink-soft); color: var(--c-accent); }

/* Serviciu / avantaj */
.feature { height: 100%; padding: 1.9rem 1.7rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--shape-card); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.feature:hover { border-color: var(--c-primary-line); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.feature p { margin-bottom: 1rem; }
.feature > :last-child { margin-bottom: 0; }
.feature-plain { padding: 0; border: 0; background: transparent; }
.feature-plain:hover { box-shadow: none; transform: none; }
.feature-row { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature-row .icon-tile { margin: 0; }
.feature-row h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.feature-row p { margin: 0; }

/* Cifre */
.stat { padding-left: 1.25rem; border-left: 3px solid var(--c-accent); }
.stat-value { font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1; color: var(--c-heading); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: .5rem; font-size: 1rem; line-height: 1.4; }

/* Pasi (doar pentru continut care chiar este o succesiune) */
.steps { counter-reset: step; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); list-style: none; margin: 0; padding: 0; }
.step { counter-increment: step; position: relative; padding-top: 3.9rem; }
.step::before { content: counter(step); position: absolute; top: 0; left: 0; width: 46px; height: 46px; display: grid; place-items: center; background: var(--c-primary); color: var(--c-on-primary); font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; border-radius: var(--r-md); }
.step::after { content: ""; position: absolute; top: 22px; left: 62px; right: calc(var(--gap) * -1 + 16px); border-top: 2px dashed var(--c-border); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { margin: 0; }
@media (max-width: 575.98px) { .step::after { display: none; } }

/* Cronologie verticala */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--c-border); }
.timeline > li { position: relative; padding: 0 0 1.9rem 1.75rem; }
.timeline > li::before { content: ""; position: absolute; left: -8px; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--c-surface); border: 3px solid var(--c-primary); }
.timeline > li:last-child { padding-bottom: 0; }
.timeline time, .timeline .timeline-date { display: block; font-size: var(--fs-small); color: var(--c-muted); font-weight: 600; }
.timeline h3, .timeline h4 { font-size: 1.1rem; margin: .1rem 0 .3rem; }
.timeline p { margin: 0; }

/* Marturie */
.testimonial { height: 100%; display: flex; flex-direction: column; padding: 2rem 1.9rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--shape-card); }
.testimonial::before { content: "\f10d"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--c-accent); font-size: 1.6rem; line-height: 1; margin-bottom: 1rem; }
.testimonial blockquote { border: 0; padding: 0; margin: 0 0 1.5rem; font-family: var(--font-body); font-size: 1.08rem; line-height: 1.6; color: var(--c-text); flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: .9rem; }
.avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; }
.avatar-lg { width: 88px; height: 88px; font-size: 1.6rem; }
.testimonial-author strong { display: block; line-height: 1.3; }
.testimonial-author span { font-size: var(--fs-small); color: var(--c-muted); }

/* Membru de echipa */
.person { text-align: left; }
.person-photo { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: var(--c-surface-alt) var(--motif); --motif-line: color-mix(in srgb, var(--c-primary) 16%, transparent); border-radius: var(--shape-media); margin-bottom: 1.1rem; display: grid; place-items: center; color: var(--c-primary-line); font-size: 3rem; }
.person h3 { font-size: 1.15rem; margin-bottom: .15rem; }
.person-role { color: var(--c-muted); font-size: var(--fs-small); margin-bottom: .6rem; }
.social-links { display: flex; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.social-links a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--c-border); border-radius: var(--r-md); color: var(--c-heading); text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.social-links a:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }

/* Pret */
.price { height: 100%; display: flex; flex-direction: column; padding: 2.1rem 1.9rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--shape-card); }
.price h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.price-amount { font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 800; font-size: 2.6rem; line-height: 1.1; color: var(--c-heading); letter-spacing: -.03em; margin: 1rem 0 .2rem; }
.price-amount small { font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--c-muted); letter-spacing: 0; }
.price ul { flex: 1; margin: 1.4rem 0 1.8rem; }
.price-featured { border-color: var(--c-primary); box-shadow: var(--shadow-md); position: relative; }
.price-featured::before { content: attr(data-label); position: absolute; top: 0; right: 0; background: var(--c-accent); color: var(--c-on-accent); font-size: .8rem; font-weight: 700; padding: .3rem .9rem; border-radius: 0 0 0 var(--r-md); }

/* Banda de apel la actiune */
.cta { position: relative; overflow: hidden; background: var(--c-primary); color: color-mix(in srgb, var(--c-on-primary) 88%, var(--c-primary)); border-radius: var(--shape-card); padding: clamp(2rem, 1.4rem + 3vw, 3.75rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; --motif-line: color-mix(in srgb, var(--c-on-primary) 18%, transparent); }
.cta::before { content: ""; position: absolute; inset: 0; background: var(--motif); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { color: var(--c-on-primary); margin: 0 0 .4rem; max-width: 22ch; }
.cta p { margin: 0; max-width: 40rem; font-size: 1.1rem; }
.cta-ink { background: var(--c-ink); color: var(--c-ink-muted); --motif-line: color-mix(in srgb, var(--c-on-ink) 10%, transparent); }
.cta-ink h2 { color: var(--c-on-ink); }

/* Sir de sigle / parteneri */
.logo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; list-style: none; margin: 0; padding: 0; }
.logo-strip > * { background: var(--c-surface); min-height: 96px; display: grid; place-items: center; padding: 1rem; color: var(--c-muted); font-family: var(--font-heading); font-weight: 700; }
.logo-strip img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.logo-strip > *:hover img { filter: none; opacity: 1; }

/* Caseta de evidentiere si imagine cu forma */
.callout { padding: 1.4rem 1.6rem; background: var(--c-primary-soft); border-left: 4px solid var(--c-primary); border-radius: 0 var(--r-md) var(--r-md) 0; margin: 1.8rem 0; }
.callout > :last-child { margin-bottom: 0; }
.callout-accent { background: color-mix(in srgb, var(--c-accent) 14%, var(--c-surface)); border-color: var(--c-accent); }
.media-shape { border-radius: var(--shape-media); overflow: hidden; display: block; width: 100%; }
.media-placeholder { aspect-ratio: 4 / 3; background: var(--c-surface-alt) var(--motif); --motif-line: color-mix(in srgb, var(--c-primary) 18%, transparent); display: grid; place-items: center; color: var(--c-primary-line); font-size: 2.6rem; border-radius: var(--shape-media); }
.media-frame { position: relative; padding: 0 0 1.5rem 1.5rem; }
.media-frame::before { content: ""; position: absolute; left: 0; bottom: 0; width: 45%; height: 55%; background: var(--c-accent); border-radius: var(--shape-card); }
.media-frame > * { position: relative; }

/* ---------- 9. Acordeon si taburi ---------- */
.accordion { --bs-accordion-bg: var(--c-surface); --bs-accordion-color: var(--c-text); --bs-accordion-border-color: var(--c-border); --bs-accordion-border-radius: var(--r-md); --bs-accordion-inner-border-radius: var(--r-md); --bs-accordion-btn-color: var(--c-heading); --bs-accordion-btn-bg: var(--c-surface); --bs-accordion-active-color: var(--c-primary); --bs-accordion-active-bg: var(--c-primary-soft); --bs-accordion-btn-padding-x: 1.4rem; --bs-accordion-btn-padding-y: 1.15rem; --bs-accordion-body-padding-x: 1.4rem; --bs-accordion-body-padding-y: 1.25rem; --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-btn-icon: none; --bs-accordion-btn-active-icon: none; }
.accordion-button { font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 650; font-size: 1.06rem; line-height: 1.35; gap: 1rem; }
.accordion-button::after { content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; background: none; width: auto; height: auto; color: var(--c-primary); font-size: .9rem; transition: transform .25s var(--ease); }
.accordion-button:not(.collapsed)::after { content: "\f068"; transform: rotate(180deg); }
.accordion-button:focus-visible { outline: 3px solid var(--c-focus); outline-offset: -3px; }
.accordion-button:not(.collapsed) { box-shadow: none; }
.accordion-body > :last-child { margin-bottom: 0; }
/* Varianta cu elemente separate */
.accordion-spaced .accordion-item { border: 1px solid var(--c-border); border-radius: var(--r-md); margin-bottom: .75rem; overflow: hidden; }
.accordion-spaced .accordion-item:has(.accordion-button:not(.collapsed)) { border-color: var(--c-primary-line); box-shadow: var(--shadow-sm); }
/* Varianta simpla, doar cu linii */
.accordion-flush { --bs-accordion-bg: transparent; --bs-accordion-btn-bg: transparent; --bs-accordion-active-bg: transparent; --bs-accordion-btn-padding-x: 0; --bs-accordion-body-padding-x: 0; }

.nav { --bs-nav-link-color: var(--c-text); --bs-nav-link-hover-color: var(--c-primary); --bs-nav-link-font-weight: 600; }
.nav-tabs { --bs-nav-tabs-border-color: var(--c-border); --bs-nav-tabs-border-width: 0; --bs-nav-tabs-link-active-color: var(--c-primary); --bs-nav-tabs-link-active-bg: transparent; border-bottom: 2px solid var(--c-border); gap: .25rem; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.nav-tabs .nav-link { border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: .8rem 1.1rem; white-space: nowrap; border-radius: 0; }
.nav-tabs .nav-link.active { border-bottom-color: var(--c-accent); }
.nav-pills { --bs-nav-pills-border-radius: var(--shape-btn); --bs-nav-pills-link-active-bg: var(--c-primary); --bs-nav-pills-link-active-color: var(--c-on-primary); gap: .4rem; }
.nav-pills .nav-link { padding: .6rem 1.15rem; }
.nav-pills .nav-link:not(.active):hover { background: var(--c-primary-soft); }
.tab-content { padding-top: 1.75rem; }
.tab-content > .tab-pane > :last-child { margin-bottom: 0; }
/* Taburi verticale: .tabs-vertical pe randul care contine lista si continutul */
.tabs-vertical .nav { flex-direction: column; gap: .35rem; }
.tabs-vertical .nav-link { text-align: left; padding: .9rem 1.15rem; border: 1px solid var(--c-border); border-radius: var(--r-md); color: var(--c-heading); }
.tabs-vertical .nav-link.active { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.tabs-vertical .tab-content { padding-top: 0; }

/* ---------- 10. Ferestre: modal, offcanvas, tooltip, popover, toast ---------- */
.modal { --bs-modal-bg: var(--c-surface); --bs-modal-color: var(--c-text); --bs-modal-border-color: transparent; --bs-modal-border-radius: var(--r-lg); --bs-modal-inner-border-radius: var(--r-lg); --bs-modal-padding: 1.75rem; --bs-modal-header-padding: 1.4rem 1.75rem; --bs-modal-header-border-color: var(--c-border); --bs-modal-footer-border-color: var(--c-border); --bs-modal-box-shadow: var(--shadow-lg); }
.modal-content { box-shadow: var(--shadow-lg); }
.modal-title { font-size: 1.3rem; margin: 0; }
.modal-footer { padding: 1.1rem 1.75rem; gap: .5rem; }
.modal-backdrop { --bs-backdrop-bg: var(--c-ink); --bs-backdrop-opacity: .62; }
/* Popup promotional: modal cu doua jumatati */
.modal-split .modal-body { padding: 0; display: grid; }
.modal-split .modal-art { background: var(--c-primary) var(--motif); --motif-line: color-mix(in srgb, var(--c-on-primary) 20%, transparent); min-height: 160px; display: grid; place-items: center; color: var(--c-on-primary); font-size: 3rem; }
.modal-split .modal-text { padding: 2.25rem 2rem; }
.modal-split .btn-close { position: absolute; top: .9rem; right: .9rem; z-index: 2; background-color: var(--c-surface); border-radius: 50%; padding: .6rem; opacity: 1; }
@media (min-width: 768px) { .modal-split .modal-body { grid-template-columns: 2fr 3fr; } }

.offcanvas { --bs-offcanvas-bg: var(--c-surface); --bs-offcanvas-color: var(--c-text); --bs-offcanvas-border-color: var(--c-border); --bs-offcanvas-padding-x: 1.5rem; --bs-offcanvas-padding-y: 1.25rem; }
.offcanvas-title { font-size: 1.2rem; margin: 0; }
.tooltip { --bs-tooltip-bg: var(--c-ink); --bs-tooltip-color: var(--c-on-ink); --bs-tooltip-border-radius: var(--r-sm); --bs-tooltip-font-size: .85rem; --bs-tooltip-padding-x: .7rem; --bs-tooltip-padding-y: .4rem; --bs-tooltip-opacity: 1; font-family: var(--font-body); }
.popover { --bs-popover-bg: var(--c-surface); --bs-popover-border-color: var(--c-border); --bs-popover-border-radius: var(--r-md); --bs-popover-header-bg: var(--c-surface-alt); --bs-popover-header-color: var(--c-heading); --bs-popover-body-color: var(--c-text); --bs-popover-box-shadow: var(--shadow-lg); font-family: var(--font-body); box-shadow: var(--shadow-lg); }
.popover-header { font-family: var(--font-heading); font-size: 1rem; }
.toast { --bs-toast-bg: var(--c-surface); --bs-toast-color: var(--c-text); --bs-toast-border-color: var(--c-border); --bs-toast-border-radius: var(--r-md); --bs-toast-header-bg: var(--c-surface); --bs-toast-header-color: var(--c-heading); --bs-toast-header-border-color: var(--c-border); --bs-toast-box-shadow: var(--shadow-lg); --bs-toast-font-size: .95rem; border-left: 4px solid var(--_s, var(--c-primary)); }
.toast-success { --_s: var(--c-success); } .toast-danger { --_s: var(--c-danger); } .toast-warning { --_s: var(--c-warning); }
.toast-container { z-index: 1090; }

/* ---------- 11. Formulare ---------- */
.form-label { font-weight: 600; color: var(--c-heading); margin-bottom: .4rem; font-size: .98rem; }
.form-label .req, .form-label abbr[title] { color: var(--c-danger); text-decoration: none; margin-left: .15em; }
.form-text { color: var(--c-muted); font-size: var(--fs-small); }
.form-control, .form-select { background-color: var(--c-surface); color: var(--c-heading); border: 1.5px solid var(--c-border); border-radius: var(--r-md); padding: .7rem .95rem; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.form-control::placeholder { color: var(--c-muted); opacity: .8; }
.form-control:hover, .form-select:hover { border-color: color-mix(in srgb, var(--c-border) 55%, var(--c-muted)); }
.form-control:focus, .form-select:focus { background-color: var(--c-surface); color: var(--c-heading); border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-focus); outline: 0; }
.form-control:disabled, .form-select:disabled { background-color: var(--c-surface-alt); color: var(--c-muted); }
.form-control-lg, .form-select-lg { padding: .9rem 1.1rem; font-size: 1.0625rem; border-radius: var(--r-md); }
.form-control-sm, .form-select-sm { padding: .4rem .7rem; font-size: .9rem; border-radius: var(--r-sm); }
textarea.form-control { min-height: 8rem; }
.form-check-input { width: 1.2em; height: 1.2em; margin-top: .22em; background-color: var(--c-surface); border: 1.5px solid color-mix(in srgb, var(--c-border) 40%, var(--c-muted)); }
.form-check-input:checked { background-color: var(--c-primary); border-color: var(--c-primary); }
.form-check-input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-focus); }
.form-check-label { padding-left: .2rem; }
.form-switch .form-check-input { width: 2.3em; }
.form-range::-webkit-slider-thumb { background: var(--c-primary); }
.form-range::-moz-range-thumb { background: var(--c-primary); }
.form-range::-webkit-slider-runnable-track { background: var(--c-border); }
.input-group-text { background: var(--c-surface-alt); border: 1.5px solid var(--c-border); color: var(--c-muted); border-radius: var(--r-md); }
.form-floating > label { color: var(--c-muted); padding: .8rem .95rem; }
.form-floating > .form-control:focus ~ label::after, .form-floating > .form-control:not(:placeholder-shown) ~ label::after, .form-floating > .form-select ~ label::after { background: transparent; }
/* Validare (clasele sunt puse de theme.js sau de server) */
.form-control.is-invalid, .form-select.is-invalid, .was-validated .form-control:invalid, .was-validated .form-select:invalid { border-color: var(--c-danger); background-image: none; padding-right: .95rem; }
.form-control.is-invalid:focus, .form-select.is-invalid:focus, .was-validated .form-control:invalid:focus { border-color: var(--c-danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-danger) 30%, transparent); }
.form-control.is-valid, .form-select.is-valid, .was-validated .form-control:valid, .was-validated .form-select:valid { border-color: var(--c-success); background-image: none; padding-right: .95rem; }
.form-control.is-valid:focus, .was-validated .form-control:valid:focus { border-color: var(--c-success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-success) 28%, transparent); }
.form-check-input.is-invalid, .was-validated .form-check-input:invalid { border-color: var(--c-danger); }
.form-check-input.is-invalid ~ .form-check-label, .was-validated .form-check-input:invalid ~ .form-check-label { color: var(--c-danger); }
.form-check-input.is-valid ~ .form-check-label, .was-validated .form-check-input:valid ~ .form-check-label { color: inherit; }
.form-check-input.is-valid, .was-validated .form-check-input:valid { border-color: var(--c-success); }
.form-check-input.is-valid:checked, .was-validated .form-check-input:valid:checked { background-color: var(--c-success); }
.invalid-feedback { color: var(--c-danger); font-size: var(--fs-small); font-weight: 600; margin-top: .35rem; }
.invalid-feedback::before { content: "\f06a"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: .4rem; }
.valid-feedback { color: var(--c-success); font-size: var(--fs-small); font-weight: 600; }
/* Caseta de formular si starea de trimitere */
.form-panel { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--shape-card); padding: clamp(1.5rem, 1.1rem + 2vw, 2.5rem); box-shadow: var(--shadow-sm); }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::before { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Indicator de tarie a parolei: <div class="strength" data-level="0..4"> */
.strength { height: 6px; border-radius: 3px; background: var(--c-border); margin-top: .5rem; overflow: hidden; }
.strength::before { content: ""; display: block; height: 100%; width: calc(var(--level, 0) * 25%); background: var(--c-danger); transition: width .25s, background-color .25s; }
.strength[data-level="2"]::before { background: var(--c-warning); }
.strength[data-level="3"]::before, .strength[data-level="4"]::before { background: var(--c-success); }

/* ---------- 12. Alerte, etichete, progres ---------- */
.alert { --_s: var(--c-info); --_i: "\f05a"; --bs-alert-bg: color-mix(in srgb, var(--_s) 9%, var(--c-surface)); --bs-alert-color: var(--c-text); --bs-alert-border-color: color-mix(in srgb, var(--_s) 26%, var(--c-surface)); --bs-alert-border-radius: var(--r-md); --bs-alert-padding-x: 1.2rem; --bs-alert-padding-y: 1rem; --bs-alert-link-color: var(--c-heading); position: relative; padding-left: 3.2rem; border-left: 4px solid var(--_s); }
.alert::before { content: var(--_i); font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--_s); position: absolute; left: 1.1rem; top: 1rem; font-size: 1.1rem; line-height: 1.5; }
.alert-success { --_s: var(--c-success); --_i: "\f058"; }
.alert-warning { --_s: var(--c-warning); --_i: "\f071"; }
.alert-danger { --_s: var(--c-danger); --_i: "\f06a"; }
.alert-primary { --_s: var(--c-primary); --_i: "\f0a1"; }
.alert-secondary, .alert-light, .alert-dark { --_s: var(--c-muted); }
.alert-heading { font-size: 1.1rem; color: var(--c-heading); margin-bottom: .3rem; }
.alert > :last-child { margin-bottom: 0; }

.badge { --bs-badge-font-weight: 650; --bs-badge-padding-x: .6em; --bs-badge-padding-y: .4em; --bs-badge-border-radius: var(--r-sm); --bs-badge-font-size: .8em; letter-spacing: 0; }
.badge.rounded-pill { --bs-badge-padding-x: .8em; }
.text-bg-primary { background: var(--c-primary) !important; color: var(--c-on-primary) !important; }
.text-bg-secondary { background: var(--c-muted) !important; color: var(--c-bg) !important; }
.text-bg-success { background: var(--c-success) !important; color: var(--c-bg) !important; }
.text-bg-danger { background: var(--c-danger) !important; color: var(--c-bg) !important; }
.text-bg-warning, .text-bg-accent { background: var(--c-accent) !important; color: var(--c-on-accent) !important; }
.text-bg-info { background: var(--c-info) !important; color: var(--c-bg) !important; }
.text-bg-light { background: var(--c-surface-alt) !important; color: var(--c-heading) !important; }
.text-bg-dark { background: var(--c-ink) !important; color: var(--c-on-ink) !important; }
/* Eticheta discreta: fundal deschis in culoarea starii */
.badge-soft { background: color-mix(in srgb, var(--_s, var(--c-primary)) 13%, var(--c-surface)); color: color-mix(in srgb, var(--_s, var(--c-primary)) 80%, var(--c-heading)); }
.badge-soft.is-success { --_s: var(--c-success); } .badge-soft.is-danger { --_s: var(--c-danger); } .badge-soft.is-warning { --_s: var(--c-warning); } .badge-soft.is-muted { --_s: var(--c-muted); }

.progress, .progress-stacked { --bs-progress-bg: var(--c-surface-alt); --bs-progress-bar-bg: var(--c-primary); --bs-progress-bar-color: var(--c-on-primary); --bs-progress-height: .65rem; --bs-progress-border-radius: var(--r-sm); }
.progress-labeled { display: flex; justify-content: space-between; font-weight: 600; color: var(--c-heading); margin-bottom: .4rem; font-size: .98rem; }
.spinner-border, .spinner-grow { color: var(--c-primary); }

/* ---------- 13. Tabele si liste ---------- */
.table { --bs-table-bg: transparent; --bs-table-color: var(--c-text); --bs-table-border-color: var(--c-border); --bs-table-striped-bg: var(--c-surface-alt); --bs-table-striped-color: var(--c-text); --bs-table-hover-bg: var(--c-primary-soft); --bs-table-hover-color: var(--c-heading); margin-bottom: 1.5rem; }
.table > :not(caption) > * > * { padding: .85rem 1rem; }
.table > thead > tr > th { font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 650; font-size: .92rem; color: var(--c-heading); background: var(--c-surface-alt); border-bottom: 2px solid var(--c-border); white-space: nowrap; }
.table-ink > thead > tr > th { background: var(--c-ink); color: var(--c-on-ink); border-color: var(--c-ink); }
.table-responsive { border: 1px solid var(--c-border); border-radius: var(--r-md); margin-bottom: 1.5rem; }
.table-responsive > .table { margin-bottom: 0; }
.table-responsive > .table > :last-child > tr:last-child > * { border-bottom: 0; }
caption { color: var(--c-muted); font-size: var(--fs-small); }

/* Liste cu iconita (regula din CMS: fara <i> in continut, iconita vine din CSS) */
.list-benefits, .list-check, .list-documents, .list-contact, .list-arrow { list-style: none; padding-left: 0 !important; }
.list-benefits > li, .list-check > li, .list-documents > li, .list-contact > li, .list-arrow > li { position: relative; padding-left: 2rem; margin-bottom: .65rem; }
.list-benefits > li::before, .list-check > li::before, .list-documents > li::before, .list-arrow > li::before { font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 0; color: var(--c-primary); }
.list-benefits > li::before, .list-check > li::before { content: "\f00c"; width: 1.35rem; height: 1.35rem; margin-top: .22rem; display: grid; place-items: center; font-size: .68rem; background: var(--c-primary-soft); border-radius: 50%; }
.list-arrow > li::before { content: "\f054"; font-size: .7rem; top: .35rem; color: var(--c-accent); }
.list-documents > li { padding: .85rem 1rem .85rem 3.1rem; border: 1px solid var(--c-border); border-radius: var(--r-md); margin-bottom: .5rem; background: var(--c-surface); }
.list-documents > li::before { content: "\f15b"; left: 1.1rem; top: .8rem; font-size: 1.15rem; font-weight: 400; }
.list-documents > li a { font-weight: 600; text-decoration: none; }
.list-documents > li a::after { content: ""; position: absolute; inset: 0; }
.list-documents > li:hover { border-color: var(--c-primary-line); background: var(--c-primary-soft); }
.list-contact > li { padding-left: 2.4rem; margin-bottom: 1rem; }
.list-contact > li > i { position: absolute; left: 0; top: .28rem; color: var(--c-primary); width: 1.4rem; text-align: center; }
.list-contact a { text-decoration: none; }
.section-ink .list-contact > li > i { color: var(--c-accent); }
/* Lista de definitii pe doua coloane */
.list-specs { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; margin: 0; }
.list-specs dt, .list-specs dd { padding: .7rem 0; border-bottom: 1px solid var(--c-border); margin: 0; }
.list-specs dt { color: var(--c-heading); font-weight: 600; }

.list-group { --bs-list-group-bg: var(--c-surface); --bs-list-group-color: var(--c-text); --bs-list-group-border-color: var(--c-border); --bs-list-group-border-radius: var(--r-md); --bs-list-group-item-padding-x: 1.15rem; --bs-list-group-item-padding-y: .8rem; --bs-list-group-action-color: var(--c-heading); --bs-list-group-action-hover-color: var(--c-primary); --bs-list-group-action-hover-bg: var(--c-primary-soft); --bs-list-group-active-bg: var(--c-primary); --bs-list-group-active-border-color: var(--c-primary); --bs-list-group-active-color: var(--c-on-primary); }
.sidebar-submenu { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-submenu .list-group-item { font-weight: 600; }

/* ---------- 14. Media: galerie, lightbox, carusel, video ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .75rem; }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: var(--r-md); aspect-ratio: 4 / 3; background: var(--c-surface-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.4rem; background: color-mix(in srgb, var(--c-ink) 55%, transparent); opacity: 0; transition: opacity .25s; }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
.gallery a:hover img { transform: scale(1.05); }

.lb { position: fixed; inset: 0; z-index: 2000; background: color-mix(in srgb, var(--c-ink) 94%, transparent); display: none; align-items: center; justify-content: center; }
.lb.is-open { display: flex; }
.lb-stage { max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; }
.lb-stage img { max-width: 92vw; max-height: 78vh; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); }
.lb-caption { color: #fff; margin-top: .9rem; text-align: center; font-size: .98rem; }
.lb-counter { position: absolute; top: 1.2rem; left: 1.5rem; color: rgba(255,255,255,.75); font-size: .95rem; font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; display: grid; place-items: center; cursor: pointer; transition: background-color .15s; }
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; margin-top: -24px; }
.lb-next { right: 1rem; top: 50%; margin-top: -24px; }

.carousel { border-radius: var(--shape-media); overflow: hidden; }
.carousel-indicators { margin-bottom: 1.1rem; gap: .4rem; }
.carousel-indicators [data-bs-target] { width: 26px; height: 4px; border: 0; margin: 0; border-radius: 2px; background: #fff; }
.carousel-control-prev, .carousel-control-next { width: 4.5rem; opacity: 1; }
.carousel-control-prev-icon, .carousel-control-next-icon { width: 46px; height: 46px; border-radius: 50%; background-color: var(--c-surface); background-size: 40%; filter: none; box-shadow: var(--shadow-md); }
.carousel-control-prev-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3E%3Cpath d='M11.3 1.6 5 8l6.3 6.4-1.4 1.4L2.2 8l7.7-7.8z'/%3E%3C/svg%3E"); }
.carousel-control-next-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3E%3Cpath d='M4.7 14.4 11 8 4.7 1.6 6.1.2 13.8 8l-7.7 7.8z'/%3E%3C/svg%3E"); }
.carousel-caption { left: 0; right: 0; bottom: 0; text-align: left; padding: 3rem 2rem 2.6rem; background: linear-gradient(to top, color-mix(in srgb, var(--c-ink) 88%, transparent), transparent); color: #fff; }
.carousel-caption h3, .carousel-caption h5 { color: #fff; margin-bottom: .2rem; }
.carousel-caption p { margin: 0; }
.slide-art { aspect-ratio: 16 / 7; min-height: 280px; background: var(--c-primary) var(--motif); --motif-line: color-mix(in srgb, var(--c-on-primary) 20%, transparent); }
.slide-art.is-ink { background-color: var(--c-ink); --motif-line: color-mix(in srgb, var(--c-on-ink) 12%, transparent); }
.slide-art.is-accent { background-color: var(--c-accent); --motif-line: color-mix(in srgb, var(--c-on-accent) 16%, transparent); }

/* Video responsiv (16:9): <div class="embed-container"><iframe ...></iframe></div> */
.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; border-radius: var(--r-md); background: var(--c-surface-alt); }
.embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 15. Navigatie de pagina ---------- */
.pagination { --bs-pagination-color: var(--c-heading); --bs-pagination-bg: var(--c-surface); --bs-pagination-border-color: var(--c-border); --bs-pagination-border-radius: var(--r-md); --bs-pagination-hover-color: var(--c-primary); --bs-pagination-hover-bg: var(--c-primary-soft); --bs-pagination-hover-border-color: var(--c-primary-line); --bs-pagination-active-bg: var(--c-primary); --bs-pagination-active-border-color: var(--c-primary); --bs-pagination-active-color: var(--c-on-primary); --bs-pagination-disabled-bg: var(--c-surface); --bs-pagination-disabled-color: var(--c-muted); --bs-pagination-disabled-border-color: var(--c-border); --bs-pagination-focus-box-shadow: 0 0 0 3px var(--c-focus); --bs-pagination-padding-x: .95rem; --bs-pagination-padding-y: .55rem; --bs-pagination-font-size: 1rem; gap: .35rem; flex-wrap: wrap; font-family: var(--font-body); font-weight: 600; }
.pagination .page-link { border-radius: var(--r-md) !important; margin: 0; min-width: 2.75rem; text-align: center; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results > li { padding: 1.4rem 0; border-bottom: 1px solid var(--c-border); }
.search-results h2 { font-size: 1.25rem; margin-bottom: .3rem; }
.search-results h2 a { text-decoration: none; color: var(--c-heading); }
.search-results h2 a:hover { color: var(--c-primary); }
.search-results p { margin: 0; color: var(--c-muted); }

.scroll-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020; width: 46px; height: 46px; border: 0; border-radius: var(--shape-btn); background: var(--c-ink); color: var(--c-on-ink); display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s, background-color .15s; }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--c-primary); color: var(--c-on-primary); }

/* ---------- 16. Subsol ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--c-ink); color: var(--c-ink-muted); padding-top: clamp(3rem, 2.2rem + 3vw, 5rem); font-size: 1rem; --motif-line: color-mix(in srgb, var(--c-on-ink) 7%, transparent); }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--motif); -webkit-mask-image: linear-gradient(to left, #000 0, transparent 45%); mask-image: linear-gradient(to left, #000 0, transparent 45%); pointer-events: none; }
.site-footer > .container { position: relative; }
.site-footer h2, .site-footer h5 { color: var(--c-on-ink); font-size: 1.05rem; margin-bottom: 1.1rem; }
.site-footer a { color: var(--c-ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--c-on-ink); }
.footer-brand { font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 800; font-size: 1.35rem; color: var(--c-on-ink); margin-bottom: 1rem; display: block; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; }
.site-footer .social-links a { border-color: var(--c-ink-line); color: var(--c-on-ink); }
.site-footer .social-links a:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.footer-bottom { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-block: 1.4rem; border-top: 1px solid var(--c-ink-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: var(--fs-small); }

/* ---------- 17. Utilitare ---------- */
.text-primary { color: var(--c-primary) !important; }
.text-accent { color: var(--c-accent) !important; }
.text-muted, .text-body-secondary { color: var(--c-muted) !important; }
.text-success { color: var(--c-success) !important; }
.text-danger { color: var(--c-danger) !important; }
.text-warning { color: var(--c-warning) !important; }
.text-heading { color: var(--c-heading) !important; }
.bg-primary { background-color: var(--c-primary) !important; }
.bg-accent { background-color: var(--c-accent) !important; }
.bg-ink, .bg-dark { background-color: var(--c-ink) !important; }
.bg-light, .bg-alt, .bg-body-tertiary { background-color: var(--c-surface-alt) !important; }
.bg-surface, .bg-white { background-color: var(--c-surface) !important; }
.border { border-color: var(--c-border) !important; }
.rounded-shape { border-radius: var(--shape-card) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.measure { max-width: var(--measure); }
.narrow { max-width: 46rem; margin-inline: auto; }
.narrow-sm { max-width: 34rem; margin-inline: auto; }

/* ---------- 18. Miscare ---------- */
/* O singura animatie la incarcare: elementele eroului intra pe rand */
@media (prefers-reduced-motion: no-preference) {
  .hero-enter > * { animation: rise .7s var(--ease) both; }
  .hero-enter > :nth-child(2) { animation-delay: .08s; }
  .hero-enter > :nth-child(3) { animation-delay: .16s; }
  .hero-enter > :nth-child(4) { animation-delay: .24s; }
  .hero-art .hero-panel { animation: panel .9s var(--ease) both; }
  .hero-art .hero-chip { animation: rise .7s .25s var(--ease) both; }
  .hero-art .hero-card { animation: rise .7s .4s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes panel { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .topbar, .site-header, .site-footer, .scroll-top, .header-search { display: none !important; }
  .page-banner { background: none; border: 0; padding: 0 0 1rem; }
}
