/* ==========================================================================
   C.M.I. Dr. Dumitrescu-Noica Cornelia Angelica — site.css
   Sursa de adevăr pentru tokens: Site CMI Dumitrescu-Noica.dc.html
   ========================================================================== */

:root {
  /* Fundaluri */
  --bg-page: #F6F7F1;
  --bg-band: #F0EFE5;
  --bg-card: #FFFFFF;
  --bg-green-soft: #E6EDE2;
  --bg-dark: #24352A;

  /* Text */
  --text-main: #1F2B21;
  --text-body: #3A473C;
  --text-secondary: #5C6B5E;
  --text-muted: #8A9A8C;
  --text-on-dark: #C9D6C4;
  --text-on-dark-soft: #B9CBB9;
  --text-on-dark-muted: #9FB5A0;
  --text-on-dark-heading: #93AD97; /* ≥4.5:1 pe --bg-dark (eticheta scenei, 12px) */
  --topbar-text: #D8E4D6;
  --topbar-muted: #A8BCA9;

  /* Verde */
  --green: #4E7257;
  --green-hover: #3C5A45;
  --link: #3C6B4F;
  --link-hover: #2E543D;

  /* Linii & borduri */
  --line: #D9E2D4;
  --line-soft: #E3EADF;
  --line-card: #E0E3D4;
  --chip-border: #C9D6C4;

  /* Umbre & raze */
  --shadow-hover: 0 14px 30px rgba(31, 43, 33, 0.08);
  --shadow-float: 0 18px 40px rgba(31, 43, 33, 0.12);
  --radius-card: 18px;
  --radius-panel: 20px;
  --radius-pill: 999px;

  /* Tipografie */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --content-max: 1180px;
  --pad-x: 32px;
}

/* --------------------------------------------------------------------------
   Bază
   -------------------------------------------------------------------------- */

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

html, body { margin: 0; padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

::selection { background: #DCE7DC; }

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

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Pe suprafețele verzi închise, verdele de focus nu are contrast — folosim salvia deschisă */
.topbar :focus-visible,
.site-footer :focus-visible,
.cta-card :focus-visible,
.research-banner :focus-visible {
  outline-color: var(--text-on-dark);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: #FFFFFF;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--bg-dark);
  color: var(--topbar-text);
  font-size: 13.5px;
  padding: 9px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.topbar a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
}

.topbar-address { color: var(--topbar-muted); }

/* --------------------------------------------------------------------------
   Header & navigație
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--text-main);
}
.brand:hover { color: var(--text-main); }

.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--green);
  letter-spacing: 0.5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 11.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 15px;
}
.nav-link:hover { color: var(--green-hover); }

.nav-link > span { position: relative; }

.nav-link[aria-current] > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  margin-left: 6px;
}

.lang-switch a,
.lang-switch .lang-current {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  text-decoration: none;
}

.lang-switch a {
  color: var(--text-secondary);
  font-weight: 600;
}
.lang-switch a:hover {
  background: var(--bg-green-soft);
  color: var(--text-main);
}

.lang-switch .lang-current {
  background: var(--green);
  color: #FFFFFF;
  font-weight: 700;
}

/* Buton hamburger — vizibil doar sub 1024px */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Butoane, eyebrow, chips, badge-uri
   -------------------------------------------------------------------------- */

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: #FFFFFF;
  padding: 14px 28px;
}
.btn-primary:hover {
  background: var(--green-hover);
  color: #FFFFFF;
}

.btn-outline {
  border: 1.5px solid var(--green);
  color: var(--green-hover);
  padding: 12.5px 26px;
}
.btn-outline:hover {
  background: var(--bg-green-soft);
  color: var(--green-hover);
}

.btn-light {
  background: #FFFFFF;
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  white-space: nowrap;
}
.btn-light:hover {
  background: var(--bg-green-soft);
  color: var(--bg-dark);
}

.chips {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--chip-border);
  background: #FFFFFF;
  color: var(--green-hover);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
}

