/* Adesman & Asociații — stiluri comune
   Ordine: tokens · bază · layout · componente · pagini · mișcare */

/* ---------- Tokens ---------- */
:root {
  --violet: #542A93;
  --violet-deep: #3A1D68;
  --violet-tint: #EFEAF7;
  --mist: #F9F9F9;
  --ink: #191919;
  --ink-soft: #4A4A52;
  --ink-mute: #6E6E78;
  --stone: #F4F4F7;
  --paper: #FFFFFF;
  --line: #E2E2E8;
  --line-dark: rgba(255, 255, 255, 0.18);

  --sans: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;

  --fs-12: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: clamp(1.25rem, 1.1rem + 0.5vw, 1.375rem);
  --fs-28: clamp(1.5rem, 1.25rem + 1vw, 1.75rem);
  --fs-36: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  --fs-52: clamp(2.125rem, 1.4rem + 3vw, 3.25rem);
  --fs-84: clamp(2.5rem, 1.2rem + 5.6vw, 5.25rem);

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
  --section: clamp(56px, 7vw, 112px);
  --bar-h: 38px;
  --header-h: calc(76px + var(--bar-h));

  --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --radius: 2px;
}

/* ---------- Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  /* pagina se oprește la footer: fără „elasticul” care arăta un ecran alb sub „Toate drepturile rezervate”;
     dacă telefonul tot trage puțin pagina, sub footer se vede culoarea footerului, nu alb */
  overscroll-behavior-y: none;
  background: var(--mist);
}

body {
  margin: 0;
  overscroll-behavior-y: none;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-16);
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.on-dark:focus-visible { outline-color: #fff; }

::selection { background: var(--violet); color: #fff; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--violet);
  color: #fff;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Tipografie ---------- */
.display,
.h1, .h2, .h3 {
  font-family: var(--sans);
  font-variation-settings: "wdth" 125;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.display { font-size: var(--fs-84); line-height: 1; letter-spacing: -0.03em; }
.h1 { font-size: var(--fs-52); }
.h2 { font-size: var(--fs-36); line-height: 1.1; }
.h3 { font-size: var(--fs-22); line-height: 1.2; letter-spacing: -0.01em; }

.lead {
  font-family: var(--serif);
  font-size: var(--fs-28);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.005em;
  max-width: 34ch;
  text-wrap: pretty;
}

.prose {
  font-family: var(--serif);
  font-size: var(--fs-18);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 64ch;
}
.prose > * + * { margin-top: 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--violet); text-underline-offset: 0.2em; }

.note {
  font-family: var(--sans);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}
.on-dark .note { color: rgba(255, 255, 255, 0.66); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

/* Secțiunile albe lipite folosesc un singur spațiu, nu două */
.section.is-plain + .section.is-plain { padding-top: 0; }

/* Nota marginală: numele secțiunii în stânga, conținutul în dreapta */
.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 28px;
}
.row { row-gap: 0; }
.row__note { grid-column: 1 / -1; margin: 0 0 18px; }
.row__body { grid-column: 1 / -1; min-width: 0; }
.row__wide { grid-column: 1 / -1; }



.stack > * + * { margin-top: var(--stack, 24px) !important; }

/* ---------- Linkuri și butoane ---------- */
.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: var(--fs-16);
  color: var(--violet);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.45s var(--ease-out);
}
.link:hover, .link:focus-visible { background-size: 100% 1.5px; }
.on-dark .link { color: #fff; }

/* ---------- Butoane ----------
   Text + săgeată într-un cerc. La hover, cercul se extinde și umple butonul,
   culorile se inversează și săgeata alunecă înainte. */
.btn {
  --btn-bg: var(--violet);  --btn-fg: #fff;           --btn-border: transparent;
  --btn-fill: #fff;         --btn-fg-hover: var(--violet);
  --ico-bg: #fff;           --ico-fg: var(--violet);
  --ico-bg-hover: var(--violet); --ico-fg-hover: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 7px 7px 7px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  box-shadow: inset 0 0 0 1.5px var(--btn-border), 0 10px 24px -14px rgba(58, 29, 104, 0.55);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--fs-16);
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), transform 0.35s var(--ease-out);
}
/* cercul care se extinde din săgeată */
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 7px; top: 50%;
  width: 42px; height: 42px; margin-top: -21px;
  border-radius: 50%;
  background: var(--btn-fill);
  transform: scale(0.2);
  opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.25s;
}
.btn__label { position: relative; z-index: 1; }
.btn__icon {
  position: relative; z-index: 2; flex: none;
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ico-bg); color: var(--ico-fg);
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), transform 0.6s var(--ease-out);
}
.btn__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: scale(24); opacity: 1; }
.btn:hover .btn__icon, .btn:focus-visible .btn__icon { background: var(--ico-bg-hover); color: var(--ico-fg-hover); transform: rotate(-45deg); }
.btn:hover .btn__icon svg, .btn:focus-visible .btn__icon svg { transform: translateX(1px); }
.btn:hover, .btn:focus-visible { box-shadow: inset 0 0 0 1.5px var(--btn-border), 0 16px 32px -14px rgba(58, 29, 104, 0.6); }
.btn:active { transform: scale(0.97); }

/* Culoarea textului unui buton nu poate fi suprascrisă de regulile pentru linkuri din secțiuni */
a.btn.btn, button.btn.btn { color: var(--btn-fg); text-decoration: none; }
a.btn.btn:hover, a.btn.btn:focus-visible, button.btn.btn:hover, button.btn.btn:focus-visible { color: var(--btn-fg-hover); }

/* Alb, pe fundal violet */
.btn--light {
  --btn-bg: #fff; --btn-fg: var(--violet);
  --btn-fill: var(--violet-deep); --btn-fg-hover: #fff;
  --ico-bg: var(--violet); --ico-fg: #fff;
  --ico-bg-hover: #fff; --ico-fg-hover: var(--violet);
  box-shadow: 0 12px 28px -14px rgba(20, 8, 40, 0.6);
}
/* Contur, pentru acțiunile secundare */
.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--violet); --btn-border: var(--violet);
  --btn-fill: var(--violet); --btn-fg-hover: #fff;
  --ico-bg: var(--violet); --ico-fg: #fff;
  --ico-bg-hover: #fff; --ico-fg-hover: var(--violet);
  box-shadow: inset 0 0 0 1.5px var(--btn-border);
}
.btn--outline:hover, .btn--outline:focus-visible { box-shadow: inset 0 0 0 1.5px var(--btn-border), 0 14px 28px -16px rgba(58, 29, 104, 0.55); }
.cta-line { margin-top: 1.6em !important; }
.center-cta { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* Acțiunile principale: un puls discret în jurul săgeții, din când în când */
.hero .btn__icon::after, .contact-band .btn__icon::after, .consult .btn__icon::after,
.aside-cta .btn__icon::after, .form .btn__icon::after, .page-hero .btn__icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 currentColor; opacity: 0.55;
  animation: cta-pulse 3.2s 2.5s var(--ease-out) infinite;
}
.btn:hover .btn__icon::after { animation: none; }
@keyframes cta-pulse {
  0% { box-shadow: 0 0 0 0 var(--ico-bg); opacity: 0.6; }
  45% { box-shadow: 0 0 0 12px var(--ico-bg); opacity: 0; }
  100% { box-shadow: 0 0 0 12px var(--ico-bg); opacity: 0; }
}
@media (max-width: 600px) {
  .btn { min-height: 52px; padding-left: 22px; gap: 12px; }
  .btn__icon, .btn::before { width: 38px; height: 38px; }
  .btn::before { margin-top: -19px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn__icon::after { animation: none !important; }
}

/* ---------- Antet ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--ink);
  view-transition-name: site-header;
  transition: transform 0.5s var(--ease-out), color 0.35s, background-color 0.35s, box-shadow 0.35s;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header.is-hidden { transform: translateY(-100%); }

/* Bara de sus: contact rapid și limbile, aliniate ca meniul */
.topbar { height: var(--bar-h); border-bottom: 1px solid var(--line); font-size: var(--fs-12); transition: border-color 0.35s; }
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar__contact { display: flex; gap: 22px; margin: 0; }
.topbar__langs { display: flex; flex-wrap: nowrap; gap: clamp(12px, 1.4vw, 22px); list-style: none; margin: 0; padding: 0; }
.topbar__link { position: relative; text-decoration: none; font-weight: 500; letter-spacing: 0.01em; opacity: 0.78; padding-block: 6px; transition: opacity 0.3s; }
.topbar__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.45s var(--ease-out); }
.topbar__link:hover, .topbar__link:focus-visible, .topbar__link[aria-current] { opacity: 1; }
.topbar__link:hover::after, .topbar__link:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.topbar__link[aria-current]::after { transform: scaleX(1); }
.topbar__link[aria-current] { font-weight: 700; }
.header--over:not(.is-solid) .topbar { border-bottom-color: rgba(255, 255, 255, 0.22); }
@media (max-width: 1100px) { .topbar__contact { display: none; } .topbar__inner { justify-content: flex-end; } }
@media (max-width: 960px) {
  :root { --bar-h: 0px; }
  .topbar { display: none; }
}

