/* ==========================================================================
   Fonturi self-hosted (GDPR: fără transfer de IP către Google)
   Fișiere .woff2 în public/fonts/. Inter și Fraunces sunt fonturi variabile,
   deci același fișier acoperă greutățile 400-600.
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  /* Colorway CALD (implicit) - nisip/cream + accent teal.
     Tokenuri care diferă față de rece: suprafețele, foreground-ul pe teal și navbar-ul.
     Restul (accente teal, ink, alb) sunt comune. */
  --teal-900: #1f3d40;
  --teal-700: #2f5d62;
  --teal-500: #4a8388;
  --teal-100: #dceae9;
  --teal-50: #f6f1e7;     /* nisip - suprafețe „muted" */
  --ink: #223231;
  --ink-soft: #536361;
  --white: #ffffff;
  --line: #e6e0d4;
  --bg: #fbf9f4;           /* cream - fundal pagină */
  --field: #fbf9f4;        /* cream - fundal input-uri/casete formular */
  --muted-200: #e8ddcb;    /* sand-200 - hover / borduri ghost (ca în React) */
  --on-dark: #f6f1e7;      /* text/icon pe suprafețe teal închise */
  --nav-glass: rgba(251, 249, 244, 0.92);

  /* Umbre în două straturi: un contact fin + o difuzie largă. Citesc mai
     „așezat" decât o singură umbră difuză. */
  --shadow-sm:
    0 1px 2px rgba(31, 61, 64, 0.05),
    0 2px 10px rgba(31, 61, 64, 0.04);
  --shadow-md:
    0 2px 4px rgba(31, 61, 64, 0.05),
    0 14px 34px rgba(31, 61, 64, 0.09);
  --shadow-lg:
    0 4px 8px rgba(31, 61, 64, 0.06),
    0 28px 64px rgba(31, 61, 64, 0.14);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;

  /* Ritm vertical - o singură scară folosită de secțiuni și capete de secțiune */
  --space-section: 104px;
  --space-head: 60px;

  /* Lista de tarife: dimensiunea iconiței grupei și spațiul de după ea */
  --rate-icon-size: 44px;
  --rate-icon-gap: 13px;

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Colorway RECE - alb/teal (activat prin data-theme="cool" pe <html>) */
:root[data-theme="cool"] {
  --teal-50: #eef5f4;
  --line: #dde6e4;
  /* Un off-white foarte fin, nu alb pur: cardurile sunt --white (#ffffff), iar
     pe fundal alb curat rămâneau definite doar de bordură. Diferența e aceeași
     ca în tema caldă (#fbf9f4 vs #ffffff), deci relieful e consistent. */
  --bg: #f6fafa;
  --field: #eef5f4;
  --muted-200: var(--teal-100);
  --on-dark: #eef5f4;
  --nav-glass: rgba(255, 255, 255, 0.9);
}

/* Tranziție lină la schimbarea temei (clasa e adăugată temporar de
   controller). ATENȚIE: durata de aici trebuie să rămână sub timeout-ul din
   theme_controller.js (acum 2100ms), altfel clasa e scoasă în timpul animației și culorile
   sar brusc la valoarea finală. */
.theme-anim *,
.theme-anim *::before,
.theme-anim *::after {
  transition: background-color 1.8s ease, background-image 1.8s ease,
              border-color 1.8s ease, color 1.8s ease,
              fill 1.8s ease, box-shadow 1.8s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  .theme-anim *,
  .theme-anim *::before,
  .theme-anim *::after {
    transition: none !important;
  }
}

/* ==========================================================================
   Base
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  /* Animațiile de intrare translatează lateral; fără asta apare scroll
     orizontal pe ecrane înguste. `clip` (nu `hidden`) nu creează un
     container de derulare, deci fixed/sticky rămân funcționale. */
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--teal-900);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-700);
  margin-bottom: 14px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal-700);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--teal-700);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  background: var(--teal-900);
  border-color: var(--teal-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
/* Fundal propriu, nu transparent: altfel butonul dispare pe secțiunile
   „muted" (ex. „Vezi toate articolele" pe banda de la Blog). */
.btn--ghost {
  background: var(--white);
  color: var(--teal-700);
  border-color: var(--muted-200);
}
.btn--ghost:hover {
  background: var(--white);
  border-color: var(--teal-500);
  color: var(--teal-900);
}
.btn--sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.nav--scrolled {
  background: var(--nav-glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.nav__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-700);
  color: var(--on-dark);
  flex-shrink: 0;
}
.nav__mark-icon {
  display: block;
  transform: rotate(-8deg);
}
.nav__name {
  font-size: 1rem;
  color: var(--teal-900);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav__links a:hover {
  color: var(--teal-700);
}
.nav__links .btn {
  color: var(--white);
}
.nav__links .btn--sm:hover {
  color: var(--white);
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--teal-900);
  border-radius: 2px;
  transition: 0.2s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 168px 0 104px;
  /* Culoarea de bază stă pe background-color (se transiționează la schimbarea
     temei), iar gradientele se sting în transparent peste ea. Dacă baza ar fi
     tot în gradient, ar sări instant la comutarea temei - gradientele nu se
     interpolează - și ar apărea o cusătură vizibilă la limita cu „Despre". */
  background-color: var(--bg);
  overflow: hidden;
}
/* Tentele hero-ului stau pe pseudo-elemente colorate cu `background-color`
   (singura proprietate de fundal care se poate anima) și decupate cu o mască
   STATICĂ. Așa forma nu depinde de temă, iar culoarea se schimbă lent odată
   cu restul paginii - un `background-image` cu gradient ar sări instant. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  background-color: var(--teal-50);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
.hero::after {
  background-color: var(--teal-100);
  -webkit-mask-image: radial-gradient(120% 90% at 85% 0%, #000 0%, transparent 55%);
  mask-image: radial-gradient(120% 90% at 85% 0%, #000 0%, transparent 55%);
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-700);
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 18px;
}
.hero__subtitle {
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 22px;
}
.hero__tagline {
  font-size: 1.2rem;
  color: var(--ink);
  max-width: 34ch;
  margin-bottom: 34px;
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Semne de încredere sub butoane - umple partea de jos a hero-ului
   și dă greutate profesională încă din primul ecran. */
.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 54ch;
}
.hero__trust li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.35;
}
.hero__trust li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-500);
  flex-shrink: 0;
}

.hero__portrait {
  position: relative;
  display: grid;
  place-items: center;
}
.portrait {
  position: relative;
  z-index: 2;
  width: 330px;
  height: 470px;
  /* Aproape oval: raza aproape egală cu jumătatea lățimii => capsulă verticală */
  border-radius: 150px;
  background: linear-gradient(160deg, var(--teal-500), var(--teal-900));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 0.7, 0.3, 1);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.portrait__initials {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--white);
  opacity: 0.9;
}
.portrait__glow {
  position: absolute;
  z-index: 1;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-100), transparent 70%);
  filter: blur(10px);
  animation: glowPulse 5.5s ease-in-out infinite;
}
.hero__portrait:hover .portrait {
  transform: translateY(-6px);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: var(--space-section) 0;
  background: var(--bg);
}
/* Fără benzi alternante: o singură suprafață pe toată pagina. Secțiunile
   se despart printr-un filet de 1px, nu prin schimbare de fundal.
   `.section--muted` rămâne în markup ca hook semantic, dar nu mai colorează. */
.section--muted {
  background: var(--bg);
}
main:not(.page-shell) > .section + .section > .container {
  border-top: 1px solid var(--line);
  padding-top: var(--space-section);
}
/* filetul ține locul spațiului de sus al secțiunii, altfel s-ar dubla */
main:not(.page-shell) > .section + .section {
  padding-top: 0;
}
.section__head {
  text-align: center;
  max-width: 730px;
  margin: 0 auto var(--space-head);
}
.section__head--left {
  text-align: left;
  max-width: 720px;
  margin-left: 0;
  margin-right: auto;
}
.section__title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.section__lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.about__text {
  max-width: 760px;
  margin: 0 auto;
}
.about__paragraph {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.about__text .about__paragraph:last-child {
  margin-bottom: 0;
}
.stats {
  display: flex;
  gap: 56px;
  margin: 48px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat__value {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--teal-700);
  line-height: 1;
}
.stat__label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 6px;
}
.about__side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.about__side-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.qual-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qual-list li {
  display: flex;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}
.qual-list__dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--teal-500);
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-100);
}
.service-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--teal-100);
  color: var(--teal-700);
  margin-bottom: 20px;
}
.service-card__title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.service-card__text {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.16, 0.7, 0.3, 1), box-shadow 0.45s ease;
}
.price-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
/* Lift pe tot cardul — fără mișcare separată pe CTA */
.price-card .btn:hover {
  transform: none;
}
/* Cardul recomandat: fundal teal închis, evidențiat */
.price-card--featured {
  background: linear-gradient(170deg, var(--teal-900), var(--teal-700));
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  /* pastila „Cel mai ales" iese peste muchia de sus */
  overflow: visible;
}
.price-card--featured:hover {
  box-shadow: var(--shadow-lg);
}
.price-card--featured .price-card__name,
.price-card--featured .price-card__amount,
.price-card--featured .price-card__currency {
  color: var(--white);
}
.price-card--featured .price-card__duration,
.price-card--featured .price-card__desc,
.price-card--featured .price-card__features li {
  color: var(--teal-100);
}
.price-card--featured .price-card__features svg {
  color: var(--muted-200);
}
/* „Cel mai ales" - pastilă centrată pe muchia de sus a cardului.
   Panglica diagonală de dinainte trecea peste titlu la nume lungi. */