.badge {
  align-self: flex-start;
  background: var(--bg-green-soft);
  color: var(--green-hover);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.badge--accent {
  background: var(--green);
  color: #FFFFFF;
}

/* Rândul badge + steaguri de pe cardurile bibliotecii */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.card-top .badge { align-self: auto; }

.card-flags {
  display: inline-flex;
  gap: 4px;
  flex: none;
}

.flag {
  display: inline-block;
  width: 21px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(31, 43, 33, 0.18);
}

.flag--off {
  opacity: 0.22;
  filter: grayscale(1);
}

/* Steag-link: descarcă fișierul limbii / deschide versiunea articolului */
.flag-link {
  display: inline-flex;
  line-height: 0;
  border-radius: 2px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.flag-link:hover,
.flag-link:focus-visible {
  transform: translateY(-1px) scale(1.12);
  box-shadow: 0 2px 6px rgba(31, 43, 33, 0.3);
}

/* Nota „documentul este disponibil în română" de pe cardurile fără fișier propriu */
.card-note {
  margin: -6px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft, #5C6B5E);
}

.tag {
  background: var(--bg-green-soft);
  color: var(--green-hover);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
}

.tags {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Hero (Acasă)
   -------------------------------------------------------------------------- */

.hero {
  background: linear-gradient(180deg, #F6F7F1 0%, #EEF2E9 100%);
}

.hero-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 76px var(--pad-x) 96px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 58px;
  line-height: 1.07;
  margin: 0;
  text-wrap: balance;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  max-width: 54ch;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hero-chips { margin-top: 10px; }

.hero-media {
  position: relative;
  min-width: 0;
}

.hero-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 24px;
}

.hero-schedule {
  position: absolute;
  left: -28px;
  bottom: -30px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
  padding: 20px 24px;
  min-width: 270px;
}

.hero-schedule-title {
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 12px;
}

.schedule-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14.5px;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.schedule-row span:first-child { color: var(--text-secondary); }
.schedule-row span:last-child { font-weight: 600; }

.hero-schedule-note {
  border-top: 1px dashed var(--line);
  margin-top: 14px;
  padding-top: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.hero-schedule-note a {
  font-weight: 700;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Bandă de contact (Acasă)
   -------------------------------------------------------------------------- */

.contact-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.contact-strip-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 34px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strip-item + .strip-item {
  border-left: 1px solid var(--line-soft);
  padding-left: 28px;
}

.strip-label {
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  /* token din paletă mai închis decât --text-muted: sub 4.5:1 ar pica AA la text mic */
  color: var(--text-secondary);
  font-weight: 700;
}

.strip-value {
  font-size: 16.5px;
  font-weight: 600;
}

a.strip-value {
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Secțiuni generice
   -------------------------------------------------------------------------- */

.section { background: var(--bg-page); }
.section--band { background: var(--bg-band); }
.section--white { background: var(--bg-card); }
.section--top-line { border-top: 1px solid var(--line-soft); }

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 84px var(--pad-x);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.section-head-titles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.1;
  margin: 0;
}

.section-link {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Carduri servicii (Acasă)
   -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  color: var(--green);
  line-height: 1;
}

.service-card-title {
  font-size: 18.5px;
  font-weight: 700;
}

.service-card-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Carduri articole (Acasă + Articole)
   -------------------------------------------------------------------------- */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-page);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.article-card-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  margin: 0;
}

.article-card-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
  margin: 0;
}

.card-link {
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
}

/* Filtrarea pe categorii în bibliotecă */
.library-filter {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px var(--pad-x) 0;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.chip--filter {
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.chip--filter:hover {
  background: var(--bg-green-soft);
}

.chip--filter[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #FFFFFF;
}

.library-group[hidden],
.library-grid .article-card[hidden] { display: none; }

/* Opțiunea „Altele" din formularul de anamneză */
.choice--other span { font-style: italic; }

.other-text {
  margin-top: 6px;
}

.other-text[hidden] { display: none; }

/* Biblioteca (pagina Articole) */
.library-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px var(--pad-x);
  display: grid;
  /* min(320px, 100%) previne depășirea orizontală pe ecrane sub ~344px */
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}

.library-grid .article-card {
  background: var(--bg-card);
  padding: 26px 28px;
  gap: 11px;
}

.library-grid .article-card-title { font-size: 25px; }

/* Biblioteca are două grupe: articolele de citit pe site și fișierele de descărcat */
.library-group {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px var(--pad-x);
}

.library-group + .library-group { padding-top: 12px; }

.library-grid--flush {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Video (Acasă)
   -------------------------------------------------------------------------- */

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, #EDF1E7 0px, #EDF1E7 12px, #E4EAE0 12px, #E4EAE0 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-thumb iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.play-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--green);
  margin-left: 4px;
}

.video-title {
  font-size: 16.5px;
  font-weight: 700;
}

.video-note {
  font-family: monospace;
  font-size: 12px;
  /* text mic: --text-muted nu trece AA, folosim tokenul secundar */
  color: var(--text-secondary);
}

/* Slider video (activ doar când sunt peste 3 videoclipuri) */
.videos-slider {
  position: relative;
}

.videos-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--chip-border) transparent;
}

.videos-track > .video-card {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  background: var(--bg-card);
  color: var(--green);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
  z-index: 2;
  transition: background 0.15s ease;
}

.slider-btn:hover { background: var(--bg-green-soft); }

.slider-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

.slider-btn--prev { left: -14px; }
.slider-btn--next { right: -14px; }

.slider-btn::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.slider-btn--prev::after { transform: rotate(-135deg); margin-left: 4px; }
.slider-btn--next::after { transform: rotate(45deg); margin-right: 4px; }

@media (max-width: 1024px) {
  .videos-track > .video-card { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 640px) {
  .videos-track > .video-card { flex-basis: 100%; }
  .slider-btn--prev { left: -8px; }
  .slider-btn--next { right: -8px; }
}

/* --------------------------------------------------------------------------
   Bandă header de pagină (Despre, Servicii, Articole, Contact)
   -------------------------------------------------------------------------- */

.page-hero {
  background: var(--bg-band);
  border-bottom: 1px solid var(--line-card);
}

.page-hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.08;
  margin: 0;
}

.page-hero-lead {
  font-size: 17.5px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 64ch;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Despre
   -------------------------------------------------------------------------- */

.about-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 72px var(--pad-x);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portrait {
  width: 240px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-panel);
}

.side-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-card-title {
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list li {
  border-bottom: 1px dashed var(--line-soft);
  padding-bottom: 8px;
}

.side-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-main {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.about-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Blocurile „Activitate științifică" și „Parcurs profesional" au în design gap 16px */
.about-block--wide { gap: 16px; }

.about-block h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 32px;
  margin: 0;
}

.about-block h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  margin: 0;
}

.about-block p {
  font-size: 16.5px;
  line-height: 1.75;
  margin: 0;
  color: var(--text-body);
  text-wrap: pretty;
}

.sci-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sci-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 14.5px;
  line-height: 1.55;
}

.sci-card strong { font-weight: 700; }
.sci-card span { color: var(--text-secondary); }

.timeline-placeholder {
  border: 1.5px dashed var(--chip-border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: monospace;
  font-size: 13px;
  color: var(--text-muted);
}

/* Sub-titlurile blocurilor din CV (Studii, Cursuri, Experiență, Limbi) */
.timeline-sub {
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  font-family: var(--font-sans);
  margin: 14px 0 0;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.timeline li {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 15.5px;
  line-height: 1.6;
}

.timeline li:last-child { border-bottom: none; }

.timeline-year {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--green);
  flex: none;
  width: 88px;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Servicii (pagina)
   -------------------------------------------------------------------------- */

.services-stack {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 72px var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.service-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  align-items: start;
}

.service-block-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 52px;
  color: var(--green);
  line-height: 1;
}

.service-block-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-block h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  margin: 0;
}

.service-block p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  color: var(--text-body);
  max-width: 72ch;
}

.research-banner {
  background: var(--bg-dark);
  border-radius: var(--radius-panel);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.research-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.research-banner-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  color: #FFFFFF;
}

.research-banner-text {
  font-size: 15px;
  color: var(--text-on-dark-soft);
  max-width: 64ch;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Articol (Geranium Robertianum)
   -------------------------------------------------------------------------- */

.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px var(--pad-x) 96px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.back-link {
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  align-self: flex-start;
}

.article-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.06;
  margin: 0;
}

.article-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14.5px;
  flex-wrap: wrap;
}

.article-meta-author {
  font-weight: 600;
  color: var(--text-body);
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--chip-border);
  flex: none;
}

.divider {
  height: 1px;
  background: var(--line);
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.article-body p {
  font-size: 17.5px;
  line-height: 1.8;
  margin: 0;
  color: var(--text-body);
  text-wrap: pretty;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  margin: 18px 0 0;
  color: var(--text-main);
}

.article-body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  margin: 10px 0 0;
  color: var(--text-main);
}