/* Pe homepage, antetul stă transparent peste fotografie până la scroll */
.header--over:not(.is-solid) {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #fff;
}
.header--over:not(.is-solid) .brand img { filter: brightness(0) invert(1); }

.brand { display: block; flex: none; }
.brand img { width: clamp(176px, 18vw, 232px); height: auto; transition: filter 0.35s; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav__list { display: flex; gap: clamp(18px, 2.2vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  font-size: var(--fs-14);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding-block: 8px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease-out);
}
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.lang { position: relative; font-size: var(--fs-14); font-weight: 500; }
.lang summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
.lang[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(20, 20, 40, 0.35), 0 0 0 1px var(--line);
  animation: drop 0.3s var(--ease-out);
}
.lang__menu a { display: block; padding: 9px 18px; text-decoration: none; }
.lang__menu a:hover, .lang__menu a:focus-visible { background: var(--stone); color: var(--violet); }
.lang__menu [aria-current="true"] { color: var(--violet); font-weight: 600; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

.menu-btn {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 2px;
  background: none;
  border: 0;
  font-size: var(--fs-14);
  font-weight: 600;
  cursor: pointer;
}
.menu-btn__bars { position: relative; width: 22px; height: 10px; }
.menu-btn__bars::before, .menu-btn__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.menu-btn__bars::before { top: 0; }
.menu-btn__bars::after { top: 8.5px; }
.menu-open .menu-btn__bars::before { top: 4.25px; transform: rotate(45deg); }
.menu-open .menu-btn__bars::after { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav__list, .nav .lang { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Meniul pe mobil: un panou violet care se deschide din colțul butonului */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  background: var(--violet);
  color: #fff;
  clip-path: circle(0 at calc(100% - var(--gutter) - 20px) calc(var(--header-h) / 2));
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-inout), visibility 0s 0.7s;
}
.menu-open .drawer {
  clip-path: circle(150% at calc(100% - var(--gutter) - 20px) calc(var(--header-h) / 2));
  visibility: visible;
  transition: clip-path 0.8s var(--ease-inout), visibility 0s;
}
.menu-open .header { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.menu-open .header .brand img { filter: brightness(0) invert(1); }
.menu-open { overflow: hidden; }

.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list li { overflow: hidden; }
.drawer__list a {
  display: block;
  padding-block: 6px;
  font-variation-settings: "wdth" 125;
  font-weight: 500;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: none;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease-out);
}
.menu-open .drawer__list a { transform: none; }
.menu-open .drawer__list li:nth-child(1) a { transition-delay: 0.18s; }
.menu-open .drawer__list li:nth-child(2) a { transition-delay: 0.23s; }
.menu-open .drawer__list li:nth-child(3) a { transition-delay: 0.28s; }
.menu-open .drawer__list li:nth-child(4) a { transition-delay: 0.33s; }
.menu-open .drawer__list li:nth-child(5) a { transition-delay: 0.38s; }
.menu-open .drawer__list li:nth-child(6) a { transition-delay: 0.43s; }
.drawer__list a[aria-current="page"] { opacity: 0.6; }

.drawer__foot {
  display: grid;
  gap: 6px;
  font-size: var(--fs-16);
  opacity: 0;
  transition: opacity 0.4s;
}
.menu-open .drawer__foot { opacity: 1; transition-delay: 0.5s; }
.drawer__foot a { text-decoration: none; }
.drawer__langs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: var(--fs-14); opacity: 0.8; }

@media (min-width: 961px) { .drawer { display: none; } }

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  max-height: 1100px;
  overflow: hidden;
  color: #fff;
  background: var(--violet-deep);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  will-change: transform;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  transform-origin: var(--ox, 79%) var(--oy, 54%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 18, 40, 0.45) 0%, rgba(20, 18, 40, 0) 26%),
    linear-gradient(90deg, rgba(38, 20, 72, 0.62) 0%, rgba(38, 20, 72, 0.18) 48%, rgba(38, 20, 72, 0) 70%),
    linear-gradient(0deg, rgba(15, 25, 40, 0.55) 0%, rgba(15, 25, 40, 0) 40%);
}
.hero__content {
  position: absolute;
  inset: auto 0 0 0;
  padding-bottom: clamp(48px, 9vh, 112px);
}
.hero__title { max-width: 14ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: block; }
.hero__foot {
  margin-top: clamp(28px, 4vh, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}
.hero__address { font-size: var(--fs-14); opacity: 0.85; line-height: 1.5; }

@media (max-width: 700px) {
  .hero__media img { object-position: 60% 50%; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(38, 20, 72, 0.5) 0%, rgba(38, 20, 72, 0) 30%),
      linear-gradient(0deg, rgba(20, 18, 40, 0.78) 0%, rgba(20, 18, 40, 0.25) 46%, rgba(20, 18, 40, 0) 62%);
  }
  .hero { --ox: 72%; --oy: 62%; }
}

/* Secvența de deschidere: camera se retrage de pe inscripție spre tot palatul */
.js .hero__media img { transform: scale(2.4); }
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__foot { opacity: 0; transform: translateY(12px); }
.js .header--over { opacity: 0; }

.hero.is-ready .hero__media img {
  transform: scale(1);
  transition: transform 3.6s cubic-bezier(0.55, 0, 0.1, 1);
}
.hero.is-ready .hero__title .line > span {
  transform: none;
  transition: transform 1.2s var(--ease-out);
}
.hero.is-ready .hero__title .line:nth-child(1) > span { transition-delay: 1.5s; }
.hero.is-ready .hero__title .line:nth-child(2) > span { transition-delay: 1.62s; }
.hero.is-ready .hero__title .line:nth-child(3) > span { transition-delay: 1.74s; }
.hero.is-ready .hero__foot {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s 2.2s, transform 0.9s 2.2s var(--ease-out);
}
.is-ready-header .header--over { opacity: 1; transition: opacity 0.9s 1.2s, transform 0.5s var(--ease-out), color 0.35s, background-color 0.35s; }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(48px, 9vh, 112px);
  width: 1.5px;
  height: 64px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateY(-100%);
  animation: cue 2.4s 3s var(--ease-inout) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* ---------- Hero cu fotografie (pagini interioare) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(440px, 64vh, 720px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 56px) 0 clamp(48px, 7vw, 96px);
  background: var(--violet-deep); color: #fff;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 2.8s cubic-bezier(0.55, 0, 0.1, 1); }