.price-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  background: var(--muted-200);
  color: var(--teal-900);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.price-card__name {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-card__amount {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--teal-700);
  line-height: 1;
}
.price-card__currency {
  font-size: 1.1rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.price-card__duration {
  color: var(--teal-700);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 6px 0 18px;
}
.price-card__desc {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 18px;
}
/* O coloană, dar strâns. Varianta pe două coloane a fost încercată și iese
   mai rău: textele nu încap pe jumătate de lățime, se rup în două rânduri
   fiecare, deci cardul crește în loc să scadă. */
.price-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
  flex-grow: 1;
}
.price-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.price-card__features svg {
  color: var(--teal-500);
  flex-shrink: 0;
}
.price-card__cta {
  width: 100%;
}
.price-card--featured .price-card__cta {
  background: var(--white);
  color: var(--teal-900);
  border-color: var(--white);
}
.price-card--featured .price-card__cta:hover {
  background: var(--teal-50);
  border-color: var(--teal-50);
}
.pricing-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 34px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Lista completă de tarife (sub cardurile de tarife)
   ========================================================================== */
/* Lista completă de tarife - închisă implicit, se deschide dintr-o bară-buton */
.rate-list {
  margin-top: 52px;
}
.rate-list__summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  list-style: none;
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.16, 0.7, 0.3, 1);
}
.rate-list__summary::-webkit-details-marker { display: none; }
.rate-list__summary:hover {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.rate-list__title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--teal-900);
}
.rate-list__count {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--teal-100);
  color: var(--teal-900);
  font-size: 0.78rem;
  font-weight: 700;
}
.rate-list__chevron {
  color: var(--teal-700);
  transition: transform 0.3s ease;
}
.rate-list[open] .rate-list__chevron { transform: rotate(180deg); }
.rate-list[open] .rate-list__summary { margin-bottom: 34px; }
.rate-list::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size 0.45s cubic-bezier(0.16, 0.7, 0.3, 1),
              opacity 0.35s ease,
              content-visibility 0.45s allow-discrete;
}
.rate-list[open]::details-content {
  block-size: auto;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .rate-list::details-content { transition: none; }
  .rate-list__summary:hover { transform: none; }
}
/* Împachetare „masonry" pe coloane: grupele se lipesc una sub alta,
   fără golurile pe care le lăsa un grid cu rânduri de înălțime egală. */
.rate-list__groups {
  columns: 2;
  column-gap: 24px;
}
.rate-group {
  break-inside: avoid;
  margin-bottom: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px 22px;
  box-shadow: var(--shadow-sm);
}
.rate-group__head {
  display: flex;
  align-items: center;
  gap: var(--rate-icon-gap);
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.rate-group__icon {
  display: grid;
  place-items: center;
  width: var(--rate-icon-size);
  height: var(--rate-icon-size);
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal-700);
  flex-shrink: 0;
}
.rate-group__icon svg {
  width: 22px;
  height: 22px;
}
.rate-group__name {
  font-size: 1.1rem;
  line-height: 1.3;
}
.rate-group__items {
  list-style: none;
}
/* Rând de tarif: serviciu la stânga, preț aliniat în coloană la dreapta */
.rate-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 8px 12px 0;
  margin: 0 -8px 0 0;
  border-bottom: 1px dotted var(--line);
  border-radius: 6px;
  transition: background 0.18s ease;
}
.rate-item:last-child {
  border-bottom: none;
}
.rate-item:hover {
  background: var(--teal-50);
}
.rate-item__label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
  transition: padding-left 0.18s ease;
}
/* La hover doar textul se deplasează ușor spre dreapta; prețul rămâne fix. */
.rate-item:hover .rate-item__label {
  padding-left: 12px;
}
@media (prefers-reduced-motion: reduce) {
  .rate-item__label { transition: none; }
}
.rate-item__service {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.4;
}
.rate-item__detail {
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.35;
}
/* Lățime minimă egală => toate prețurile din grupă se aliniază pe aceeași coloană */
.rate-item__price {
  color: var(--teal-700);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 74px;
  text-align: right;
}
@media (max-width: 860px) {
  .rate-list__groups {
    columns: 1;
  }
}
@media (max-width: 560px) {
  .rate-group {
    padding: 20px 18px 14px;
  }
  .rate-item {
    gap: 10px;
  }
  .rate-item__price {
    min-width: 66px;
    font-size: 1rem;
  }
}

/* Paranteza explicativă de la finalul unor servicii - linie secundară,
   ca fraza principală să se citească prima. */
.service-list__detail {
  display: block;
  margin-top: 2px;
  font-size: 0.86em;
  color: var(--ink-soft);
  opacity: 0.9;
  line-height: 1.4;
}

/* Câmp-capcană anti-spam: scos din flux, nu `display:none` - unii boți
   ignoră câmpurile ascunse astfel, dar îl completează pe acesta. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Location
   ========================================================================== */
/* Al doilea punct de lucru (Turda) - bandă sub hartă/program */
.second-loc {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 24px 30px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-500);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s ease, transform 0.45s cubic-bezier(0.16, 0.7, 0.3, 1);
}
.second-loc:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.second-loc__main {
  min-width: 0;
  flex: 1 1 320px;
}
.second-loc__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--teal-700);
  margin-bottom: 6px;
}
.second-loc__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 4px;
}
.second-loc__name-link {
  color: inherit;
  transition: color 0.2s ease;
}
.second-loc__name-link:hover {
  color: var(--teal-700);
}
.second-loc__addr {
  color: var(--ink);
  font-size: 0.95rem;
}
/* Link către site-ul clinicii partenere */
.second-loc__site {
  margin-top: 6px;
}
.second-loc__site a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--muted-200);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.second-loc__site a:hover {
  color: var(--teal-900);
  text-decoration-color: currentColor;
}
.second-loc__site svg {
  flex-shrink: 0;
  opacity: 0.8;
}
.second-loc__dot {
  margin: 0 8px;
  color: var(--ink-soft);
}
.second-loc__note {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 56ch;
}
.second-loc__side {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.second-loc__phone {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.second-loc__phone-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--ink-soft);
}
.second-loc__phone-value {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--teal-700);
  transition: color 0.2s ease;
}
.second-loc__phone:hover .second-loc__phone-value {
  color: var(--teal-900);
}
@media (max-width: 620px) {
  .second-loc {
    padding: 22px 20px;
  }
  .second-loc__side {
    width: 100%;
    justify-content: space-between;
  }
}

.location {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
  border: 1px solid var(--line);
  background: var(--teal-50);
}
.location__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
  background: var(--teal-50);
}
/* Placeholder consimțământ hartă (GDPR click-to-load) */
.map-consent {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  border: 0;
  background:
    radial-gradient(circle at 30% 20%, var(--teal-100), transparent 55%),
    var(--teal-50);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: background 0.2s ease;
}
.map-consent:hover {
  background:
    radial-gradient(circle at 30% 20%, var(--teal-100), transparent 45%),
    var(--muted-200);
}

/* Tema RECE: --teal-100 peste --teal-50 sunt aproape aceeași culoare acolo,
   deci bloomul de mai sus dispare și coperta rămâne plată. Aici adâncimea vine
   din teal-500/700 cu transparență - tonuri identice în ambele teme. */