.article-body ul,
.article-body ol {
  margin: 0;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--text-body);
}

.article-lead {
  font-size: 17.5px;
  line-height: 1.8;
  margin: 0;
  color: var(--text-body);
  text-wrap: pretty;
}

/* Numele vorbitorilor în secțiunea de discuții a articolului */
.article-body .speaker {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.4px;
  color: var(--green-hover);
  margin-top: 10px;
}

.lang-note {
  background: var(--bg-green-soft);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--green-hover);
}

/* Vizualizatorul online al prezentărilor (Office Online) */
.viewer-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--bg-card);
}

.viewer-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.viewer-frame--43 { aspect-ratio: 4 / 3; }
.viewer-frame--169 { aspect-ratio: 16 / 9; }

.viewer-note {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
}

.viewer-download { margin: 0; }

/* Pagina prezentării: antetul poate crește pentru titluri lungi */
.article-wrap--viewer {
  max-width: 944px;
  padding-bottom: 40px;
}

/* „Scena": banda închisă pe toată lățimea ferestrei, sub antet */
.viewer-stage { background: var(--bg-dark); }

.viewer-stage :focus-visible { outline-color: var(--text-on-dark); }

.viewer-stage-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px var(--pad-x) 30px;
  display: flex;
  flex-direction: column;
}

.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.viewer-toolbar-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-heading);
}

.viewer-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Butoane „fantomă" pe fundal închis */
.viewer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-on-dark);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.viewer-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text-on-dark);
}

/* dublura „Ecran complet" de sub cadru — apare doar pe mobil */
.viewer-btn--mobile-fs { display: none; }

/* Cadrul: MARE, dar întreg pe ecran — crește cât permite înălțimea ferestrei,
   nu scade sub lățimea coloanei de articol de dinainte (~760px), se oprește
   la containerul de 1240px. Baza folosește vh; dvh vine din @supports —
   declarațiile-pereche nu merg aici, pentru că var() face și varianta dvh
   să treacă de parser și să anuleze fallback-ul la computed-value time. */
.viewer-stage .viewer-frame {
  width: min(100%, max(760px, calc((100vh - 300px) * var(--viewer-ar, 1.3333))));
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #101010;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
}

@supports (height: 100dvh) {
  .viewer-stage .viewer-frame {
    width: min(100%, max(760px, calc((100dvh - 300px) * var(--viewer-ar, 1.3333))));
  }
}

/* Ecran complet: cadrul se întinde, centrat pe fundal negru */
.viewer-stage-wrap:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.viewer-stage-wrap:fullscreen .viewer-frame {
  width: min(100%, calc(100vh * var(--viewer-ar, 1.3333)));
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@supports (height: 100dvh) {
  .viewer-stage-wrap:fullscreen .viewer-frame {
    width: min(100%, calc(100dvh * var(--viewer-ar, 1.3333)));
  }
}

.viewer-stage-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.viewer-stage-meta .viewer-note { color: var(--text-on-dark-muted); }

.viewer-keys-hint {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-on-dark-muted);
}

/* Cardul de descărcare, în zona luminoasă de sub scenă */
.viewer-download-zone { padding: 44px var(--pad-x) 84px; }

.viewer-download-card {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-hover);
}

.viewer-file-badge {
  flex: none;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--bg-green-soft);
  color: var(--green-hover);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.viewer-file-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  margin-right: auto;
}

.viewer-file-name {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.viewer-file-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 1080px) {
  .viewer-stage .viewer-frame { width: 100%; }
}

@media (max-width: 720px) {
  /* Banda și cadrul devin edge-to-edge; acțiunea principală „Ecran complet"
     e dublura din DOM aflată chiar sub cadru (nu o reordonare din CSS) —
     ordinea vizuală, de focus și de citire coincid. */
  .viewer-stage-inner { padding: 22px 0 26px; }

  .viewer-toolbar {
    justify-content: center;
    margin: 0 var(--pad-x) 14px;
  }

  .viewer-toolbar-label { text-align: center; }

  /* butoanele din toolbar dispar; rămâne dublura de sub cadru */
  .viewer-toolbar-actions { display: none; }

  .viewer-btn--mobile-fs {
    display: flex;
    min-height: 48px;
    margin: 14px var(--pad-x) 0;
  }

  .viewer-stage-meta {
    justify-content: center;
    text-align: center;
    margin: 12px var(--pad-x) 0;
  }

  .viewer-stage .viewer-frame {
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .viewer-download-zone { padding: 36px var(--pad-x) 72px; }

  .viewer-download-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .viewer-download-card .viewer-download { width: 100%; }

  .viewer-download-card .btn {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
  }
}

.lang-note a { font-weight: 700; }

/* Tabele de date în articole (ex. lista proverilor din provinguri) */
.article-body .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 15.5px;
  line-height: 1.5;
  /* pe ecrane înguste tabelul poate depăși coloana de text: îl lăsăm să scrolleze */
  display: block;
  overflow-x: auto;
}

.article-body .data-table thead th {
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-green-soft);
  padding: 10px 14px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}

.article-body .data-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-body);
  white-space: nowrap;
}

.article-body .data-table tbody tr:nth-child(even) {
  background: var(--bg-band);
}

/* Pe telefon, tabelele înguste (ex. lista proverilor) încap dacă lăsăm
   capetele de coloană să treacă pe rânduri și strângem paddingul. Dacă un
   tabel e totuși mai lat, overflow-x de mai sus îl lasă să scrolleze. */
@media (max-width: 640px) {
  .article-body .data-table { font-size: 14px; }
  .article-body .data-table thead th {
    padding: 8px 10px;
    white-space: normal;
  }
  .article-body .data-table td {
    padding: 7px 10px;
    white-space: normal;
  }
}

/* Cuprinsul articolelor lungi (provinguri). Stă într-un <nav>. */
.article-toc {
  background: var(--bg-green-soft);
  border-radius: var(--radius-panel);
  padding: 22px 26px;
}

.article-toc-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.article-toc ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
}

/* Figuri: buletine de analize, ilustrații, fotografii */
.article-figure {
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
}

.article-figure figcaption {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
}

/* Perechi „înainte / după” */
.figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 10px 0;
}

.figure-pair .article-figure { margin: 0; }