.page-hero.is-ready .page-hero__media img { transform: scale(1); }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(30, 14, 58, 0.55) 0%, rgba(30, 14, 58, 0) 30%),
    linear-gradient(90deg, rgba(42, 20, 80, 0.92) 0%, rgba(42, 20, 80, 0.7) 40%, rgba(42, 20, 80, 0.25) 75%, rgba(42, 20, 80, 0.1) 100%),
    linear-gradient(0deg, rgba(30, 14, 58, 0.6) 0%, rgba(30, 14, 58, 0) 45%);
}
.page-hero .wrap { width: 100%; }
.page-hero .note { color: rgba(255, 255, 255, 0.72); }
.page-hero .page-head__title { color: #fff; max-width: 20ch; }
.page-hero .subtitle { color: rgba(255, 255, 255, 0.88); max-width: 58ch; }
.page-hero .row__note { position: relative; padding-left: 34px; }
.page-hero .row__note::before { content: ""; position: absolute; left: 0; top: 50%; width: 22px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.9s 0.3s var(--ease-out); }
.page-hero.is-ready .row__note::before { transform: scaleX(1); }
@media (max-width: 700px) {
  .page-hero { min-height: 420px; }
  .page-hero::after { background: linear-gradient(0deg, rgba(42, 20, 80, 0.94) 0%, rgba(42, 20, 80, 0.7) 50%, rgba(42, 20, 80, 0.35) 100%); }
}
@media (prefers-reduced-motion: reduce) { .page-hero__media img { transform: none; } }

/* ---------- Antet de pagină (pagini interioare) ---------- */
.page-head {
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 128px));
  padding-bottom: clamp(48px, 7vw, 96px);
}
.page-head__title { max-width: 22ch; }
.page-head__lead { margin-top: 28px; }

.page-band {
  position: relative;
  height: clamp(220px, 34vw, 460px);
  overflow: hidden;
  background: var(--violet-deep);
}
.page-band img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 70% 50%;
  will-change: transform;
}

/* ---------- Homepage: „Despre” ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.intro__figure { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.intro__figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 860px) { .intro__grid { grid-template-columns: 1fr; } .intro__figure { aspect-ratio: 1; } }

/* Banda violet */
.band {
  background: var(--violet);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.band__title { max-width: 20ch; }
.band__text {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: var(--fs-18);
  line-height: 1.65;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- Index de domenii (acordeon) ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index__item { border-bottom: 1px solid var(--line); }
.index__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.6vw, 30px) 0;
  background: none;
  border: 0;
  text-align: start;
  cursor: pointer;
  color: var(--ink);
  transition: color 0.3s;
}
.index__btn:hover, .index__btn[aria-expanded="true"] { color: var(--violet); }
.index__name {
  font-variation-settings: "wdth" 125;
  font-weight: 500;
  font-size: var(--fs-28);
  letter-spacing: -0.015em;
  line-height: 1.15;
  transition: transform 0.5s var(--ease-out);
}
.index__btn:hover .index__name { transform: translateX(8px); }
.index__icon { position: relative; flex: none; width: 18px; height: 18px; }
.index__icon::before, .index__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out);
}
.index__icon::after { transform: rotate(90deg); }
[aria-expanded="true"] .index__icon::after { transform: rotate(0deg); }

.index__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}
.index__panel[data-open="true"] { grid-template-rows: 1fr; }
.index__panel > div { overflow: hidden; }
.index__panel-inner {
  padding: 0 0 clamp(24px, 3vw, 36px);
  display: grid;
  gap: 18px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.index__panel[data-open="true"] .index__panel-inner { opacity: 1; transform: none; transition-delay: 0.12s; }
.index__panel .prose { font-size: var(--fs-18); }

/* ---------- Echipa (homepage) ---------- */
.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 960px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person a { display: block; text-decoration: none; }
.person__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform 1.2s var(--ease-out);
}
.person a:hover .person__photo img, .person a:focus-visible .person__photo img { transform: scale(1.035); }
.person__name {
  margin-top: 16px;
  font-variation-settings: "wdth" 112;
  font-weight: 600;
  font-size: var(--fs-18);
  letter-spacing: -0.01em;
}
.person__role { margin-top: 2px; font-size: var(--fs-14); color: var(--ink-mute); }

/* ---------- Noutăți ---------- */
.news-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  text-decoration: none;
}
.news-feature__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); }
.news-feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.news-feature:hover .news-feature__img img { transform: scale(1.03); }
.news-feature__title { margin-top: 14px; transition: color 0.3s; }
.news-feature:hover .news-feature__title { color: var(--violet); }
@media (max-width: 860px) { .news-feature { grid-template-columns: 1fr; } }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: var(--fs-14);
  color: var(--ink-mute);
}
.meta__tag { color: var(--violet); font-weight: 500; }

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-row { border-bottom: 1px solid var(--line); }
.news-row a {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  gap: 8px 32px;
  align-items: baseline;
  padding-block: 24px;
  text-decoration: none;
}
.news-row__date { font-size: var(--fs-14); color: var(--ink-mute); }
.news-row__title {
  font-variation-settings: "wdth" 108;
  font-weight: 500;
  font-size: var(--fs-22);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 44ch;
  text-wrap: pretty;
  transition: color 0.3s;
}
.news-row__tag { font-size: var(--fs-14); color: var(--violet); font-weight: 500; white-space: nowrap; }
.news-row a:hover .news-row__title { color: var(--violet); }
@media (max-width: 700px) {
  .news-row a { grid-template-columns: 1fr; gap: 6px; }
  .news-row__tag { order: -1; }
}

/* ---------- Banda de contact ---------- */
.contact-band { background: var(--violet); color: #fff; }
.contact-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: end;
}
.contact-band__list { display: grid; gap: 18px; font-size: var(--fs-18); }
.contact-band__list a { text-decoration: none; }
.contact-band__list a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.contact-band__big {
  font-variation-settings: "wdth" 118;
  font-weight: 500;
  font-size: var(--fs-28);
  letter-spacing: -0.01em;
}
@media (max-width: 860px) { .contact-band__grid { grid-template-columns: 1fr; } }

/* ---------- Subsol ---------- */
.footer {
  background: var(--mist);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: var(--fs-14);
  padding-block: 64px 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer__brand img { width: 220px; filter: brightness(0); }
.footer__title { color: var(--ink); font-weight: 600; margin-bottom: 14px; font-size: var(--fs-14); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--violet); text-decoration: underline; text-underline-offset: 0.2em; }
.footer__base {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Despre noi: valori ---------- */
.values { margin: 0; border-top: 1px solid var(--line); }
.values__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 12px clamp(24px, 4vw, 64px);
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}
.values dt {
  font-variation-settings: "wdth" 112;
  font-weight: 600;
  font-size: var(--fs-18);
  letter-spacing: -0.01em;
}
.values dd { font-family: var(--serif); font-size: var(--fs-18); line-height: 1.6; color: var(--ink-soft); }
@media (max-width: 700px) { .values__item { grid-template-columns: 1fr; } }

.pull {
  font-family: var(--serif);
  font-size: var(--fs-36);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 26ch;
  text-wrap: balance;
}

.split-figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.split-figure__img { aspect-ratio: 1; overflow: hidden; background: var(--stone); }
.split-figure__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split-figure { grid-template-columns: 1fr; } }

/* ---------- Domenii de practică ---------- */
.practice { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); }
.toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc__link {
  position: relative;
  display: block;
  padding: 8px 0 8px 18px;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.3s;
}
.toc__link::before {
  content: "";
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 2px;
  background: var(--violet);
  transform: scaleY(0);
  transition: transform 0.45s var(--ease-out);
}
.toc__link:hover { color: var(--ink); }
.toc__link.is-active { color: var(--violet); }
.toc__link.is-active::before { transform: scaleY(1); }