:root[data-theme="cool"] .map-consent {
  background:
    radial-gradient(circle at 28% 18%, color-mix(in srgb, var(--teal-500) 34%, transparent) 0%, transparent 60%),
    radial-gradient(circle at 84% 86%, color-mix(in srgb, var(--teal-700) 20%, transparent) 0%, transparent 56%),
    var(--teal-50);
}
:root[data-theme="cool"] .map-consent:hover {
  background:
    radial-gradient(circle at 28% 18%, color-mix(in srgb, var(--teal-500) 44%, transparent) 0%, transparent 54%),
    radial-gradient(circle at 84% 86%, color-mix(in srgb, var(--teal-700) 26%, transparent) 0%, transparent 52%),
    var(--muted-200);
}
.map-consent__pin {
  font-size: 2rem;
}
.map-consent__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--teal-900);
}
.map-consent__note {
  font-size: 0.88rem;
}
.map-consent__cta {
  margin-top: 4px;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--teal-700);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease;
}
.map-consent:hover .map-consent__cta {
  background: var(--teal-900);
}
.map-consent__fine {
  font-size: 0.75rem;
  opacity: 0.75;
}
.map-consent__fine a {
  color: var(--teal-700);
  text-decoration: underline;
}
.location__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.info-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.info-block h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.info-block p {
  color: var(--ink-soft);
}
.info-block__hint {
  font-size: 0.9rem;
  margin: 12px 0 18px;
}
.schedule {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.schedule li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.schedule li:last-child {
  border-bottom: none;
}
.schedule__day {
  color: var(--ink);
  font-weight: 500;
}
.schedule__hours {
  color: var(--ink-soft);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact__methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.contact-method {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 46px 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
/* Săgeată discretă - arată că fiecare card e acționabil */
.contact-method::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid var(--teal-500);
  border-bottom: 1.8px solid var(--teal-500);
  transform: translateY(-50%) rotate(-45deg);
  opacity: 0.5;
  transition: opacity 0.2s ease, right 0.2s ease;
}
.contact-method:hover::after {
  opacity: 1;
  right: 18px;
}
.contact-method:hover {
  border-color: var(--teal-500);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.contact-method__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-500);
  font-weight: 600;
}
.contact-method__value {
  font-size: 1.05rem;
  color: var(--teal-900);
  font-weight: 500;
  margin-top: 2px;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background: var(--white);
}
.contact-form__note {
  color: var(--teal-700);
  font-size: 0.92rem;
  font-weight: 500;
}
/* Casetă de consimțământ GDPR */
.contact-form label.contact-form__consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--field);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.contact-form__consent input[type='checkbox'] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--teal-700);
  cursor: pointer;
}
.contact-form__consent a {
  color: var(--teal-700);
  text-decoration: underline;
}
.contact-form .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--teal-900);
  color: var(--on-dark);
  padding: 48px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.footer__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  font-size: 0.88rem;
  color: var(--teal-100);
  letter-spacing: 0.01em;
  max-width: 42rem;
}
.footer__disclaimer {
  font-size: 0.88rem;
  color: var(--teal-100);
  max-width: 60ch;
  opacity: 0.85;
}
.footer__links a {
  font-size: 0.88rem;
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__links a:hover {
  color: var(--white);
}
.footer__copy {
  font-size: 0.85rem;
  color: var(--teal-100);
  opacity: 0.7;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero__inner,
  .about,
  .location,
  .contact {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 130px;
    text-align: center;
  }
  .hero__tagline {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  /* Pe mobil poza stă DUPĂ text: cu ea prima, vizitatorul primea un ecran
     întreg de imagine înainte să afle al cui e site-ul. */
  .hero__portrait {
    order: 1;
    margin-top: 36px;
  }
  .hero__text {
    order: 0;
  }
  .services-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .about__side {
    margin-top: 8px;
  }

  .nav__toggle {
    display: flex;
    margin-left: auto;
  }
  .nav__links {
    margin-left: 0;
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav__links--open {
    opacity: 1;
    transform: translateY(8px);
    pointer-events: auto;
  }
  .nav__links a {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
  }
  .nav__links a:not(.btn):hover {
    background: var(--teal-50);
  }
  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-left: 0;
    margin-top: 6px;
  }
  .nav__links .btn,
  .nav__links .nav__blog {
    margin-top: 0;
    width: 100%;
    justify-content: center;
  }
  .nav__links .btn:hover,
  .nav__links .nav__blog:hover {
    background: var(--teal-900);
    border-color: var(--teal-900);
    color: var(--white);
  }
  .nav__links .nav__blog:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
  }
}

@media (max-width: 520px) {
  .stats {
    gap: 24px;
  }
  .section {
    padding: 72px 0;
  }
  .portrait {
    width: 260px;
    height: 380px;
  }
}

/* ==========================================================================
   Pagini separate (FAQ, blog, articol, confidențialitate) - gradient ca hero/despre
   ========================================================================== */
.page-shell {
  /* Navbar-ul e fix (~112px); fără asta capul paginii se lipea de el */
  padding-top: 72px;
  background-color: var(--bg);
  background-image:
    radial-gradient(110% 80% at 88% 0%, var(--teal-100) 0%, transparent 52%),
    linear-gradient(180deg, var(--teal-50) 0%, transparent 48%);
}
@media (max-width: 600px) {
  .page-shell { padding-top: 48px; }
}
.page-shell .section,
.page-shell.section {
  background: transparent;
}

/* ==========================================================================
   Pagina legală (Politica de confidențialitate)
   ========================================================================== */
.legal {
  padding-top: 110px;
  padding-bottom: 80px;
}
.legal__inner {
  max-width: 760px;
}
.legal__back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--teal-700);
  text-decoration: none;
}
.legal__back:hover { text-decoration: underline; }
.legal__back--bottom { margin-top: 32px; margin-bottom: 0; }
.legal h1 { font-size: 2.1rem; margin-bottom: 8px; }
.legal__updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink); margin-bottom: 12px; line-height: 1.7; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal__note {
  background: color-mix(in srgb, var(--teal-50) 70%, #f3e6b8);
  border: 1px solid color-mix(in srgb, var(--line) 55%, #d4b56a);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--ink) 72%, #6b5626);
}
.legal .ph {
  background: color-mix(in srgb, var(--teal-50) 45%, #ffd5c4);
  color: color-mix(in srgb, var(--ink) 35%, #8a3b1e);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}
.legal table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.legal th, .legal td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--white); font-weight: 600; }

/* ==========================================================================
   Galerie - spațiul cabinetului
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  background: var(--teal-50);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Servicii - liste detaliate pe categorii
   ========================================================================== */
.services-detailed {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.service-group__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.service-group__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-100);
  color: var(--teal-700);
  flex-shrink: 0;
}
.service-group__title {
  font-size: 1.35rem;
}
.service-list {
  list-style: none;
  columns: 2;
  column-gap: 44px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  break-inside: avoid;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.service-list li svg {
  color: var(--teal-500);
  flex-shrink: 0;
  margin-top: 4px;
}
@media (max-width: 760px) {
  .service-list {
    columns: 1;
  }
  .service-group {
    padding: 24px;
  }
}

/* ==========================================================================
   Formare - linie cu puncte; auto lent, control stânga/dreapta cu mouse-ul
   (proporții originale + săgeți / hint / swipe)
   ========================================================================== */
.path {
  position: relative;
  width: 100%;
  margin: 8px 0 4px;
  padding-top: 36px; /* spațiu pentru hint */
  cursor: default;
  touch-action: pan-y;
  /* Fără fundal propriu: banda ia exact culoarea secțiunii, în ambele teme. */
}
.path__viewport {
  position: relative;
  z-index: 1;
}
.path.is-steer-left {
  cursor: w-resize;
}
.path.is-steer-right {
  cursor: e-resize;
}
.path.is-hint-hidden .path__hint {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
}
.path.is-swiping {
  cursor: grabbing;
  touch-action: none;
}
.path.is-swiping .path__track {
  transition: none;
}
.path__hint {
  position: absolute;
  left: 50%;
  top: 4px;
  z-index: 4;
  transform: translateX(-50%);
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal-900) 78%, transparent);
  color: var(--on-dark);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}
.path__arrow {
  position: absolute;
  top: calc(50% + 18px);
  z-index: 5;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--teal-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.path__arrow:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-50%) scale(1.06);
}
.path__arrow:active {
  transform: translateY(-50%) scale(0.96);
}
.path__arrow--prev { left: -6px; }
.path__arrow--next { right: -6px; }
.path__viewport {
  overflow: hidden;
  width: 100%;
  padding: 8px 0 12px;
}
/* Indicii vizuale stânga/dreapta când dirijezi cu mouse-ul */
.path__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 88px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.25s ease, background 0.25s ease;
}
/* Se stinge spre culoarea REALĂ a secțiunii (--bg). Înainte mergea spre
   --teal-50, culoarea vechii benzi, și se vedea ca un bloc cu muchie tăiată.
   Stopurile intermediare fac trecerea curbă, fără margine perceptibilă. */
.path__fade--left {
  left: 0;
  background-color: var(--bg);
  -webkit-mask-image: linear-gradient(
    90deg, #000 0%, rgba(0, 0, 0, 0.72) 42%,
    rgba(0, 0, 0, 0.28) 72%, transparent 100%
  );
  mask-image: linear-gradient(
    90deg, #000 0%, rgba(0, 0, 0, 0.72) 42%,
    rgba(0, 0, 0, 0.28) 72%, transparent 100%
  );
}
.path__fade--right {
  right: 0;
  background-color: var(--bg);
  -webkit-mask-image: linear-gradient(
    270deg, #000 0%, rgba(0, 0, 0, 0.72) 42%,
    rgba(0, 0, 0, 0.28) 72%, transparent 100%
  );
  mask-image: linear-gradient(
    270deg, #000 0%, rgba(0, 0, 0, 0.72) 42%,
    rgba(0, 0, 0, 0.28) 72%, transparent 100%
  );
}
.path.is-steer-left .path__fade--left,
.path.is-steer-right .path__fade--right {
  background-color: var(--teal-100);
  opacity: 1;
}
.path__track {
  position: relative;
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 450px;
  will-change: transform;
}
/* linia orizontală pe toată banda (inclusiv copiile pentru loop) */
.path__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: var(--line);
  pointer-events: none;
}

.path-node {
  position: relative;
  flex: 0 0 200px;
  width: 200px;
  height: 360px;
}
.path-node__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px var(--teal-50);
  transform: translate(-50%, -50%) scale(1);
  transition:
    transform 0.35s cubic-bezier(0.22, 1.15, 0.36, 1),
    background 0.25s ease,
    box-shadow 0.3s ease;
  z-index: 2;
}
.path-node__stem {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 28px;
  background: var(--line);
  transform: translateX(-50%);
  z-index: 1;
}
.path-node--up .path-node__stem {
  bottom: calc(50% + 10px);
}
.path-node--down .path-node__stem {
  top: calc(50% + 10px);
}
.path-node__card {
  position: absolute;
  left: 6px;
  right: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform-origin: center bottom;
  transition:
    transform 0.35s cubic-bezier(0.22, 1.15, 0.36, 1),
    filter 0.3s ease;
}
.path-node--up .path-node__card {
  bottom: calc(50% + 42px);
  transform-origin: center bottom;
}
.path-node--down .path-node__card {
  top: calc(50% + 42px);
  transform-origin: center top;
}
.path-node__year {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--teal-700);
  line-height: 1.2;
  transition: color 0.2s ease;
}
.path-node__text {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.84rem;
  line-height: 1.4;
  text-wrap: pretty;
}
/* Instituția, ca linie secundară: repetarea „Babeș-Bolyai" de 3 ori nu mai
   concurează cu numele programului. */
.path-node__org {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.38;
  opacity: 0.85;
}

/* Hover: punctul + textul se măresc (efect „joc”), restul se estompează */
.path:has(.path-node:hover) .path-node:not(:hover) {
  opacity: 0.45;
  transition: opacity 0.3s ease;
}
.path-node:hover .path-node__dot {
  transform: translate(-50%, -50%) scale(2.3);
  background: var(--teal-700);
  box-shadow:
    0 0 0 6px var(--teal-100),
    0 0 16px rgba(47, 93, 98, 0.35);
}
.path-node:hover .path-node__card {
  transform: scale(1.16);
  filter: drop-shadow(0 8px 14px rgba(31, 61, 64, 0.12));
  z-index: 3;
}
.path-node:hover .path-node__year {
  color: var(--teal-900);
}

@media (max-width: 700px) {
  .path {
    padding-top: 44px;
  }
  .path__hint {
    font-size: 0.7rem;
    white-space: normal;
    text-align: center;
    max-width: 86%;
    line-height: 1.35;
  }
  .path__arrow {
    width: 36px;
    height: 36px;
    top: calc(50% + 22px);
  }
  .path__arrow--prev { left: 2px; }
  .path__arrow--next { right: 2px; }
  .path__fade {
    width: 28px;
  }
  .path__viewport {
    padding: 8px 0 10px;
  }
  .path-node {
    flex-basis: 170px;
    width: 170px;
    height: 320px;
  }
  .path__track {
    min-height: 320px;
  }
  .path-node__year {
    font-size: 0.98rem;
  }
  .path-node__text {
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .path__viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .path__track {
    transform: none !important;
  }
  .path__arrow,
  .path__hint {
    display: none;
  }
  .path-node:hover .path-node__dot,
  .path-node:hover .path-node__card {
    transform: none;
    filter: none;
  }
  .path:has(.path-node:hover) .path-node:not(:hover) {
    opacity: 1;
  }
}

/* ==========================================================================
   Atestate profesionale - badge-uri (în secțiunea Formare)
   ========================================================================== */
.atestate {
  margin-top: 28px;
  text-align: center;
}
.atestate__title {
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.atestate__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.atestate__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--teal-500);
  border: 1px solid var(--teal-500);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.atestate__badge:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--teal-700);
  border-color: var(--teal-700);
  box-shadow: var(--shadow-sm);
}
.atestate__badge svg {
  color: var(--white);
  flex-shrink: 0;
}