/* Notă redacțională (ex. despre datele personale din scanuri) */
.article-note {
  background: var(--bg-band);
  border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .figure-pair { grid-template-columns: 1fr; gap: 18px; }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 72px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Panoul „Date de contact" are în design gap 18px */
.panel--contact { gap: 18px; }

.panel-title {
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}

.hours-rows {
  display: flex;
  flex-direction: column;
  font-size: 15.5px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.hours-row:last-child { border-bottom: none; }
.hours-row span:first-child { color: var(--text-secondary); }
.hours-row span:last-child { font-weight: 600; }
.hours-row .closed { color: var(--text-secondary); }

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15.5px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-row > span:first-child { color: var(--text-secondary); }

.contact-row a,
.contact-row .contact-value {
  font-weight: 600;
  text-decoration: none;
  text-align: right;
}

.contact-row a { overflow-wrap: anywhere; }

.map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  height: 380px;
  position: relative;
  background: repeating-linear-gradient(45deg, #EDF1E7 0px, #EDF1E7 12px, #E4EAE0 12px, #E4EAE0 24px);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-link {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--shadow-float);
}

.map-link:hover {
  background: var(--green-hover);
  color: #FFFFFF;
}

.cta-card {
  background: var(--bg-dark);
  border-radius: var(--radius-panel);
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-card-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  color: #FFFFFF;
}

.cta-card-text {
  font-size: 15px;
  color: var(--text-on-dark-soft);
  line-height: 1.6;
}

.cta-card-text a {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px var(--pad-x) 28px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-mark {
  width: 40px;
  height: 40px;
  flex: none;
  border: 1.5px solid var(--text-on-dark-heading);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--topbar-text);
}

.footer-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  color: #FFFFFF;
  line-height: 1.2;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-on-dark-muted);
  max-width: 38ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-heading {
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  /* #7E9A82 are doar 4.22:1 pe fundalul închis — tokenul muted trece AA la text mic */
  color: var(--text-on-dark-muted);
  font-weight: 700;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.footer-list a {
  color: var(--text-on-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-list a:hover { color: #FFFFFF; }

.footer-list .muted { color: var(--text-on-dark-muted); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  /* Navigația devine meniu cu buton hamburger */
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-float);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--pad-x) 20px;
  }

  .nav-open .site-nav { display: flex; }

  .site-nav .nav-link {
    padding: 13px 4px;
    border-bottom: 1px dashed var(--line-soft);
    font-size: 16px;
  }

  .nav-link[aria-current] > span::after { bottom: -4px; }

  .lang-switch {
    margin: 16px 0 0;
    align-self: flex-start;
  }

  .lang-switch a,
  .lang-switch .lang-current {
    /* țintă tactilă ≥44px în meniul mobil */
    padding: 12px 16px;
    font-size: 13px;
  }

  /* Hero pe o coloană — imaginea sub text */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .hero h1 { font-size: 46px; }

  .hero-img { height: 420px; }

  .hero-schedule {
    position: static;
    margin-top: 18px;
  }

  /* Grile la 1–2 coloane */
  .featured-grid,
  .videos-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root { --pad-x: 24px; }

  /* Topbar-ul se ascunde pe mobil */
  .topbar { display: none; }

  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 10.5px; }

  .contact-strip-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .strip-item + .strip-item {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
    padding-top: 18px;
  }

  .featured-grid,
  .videos-grid,
  .sci-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .section-inner { padding-top: 60px; padding-bottom: 60px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 38px; }
  .hero-img { height: 320px; }

  .page-hero h1 { font-size: 34px; }
  .section-title { font-size: 30px; }
  .article-header h1 { font-size: 38px; }

  .service-block {
    grid-template-columns: 1fr;
    padding: 28px 26px;
    gap: 14px;
  }

  .service-block-num { font-size: 40px; }

  .panel { padding: 24px 22px; }

  .hero-schedule { min-width: 0; width: 100%; }

  .timeline li { flex-direction: column; gap: 2px; }
}

/* --------------------------------------------------------------------------
   Formular anamneză
   -------------------------------------------------------------------------- */

.anamneza-form {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.anamneza-form .panel-title {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.5;
}

.anamneza-form .required-hint {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.anamneza-form input[type="text"],
.anamneza-form input[type="tel"],
.anamneza-form input[type="email"],
.anamneza-form input[type="date"],
.anamneza-form textarea,
.anamneza-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-main);
  font: inherit;
  font-size: 15.5px;
  line-height: 1.5;
}

.anamneza-form textarea { resize: vertical; }

.anamneza-form input:focus,
.anamneza-form textarea:focus,
.anamneza-form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(78, 114, 87, 0.16);
}

/* Câmpurile unei secțiuni: două coloane pe ecrane late, una pe înguste;
   textarea și grupurile de opțiuni ocupă toată lățimea. */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.form-field--wide { grid-column: 1 / -1; }

.form-field > label,
.form-field legend {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-body);
}

.required-star { color: #8C3B2E; }

/* Grupurile radio / checkbox + grupul de dată (zi / lună / an) */
fieldset.choice-group,
fieldset.date-field {
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset.choice-group legend,
fieldset.date-field legend {
  padding: 0;
  margin-bottom: 8px;
}

/* Data nașterii: trei căsuțe simple de numere — fără calendarul nativ și
   fără auto-avansul între segmente (deruta o parte dintre utilizatori). */
.date-parts {
  display: flex;
  gap: 10px;
}

.date-part {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 1 84px;
}

.date-part--year { flex: 0 1 118px; }

.date-part-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.anamneza-form .date-parts input { text-align: center; }

.choice-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 2px 20px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  font-size: 15.5px;
  color: var(--text-body);
  cursor: pointer;
}

.choice input[type="radio"],
.choice input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--green);
  cursor: pointer;
}