.area { padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.area:first-child { border-top: 0; padding-top: 0; }
.area__title { margin-bottom: 28px; max-width: 22ch; }

@media (max-width: 960px) {
  .practice { grid-template-columns: minmax(0, 1fr); }
  .toc {
    min-width: 0;
    top: var(--header-h);
    z-index: 5;
    margin-inline: calc(var(--gutter) * -1);
    padding: 10px var(--gutter);
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
    transition: top 0.5s var(--ease-out);
  }
  .header.is-hidden ~ main .toc { top: 0; }
  .toc__list {
    display: flex;
    gap: 8px;
    border: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .toc__list::-webkit-scrollbar { display: none; }
  .toc__link {
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .toc__link::before { display: none; }
  .toc__link.is-active { background: var(--violet); color: #fff; box-shadow: none; }
}

/* ---------- Echipa: profiluri ---------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 88px);
  padding-block: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--line);
}
.profile__photo {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--stone);
}
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.profile__name { margin-bottom: 6px; }
.profile__role { font-size: var(--fs-16); color: var(--violet); font-weight: 600; margin-bottom: 32px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: var(--fs-14);
  background: var(--violet-tint);
  color: var(--violet-deep);
}
.profile__more { margin-top: 36px; border-top: 1px solid var(--line); }
.profile__more .index__name { font-size: var(--fs-18); font-variation-settings: "wdth" 112; font-weight: 600; }
.projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.projects li {
  position: relative;
  padding-left: 22px;
  font-family: var(--serif);
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--ink-soft);
}
.projects li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 10px; height: 1.5px;
  background: var(--violet);
}
@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; }
  .profile__photo { position: static; aspect-ratio: 1; max-width: 420px; }
}

/* ---------- Noutăți: arhivă ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.filter {
  padding: 9px 16px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: none;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-14);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.filter:hover { box-shadow: inset 0 0 0 1px var(--violet); color: var(--violet); }
.filter[aria-pressed="true"] { background: var(--violet); color: #fff; box-shadow: none; }

.archive {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 32px);
}
.archive__item[hidden] { display: none; }
.archive__item a { display: block; text-decoration: none; }
.archive__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); margin-bottom: 18px; }
.archive__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.archive__item a:hover .archive__img img { transform: scale(1.04); }
.archive__title {
  margin-top: 10px;
  font-variation-settings: "wdth" 108;
  font-weight: 500;
  font-size: var(--fs-18);
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  transition: color 0.3s;
}
.archive__item a:hover .archive__title { color: var(--violet); }
.archive__item--lead { grid-column: 1 / -1; }
.archive__item--lead a { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.archive__item--lead .archive__img { margin: 0; }
.archive__item--lead .archive__title { font-variation-settings: "wdth" 125; font-size: var(--fs-36); line-height: 1.1; letter-spacing: -0.02em; }
@media (max-width: 960px) { .archive { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .archive { grid-template-columns: 1fr; }
  .archive__item--lead a { grid-template-columns: 1fr; }
  .archive__item--lead .archive__title { font-size: var(--fs-28); }
}
.empty { padding: 40px 0; font-family: var(--serif); font-size: var(--fs-18); color: var(--ink-soft); }

/* ---------- Articol ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 3px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.article-head { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 104px)); }
.article-head__title { max-width: 22ch; margin-top: 20px; }
.article-head .meta { margin-top: 28px; }
.article-cover { margin-top: clamp(40px, 5vw, 72px); aspect-ratio: 16 / 8; overflow: hidden; background: var(--stone); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 66ch;
}
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 {
  margin-top: 2.4em;
  font-family: var(--sans);
  font-variation-settings: "wdth" 118;
  font-weight: 500;
  font-size: var(--fs-28);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.article-body h3 {
  margin-top: 1.8em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--fs-18);
  color: var(--ink);
}
.article-body .first { font-size: 1.12em; color: var(--ink); }

.summary {
  margin-block: 2.4em;
  padding: clamp(24px, 3vw, 40px);
  background: var(--stone);
  border-left: 3px solid var(--violet);
}
.summary__title { font-family: var(--sans); font-weight: 600; font-size: var(--fs-16); color: var(--ink); margin-bottom: 14px; }
.summary ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; font-size: 0.95em; }
.summary li::marker { color: var(--violet); }

.inline-cta {
  margin-block: 2.4em;
  padding: clamp(24px, 3vw, 40px);
  background: var(--violet);
  color: #fff;
  display: grid;
  gap: 20px;
  justify-items: start;
}
.inline-cta p { font-size: 1.05em; line-height: 1.5; color: #fff; max-width: 48ch; }

.author {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.author__name { font-weight: 600; }
.author__role { font-size: var(--fs-14); color: var(--ink-mute); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 104px);
}
.contact-details { display: grid; gap: 32px; align-content: start; }
.contact-details dt { margin-bottom: 6px; }
.contact-details dd { font-size: var(--fs-18); line-height: 1.55; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--violet); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--fs-14); font-weight: 600; }
.field .optional { font-weight: 400; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--stone);
  box-shadow: inset 0 -1.5px 0 var(--line);
  font-size: var(--fs-16);
  transition: box-shadow 0.3s, background-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.field textarea { min-height: 168px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background-color: #fff;
  box-shadow: inset 0 0 0 1.5px var(--violet);
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { box-shadow: inset 0 0 0 1.5px #B3261E; }
.field__error { font-size: var(--fs-14); color: #B3261E; }
.field__error:empty { display: none; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-14); line-height: 1.5; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--violet); flex: none; }
.form__hint { font-size: var(--fs-14); color: var(--ink-mute); }
.form__status {
  padding: 16px 18px;
  background: var(--violet-tint);
  color: var(--violet-deep);
  font-size: var(--fs-16);
}
.form__status:empty { display: none; }

.map { margin-top: clamp(56px, 7vw, 104px); aspect-ratio: 21 / 8; background: var(--stone); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.9) contrast(1.05); }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- Conținut preluat din paginile existente ---------- */
/* Titlurile păstrează nivelul original (h1–h6); clasele de mai jos le dau aspectul */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-14);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-mute);
  text-transform: none;
  margin: 0 0 18px;
}
.on-dark .eyebrow { color: rgba(255, 255, 255, 0.7); }
.subtitle {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-22);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-top: 24px;
  text-wrap: pretty;
}
.subtitle + .subtitle { margin-top: 14px; font-size: var(--fs-18); }
.on-dark .subtitle { color: rgba(255, 255, 255, 0.86); }