/* Footer - date de contact */
.footer__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.95rem;
}
.footer__contact a {
  color: var(--white);
  transition: color 0.2s ease;
}
.footer__contact a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__sep {
  color: var(--teal-500);
}

/* ==========================================================================
   Servicii - accordion (liste pliabile)
   ========================================================================== */
.accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.acc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.acc__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
}
.acc__summary::-webkit-details-marker {
  display: none;
}
.acc__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal-700);
  flex-shrink: 0;
}
.acc__titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.acc__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--teal-900);
}
.acc__sub {
  font-size: 0.87rem;
  color: var(--ink-soft);
}
.acc__chevron {
  color: var(--teal-700);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.acc[open] .acc__chevron {
  transform: rotate(180deg);
}
.acc__summary:hover .acc__title {
  color: var(--teal-700);
}
.acc[open] .acc__summary {
  border-bottom: 1px solid var(--line);
}
.acc .service-list {
  padding: 22px 28px 26px;
}

/* ==========================================================================
   Despre - card lateral (2 coloane)
   ========================================================================== */
.about__card {
  align-self: start;
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.about__stats {
  display: grid;
  gap: 18px;
}
.about__stats .stat {
  flex-direction: row;
  align-items: baseline;
  text-align: left;
  gap: 14px;
}
.about__stats .stat__value {
  font-size: 1.9rem;
  min-width: 62px;
}
.about__stats .stat__label {
  margin-top: 0;
}
.about__facts {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fact__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--teal-700);
}
.fact__value {
  font-size: 0.98rem;
  color: var(--ink);
}

/* ==========================================================================
   Bandă-citat (full-width)
   ========================================================================== */
.quote-band {
  background: linear-gradient(160deg, var(--teal-700), var(--teal-900));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
  overflow: hidden;
}
.quote-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quote-band__mark {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7vw, 4.8rem);
  line-height: 1;
  height: 0.55em;          /* doar zona vizibilă a glyph-ului */
  overflow: hidden;
  color: rgba(255, 255, 255, 0.18);
  margin: 0 0 18px;        /* egal cu spațiul text → autor */
  padding: 0;
  user-select: none;
  pointer-events: none;
}
.quote-band__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.4;
  max-width: 820px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.quote-band__author {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-100);
  margin: 0;
}

/* ==========================================================================
   Galerie - compoziție „feature” (o imagine mare + două mici)
   ========================================================================== */
.gallery-grid {
  grid-template-columns: 1.7fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 580px;
}
.gallery-item {
  aspect-ratio: auto;
  height: 100%;
}
.gallery-item:first-child {
  grid-row: 1 / span 2;
}

/* ==========================================================================
   Responsive pentru elementele noi
   ========================================================================== */
@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }
  .about__card {
    position: static;
  }
}
@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }
  .gallery-item {
    aspect-ratio: 4 / 5;
    height: auto;
  }
  .gallery-item:first-child {
    grid-row: auto;
  }
  .acc__summary {
    padding: 18px 20px;
  }
  .acc .service-list {
    padding: 18px 20px 22px;
  }
}

/* Footer - social (Facebook) */
.footer__social {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.footer__social-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--on-dark) 30%, transparent);
  color: var(--white);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer__social-link:hover {
  background: var(--white);
  color: var(--teal-900);
  border-color: var(--white);
}

/* ==========================================================================
   Accesibilitate - focus vizibil + skip link
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--teal-700);
  outline-offset: 3px;
}
.footer :focus-visible,
.quote-band :focus-visible {
  outline-color: var(--white);
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 200;
  background: var(--teal-700);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}
.contact-method:hover {
  color: var(--teal-700);
}

/* ==========================================================================
   Blog - carduri (homepage + /blog)
   ========================================================================== */
.blog-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: stretch;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-grid--index {
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: none;
  margin: 0;
}
.blog-grid--index .blog-card__media {
  aspect-ratio: 16 / 10;
}
.blog-grid--index .blog-card__body {
  padding: 20px 22px 22px;
}
.blog-grid--index .blog-card__title {
  font-size: 1.18rem;
}
.blog-grid--index .blog-card__excerpt {
  -webkit-line-clamp: 3;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.16, 0.7, 0.3, 1), box-shadow 0.45s ease;
}
/* /blog index: 1 featured pe toată lățimea, restul pe 3 coloane */
.blog-mosaic:not(.blog-mosaic--preview) > .blog-card {
  grid-column: span 2;
}
.blog-mosaic:not(.blog-mosaic--preview) > .blog-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  min-height: 300px;
}

/* Homepage preview (4 articole): featured înalt stânga + 3 compacte dreapta */
.blog-mosaic--preview {
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(3, minmax(148px, auto));
  gap: 20px;
  min-height: 520px;
}
.blog-mosaic--preview > .blog-card {
  grid-column: auto;
}
.blog-mosaic--preview > .blog-card--featured {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.blog-mosaic--preview > .blog-card--featured .blog-card__media {
  flex: 1.15 1 0;
  aspect-ratio: auto;
  min-height: 240px;
  height: auto;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}
.blog-mosaic--preview > .blog-card--featured .blog-card__body {
  flex: 0 0 auto;
  justify-content: flex-start;
  padding: 26px 28px 28px;
}
.blog-mosaic--preview > .blog-card--featured .blog-card__title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  margin-bottom: 10px;
}
.blog-mosaic--preview > .blog-card--featured .blog-card__excerpt {
  font-size: 0.98rem;
  margin-bottom: 16px;
  -webkit-line-clamp: 3;
}
.blog-mosaic--preview > .blog-card:not(.blog-card--featured) {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: stretch;
  min-height: 148px;
}
.blog-mosaic--preview > .blog-card:not(.blog-card--featured) .blog-card__media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 100%;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.blog-mosaic--preview > .blog-card:not(.blog-card--featured) .blog-card__body {
  padding: 16px 18px 18px;
  justify-content: center;
}
.blog-mosaic--preview > .blog-card:not(.blog-card--featured) .blog-card__title {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.blog-mosaic--preview > .blog-card:not(.blog-card--featured) .blog-card__excerpt {
  -webkit-line-clamp: 2;
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.blog-mosaic--preview > .blog-card:not(.blog-card--featured) .blog-card__meta {
  margin-bottom: 6px;
}
.blog-mosaic--preview > .blog-card:not(.blog-card--featured) .blog-card__placeholder svg {
  width: 28px;
  height: 28px;
}

.blog-card--featured .blog-card__media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 260px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.blog-card--featured .blog-card__body {
  justify-content: center;
  padding: 36px 40px;
}
.blog-card--featured .blog-card__title {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  margin-bottom: 14px;
}
.blog-card--featured .blog-card__excerpt {
  font-size: 1.05rem;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card--featured .blog-card__more {
  font-size: 0.95rem;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
/* Copertă (sau placeholder de brand când lipsește) */
.blog-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--teal-50);
  border-bottom: 1px solid var(--line);
}
.blog-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-900);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}
/* Categoria în linia de meta - implicit ascunsă (se folosește pastila peste imagine) */
.blog-card__category,
.blog-card__dot--cat {
  display: none;
}
.blog-card__category {
  color: var(--teal-700);
  font-weight: 600;
}
/* Carduri compacte: coloana de imagine e prea îngustă pentru pastilă,
   așa că o ascundem și afișăm categoria în linia de meta. */
.blog-mosaic--preview > .blog-card:not(.blog-card--featured) .blog-card__tag {
  display: none;
}
.blog-mosaic--preview > .blog-card:not(.blog-card--featured) .blog-card__category,
.blog-mosaic--preview > .blog-card:not(.blog-card--featured) .blog-card__dot--cat {
  display: inline;
}
/* ...iar ca să încapă totul pe un rând, renunțăm la timpul de citit
   (rămâne pe pagina articolului) și tăiem categoriile foarte lungi. */