/* Erori — roșu discret, în limbajul site-ului */
.form-error {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #8C3B2E;
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select { border-color: #8C3B2E; }

.form-alert {
  background: #F8EEE9;
  border: 1px solid #E0C5B8;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #8C3B2E;
}

/* Honeypot — scos din pagină, nu ascuns cu display:none */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Consimțământ + trimitere */
.form-consent .choice { font-size: 14.5px; line-height: 1.6; }
.form-consent.has-error { border-color: #8C3B2E; }

.form-submit {
  margin: 6px 0 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.anamneza-form .btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.anamneza-form .btn.btn-outline { border: 1.5px solid var(--green, #4E7257); }

/* Wizard-ul anamnezei (pași cu Înapoi / Continuă, construit de site.js) */

/* Atributul hidden trebuie să învingă orice display: flex/grid al panourilor,
   altfel pașii ascunși rămân vizibili. */
.anamneza-form [hidden] { display: none !important; }

/* Indicatorul de pas: etichetă + procent, bară de progres, secțiunea curentă */
.wizard-steps { margin: 0 0 10px; }

.wizard-steps-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  flex-wrap: wrap;
}

.wizard-steps-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-hover);
}

.wizard-steps-pct {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.wizard-steps-count {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.wizard-bar {
  margin-top: 7px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}

.wizard-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--green), var(--green-hover));
  transition: width 0.35s ease;
}

.wizard-steps-section {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text-main);
}

.wizard-draft-note {
  margin: 4px 0 2px;
  font-size: 13px;
  color: var(--text-secondary);
}

.wizard-reset-row { margin: 0 0 16px; }

.wizard-reset {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wizard-reset:hover { color: var(--green); }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 0;
}

/* Fereastra de previzualizare a fișei PDF (deschisă de site.js peste pagină) */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(31, 43, 33, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pdf-modal-box {
  display: flex;
  flex-direction: column;
  width: min(880px, 100%);
  height: min(92vh, 1100px);
  background: var(--bg-card, #fff);
  border-radius: var(--radius-panel, 14px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.pdf-modal-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line, #DFE5DC);
}

.pdf-modal-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}

.pdf-modal-open {
  font-size: 13.5px;
  white-space: nowrap;
}

.pdf-modal-close {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--green, #4E7257);
  color: #fff;
  white-space: nowrap;
}

.pdf-modal-close:hover { background: var(--green-hover, #3E5C46); }

.pdf-modal-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #525659;
}

@media (max-width: 640px) {
  .pdf-modal { padding: 10px; }
  .pdf-modal-bar { flex-wrap: wrap; gap: 8px; }
}

/* Cardul „Preferați să completați pe hârtie?" — fișa goală descărcabilă (PDF) */
.anamneza-paper {
  max-width: 820px;
  margin: 0 auto 26px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 22px 28px;
}

.anamneza-note .anamneza-paper,
.anamneza-confirm-wrap .anamneza-paper { margin: 22px auto 0; }

.anamneza-paper-text h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.anamneza-paper-text p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.anamneza-paper-note {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.anamneza-paper > .btn {
  flex-shrink: 0;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 1023px) {
  .anamneza-paper {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Confirmare după trimitere + nota EN/FR */
.anamneza-confirm-wrap { max-width: 820px; }

.anamneza-confirm h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
}

.anamneza-confirm p {
  margin: 0;
  font-size: 16px;
  color: var(--text-body);
}

.anamneza-note { max-width: 820px; }

@media (max-width: 640px) {
  .anamneza-form .panel { padding: 24px 22px; }
}

/* --------------------------------------------------------------------------
   Modul one-page (pagina Acasă cu tot conținutul)
   Activ doar când <html> poartă atributul data-onepage — emis de
   app/templates/partials/head.php exclusiv pe Acasă în modul one-page.
   În modul clasic nimic de aici nu se aplică.
   -------------------------------------------------------------------------- */

/* Scroll lin către ancore — doar pentru cei fără preferință de mișcare redusă */
@media (prefers-reduced-motion: no-preference) {
  html[data-onepage] { scroll-behavior: smooth; }
}

/* Țintele ancorelor se opresc sub headerul sticky (~76px) + 16px aer */
html[data-onepage] section[id] { scroll-margin-top: 92px; }

/* Focus programatic pe secțiuni (tabindex="-1"): vizibil doar la tastatură */
html[data-onepage] section[id]:focus { outline: none; }
html[data-onepage] section[id]:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: -3px;
}

/* „Anamneză" în meniu: buton mic plin (pill), țintă tactilă ≥44px */
.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  background: var(--green);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
}
.site-nav .nav-cta:hover {
  background: var(--green-hover);
  color: #FFFFFF;
}
/* în butonul plin, sublinierea de „link activ" nu are sens */
.site-nav .nav-cta[aria-current] > span::after { display: none; }

/* Titlul secțiunilor care pe paginile separate aveau bandă proprie de titlu */
.onepage-section-head {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 72px var(--pad-x) 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* #despre: portret + bio + competențe + activitate științifică, comprimat */
.onepage-about {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}

/* #program-contact: grila de pe Contact, cu titlul secțiunii deasupra */
.contact-grid--onepage { padding-top: 44px; }

/* #video: placeholder cu buton de play — fără imagini externe, fără iframe
   la încărcare; iframe-ul se injectează la click (js/site.js) */
.video-load {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--green-hover) 100%);
}
.video-play {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.video-play::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--bg-dark);
  margin-left: 5px;
}
.video-load:hover .video-play,
.video-load:focus-visible .video-play { transform: scale(1.08); }
.video-load:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: -6px;
}
/* Fără JavaScript, butonul de play e inert — linkul din <noscript> preia rolul. */
[data-onepage] .video-thumb { position: relative; }

.video-fallback {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--green-hover);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (prefers-reduced-motion: reduce) {
  .video-play { transition: none; }
}

/* Banda CTA anamneză („Vă pregătiți de o consultație homeopată?") */
.onepage-cta {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.onepage-cta-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
}
.onepage-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 60ch;
}
.onepage-cta-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  margin: 0;
  color: #FFFFFF;
}
.onepage-cta-text {
  margin: 0;
  color: var(--text-on-dark);
}
.onepage-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
/* butonul secundar (PDF) pe fundal închis: contur alb, nu verde */
.onepage-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: #FFFFFF;
}
.onepage-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