.content {
  overflow-wrap: break-word;
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.68;
  color: var(--ink-soft);
  max-width: 68ch;
}
.content > * + * { margin-top: 1.05em; }
.content strong { color: var(--ink); font-weight: 600; }
.content a { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.content a:hover { text-decoration-thickness: 2px; }
/* Butoanele și linkurile-acțiune din text își păstrează stilul propriu */
.content .btn, .content .link { font-family: var(--sans); }
.content .link { text-decoration: none; }
.content h2 {
  margin-top: 2.2em;
  font-family: var(--sans);
  font-variation-settings: "wdth" 118;
  font-weight: 500;
  font-size: var(--fs-28);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.content h3 {
  margin-top: 1.9em;
  font-family: var(--sans);
  font-variation-settings: "wdth" 110;
  font-weight: 600;
  font-size: var(--fs-22);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.content h4, .content h5, .content h6 {
  margin-top: 1.6em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--fs-18);
  color: var(--ink);
}
.content h2 + *, .content h3 + *, .content h4 + * { margin-top: 0.6em; }
.content > :first-child { margin-top: 0; }
.content ul, .content ol { padding-inline-start: 1.2em; padding-left: 0; display: grid; gap: 0.6em; }
.content li::marker { color: var(--violet); }
.content ol > li { padding-inline-start: 0.3em; }
.content figure img { width: 100%; height: auto; }
.content figcaption, .caption { font-family: var(--sans); font-size: var(--fs-14); color: var(--ink-mute); margin-top: 10px; }
.content blockquote { padding-left: 20px; border-left: 3px solid var(--violet); color: var(--ink); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.content table { width: 100%; border-collapse: collapse; font-size: 0.92em; line-height: 1.5; }
.content th, .content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.content th { font-family: var(--sans); font-weight: 600; color: var(--ink); background: var(--stone); }

/* Două coloane de text: introducere fixă în stânga, conținutul lung în dreapta */
.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.duo__lead { position: sticky; top: calc(var(--header-h) + 32px); }
.duo__lead h2:first-child { font-size: var(--fs-36); margin-top: 0; }
.duo .content { max-width: none; }
@media (max-width: 960px) { .duo { grid-template-columns: minmax(0, 1fr); } .duo__lead { position: static; } }
.content--cols { max-width: none; }
@media (min-width: 1100px) { .content--cols { columns: 2; column-gap: clamp(40px, 5vw, 88px); } .content--cols > * { break-inside: avoid; } }

/* Articol: text + coloană laterală (cuprins, autor, contact) */
.read { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.read .content { max-width: 70ch; }
.read__aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 28px; max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 4px; }
.read__aside .toc { position: static; top: auto; max-height: none; overflow: visible; }
.read__aside .toc .note { margin-bottom: 12px; }
.read__aside .toc__link { font-size: var(--fs-14); line-height: 1.35; }
.author-card { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--stone); text-decoration: none; transition: background-color 0.3s; }
.author-card:hover { background: var(--violet-tint); }
.author-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.author-card__name { display: block; font-weight: 600; }
.author-card__role { display: block; font-size: var(--fs-14); color: var(--ink-mute); }
.aside-cta { padding: 24px; background: var(--violet); color: #fff; display: grid; gap: 16px; justify-items: start; }
.aside-cta__title { font-variation-settings: "wdth" 118; font-weight: 500; font-size: var(--fs-22); letter-spacing: -0.01em; }
@media (max-width: 960px) {
  .read { grid-template-columns: minmax(0, 1fr); }
  .read__aside { position: static; max-height: none; overflow: visible; }
  .read__aside .toc { display: none; }
}
@media (min-width: 1000px) { .post-list.post-list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Traseu de navigare */
.crumbs ol { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; font-size: var(--fs-14); color: var(--ink-mute); }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line); color: #B9B9C3; }
.crumbs a { color: var(--violet); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; padding-block: 8px; }
.crumbs a:hover { text-decoration-thickness: 2px; }
.crumbs [aria-current] { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 36ch; }
.article-head .row__note { margin-bottom: 0; }

/* Două blocuri de introducere alăturate (Domenii de practică) */
.intro-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); padding-bottom: clamp(48px, 6vw, 88px); margin-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.intro-pair .content { max-width: none; }
/* Pe Domenii de practică: o singură linie și un singur spațiu între texte și primul domeniu */
.intro-pair.section { padding-bottom: clamp(40px, 4.5vw, 64px); margin-bottom: 0; border-bottom: 0; }
.practice-rows .practice-row:first-child { padding-top: clamp(36px, 4vw, 56px); }
.practice-rows .practice-row:last-child { border-bottom: 0; padding-bottom: 0; }

/* Ultima secțiune albă dinaintea benzii violet: un singur spațiu, nu două */
main > :last-child:not([style*="background"]):not(.band) { padding-bottom: clamp(48px, 6vw, 88px) !important; }
.intro-pair .content h2 { margin-top: 0; font-size: var(--fs-22); }
@media (max-width: 860px) { .intro-pair { grid-template-columns: minmax(0, 1fr); } }

/* Pagină cu cuprins marginal (domenii, articole lungi) */
.doc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); }
.doc__toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; scrollbar-width: thin; }
.doc__toc .note { margin-bottom: 14px; }
.doc__toc .toc__link { font-size: var(--fs-14); line-height: 1.35; }
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc__toc { display: none; }
}

/* FAQ */
.faq { margin-top: clamp(56px, 7vw, 96px); }
.faq__title { margin-bottom: 28px; max-width: 26ch; }
.faq .index__name { font-size: var(--fs-18); font-variation-settings: "wdth" 108; font-weight: 600; line-height: 1.35; }
.faq .index__btn { align-items: flex-start; }
.faq .index__icon { margin-top: 0.35em; }
.faq__answer { font-family: var(--serif); font-size: var(--fs-18); line-height: 1.65; color: var(--ink-soft); max-width: 64ch; }

/* Avocați */
.lawyer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); }
.lawyer__photo { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.lawyer__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.lawyer__role { font-family: var(--sans); font-size: var(--fs-18); font-weight: 600; color: var(--violet); margin: 8px 0 36px; }
@media (max-width: 860px) {
  .lawyer { grid-template-columns: minmax(0, 1fr); }
  .lawyer__photo { position: static; aspect-ratio: 1; max-width: 440px; }
}
.team-card { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); align-items: start; }
.team-card__photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1.2s var(--ease-out); }
.team-card__photo:hover img { transform: scale(1.03); }
.team-card h3 a { text-decoration: none; }
.team-card h3 a:hover { color: var(--violet); }
.team-card h4 { font-family: var(--sans); font-size: var(--fs-16); font-weight: 600; color: var(--violet); margin: 6px 0 22px; }
@media (max-width: 700px) { .team-card { grid-template-columns: minmax(0, 1fr); } .team-card__photo { max-width: 360px; aspect-ratio: 1; } }

/* Homepage: cele două carduri din banda violet și domeniile */
.band-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 5vw, 72px); }
.band-card { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; text-decoration: none; color: #fff; background: var(--violet-deep); }
.band-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.band-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30, 14, 58, 0.72) 0%, rgba(30, 14, 58, 0) 55%); }
/* cardul „Despre noi”: același filtru violet ca fotografia de sus a paginii Despre noi */
.band-card--tint::after { background: linear-gradient(0deg, rgba(42, 20, 80, 0.94) 0%, rgba(42, 20, 80, 0.7) 50%, rgba(42, 20, 80, 0.35) 100%); }
.band-card h2 { position: absolute; left: clamp(18px, 2.4vw, 32px); bottom: clamp(16px, 2.2vw, 28px); z-index: 1; font-variation-settings: "wdth" 118; font-weight: 500; font-size: var(--fs-28); letter-spacing: -0.015em; }
.band-card h2::after { content: ""; display: block; height: 1.5px; margin-top: 8px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--ease-out); }
.band-card:hover img, .band-card:focus-visible img { transform: scale(1.04); }
.band-card:hover h2::after, .band-card:focus-visible h2::after { transform: scaleX(1); }
@media (max-width: 640px) { .band-cards { grid-template-columns: minmax(0, 1fr); } }

.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.area-item { padding: clamp(24px, 3vw, 40px) clamp(0px, 2vw, 32px) clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.area-item:nth-child(odd) { border-right: 1px solid var(--line); }
.area-item:nth-child(even) { padding-left: clamp(20px, 2.4vw, 40px); }
.area-item h3 { font-variation-settings: "wdth" 118; font-weight: 500; font-size: var(--fs-28); letter-spacing: -0.015em; line-height: 1.15; }
.area-item h3 a { text-decoration: none; transition: color 0.3s; }
.area-item h3 a:hover { color: var(--violet); }
.area-item p { margin-top: 14px; font-family: var(--serif); font-size: var(--fs-18); line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }
@media (max-width: 760px) {
  .areas { grid-template-columns: minmax(0, 1fr); }
  .area-item, .area-item:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0; }
}