.blog-mosaic--preview > .blog-card:not(.blog-card--featured) .blog-card__reading,
.blog-mosaic--preview > .blog-card:not(.blog-card--featured) .blog-card__dot--read {
  display: none;
}
.blog-mosaic--preview > .blog-card:not(.blog-card--featured) .blog-card__meta {
  flex-wrap: nowrap;
  min-width: 0;
}
.blog-mosaic--preview > .blog-card:not(.blog-card--featured) .blog-card__category {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 0.7, 0.3, 1);
}
.blog-card:hover .blog-card__img {
  transform: scale(1.045);
}
.blog-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(150deg, var(--teal-700), var(--teal-900));
  color: rgba(255, 255, 255, 0.85);
}
.blog-card__placeholder svg {
  width: 40px;
  height: 40px;
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 26px;
}
.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.blog-card__dot {
  opacity: 0.55;
}
.blog-card__date {
  font-size: 0.78rem;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.blog-card__title {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
.blog-card__title a {
  color: var(--teal-900);
  transition: color 0.2s ease;
}
.blog-card__title a:hover {
  color: var(--teal-700);
}
.blog-card__excerpt {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__more {
  color: var(--teal-700);
  font-weight: 600;
  font-size: 0.92rem;
  align-self: flex-start;
}
.blog-card__more:hover {
  text-decoration: underline;
}
/* Copertă în capul articolului */
.article-page__cover {
  margin: 10px 0 32px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.article-page__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Admin: previzualizare copertă în formular */
.admin-form__cover {
  display: block;
  margin: 6px 0;
  max-width: 320px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.admin-form__cover img {
  width: 100%;
  display: block;
}
.admin-form__check--inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px;
  font-size: 0.85rem;
}
.admin-form__check--inline label {
  font-weight: 400;
}
.blog-all {
  text-align: center;
  margin-top: 44px;
}
.blog-empty {
  text-align: center;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .blog-mosaic:not(.blog-mosaic--preview) {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-mosaic:not(.blog-mosaic--preview) > .blog-card {
    grid-column: span 1;
  }
  .blog-mosaic:not(.blog-mosaic--preview) > .blog-card--featured {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .blog-card--featured .blog-card__media {
    min-height: 220px;
    aspect-ratio: 16 / 10;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .blog-card--featured .blog-card__body {
    padding: 26px 28px 28px;
  }

  .blog-mosaic--preview {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }
  .blog-mosaic--preview > .blog-card--featured {
    grid-column: 1;
    grid-row: auto;
  }
  .blog-mosaic--preview > .blog-card--featured .blog-card__media {
    flex: none;
    min-height: 200px;
    aspect-ratio: 16 / 10;
  }
  .blog-mosaic--preview > .blog-card:not(.blog-card--featured) {
    grid-template-columns: 112px 1fr;
    min-height: 120px;
  }
}
@media (max-width: 900px) {
  .blog-grid--index {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid--index {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}
@media (max-width: 560px) {
  .blog-mosaic:not(.blog-mosaic--preview) {
    grid-template-columns: 1fr;
  }
  .blog-mosaic--preview > .blog-card:not(.blog-card--featured) {
    grid-template-columns: 1fr;
  }
  .blog-mosaic--preview > .blog-card:not(.blog-card--featured) .blog-card__media {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ==========================================================================
   Pagina articol
   ========================================================================== */
.article-page__inner {
  max-width: 760px;
  margin: 0 auto;
}
.article-page__back {
  display: inline-block;
  color: var(--teal-700);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.article-page__back:hover {
  text-decoration: underline;
}
.article-page__back--bottom {
  margin-top: 44px;
  margin-bottom: 0;
}
.article-page__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 8px 0 10px;
}
.article-page__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.article-page__dot {
  opacity: 0.5;
}
.article-page__category {
  color: var(--teal-700);
  font-weight: 600;
}
.article-page__category:hover {
  text-decoration: underline;
}
.article-page__date {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.article-page__body {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.8;
}
.article-page__body h2 {
  font-size: 1.6rem;
  margin: 34px 0 12px;
}
.article-page__body h3 {
  font-size: 1.3rem;
  margin: 28px 0 10px;
}
.article-page__body p {
  margin-bottom: 18px;
}
.article-page__body ul,
.article-page__body ol {
  margin: 0 0 18px 22px;
}
.article-page__body li {
  margin-bottom: 8px;
}
.article-page__body a {
  color: var(--teal-700);
  text-decoration: underline;
}
.article-page__body blockquote {
  border-left: 3px solid var(--teal-500);
  padding-left: 18px;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 18px;
}
.article-page__body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 18px 0;
}

/* CTA sub articol */
.article-cta {
  margin-top: 48px;
  padding: 28px 28px 30px;
  border-radius: var(--radius);
  background: var(--teal-50);
  border: 1px solid var(--line);
  text-align: center;
}
.article-cta__lead {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 36rem;
  margin: 0 auto 18px;
}
.article-cta .btn {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: var(--white);
}
.article-cta .btn:hover {
  background: var(--teal-900);
  border-color: var(--teal-900);
  color: var(--white);
}

/* Filtre categorii pe /blog */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 36px;
}
.blog-filters__chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.blog-filters__chip:hover {
  border-color: var(--teal-500);
  color: var(--teal-700);
  transform: translateY(-1px);
}
.blog-filters__chip.is-active {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: var(--white);
}

/* Progress bar lectură articol */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--teal-500);
  pointer-events: none;
  will-change: transform;
}

/* Fade imagini după load (fără CLS) */
.img-fade {
  opacity: 0;
  transition: opacity 0.45s ease;
}
.img-fade.is-loaded {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .img-fade {
    opacity: 1;
    transition: none;
  }
  .reading-progress {
    display: none;
  }
  .blog-filters__chip:hover {
    transform: none;
  }
  .article-cta .btn,
  .blog-card,
  .path-node__card,
  .path-node__dot {
    transition: none !important;
  }
}

/* ==========================================================================
   Administrare + autentificare
   ========================================================================== */
body.admin {
  background: var(--bg);
}
.admin-bar {
  background: var(--teal-900);
  color: var(--white);
}
.admin-bar__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-bar__brand {
  color: var(--white);
  font-size: 0.9rem;
}
.admin-bar__nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.admin-bar__nav a {
  color: var(--white);
  font-size: 0.9rem;
}
.admin-bar__logout {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--on-dark) 40%, transparent);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}
.admin-bar__logout:hover {
  background: color-mix(in srgb, var(--on-dark) 12%, transparent);
}
.admin-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.admin-head h1 {
  font-size: 1.8rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.admin-table th {
  background: var(--teal-50);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.admin-table tr:last-child td {
  border-bottom: 0;
}
.admin-table__title {
  font-weight: 600;
  color: var(--teal-900);
}
.admin-table__actions {
  width: 1%;
  white-space: nowrap;
}
.admin-table__actions-inner {
  display: flex;
  gap: 14px;
  align-items: center;
}
.admin-table__actions a {
  color: var(--teal-700);
  font-size: 0.88rem;
}
.admin-table__actions form {
  margin: 0;
}
.link-danger {
  background: none;
  border: 0;
  color: #b0472a;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 0;
  font-family: inherit;
}
.link-danger:hover {
  text-decoration: underline;
}
.badge {
  display: inline-block;
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.badge--live {
  background: #dcece0;
  color: #2f7a4f;
}
.badge--draft {
  background: var(--teal-100);
  color: var(--ink-soft);
}
.admin-empty {
  color: var(--ink-soft);
}
.admin-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}
.admin-form label,
.admin-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
}
.admin-form__hint {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.admin-form__hint code {
  background: var(--teal-50);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
}
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--ink);
}
.admin-form textarea {
  resize: vertical;
  line-height: 1.6;
}
.admin-form label.admin-form__check {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  gap: 10px;
  font-weight: 400;
}
.admin-form__check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--teal-700);
}
.admin-form__actions {
  display: flex;
  gap: 12px;
}
.form-errors {
  background: color-mix(in srgb, var(--teal-50) 40%, #ffd5c4);
  border: 1px solid color-mix(in srgb, var(--line) 40%, #ecc0ac);
  color: color-mix(in srgb, var(--ink) 35%, #8a3b1e);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
}
.form-errors p {
  margin: 2px 0;
}
.auth {
  max-width: 380px;
  margin: 48px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.auth__title {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.auth__lead {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
  font-size: 0.9rem;
}
.auth-form input[type="email"],
.auth-form input[type="password"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--ink);
}
.auth-form .btn {
  width: 100%;
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: var(--white);
}
.auth-form .btn:hover {
  background: var(--teal-900);
  border-color: var(--teal-900);
  color: var(--white);
}
.flash {
  max-width: 900px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.flash--notice {
  background: color-mix(in srgb, var(--teal-50) 55%, #c8e6d0);
  color: color-mix(in srgb, var(--ink) 30%, #2f7a4f);
}
.flash--alert {
  background: color-mix(in srgb, var(--teal-50) 40%, #ffd5c4);
  color: color-mix(in srgb, var(--ink) 35%, #8a3b1e);
}

/* mai multe linkuri în meniu -> spațiere puțin mai mică */
.nav__links {
  gap: 20px;
}

/* „Mai multe" - dropdown în navbar (grupează linkurile secundare pe desktop) */
.nav__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav__more-btn:hover,
.nav__more.is-open .nav__more-btn {
  color: var(--teal-700);
}
.nav__more-chevron {
  opacity: 0.75;
  transition: transform 0.2s ease;
}
.nav__more.is-open .nav__more-chevron {
  transform: rotate(180deg);
}

@media (min-width: 901px) {
  .nav__more {
    position: relative;
    display: inline-flex;
    align-items: center;
  }
  .nav__more-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 184px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 60;
  }
  .nav__more.is-open .nav__more-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__more-menu a {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--ink);
    white-space: nowrap;
  }
  .nav__more-menu a:hover {
    background: var(--teal-50);
    color: var(--teal-900);
  }
}

/* Pe mobil: fără dropdown - linkurile curg normal în meniul vertical,
   în ordinea din pagină (prin `order`, nu prin ordinea din DOM). */
@media (max-width: 900px) {
  .nav__more { display: contents; }
  .nav__more-btn { display: none; }
  .nav__more-menu { display: contents; }
  .nav__links > a,
  .nav__more-menu a,
  .nav__actions {
    order: var(--nav-order, 10);
  }
}

/* CTA-uri (Programare + Blog): grupate, gap mic */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}
.nav__links .nav__blog {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: var(--white);
}
.nav__links .nav__blog:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: var(--white);
}

/* Paginare /blog */
/* Paginare blog - săgeți + numere de pagină */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 52px;
}
.pagination__arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--teal-700);
  font-weight: 600;
  font-size: 0.88rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.pagination__arrow:hover {
  border-color: var(--teal-500);
  color: var(--teal-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.pagination__arrow.is-disabled {
  opacity: 0.38;
  pointer-events: none;
}
.pagination__pages {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.pagination__page {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s ease;
}
a.pagination__page:hover {
  border-color: var(--teal-100);
  background: var(--white);
  color: var(--teal-900);
  transform: translateY(-2px);
}
.pagination__page.is-current {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: var(--white);
}
.pagination__gap {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 38px;
  color: var(--ink-soft);
}
@media (max-width: 520px) {
  .pagination__arrow-label { display: none; }
  .pagination__arrow { padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pagination__arrow:hover,
  a.pagination__page:hover { transform: none; }
}

/* Imagini / atașamente în articole (Action Text) */
.article-page__body .trix-content img,
.article-page__body figure.attachment img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 20px 0;
}
.article-page__body figure.attachment {
  margin: 20px 0;
}
.article-page__body .attachment__caption:empty {
  display: none;
}
.article-page__body .attachment__caption {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.86rem;
  margin-top: 6px;
}

/* Buton flotant WhatsApp */
/* ==========================================================================
   Language dropdown (floating, bottom-left)
   ========================================================================== */
/* Container flotant stânga-jos: comutator temă + selector limbă, unul lângă altul */
.floating-controls {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
}
.locale-switch {
  position: relative;
}
/* Comutator temă (cald / rece) - aceeași pastilă ca selectorul de limbă */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--teal-900);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.theme-toggle__icon {
  display: inline-flex;
  color: var(--teal-700);
}
/* Arată soarele pe cald, fulgul pe rece */
.theme-toggle__icon--cool { display: none; }
:root[data-theme="cool"] .theme-toggle__icon--warm { display: none; }
:root[data-theme="cool"] .theme-toggle__icon--cool { display: inline-flex; }
.locale-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--teal-900);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.locale-switch__btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.locale-switch__flag {
  font-size: 1.15rem;
  line-height: 1;
}
.locale-switch__chevron {
  opacity: 0.55;
  transition: transform 0.2s ease;
}
.locale-switch.is-open .locale-switch__chevron {
  transform: rotate(180deg);
}
.locale-switch__menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.locale-switch__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease;
}
.locale-switch__option:hover {
  background: var(--teal-50);
  color: var(--teal-900);
}
.locale-switch__option.is-active {
  background: var(--teal-100);
  color: var(--teal-900);
  font-weight: 600;
}
@media (max-width: 600px) {
  .floating-controls {
    left: 16px;
    bottom: 16px;
    gap: 8px;
  }
  .locale-switch__btn,
  .theme-toggle {
    height: 42px;
  }
  .locale-switch__btn {
    padding: 0 12px 0 10px;
  }
  .theme-toggle {
    padding: 0 12px;
  }
}

/* Tranziție soft la schimbarea limbii (fără refresh vizibil) */
html.is-locale-switching {
  cursor: wait;
}
html.is-locale-switching main,
html.is-locale-switching .nav,
html.is-locale-switching .footer {
  opacity: 0.28;
  filter: saturate(0.85);
  transition: opacity 0.3s ease, filter 0.3s ease;
  pointer-events: none;
}
html.is-locale-switching::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 62%),
    color-mix(in srgb, var(--bg) 55%, transparent);
  background-size: 220% 100%, auto;
  animation: localeShimmer 1.1s ease-in-out infinite;
}
html.is-locale-switching::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 401;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 2.5px solid var(--teal-100);
  border-top-color: var(--teal-700);
  pointer-events: none;
  animation: localeSpin 0.7s linear infinite;
}
@keyframes localeShimmer {
  0% { background-position: 120% 0, 0 0; }
  100% { background-position: -120% 0, 0 0; }
}
@keyframes localeSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  html.is-locale-switching::before,
  html.is-locale-switching::after {
    animation: none;
  }
  html.is-locale-switching::after {
    border-top-color: var(--teal-100);
    opacity: 0.85;
  }
}
@supports (view-transition-name: none) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.28s;
  }
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wa-float:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}
.wa-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.5);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