/* Footerul scurt de pe Acasă one-page: © + câteva linkuri, pe un rând */
.site-footer--compact .footer-inner {
  padding: 24px var(--pad-x);
  gap: 0;
}
.site-footer--compact .footer-bottom {
  border-top: 0;
  padding-top: 0;
  align-items: center;
}
.footer-compact-links {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
}
.footer-compact-links a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 0;
}
.footer-compact-links a:hover { color: #FFFFFF; }

/* Mobil: totul într-o coloană; meniul hamburger funcționează cu ancore */
@media (max-width: 1024px) {
  .onepage-about {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* butonul „Anamneză" în meniul mobil rămâne pill, nu rând de listă */
  .site-nav .nav-cta {
    align-self: flex-start;
    border-bottom: none;
    margin: 14px 0 4px;
    padding: 0 24px;
  }
}

@media (max-width: 720px) {
  .onepage-section-head { padding-top: 56px; }
  .onepage-cta-title { font-size: 27px; }
  .onepage-cta-inner { padding-top: 44px; padding-bottom: 44px; }
}

/* ==========================================================================
   v3.2 — Parcursul profesional în one-page · Cititorul PDF „ca o carte" ·
   Programarea online · conținutul bogat al articolelor (imagini/video/tabele/
   casetă). Doar tokens existenți — ambele teme (clasică + Luminiș) le preiau.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Meniu: butonul contur „Programare" (pereche cu „Anamneză" plin)
   -------------------------------------------------------------------------- */

.site-nav .nav-cta--outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.site-nav .nav-cta--outline:hover {
  background: var(--bg-green-soft);
  color: var(--green-hover);
}

/* Acțiunea secundară de pe cardurile PDF („Descarcă ↓" sub „Citește pe site") */
.card-link--secondary {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   One-page: „Parcurs profesional" complet, pliat implicit
   -------------------------------------------------------------------------- */

.onepage-cv-body {
  position: relative;
  max-height: 280px;   /* ~primele 4 repere */
  overflow: hidden;
}
.onepage-cv-body.is-open { max-height: none; }

.onepage-cv-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 92%);
  pointer-events: none;
}
.onepage-cv-body.is-open .onepage-cv-fade { display: none; }

/* Desfășurat: reperele pe două coloane (o coloană pe mobil) */
.onepage-cv-body.is-open .onepage-cv-cols {
  column-count: 2;
  column-gap: 56px;
}
.onepage-cv-body.is-open .onepage-cv-cols .timeline,
.onepage-cv-body.is-open .onepage-cv-cols .timeline-sub {
  break-inside: avoid;
}
@media (max-width: 860px) {
  .onepage-cv-body.is-open .onepage-cv-cols { column-count: 1; }
}

.onepage-cv-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.onepage-cv-link { font-weight: 600; font-size: 14.5px; }

/* --------------------------------------------------------------------------
   Cititorul PDF — scena închisă + cartea cu foi 3D
   -------------------------------------------------------------------------- */

.reader-stage .viewer-toolbar { align-items: center; }
.reader-indicator {
  color: var(--text-on-dark-soft);
  font-size: 13.5px;
  white-space: nowrap;
}

/* Scena cititorului nu are plafonul de 1240px al vizualizatorului: cartea
   se scalează să umple caseta disponibilă (~94vw pe ecrane late), iar
   înălțimea benzii crește dinamic odată cu cartea. */
.reader-stage .viewer-stage-inner { max-width: none; }

.reader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 26px 0 18px;
}

.reader-loading {
  color: var(--text-on-dark-muted);
  font-size: 14.5px;
  margin: 60px 0;
}
.reader-loading--error { color: #E8C9B8; }
.reader-noscript {
  color: var(--text-on-dark-soft);
  margin: 40px 12px;
  text-align: center;
}
.reader-noscript a { color: var(--text-on-dark); }

.reader-book {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  perspective: 2600px;
}

.reader-spread {
  position: relative;
  display: flex;
  transform-style: preserve-3d;
  transition: opacity 0.12s ease;
}
.reader-book.is-fading .reader-spread { opacity: 0; }

.reader-page {
  position: relative;
  width: var(--page-w, 320px);
  height: var(--page-h, 452px);
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reader-page--left  { border-radius: 6px 0 0 6px; }
.reader-page--right { border-radius: 0 6px 6px 0; }
.reader-page--single { border-radius: 6px; }
/* jumătatea goală (coperta / ultima pagină singură) nu ocupă spațiu —
   pagina rămasă are ACEEAȘI mărime ca în spread și stă centrată în scenă */
.reader-page--empty { width: 0; background: transparent; box-shadow: none; }

/* umbra discretă de lângă cotor, pe fiecare pagină */
.reader-page--left::after,
.reader-page--right::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26px;
  pointer-events: none;
}
.reader-page--left::after {
  right: 0;
  background: linear-gradient(90deg, rgba(31, 43, 33, 0) 0%, rgba(31, 43, 33, 0.14) 100%);
}
.reader-page--right::after {
  left: 0;
  background: linear-gradient(270deg, rgba(31, 43, 33, 0) 0%, rgba(31, 43, 33, 0.14) 100%);
}

/* dimensiunea CSS a canvasului e setată per pagină de js/reader.js (fiecare
   pagină la raportul ei — un PDF poate amesteca portret și peisaj) */
.reader-canvas { display: block; max-width: 100%; max-height: 100%; }

/* foaia care se întoarce: față + verso, rotită pe cotor */
.reader-sheet {
  position: absolute;
  top: 0;
  width: var(--page-w, 320px);
  height: var(--page-h, 452px);
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.42, 0.05, 0.28, 1);
  z-index: 5;
}
.reader-sheet--right {
  left: 50%;
  transform-origin: left center;   /* cotorul */
  transform: rotateY(0deg);
}
.reader-sheet--right.is-turned { transform: rotateY(-180deg); }
.reader-sheet--left {
  right: 50%;
  transform-origin: right center;
  transform: rotateY(0deg);
}
.reader-sheet--left.is-turned { transform: rotateY(180deg); }

.reader-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #FFFFFF;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}
.reader-face--back { transform: rotateY(180deg); }

/* săgețile mari, rotunde, pe lateralele cărții (țintă ≥48px) */
.reader-arrow {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--text-on-dark-muted);
  background: transparent;
  color: var(--text-on-dark);
  font-size: 17px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.reader-arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-on-dark);
}
.reader-arrow:disabled { opacity: 0.3; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .reader-sheet { transition: none; }
}

/* ≤720px: o pagină pe ecran, edge-to-edge, buton lat de fullscreen dedesubt
   (butonul .viewer-btn--mobile-fs vine din stilurile vizualizatorului) */
@media (max-width: 720px) {
  .reader { gap: 8px; padding: 16px 0 10px; }
  .reader-arrow { display: none; }
  .reader-indicator { display: block; text-align: center; }
}

/* fullscreen: toolbar sus, hint jos, cartea primește TOT restul ecranului
   (țintă ≥90% din înălțime pentru un A4 portret); săgețile ajung la
   marginile ecranului pentru că .reader se întinde pe toată lățimea */