/* Listă de articole */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 32px); }
.post-card a.post-card__link { display: block; text-decoration: none; }
.post-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--stone); margin-bottom: 18px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post-card a.post-card__link:hover .post-card__img img { transform: scale(1.04); }
.post-card h2, .post-card h3 { margin-top: 10px; font-variation-settings: "wdth" 108; font-weight: 500; font-size: var(--fs-18); line-height: 1.3; letter-spacing: -0.005em; text-wrap: pretty; transition: color 0.3s; }
.post-card a.post-card__link:hover h2, .post-card a.post-card__link:hover h3 { color: var(--violet); }
.post-card .meta { margin-top: 0; }
.post-card .more { display: inline-block; margin-top: 14px; font-size: var(--fs-14); font-weight: 600; color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.post-card a.post-card__link:hover .more { text-decoration-thickness: 2px; }
.post-card--lead { grid-column: 1 / -1; }
.post-card--lead a.post-card__link { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.post-card--lead .post-card__img { margin: 0; }
.post-card--lead h2, .post-card--lead h3 { font-variation-settings: "wdth" 125; font-size: var(--fs-36); line-height: 1.1; letter-spacing: -0.02em; }
@media (max-width: 960px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .post-list { grid-template-columns: minmax(0, 1fr); }
  .post-card--lead a.post-card__link { grid-template-columns: minmax(0, 1fr); }
  .post-card--lead h2, .post-card--lead h3 { font-size: var(--fs-28); }
}
.cats { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.cats a { color: var(--violet); font-weight: 500; text-decoration: none; }
.cats a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
a.filter { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
a.filter[aria-current="page"] { background: var(--violet); color: #fff; box-shadow: none; }
.pager { display: flex; gap: 8px; margin-top: clamp(40px, 5vw, 64px); }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-size: var(--fs-14); font-weight: 600; }
.pager a:hover { box-shadow: inset 0 0 0 1px var(--violet); color: var(--violet); }
.pager [aria-current="page"] { background: var(--violet); color: #fff; box-shadow: none; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tags a { padding: 7px 14px; border-radius: 999px; font-size: var(--fs-14); background: var(--violet-tint); color: var(--violet-deep); text-decoration: none; }
.tags a:hover { background: var(--violet); color: #fff; }

.contact-lines h3 { font-variation-settings: "wdth" 112; font-weight: 500; font-size: var(--fs-22); letter-spacing: -0.01em; }
.contact-lines h3 a { text-decoration: none; }
.contact-lines h3 a:hover { color: var(--violet); }

/* ---------- Articole: „Pe scurt", caseta de consultanță, autorul ---------- */
.content .tldr, .content .consult { margin-block: 2.6em; }

/* Pe scurt: bifele se desenează una după alta când caseta intră în ecran */
.tldr {
  position: relative;
  padding: clamp(22px, 3vw, 36px);
  background: linear-gradient(180deg, #F7F3FC 0%, #FBF9FE 100%);
  border: 1px solid #E3D8EE;
  border-radius: 6px;
  font-family: var(--sans);
  overflow: hidden;
}
.tldr::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--violet);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 1s var(--ease-out);
}
.tldr.is-in::before { transform: scaleY(1); }
.tldr__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.tldr__title { display: inline-flex; align-items: center; gap: 10px; font-variation-settings: "wdth" 125; font-weight: 600; font-size: var(--fs-18); letter-spacing: -0.01em; color: var(--violet-deep); }
.tldr__list { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 0 !important; }
.tldr__list li {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 12px 0; border-top: 1px solid #ECE3F5;
  font-size: var(--fs-16); line-height: 1.55; color: var(--ink);
}
.tldr__list li:first-child { border-top: 0; padding-top: 4px; }
.tldr__list li::marker { content: none; }
.tldr__tick { width: 22px; height: 22px; margin-top: 1px; }
.tldr__tick path { fill: none; stroke: var(--violet); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.js .tldr__tick path { stroke-dasharray: 20; stroke-dashoffset: 20; }
.js .tldr__list li > span { opacity: 0.35; transition: opacity .6s; }
.tldr.is-in .tldr__tick path { stroke-dashoffset: 0; transition: stroke-dashoffset .55s var(--ease-out) calc(var(--i) * 0.12s + 0.25s); }
.tldr.is-in .tldr__list li > span { opacity: 1; transition-delay: calc(var(--i) * 0.12s + 0.2s); }

/* Consultanță: întrebarea mare, echipa care răspunde, butonul */
.consult {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(26px, 3.6vw, 44px);
  border-radius: 6px;
  background: var(--violet);
  color: #fff;
  font-family: var(--sans);
}
.consult::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 45%);
  pointer-events: none;
}
.consult:hover .consult__body p { font-family: var(--serif); font-size: var(--fs-18); line-height: 1.55; color: rgba(255,255,255,0.88); max-width: 52ch; text-align: start !important; }
.consult__body strong { display: block; margin-bottom: 10px; font-family: var(--sans); font-variation-settings: "wdth" 118; font-weight: 600; font-size: var(--fs-22); line-height: 1.3; letter-spacing: -0.01em; color: #fff; }
.consult__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 26px; }
.consult__team { display: inline-flex; align-items: center; gap: 14px; margin: 0 !important; font-family: var(--sans); font-size: var(--fs-14); line-height: 1.4; color: rgba(255,255,255,0.86); max-width: 36ch; text-align: start !important; }
.consult__faces { display: inline-flex; flex: none; }
@media (max-width: 480px) { .consult__team { flex-wrap: wrap; } }
.consult__faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--violet); margin-left: -10px; transition: transform .45s var(--ease-out); }
.consult__faces img:first-child { margin-left: 0; }
.consult:hover .consult__faces img { transform: translateX(calc(var(--k, 0) * 4px)); }
.consult__faces img:nth-child(2) { --k: 1; } .consult__faces img:nth-child(3) { --k: 2; } .consult__faces img:nth-child(4) { --k: 3; }

/* Despre autor */
.author-box {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start;
  margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 3vw, 36px);
  background: var(--stone); border-radius: 6px;
}
.author-box__photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #E3D8EE; }
.author-box .note { margin-bottom: 6px; }
.author-box__name { font-family: var(--sans); font-variation-settings: "wdth" 118; font-weight: 500; font-size: var(--fs-28); letter-spacing: -0.015em; line-height: 1.15; }
.author-box__name a { text-decoration: none; }
.author-box__role { margin-top: 4px; font-family: var(--sans); font-size: var(--fs-14); font-weight: 600; color: var(--violet); }
.author-box__bio { margin-top: 16px; font-family: var(--serif); font-size: var(--fs-16); line-height: 1.65; color: var(--ink-soft); }
.author-box__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; text-align: start !important; }
@media (max-width: 600px) { .author-box { grid-template-columns: minmax(0, 1fr); } .author-box__photo { width: 96px; height: 96px; } }

/* ---------- Pagini interioare: grila domeniilor, echipa, biografii, analize ---------- */
.tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)) !important; border-top: 1px solid var(--line); }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 150px; }
.area-item .tile__name { margin: 0; color: var(--ink); max-width: none; font-family: var(--sans); font-variation-settings: "wdth" 118; font-weight: 500; font-size: var(--fs-22); line-height: 1.2; letter-spacing: -0.01em; text-align: start !important; }
.tile__name a { text-decoration: none; }
.tile__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile__more { font-size: var(--fs-14); font-weight: 600; color: var(--violet); text-decoration: underline; text-underline-offset: 0.25em; transition: color 0.45s; }
.area-item:hover .tile__more, .area-item:focus-within .tile__more { color: #fff; }
.area-item:hover .tile__name a, .area-item:focus-within .tile__name a { color: #fff; }
.tiles .area-item { box-shadow: none !important; border-right: 1px solid var(--line) !important; }
@media (max-width: 760px) {
  .tiles .area-item { border-right: 0 !important; }
  .tile { min-height: 0; gap: 10px; flex-direction: row; align-items: center; }
  .tile__more { flex: none; }
}

/* Domenii de practică: câte un bloc pe domeniu, titlul fix în stânga cât citiți descrierea */
.practice-rows { border-top: 1px solid var(--line); }
.practice-row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 88px);
  padding-block: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line);
}
.practice-row::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%;
  background: var(--violet); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.9s var(--ease-out);
}
.practice-row:hover::before { transform: scaleX(1); }
.practice-row__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 24px; justify-items: start; }
.practice-row__title { font-family: var(--sans); font-variation-settings: "wdth" 118; font-weight: 500; font-size: var(--fs-36); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.practice-row__title a { text-decoration: none; }
.practice-row .content { max-width: 68ch; }
@media (max-width: 860px) {
  .practice-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .practice-row__head { display: contents; }
  .practice-row__title { order: 1; }
  .practice-row .content { order: 2; }
  .practice-row__head .btn { order: 3; justify-self: start; }
}
.practice-row .content + * { margin-top: 0; }

/* Echipa: fotografia alternează stânga / dreapta */
@media (min-width: 701px) {
  .team-card:nth-of-type(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .team-card:nth-of-type(even) .team-card__photo { order: 2; }
}
.team-card__photo { position: relative; }
.team-card__photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--violet); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.8s var(--ease-out); }
.team-card:hover .team-card__photo::after { transform: scaleX(1); }