/* Buton „înapoi sus" (deasupra butonului WhatsApp, apare la derulare) */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 89;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-700);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  box-shadow: var(--shadow-lg);
  color: var(--teal-900);
}
@media (max-width: 600px) {
  .to-top {
    right: 16px;
    bottom: 78px;
    width: 44px;
    height: 44px;
  }
}

/* Secțiune „Citește și" (articole conexe, sub articol) */
.related {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.related__title {
  text-align: center;
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  padding-top: 4px;
  margin-bottom: 28px;
}
.related .blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
}
.related .blog-card {
  flex: 1 1 260px;
  max-width: 320px;
}
.related .blog-card__media {
  aspect-ratio: 16 / 9;
}
.related .blog-card__body {
  padding: 18px 20px 20px;
}
.related .blog-card__title {
  font-size: 1.1rem;
}
.related .blog-card__excerpt {
  -webkit-line-clamp: 2;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* <picture> să umple containerul (imagini responsive) */
.portrait picture,
.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Proces - „Cum decurge prima ședință" (pași numerotați)
   ========================================================================== */
/* Pașii primei ședințe: tratament editorial - cifre serif mari, filet
   deasupra, fără cutii. Se citesc ca o cronologie, nu ca patru carduri. */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* fără gap pe orizontală: filetele de sus ale pașilor se leagă
     într-o singură linie continuă peste toată lățimea */
  gap: 0;
}
.step {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 28px 32px 28px 0;
  box-shadow: none;
}
.step__num {
  display: block;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--teal-100);
  margin-bottom: 14px;
  transition: color 0.3s ease;
}
.step:hover .step__num {
  color: var(--teal-500);
}
.step__title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.step__text {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* Grupă de servicii fără listă: card static, fără chevron și fără hover de click */
.acc--static .acc__summary {
  cursor: default;
}
.acc--static:hover {
  transform: none;
}

/* ==========================================================================
   FAQ - întrebări frecvente (reutilizează accordion-ul .acc)
   ========================================================================== */
.acc__title--faq {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal-900);
  /* împinge chevronul la marginea din dreapta, ca la acordeonul de servicii */
  flex: 1;
  min-width: 0;
}
.faq__answer {
  padding: 20px 28px 24px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.faq__answer p {
  font-size: 0.98rem;
}
@media (max-width: 760px) {
  .faq__answer { padding: 18px 20px 20px; }
}

/* Buton FAQ în navbar - pastilă conturată (distinct de Programare/Blog pline) */
.nav__links a.nav__faq {
  background: transparent;
  border-color: var(--teal-500);
  color: var(--teal-700);
}
.nav__links a.nav__faq:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: var(--white);
}

/* Footer lipit jos pe paginile scurte (fără spațiu gol dedesubt) */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
}

/* Animație la derulare (apariție fade + slide-up) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.7, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 0.7, 0.3, 1);
  will-change: opacity, transform;
}
.reveal--left {
  transform: translateX(-28px);
}
.reveal--right {
  transform: translateX(28px);
}
.reveal--scale {
  transform: translateY(16px) scale(0.96);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Pe mobil intrarea laterală nu se vede oricum și lățește documentul */
@media (max-width: 900px) {
  .reveal--left,
  .reveal--right {
    transform: translateY(24px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Dinamică pe toată pagina (calmă, potrivită cabinetului)
   ========================================================================== */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroInSoft {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.95; transform: scale(1.06); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Hero: apariție eșalonată la încărcare */
.hero-enter > * {
  opacity: 0;
  animation: heroIn 0.85s cubic-bezier(0.16, 0.7, 0.3, 1) forwards;
}
.hero-enter > *:nth-child(1) { animation-delay: 0.05s; }
.hero-enter > *:nth-child(2) { animation-delay: 0.16s; }
.hero-enter > *:nth-child(3) { animation-delay: 0.28s; }
.hero-enter > *:nth-child(4) { animation-delay: 0.4s; }
.hero-enter > *:nth-child(5) { animation-delay: 0.52s; }
.hero-enter--late {
  opacity: 0;
  animation: heroInSoft 1s cubic-bezier(0.16, 0.7, 0.3, 1) 0.35s forwards;
}

/* Statistici: mic „pop” când se văd */
.about__stats.reveal.is-visible .stat__value,
.about__stats .stat__value {
  transition: transform 0.35s cubic-bezier(0.22, 1.15, 0.36, 1);
}
.about__card:hover .stat__value {
  transform: scale(1.06);
}

/* Iconițe servicii / accordion */
.acc__icon,
.service-card__icon {
  transition: transform 0.3s cubic-bezier(0.22, 1.15, 0.36, 1), background 0.25s ease;
}
.acc__summary:hover .acc__icon,
.service-card:hover .service-card__icon {
  transform: scale(1.1) rotate(-4deg);
}

/* Numerotarea secțiunilor: „01 · CUM TE POT AJUTA".
   Contorul e pe <main>, deci numerele se aliniază singure la ordinea din
   pagină - nu trebuie ținute manual în sincron. Doar pe pagina principală
   (`main` fără .page-shell), ca FAQ/blog să nu afișeze un „01" solitar. */
main:not(.page-shell) {
  counter-reset: sect;
}
main:not(.page-shell) .section__head,
main:not(.page-shell) .about__main,
main:not(.page-shell) .contact__intro {
  counter-increment: sect;
}
main:not(.page-shell) .section__head .eyebrow::before,
main:not(.page-shell) .about__main .eyebrow::before,
main:not(.page-shell) .contact__intro .eyebrow::before {
  content: counter(sect, decimal-leading-zero) " · ";
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--teal-500);
}

/* Eyebrow: linie care crește subtil sub titlurile de secțiune */
.section__head .eyebrow {
  position: relative;
  display: inline-block;
}
.section__head .eyebrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.55s cubic-bezier(0.16, 0.7, 0.3, 1);
}
.section__head.reveal.is-visible .eyebrow::after {
  width: 36px;
}
.section__head--left .eyebrow::after {
  left: 0;
  transform: none;
}

/* WhatsApp float: respirație ușoară */
.wa-float {
  animation: floatY 3.8s ease-in-out infinite;
}
.wa-float:hover {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-enter > *,
  .hero-enter--late,
  .portrait__glow,
  .wa-float {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__portrait:hover .portrait,
  .atestate__badge:hover,
  .step:hover .step__num,
  .acc__summary:hover .acc__icon,
  .service-card:hover .service-card__icon,
  .info-block:hover,
  .about__card:hover .stat__value {
    transform: none !important;
  }
  .section__head .eyebrow::after {
    transition: none;
    width: 36px;
  }
}

/* ==========================================================================
   Galerie: click pentru mărire (lightbox)
   ========================================================================== */
.gallery-item { cursor: zoom-in; }
.gallery-item:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; }
.lightbox__img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 0.7, 0.3, 1);
  cursor: default;
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }
@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox__img { transition: none; }
  .lightbox__img { transform: none; }
}