.reader-stage:fullscreen {
  background: var(--bg-dark);
  overflow: hidden;
}
.reader-stage:fullscreen .viewer-stage-inner {
  max-width: none;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 24px 4px;
}
.reader-stage:fullscreen .viewer-toolbar { margin-bottom: 6px; }
.reader-stage:fullscreen .reader {
  flex: 1;
  min-height: 0;
  padding: 2px 0;
}
.reader-stage:fullscreen .viewer-stage-meta { margin-top: 0; }
.reader-stage:fullscreen .viewer-keys-hint { margin: 2px 0; font-size: 12.5px; }

/* --------------------------------------------------------------------------
   Programarea online — pagina publică
   -------------------------------------------------------------------------- */

.booking-wrap { max-width: 1020px; margin: 0 auto; }

.booking-steps {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  gap: 12px 26px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: var(--text-body);
  font-weight: 600;
}
.booking-steps li { display: inline-flex; align-items: center; gap: 8px; }
.booking-steps li:not(:last-child)::after {
  content: "→";
  color: var(--text-muted);
  margin-left: 14px;
}
.booking-step-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.booking-form .form-alert { margin-bottom: 18px; }

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; }
}
.booking-col { display: flex; flex-direction: column; gap: 22px; }

.booking-panel { padding: 26px 28px; }
.booking-panel .panel-title {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  line-height: 1.5;
}
.booking-hint { color: var(--text-secondary); font-size: 14.5px; margin: 0; }
.booking-hint-inline { font-weight: 400; font-size: 13px; color: var(--text-secondary); }
.booking-day-label { margin: 0 0 10px; font-size: 15px; }

/* pasul 1: cardurile cu tipul consultației (label cu radio ascuns înăuntru) */
.booking-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.booking-type {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text-body);
  font-size: 15.5px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.booking-type input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.booking-type:hover { border-color: var(--green); }
/* Starea „selectat": clasa .is-selected o pune serverul (funcționează oriunde),
   iar :has() o ține la zi când JS-ul e oprit și browserul o suportă. */
.booking-type.is-selected,
.booking-type:has(input:checked) {
  border-color: var(--green);
  background: var(--bg-green-soft);
  color: var(--green-hover);
  font-weight: 600;
}
.booking-type:has(input:focus-visible) {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* varianta cu ore în afara programului: accent auriu discret */
.booking-type--extra { border-color: #E7CE93; }
.booking-type--extra:hover { border-color: var(--green); }
/* …dar cardul ales rămâne verde: altfel accentul auriu ar acoperi starea „selectat" */
.booking-type--extra.is-selected,
.booking-type--extra:has(input:checked) { border-color: var(--green); }
.booking-type-meta {
  font-size: 13px;
  color: var(--text-secondary);
}
.booking-type-badge {
  display: inline-block;
  background: #FBF3E0;
  color: #9A7B2E;
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}
/* butonul „Vezi orele" e util fără JS — rămâne vizibil, JS-ul îl ascunde singur */
.booking-type-actions { margin-top: 10px; }

/* rândul „Tipul consultației" din formular: arată alegerea din pasul 1 */
.booking-service-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-body);
}
.booking-service-pick {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-green-soft);
}
.booking-service-change { font-size: 13.5px; }

/* blocarea pașilor 2–3 cât timp nu e ales tipul consultației */
.booking-lock-wrap { position: relative; }
.booking-locked {
  opacity: 0.4;
  filter: grayscale(1);
  pointer-events: none;
  user-select: none;
}
.booking-lock-pill {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  text-align: center;
  background: #1D3524;
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: var(--shadow-hover);
}

/* formularul: aceleași căsuțe ca la anamneză */
.booking-form input[type="text"],
.booking-form input[type="tel"],
.booking-form input[type="email"],
.booking-form textarea,
.booking-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-main);
  font: inherit;
  font-size: 15.5px;
  line-height: 1.5;
}
.booking-form textarea { resize: vertical; }
.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(78, 114, 87, 0.16);
}
.booking-form .form-field { margin-bottom: 14px; }
.booking-form .required-hint { margin: 0 0 14px; font-size: 14px; color: var(--text-secondary); }

/* calendarul lunar */
.booking-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.booking-cal-title { font-weight: 700; font-size: 16px; }
.booking-cal-nav {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  color: var(--green);
  background: var(--bg-card);
}
.booking-cal-nav:hover { background: var(--bg-green-soft); }
.booking-cal-nav--off { opacity: 0.3; color: var(--text-muted); }