/* Biografii: subtitlurile interne arată ca titluri */
.content .subhead {
  margin-top: 2em; padding-left: 16px; border-left: 3px solid var(--violet);
  font-family: var(--sans); font-variation-settings: "wdth" 112; font-size: var(--fs-18); line-height: 1.3; color: var(--ink); text-align: start !important;
}
.content .subhead strong { font-weight: 600; }

/* Analize juridice: linkuri ca un card de articol */
.link-card {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 12px; margin-top: 12px; border: 1px solid var(--line); border-radius: 6px;
  text-decoration: none !important; color: var(--ink) !important; font-family: var(--sans);
  transition: border-color 0.3s, background-color 0.3s, transform 0.45s var(--ease-out);
}
.link-card + .link-card { margin-top: 12px !important; }
.link-card img { width: 120px; height: 76px; object-fit: cover; border-radius: 4px; }
.link-card__kicker { display: block; font-size: var(--fs-12); font-weight: 600; color: var(--violet); margin-bottom: 4px; }
.link-card__title { display: block; font-size: var(--fs-16); font-weight: 500; line-height: 1.35; }
.link-card:hover { border-color: var(--violet); background: var(--violet-tint); transform: translateX(4px); }
@media (max-width: 520px) { .link-card { grid-template-columns: 84px minmax(0, 1fr); } .link-card img { width: 84px; height: 60px; } }

/* ---------- Titluri: negru → violet la hover / atingere (ca la domeniile de pe homepage) ---------- */
h1, h2, h3, h4, h5, h6 { transition: color 0.3s var(--ease-out); }
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover,
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover { color: var(--violet); }
/* pe fundal violet sau pe fotografie, titlurile albe trec spre lavandă */
.on-dark :is(h1, h2, h3, h4, h5, h6):hover,
.hero :is(h1, h2):hover,
.band-card h2:hover { color: #D9C9F5; }
/* titlurile din cardurile de articole urmează hover-ul cardului, ca până acum */
.post-card h2:hover, .post-card h3:hover { color: inherit; }
.post-card a.post-card__link:hover h2, .post-card a.post-card__link:hover h3 { color: var(--violet); }

/* ---------- Mișcare la scroll ---------- */
/* Titluri: cuvintele urcă dintr-o mască */
/* Titluri: cuvintele apar printr-o estompare scurtă și urcă ușor; fără mască, ca să nu taie diacriticele */
.w { display: inline-block; }
.w > span { display: inline-block; opacity: 0; transform: translateY(0.32em); transition: opacity 0.75s var(--ease-out) var(--d, 0s), transform 0.95s var(--ease-out) var(--d, 0s); }
.is-in .w > span, .is-in.w > span { opacity: 1; transform: none; }
/* Titlurile principale: fiecare cuvânt are mai mult timp să apară */
.is-lead .w > span { transform: translateY(0.45em); transition-duration: 1.4s, 1.7s; }
.is-lead.is-in .w > span { transform: none; }
.rv.rv--lead { transition-duration: 1.4s, 1.7s; }
/* Plasă de siguranță: dacă scriptul nu rulează, titlurile de sus apar oricum */
.js .page-head__title:not(.is-split), .js .article-head__title:not(.is-split) { animation: show-anyway 0s 1.6s both; }
@keyframes show-anyway { from { opacity: 0; } to { opacity: 1; } }


/* Carduri și liste: apar pe rând */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.rv.is-in { opacity: 1; transform: none; }
.rv.team-card, .rv.post-card { transform: translateY(40px); }

/* Butoane magnetice */
.magnet { transition: transform 0.35s var(--ease-out), color 0.35s var(--ease-out); will-change: transform; }

/* Hero: după deschidere, fotografia „respiră" lent */
.hero__media picture { display: block; height: 100%; }
.hero.is-ready .hero__media picture { animation: breathe 22s 3.8s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.045) translateY(-0.6%); } }