/* ==========================================================================
   „Despre mine": buton „Citește mai mult" (doar pe mobil)
   ========================================================================== */
.about__more {
  display: inline-flex;
  margin-top: 10px;
}
/* Colapsat: pe desktop se văd primele 3 paragrafe... */
.about__body.is-collapsed .about__paragraph:nth-of-type(n+4) {
  display: none;
}
/* ...pe mobil doar primele 2. */
@media (max-width: 640px) {
  .about__body.is-collapsed .about__paragraph:nth-of-type(3) {
    display: none;
  }
}

/* ==========================================================================
   Hover-lift peste scroll-reveal
   Reveal-ul pune `transform: none` pe `.is-visible` (aceeași specificitate,
   dar mai jos în fișier), ceea ce anula ridicarea la hover. Rescriem cu
   specificitate mai mare, ca lift-ul să învingă, și cu o tranziție lină.
   ========================================================================== */
.price-card.reveal.is-visible,
.blog-card.reveal.is-visible,
.step.reveal.is-visible {
  transition: transform 0.4s cubic-bezier(0.16, 0.7, 0.3, 1),
              box-shadow 0.4s ease,
              opacity 0.6s ease;
}
.price-card.reveal.is-visible:hover,
.blog-card.reveal.is-visible:hover,
.step.reveal.is-visible:hover {
  transform: translateY(-8px);
}
@media (prefers-reduced-motion: reduce) {
  .price-card:hover,
  .blog-card:hover,
  .step:hover {
    transform: none;
  }
}

/* ==========================================================================
   Logo (marcă din noul logo: Ψ + cerc + ramură)
   Înlocuiește fosta pastilă teal cu Ψ cursiv.
   ========================================================================== */
.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 0.7, 0.3, 1);
}
.nav__brand:hover .brand-mark {
  transform: scale(1.06) rotate(-3deg);
}
.footer__brand .brand-mark {
  width: 46px;
  height: 46px;
}
/* Navbar micșorat la derulare: marca urmează */
.nav--scrolled .brand-mark {
  width: 36px;
  height: 36px;
}
/* Placeholder card blog (fundal teal închis) */
.blog-card__placeholder-mark {
  width: 64px;
  height: 64px;
  opacity: 0.85;
}
@media (max-width: 600px) {
  .brand-mark {
    width: 36px;
    height: 36px;
  }
}

/* ==========================================================================
   Logo - lockup orizontal (marcă + nume caligrafic + PSIHOLOG)
   Raport ~3.2:1, deci ocupă puțină înălțime și folosește lățimea liberă.
   ========================================================================== */
.brand-lockup {
  display: block;
  width: auto;
  height: auto;
}
/* Navbar */
.brand-lockup--nav {
  height: 76px;
  transition: height 0.25s ease;
}
.nav--scrolled .brand-lockup--nav {
  height: 56px;
}
@media (max-width: 900px) {
  .brand-lockup--nav { height: 58px; }
  .nav--scrolled .brand-lockup--nav { height: 48px; }
}
@media (max-width: 600px) {
  .brand-lockup--nav { height: 44px; }
  .nav--scrolled .brand-lockup--nav { height: 38px; }
}
/* Footer */
.brand-lockup--footer {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .brand-lockup--footer { max-width: 290px; }
}

/* ==========================================================================
   Acordeon servicii - animație la deschidere/închidere
   Folosește ::details-content (Chrome 129+, Safari 18.2+). În browserele
   fără suport se deschide instant, fără efecte secundare.
   ========================================================================== */
:root {
  interpolate-size: allow-keywords;
}
.acc::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size 0.38s cubic-bezier(0.16, 0.7, 0.3, 1),
              opacity 0.3s ease,
              content-visibility 0.38s allow-discrete;
}
.acc[open]::details-content {
  block-size: auto;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .acc::details-content { transition: none; }
}

/* ==========================================================================
   Instrumente psihologice
   ========================================================================== */
/* ==========================================================================
   Instrumente psihologice - grilă „bento"
   Plăci de dimensiuni diferite, fiecare cu propriul semn grafic animat.
   Descrierea se deschide la click (o singură placă odată, vezi bento_controller).
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-content: start;
}

/* Ritmul plăcilor: două platforme mari sus, restul compacte dedesubt */
.bento__tile:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.bento__tile:nth-child(2) { grid-column: span 3; }
.bento__tile:nth-child(3) { grid-column: span 3; }
.bento__tile:nth-child(n + 4) { grid-column: span 2; }

.bento__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  /* starea de intrare (se anulează prin .is-in de pe grilă) */
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.65s cubic-bezier(0.16, 0.7, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 0.7, 0.3, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
  transition-delay: calc(var(--i, 0) * 65ms);
}
.bento.is-in .bento__tile {
  opacity: 1;
  transform: none;
}
.bento__tile:hover {
  border-color: var(--teal-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  transition-delay: 0s;
}
.bento__tile[open] {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-md);
}

/* Placa „erou" - CAS++ (prima, cea mai mare) */
.bento__tile:nth-child(1) {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(74, 131, 136, 0.55) 0%, transparent 60%),
    linear-gradient(165deg, var(--teal-900), var(--teal-700));
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.bento__tile:nth-child(1) .bento__name { color: var(--white); }
.bento__tile:nth-child(1) .bento__sub,
.bento__tile:nth-child(1) .bento__text p { color: var(--teal-100); }
.bento__tile:nth-child(1) .bento__num { color: rgba(246, 241, 231, 0.42); }
.bento__tile:nth-child(1) .bento__glyph { color: var(--muted-200); }
.bento__tile:nth-child(1) .bento__plus::before,
.bento__tile:nth-child(1) .bento__plus::after { background: var(--muted-200); }
.bento__tile:nth-child(1) .bento__text { border-top-color: rgba(246, 241, 231, 0.18); }
.bento__tile:nth-child(1):hover { border-color: transparent; }

/* Placa erou primește un layout propriu: semnul mare sus, numele jos.
   Cu layoutul comun rămânea prea mult gol pe înălțimea de 2 rânduri. */
.bento__tile:nth-child(1) .bento__summary {
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "glyph plus"
    "num   num"
    "head  head";
  align-content: space-between;
  align-items: start;
  gap: 20px 12px;
  padding: 30px;
  min-height: 230px;
}
.bento__tile:nth-child(1) .bento__glyph {
  width: 76px;
  height: 76px;
  border-radius: 20px;
}
.bento__tile:nth-child(1) .bento__glyph .glyph { width: 44px; height: 44px; }
.bento__tile:nth-child(1) .bento__num { font-size: 0.82rem; }
.bento__tile:nth-child(1) .bento__name { font-size: 1.65rem; }
.bento__tile:nth-child(1) .bento__sub { font-size: 0.92rem; }
.bento__tile:nth-child(1) .bento__text { padding-bottom: 26px; }
@media (max-width: 1000px) {
  .bento__tile:nth-child(1) .bento__summary { min-height: 0; }
}

/* A doua placă - accent deschis, ca să nu fie două tile-uri identice sus */
.bento__tile:nth-child(2) {
  background:
    radial-gradient(120% 120% at 0% 0%, var(--teal-100) 0%, transparent 62%),
    var(--white);
}

/* ---- conținutul plăcii ---- */
.bento__summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "glyph num  plus"
    "glyph head head";
  align-items: center;
  gap: 4px 18px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  flex: 1 1 auto;
  align-content: center;
}
.bento__summary::-webkit-details-marker { display: none; }

.bento__glyph {
  grid-area: glyph;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal-700);
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.45s cubic-bezier(0.22, 1.15, 0.36, 1);
}
.bento__tile:nth-child(1) .bento__glyph { background: rgba(246, 241, 231, 0.12); }
.bento__tile:hover .bento__glyph,
.bento__tile[open] .bento__glyph { transform: scale(1.06) rotate(-3deg); }
.bento__glyph .glyph { width: 32px; height: 32px; }

.bento__num {
  grid-area: num;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--teal-500);
  opacity: 0.75;
}
.bento__head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.bento__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
.bento__sub {
  font-size: 0.79rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* Plus care se face minus la deschidere */
.bento__plus {
  grid-area: plus;
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.bento__plus::before,
.bento__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--teal-700);
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(0.22, 1.15, 0.36, 1), opacity 0.25s ease;
}
.bento__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.bento__tile[open] .bento__plus::after { transform: translate(-50%, -50%) rotate(0deg); }

/* Textul care se deschide */
.bento__text {
  position: relative;
  z-index: 2;
  padding: 0 24px 22px;
  margin-top: -2px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-left: 24px;
  margin-right: 24px;
}
.bento__text p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.62;
}
.bento__tile::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    block-size 0.42s cubic-bezier(0.16, 0.7, 0.3, 1),
    content-visibility 0.42s allow-discrete,
    opacity 0.32s ease;
}
.bento__tile[open]::details-content {
  block-size: auto;
  opacity: 1;
}