.booking-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.booking-cal-wd {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 4px 0;
}
.booking-cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-main);
  background: var(--bg-band);
}
a.booking-cal-day { background: var(--bg-green-soft); color: var(--green-hover); }
a.booking-cal-day:hover { background: var(--green); color: #FFFFFF; }
.booking-cal-day--sel,
a.booking-cal-day.booking-cal-day--sel { background: var(--green); color: #FFFFFF; }
.booking-cal-day--off { background: transparent; color: var(--text-muted); font-weight: 400; }
.booking-cal-day--void { background: transparent; }

/* sloturile de oră */
.booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.booking-slot { position: relative; display: block; cursor: pointer; }
.booking-slot input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.booking-slot span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1.5px solid var(--chip-border);
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-body);
  background: var(--bg-card);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.booking-slot:hover span { border-color: var(--green); background: var(--bg-green-soft); }
.booking-slot input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: #FFFFFF;
}
.booking-slot input:focus-visible + span {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.booking-slot--taken { cursor: default; }
.booking-slot--taken span {
  background: var(--bg-band);
  border-color: var(--line-soft);
  color: var(--text-muted);
  text-decoration: line-through;
}

/* orele din afara programului obișnuit: grup auriu, despărțit de sloturile verzi */
.booking-after {
  background: #FBF3E0;
  border: 1px solid #E7CE93;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 16px;
}
.booking-after-title {
  margin: 0 0 4px;
  color: #9A7B2E;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.booking-after-note {
  margin: 0 0 10px;
  color: #7C6221;
  font-size: 13.5px;
}
.booking-slot--after span {
  border-color: #E7CE93;
  background: var(--bg-card);
  color: #7C6221;
}
.booking-slot--after:hover span {
  border-color: #E7CE93;
  background: #FBF3E0;
}
.booking-slot--after input:checked + span {
  background: #9A7B2E;
  border-color: #9A7B2E;
  color: #FFFFFF;
}
.booking-slot--after input:focus-visible + span {
  outline-color: #9A7B2E;
}
/* slotul ocupat rămâne stins, chiar dacă e din grupul auriu */
.booking-slot--after.booking-slot--taken span {
  background: var(--bg-band);
  border-color: var(--line-soft);
  color: var(--text-muted);
}

/* recapitularea vie + avertismentul galben-cald */
.booking-recap {
  margin: 4px 0 14px;
  font-size: 15px;
  color: var(--text-body);
}
.booking-warn {
  background: #FCF6E3;
  border: 1px solid #E8D9A8;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 14px;
  font-size: 14.5px;
  color: #6A5A1E;
}
.booking-warn strong { display: block; margin-bottom: 4px; }
.booking-warn p { margin: 0; }

.form-consent-inline .choice { font-size: 14.5px; line-height: 1.6; }

/* paginile de stare (trimis / confirmat / anulat / oprit) */
.booking-confirm, .booking-off { max-width: 640px; margin: 0 auto; padding: 34px 36px; }
.booking-confirm h2, .booking-off h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
}
.booking-status-chip {
  display: inline-block;
  background: #FCF6E3;
  border: 1px solid #E8D9A8;
  color: #6A5A1E;
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 13.5px;
  font-weight: 700;
}
.booking-recap-line { font-size: 16px; }
.booking-confirm-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .booking-types { grid-template-columns: 1fr; }
  .booking-lock-pill {
    top: 16px;
    max-width: calc(100% - 24px);
    padding: 9px 16px;
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   Conținutul bogat al articolelor (editorul nou): imagini, casetă,
   tabele cu scroll, video click-to-load
   -------------------------------------------------------------------------- */

.article-body figure.img { margin: 30px 0; }
.article-body figure.img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.article-body figure.img-normal { max-width: 76%; margin-left: auto; margin-right: auto; }
.article-body figure.img-lata { max-width: none; }
.article-body figure.img figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}
@media (max-width: 720px) {
  .article-body figure.img-normal { max-width: 100%; }
}

.article-body .caseta {
  background: var(--bg-green-soft);
  border-radius: 14px;
  padding: 18px 24px;
  margin: 26px 0;
}
.article-body .caseta > :first-child { margin-top: 0; }
.article-body .caseta > :last-child { margin-bottom: 0; }

/* tabelele late primesc scroll orizontal pe mobil */
.article-body .table-scroll { overflow-x: auto; margin: 26px 0; }
.article-body .table-scroll table { margin: 0; min-width: 480px; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 9px 13px;
  text-align: left;
  vertical-align: top;
}
.article-body thead th,
.article-body table.first-col-strong td:first-child {
  background: var(--bg-band);
  font-weight: 700;
}

/* video în articol: card click-to-load (iframe-ul apare abia la click) */
.article-body .video {
  position: relative;
  margin: 30px 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-dark);
  aspect-ratio: 16 / 9;
}
.article-body .video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.article-body .video .video-load {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-body .video .video-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.article-body .video .video-play {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(31, 43, 33, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.article-body .video .video-play::after {
  content: "";
  margin-left: 4px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #FFFFFF;
}
.article-body .video .video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(31, 43, 33, 0.85) 0%, rgba(31, 43, 33, 0) 100%);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  pointer-events: none;
}

/* ==========================================================================
   v3.4 — Acasă: programare online + anamneză online
   Cele două acțiuni noi ale site-ului, scoase în față: acțiunile din hero,
   cardul de program cu ambele căi, banda „Cum funcționează" și punctele
   benzii de anamneză.
   Culorile temei vin DOAR din tokens (var(--…)): tema Luminiș redeclară :root,
   iar un verde scris de mână ar rămâne blocat pe paleta temei clasice.
   Singurul hex literal e #FFFFFF — textul alb de pe suprafețele colorate; e
   alb în ambele teme (la fel ca .onepage-cta-title, mai sus).
   ========================================================================== */

/* Rândul mic de sub butoanele din hero („sau 021 … · în timpul programului") */
.hero-phone-note {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.hero-phone-note a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

.hero-phone-note a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Butonul cu telefonul: numărul nu se rupe pe două rânduri */
.btn-phone {
  white-space: nowrap;
}

/* Piciorul cardului de program: butonul online + rândul cu telefonul.
   Regula de bază (bordura punctată + spațierea) rămâne mai sus; aici doar
   așezăm cele două căi una sub alta. */
.hero-schedule-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Selector cu DOUĂ clase, intenționat: regula veche `.hero-schedule-note a`
   (specificitate 0,1,1) ar bate un simplu `.hero-schedule-cta` (0,1,0) și
   butonul ar rămâne cu font-weight 700 și cu culoarea de link. */
.hero-schedule-note .hero-schedule-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  background: var(--green);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.15s ease;
}

.hero-schedule-note .hero-schedule-cta:hover {
  background: var(--green-hover);
  color: #FFFFFF;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Banda „Cum funcționează" — pașii, în carduri numerotate
   -------------------------------------------------------------------------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.how-card {
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.how-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Pasul anamnezei: singurul care nu li se aplică tuturor pacienților (doar
   consultațiilor homeopate) — de aceea are un accent verde discret. */
.how-card--accent {
  background: var(--bg-green-soft);
  border-color: var(--green);
}

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  flex: 0 0 auto;
}

.how-card-title {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.3;
}

.how-card-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.how-card-text a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

.how-card-text a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Banda de anamneză: butoanele stau sub text, punctele de încredere în dreapta
   -------------------------------------------------------------------------- */

.onepage-cta-copy .onepage-cta-actions {
  margin-top: 10px;
}

.onepage-cta-points {
  list-style: none;
  margin: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-card);
  color: var(--text-on-dark);
  font-size: 14.5px;
}

.onepage-cta-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.onepage-cta-points li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: #FFFFFF;
  font-size: 12px;
  line-height: 1;
  flex: 0 0 auto;
}

/* Pe fundalul închis al benzii, verdele de focus nu are contrast (aceeași
   regulă ca la topbar/footer/cta-card, care sunt tot suprafețe închise). */
.onepage-cta :focus-visible {
  outline-color: var(--text-on-dark);
}

@media (max-width: 720px) {
  /* Punctele de încredere trec sub text, pe toată lățimea */
  .onepage-cta-points {
    width: 100%;
  }
}