/* Domenii pe homepage: tot blocul e clicabil și se umple cu violet */
.area-item { position: relative; isolation: isolate; padding: clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 40px) !important; border-right: 0 !important; }
.areas { border-top: 1px solid var(--line); }
.area-item { border-bottom: 1px solid var(--line) !important; }
@media (min-width: 761px) { .area-item:nth-child(odd) { box-shadow: 1px 0 0 var(--line); } }
.area-item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--violet); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s var(--ease-out); }
.area-item h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.area-item h3, .area-item p { transition: color 0.45s var(--ease-out), transform 0.7s var(--ease-out); }
.area-item:hover::before, .area-item:focus-within::before { transform: scaleX(1); }
.area-item:hover h3, .area-item:hover h3 a, .area-item:hover p,
.area-item:focus-within h3, .area-item:focus-within h3 a, .area-item:focus-within p { color: #fff; }
.area-item:hover h3, .area-item:focus-within h3 { transform: translateX(6px); }
.area-item:focus-within h3 a:focus-visible { outline: none; }
.area-item:focus-within { outline: 2px solid var(--violet); outline-offset: 2px; }

@media print {
  .w > span, .rv { transform: none !important; opacity: 1 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .w > span, .rv { transform: none !important; opacity: 1 !important; }
  .hero.is-ready .hero__media picture { animation: none; }
}

/* ---------- Text justificat ---------- */
/* Tot textul de citit e aliniat stânga-dreapta; despărțirea în silabe (limba ro)
   evită spațiile mari între cuvinte, mai ales pe ecrane înguste. */
main p, main li, main dd, main blockquote {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}
/* Elementele scurte rămân aliniate la stânga */
main :is(.subtitle, .consult__body p, .tldr__list li, .tldr__head *, .consult__team, .author-box__links, .author-box__role, .meta, .caption, .note, .eyebrow, .hero__address, .cta-line, .crumbs li, .post-card, .post-card *, .tags, .filters, .form, .form *, .check, .check *, .contact-details p, .aside-cta, .aside-cta *, .author-card *, .toc li, .people *, .pager, .chips li, .band-card *, .empty, .areas li > h3),
main :is(.contact-lines, .contact-lines *) {
  text-align: start;
  hyphens: manual;
  -webkit-hyphens: manual;
}

/* ---------- Mișcare ---------- */
/* Fotografiile mari se descoperă o singură dată, la intrarea în ecran */
.js .reveal {
  clip-path: inset(10% 0 0 0);
  transition: clip-path 1.3s var(--ease-out);
}
.js .reveal img { transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.js .reveal.is-in { clip-path: inset(0 0 0 0); }
.js .reveal.is-in img { transform: none; }
/* După descoperire, hover-ul preia transformarea imaginii */
.js .reveal.is-done img { transition: transform 1.2s var(--ease-out); }

/* Tranziții între pagini (Chrome, Edge, Safari 18.2+) */
/* tranziția între pagini doar pe desktop: Safari pe iPhone lasă uneori pagina albă după navigare */
@media (hover: hover) and (pointer: fine) { @view-transition { navigation: auto; } }
::view-transition-old(root) { animation: 0.32s var(--ease-inout) both vt-out; }
::view-transition-new(root) { animation: 0.55s var(--ease-out) both vt-in; }
::view-transition-group(site-header) { animation-duration: 0.4s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js .hero__media img,
  .js .hero__title .line > span,
  .js .hero__foot,
  .js .header--over { transform: none; opacity: 1; }
  .js .reveal { clip-path: none; }
  .js .reveal img { transform: none; }
  @view-transition { navigation: none; }
}


/* ================================================================
   Limbi: fonturi pentru chineză și arabă, layout oglindit pentru arabă
   ================================================================ */
:lang(zh) {
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
}
:lang(zh) *, :lang(ar) * { letter-spacing: 0 !important; hyphens: manual !important; -webkit-hyphens: manual !important; }
:lang(zh) .content, :lang(zh) .prose { line-height: 1.85; }
:lang(ar) {
  --sans: "Noto Kufi Arabic", "Geeza Pro", Tahoma, sans-serif;
  --serif: "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", serif;
}
:lang(ar) .content, :lang(ar) .prose, :lang(ar) .faq__answer, :lang(ar) .author-box__bio { line-height: 1.95; }
:lang(ar) .display, :lang(ar) .h1, :lang(ar) .h2, :lang(ar) .h3 { line-height: 1.3; }
/* Archivo e lăsat doar pentru textul latin din paginile arabe */
:lang(ar) [dir="ltr"], :lang(ar) .brand, :lang(ar) .topbar__contact { font-family: "Archivo", sans-serif; }

[dir="rtl"] .skip { left: auto; right: 16px; }
[dir="rtl"] .btn { padding: 7px 26px 7px 7px; }
[dir="rtl"] .btn::before { right: auto; left: 7px; }
[dir="rtl"] .btn__icon svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .btn__icon, [dir="rtl"] .btn:focus-visible .btn__icon { transform: rotate(45deg); }
[dir="rtl"] .btn:hover .btn__icon svg, [dir="rtl"] .btn:focus-visible .btn__icon svg { transform: scaleX(-1) translateX(1px); }
@media (max-width: 600px) { [dir="rtl"] .btn { padding-left: 7px; padding-right: 22px; } }
[dir="rtl"] .topbar__link::after, [dir="rtl"] .nav__link::after { transform-origin: 0 50%; }
[dir="rtl"] .topbar__link:hover::after, [dir="rtl"] .nav__link:hover::after { transform-origin: 100% 50%; }
[dir="rtl"] .hero::after {
  background:
    linear-gradient(180deg, rgba(20, 18, 40, 0.45) 0%, rgba(20, 18, 40, 0) 26%),
    linear-gradient(270deg, rgba(38, 20, 72, 0.62) 0%, rgba(38, 20, 72, 0.18) 48%, rgba(38, 20, 72, 0) 70%),
    linear-gradient(0deg, rgba(15, 25, 40, 0.55) 0%, rgba(15, 25, 40, 0) 40%);
}
[dir="rtl"] .page-hero::after {
  background:
    linear-gradient(180deg, rgba(30, 14, 58, 0.55) 0%, rgba(30, 14, 58, 0) 30%),
    linear-gradient(270deg, rgba(42, 20, 80, 0.92) 0%, rgba(42, 20, 80, 0.7) 40%, rgba(42, 20, 80, 0.25) 75%, rgba(42, 20, 80, 0.1) 100%),
    linear-gradient(0deg, rgba(30, 14, 58, 0.6) 0%, rgba(30, 14, 58, 0) 45%);
}
[dir="rtl"] .scroll-cue { right: auto; left: var(--gutter); }
[dir="rtl"] .page-hero .row__note { padding-left: 0; padding-right: 34px; }
[dir="rtl"] .page-hero .row__note::before { left: auto; right: 0; transform-origin: 100% 50%; }
[dir="rtl"] .index__btn:hover .index__name { transform: translateX(-8px); }
[dir="rtl"] .toc__list { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .toc__link { padding: 8px 18px 8px 0; }
[dir="rtl"] .toc__link::before { left: auto; right: -1px; }
@media (max-width: 960px) { [dir="rtl"] .toc__link { padding: 8px 14px; } [dir="rtl"] .toc__list { border-right: 0; } }
[dir="rtl"] .projects li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .projects li::before { left: auto; right: 0; }
[dir="rtl"] .content blockquote { padding-left: 0; border-left: 0; padding-right: 20px; border-right: 3px solid var(--violet); }
[dir="rtl"] .content .subhead { padding-left: 0; border-left: 0; padding-right: 16px; border-right: 3px solid var(--violet); }
[dir="rtl"] .summary { border-left: 0; border-right: 3px solid var(--violet); }
[dir="rtl"] .summary ul { padding-left: 0; padding-right: 1.1em; }
[dir="rtl"] .tldr::before { inset: 0 0 0 auto; }
[dir="rtl"] .band-card h2 { left: auto; right: clamp(18px, 2.4vw, 32px); }
[dir="rtl"] .band-card h2::after { transform-origin: 100% 50%; }
@media (min-width: 761px) { [dir="rtl"] .area-item:nth-child(odd) { box-shadow: -1px 0 0 var(--line); } }
[dir="rtl"] .area-item::before, [dir="rtl"] .practice-row::before { transform-origin: 100% 50%; }
[dir="rtl"] .area-item:hover h3, [dir="rtl"] .area-item:focus-within h3 { transform: translateX(-6px); }
[dir="rtl"] .consult__faces img { margin-left: 0; margin-right: -10px; }
[dir="rtl"] .consult__faces img:first-child { margin-right: 0; }
[dir="rtl"] .consult:hover .consult__faces img { transform: translateX(calc(var(--k, 0) * -4px)); }
[dir="rtl"] .consult::after { background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 45%); }
[dir="rtl"] .link-card:hover { transform: translateX(-4px); }
[dir="rtl"] .team-card__photo::after { transform-origin: 100% 50%; }
[dir="rtl"] .field select { background-position: 22px 52%, 17px 52%; padding-right: 16px; padding-left: 44px; }
[dir="rtl"] .progress { transform-origin: 100% 50%; }
[dir="rtl"] .drawer { clip-path: circle(0 at calc(var(--gutter) + 20px) calc(var(--header-h) / 2)); }
[dir="rtl"] .menu-open .drawer { clip-path: circle(150% at calc(var(--gutter) + 20px) calc(var(--header-h) / 2)); }

/* Despre noi pe telefon: spațiu între fotografia de sus și primul paragraf (pe desktop îl dă așezarea pe coloane) */
@media (max-width: 860px) { .about-first { padding-top: clamp(48px, 6vw, 88px) !important; } }

/* Telefoane și tablete: fără blur sub antet și fără straturi mari ținute permanent pe placa grafică.
   Safari pe iPhone afișa altfel momente de ecran alb la scroll. Parallaxul e oprit tot pentru ecranele tactile, în main.js. */
@media (hover: none), (pointer: coarse) {
  .header, .toc { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .toc { background: #fff; }
  .header { background: #fff; }
  .header--over:not(.is-solid) { background: transparent; }
  .hero__media, .page-hero__media, .page-band img, .magnet { will-change: auto; }
  /* aparițiile la scroll: scurte, ca la un scroll rapid conținutul să fie deja vizibil */
  .w > span { transition-duration: 0.45s, 0.55s; }
  .is-lead .w > span { transition-duration: 0.7s, 0.85s; }
  .rv, .rv.rv--lead { transition-duration: 0.5s, 0.6s; }
  .js .reveal, .js .reveal img { transition-duration: 0.6s; }
}