/* Luciu diagonal care traversează placa la hover */
.bento__sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  opacity: 0;
}
.bento__tile:hover .bento__sheen {
  animation: bentoSheen 0.85s ease-out;
}
.bento__tile:nth-child(1) .bento__sheen {
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(246, 241, 231, 0.14) 50%,
    transparent 65%
  );
}
@keyframes bentoSheen {
  0%   { transform: translateX(-120%); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* ==========================================================================
   Animațiile semnelor grafice - pornesc la hover sau când placa e deschisă
   ========================================================================== */
.bento__tile:hover .g-ring,
.bento__tile[open] .g-ring { animation: gRing 1.5s ease-out infinite; }
.bento__tile:hover .g-ring:nth-of-type(2),
.bento__tile[open] .g-ring:nth-of-type(2) { animation-delay: 0.18s; }
.bento__tile:hover .g-ring:nth-of-type(3),
.bento__tile[open] .g-ring:nth-of-type(3) { animation-delay: 0.36s; }
@keyframes gRing {
  0%   { opacity: 0.35; transform: scale(0.82); }
  50%  { opacity: 1;    transform: scale(1.04); }
  100% { opacity: 0.35; transform: scale(0.82); }
}
.glyph--cas { transform-box: fill-box; transform-origin: center; }
.glyph--cas .g-ring { transform-box: fill-box; transform-origin: center; }

.bento__tile:hover .g-node,
.bento__tile[open] .g-node { animation: gPop 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bento__tile:hover .g-node--2,
.bento__tile[open] .g-node--2 { animation-delay: 0.16s; }
.bento__tile:hover .g-node--3,
.bento__tile[open] .g-node--3 { animation-delay: 0.32s; }
@keyframes gPop {
  0%, 100% { transform: scale(1); }
  45%      { transform: scale(1.35); }
}

.bento__tile:hover .g-miss,
.bento__tile[open] .g-miss { animation: gMiss 1.6s ease-in-out infinite; }
@keyframes gMiss {
  0%, 100% { opacity: 0.4; stroke-dashoffset: 0; }
  50%      { opacity: 1;   stroke-dashoffset: 11; }
}

.bento__tile:hover .g-scan,
.bento__tile[open] .g-scan { animation: gScan 1.5s linear infinite; }
@keyframes gScan {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -32; }
}
.bento__tile:hover .g-bar,
.bento__tile[open] .g-bar { animation: gBar 1.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bento__tile:hover .g-bar--2, .bento__tile[open] .g-bar--2 { animation-delay: 0.1s; }
.bento__tile:hover .g-bar--3, .bento__tile[open] .g-bar--3 { animation-delay: 0.2s; }
.bento__tile:hover .g-bar--4, .bento__tile[open] .g-bar--4 { animation-delay: 0.3s; }
.bento__tile:hover .g-bar--5, .bento__tile[open] .g-bar--5 { animation-delay: 0.4s; }
@keyframes gBar {
  0%, 100% { transform: scaleY(1); opacity: 0.75; }
  50%      { transform: scaleY(0.6); opacity: 1; }
}

/* Acele se rotesc în jurul centrului cadranului (24,24 în viewBox),
   nu în jurul propriului bounding box - altfel par desprinse de ceas. */
.glyph--mmse .g-hand {
  transform-box: view-box;
  transform-origin: 24px 24px;
}
.bento__tile:hover .glyph--mmse .g-hand--h,
.bento__tile[open] .glyph--mmse .g-hand--h { animation: gSpin 18s linear infinite; }
.bento__tile:hover .glyph--mmse .g-hand--m,
.bento__tile[open] .glyph--mmse .g-hand--m { animation: gSpin 4.5s linear infinite; }
@keyframes gSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.bento__tile:hover .g-col,
.bento__tile[open] .g-col { animation: gCol 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.bento__tile:hover .g-col--2, .bento__tile[open] .g-col--2 { animation-delay: 0.12s; }
.bento__tile:hover .g-col--3, .bento__tile[open] .g-col--3 { animation-delay: 0.24s; }
.bento__tile:hover .g-col--4, .bento__tile[open] .g-col--4 { animation-delay: 0.36s; }
@keyframes gCol {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.55); }
}

.bento__tile:hover .g-plot,
.bento__tile[open] .g-plot { animation: gPop 1.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bento__tile:hover .g-plot--2, .bento__tile[open] .g-plot--2 { animation-delay: 0.25s; }

.bento__tile:hover .g-wave,
.bento__tile[open] .g-wave { animation: gWave 2.2s ease-in-out infinite; }
.bento__tile:hover .g-wave--2, .bento__tile[open] .g-wave--2 { animation-delay: 0.18s; }
.bento__tile:hover .g-wave--3, .bento__tile[open] .g-wave--3 { animation-delay: 0.36s; }
@keyframes gWave {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(3px); }
}

.g-bubble { transform-box: view-box; transform-origin: center; }
.bento__tile:hover .g-bubble,
.bento__tile[open] .g-bubble { animation: gBubble 2.4s ease-in-out infinite; }
.bento__tile:hover .g-bubble--2, .bento__tile[open] .g-bubble--2 { animation-delay: 0.55s; }
@keyframes gBubble {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(-2px); }
}

/* ==========================================================================
   Licențe / platforme - bandă cu pastile
   ========================================================================== */
.licenses {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 26px;
  box-shadow: var(--shadow-sm);
}
.licenses__title {
  font-size: 1rem;
  margin: 0 6px 0 0;
  color: var(--ink);
}
.licenses__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.licenses__chip {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--teal-100);
  color: var(--teal-900);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.22, 1.15, 0.36, 1), background 0.25s ease;
}
.licenses__chip:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--teal-500);
  color: var(--white);
}
.tools-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 70ch;
  margin: 26px auto 0;
}

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento__tile:nth-child(1) { grid-column: span 4; grid-row: auto; }
  .bento__tile:nth-child(2),
  .bento__tile:nth-child(3) { grid-column: span 2; }
  .bento__tile:nth-child(n + 4) { grid-column: span 2; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .bento__tile:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .bento__summary { padding: 18px 18px; gap: 4px 14px; }
  .bento__glyph { width: 46px; height: 46px; border-radius: 12px; }
  .bento__glyph .glyph { width: 27px; height: 27px; }
  .bento__name { font-size: 1.02rem; }
  .bento__text { margin-left: 18px; margin-right: 18px; padding: 14px 0 18px; }
  .licenses { padding: 20px; }
  .licenses__title { margin: 0 0 4px; width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .bento__tile,
  .bento__tile:hover { transform: none; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
  .bento__tile { opacity: 1; }
  .bento__sheen { display: none; }
  .bento__tile:hover .bento__glyph,
  .bento__tile[open] .bento__glyph { transform: none; }
  .bento [class^="g-"],
  .bento [class*=" g-"] { animation: none !important; }
  .licenses__chip:hover { transform: none; }
}

/* Link în cardul „Despre" (colaborare UBB) */
.fact__link {
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
.fact__link:hover {
  color: var(--teal-900);
}

/* ============================================================
   Bandă de consimțământ pentru cookie-uri
   Ancorată de marginea de jos, pe toată lățimea. Suprafața e
   --teal-700, nu --teal-900: subsolul paginii e deja teal-900, iar
   banda s-ar fi topit în el când vizitatorul e jos în pagină.
   Textul folosește --on-dark, tokenul definit exact pentru
   suprafețe teal închise, deci merge și pe cald, și pe rece.
   Contrast verificat: 6.5:1 cald, 6.6:1 rece - peste pragul AA.
   ============================================================ */
.cookie-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  /* Peste butoanele flotante (z-index 90). */
  z-index: 500;
  background: var(--teal-700);
  color: var(--on-dark);
  /* Muchie de sus + umbră proiectată în sus: banda trebuie să se citească ca
     strat separat inclusiv peste subsolul teal. */
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--on-dark) 20%, transparent),
              0 -12px 32px -12px rgba(16, 32, 32, 0.5);
  animation: cookie-bar-in 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cookie-bar-in {
  from { transform: translateY(100%); }
  to   { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-bar { animation: none; }
}

/* Aceeași lățime utilă ca restul paginii, ca banda să se alinieze cu grila. */
.cookie-bar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.cookie-bar__message {
  display: flex;
  align-items: flex-start;
  /* 11px, nu 14: la 14 iconita parea desprinsa de text, cu mai mult aer in
     dreapta ei decat in stanga, desi masurat era invers. */
  gap: 11px;
  flex: 1;
  min-width: 0;
}

.cookie-bar__icon {
  flex-shrink: 0;
  color: color-mix(in srgb, var(--on-dark) 75%, transparent);
  /* Aliniat optic cu prima linie de text, nu cu marginea cutiei. */
  margin-top: 2px;
  /* Conturul desenat incepe la 2/24 din viewBox, adica ~1.7px in interiorul
     cutiei. Compensez, ca marginea vizibila a iconitei sa cada exact pe
     aceeasi verticala cu butoanele de dedesubt. */
  margin-left: -2px;
}

.cookie-bar__icon svg { width: 20px; height: 20px; display: block; }

.cookie-bar__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.cookie-bar__title {
  font-weight: 600;
  /* Punctul separator ține titlul și textul pe același rând pe ecrane late,
     fără să le rupă în două blocuri. */
}

.cookie-bar__title::after {
  content: "·";
  margin: 0 7px;
  font-weight: 400;
  opacity: 0.5;
}

.cookie-bar__body { color: color-mix(in srgb, var(--on-dark) 82%, transparent); }

.cookie-bar__link {
  /* Fara margin: intre </span> si link exista deja un spatiu din HTML, iar
     adaugarea unei margini il dubla - se vedea ca o indentare a randului. */
  color: var(--on-dark);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--on-dark) 40%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 140ms ease;
}

.cookie-bar__link:hover { text-decoration-color: var(--on-dark); }

.cookie-bar__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Butoanele nu refolosesc .btn: acela e teal pe fundal deschis și ar dispărea
   pe bandă. Aici perechea e inversată - deschis pe teal. */
.cookie-bar__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 22px;
  font: inherit;
  font-size: 0.855rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.cookie-bar__btn--solid {
  background: var(--on-dark);
  color: var(--teal-900);
}

.cookie-bar__btn--solid:hover { background: #fff; }

.cookie-bar__btn--ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--on-dark) 38%, transparent);
  color: var(--on-dark);
}

.cookie-bar__btn--ghost:hover {
  border-color: var(--on-dark);
  background: color-mix(in srgb, var(--on-dark) 10%, transparent);
}

.cookie-bar__btn:focus-visible {
  outline: 2px solid var(--on-dark);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .cookie-bar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  }

  /* Pe telefon titlul stă pe rândul lui: „·" ar arăta rupt la capăt de rând. */
  .cookie-bar__title { display: block; }
  .cookie-bar__title::after { content: none; }

  .cookie-bar__actions { gap: 8px; }
  .cookie-bar__btn { flex: 1; padding-inline: 12px; }
}

/* Cât timp se cere consimțământul, butoanele flotante se dau la o parte:
   banda le-ar acoperi oricum, iar suprapunerea le făcea greu de apăsat. */
body.has-cookie-banner .floating-controls,
body.has-cookie-banner .wa-float,
body.has-cookie-banner .to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}
