/*
 * OsteoVision · tema „Yinova” (octombrie 2026)
 * Fundal crem, benzi nisip și piersică, panouri aurii, titluri serif subțiri
 * (Bellefair), text și butoane într-un sans geometric (Jost), butoane negre
 * dreptunghiulare cu majuscule mici și spațiate. CSP-ul site-ului nu permite stiluri
 * inline: tot aspectul stă aici.
 */

:root {
  --bg: #fdf7f2;
  --sand: #f8f0e9;
  --peach: #f8e9dd;
  --blush: #f2e1d3;
  --gold: #d7b782;
  --gold-deep: #a9864e;
  --navy: #34394d;
  --ink: #111111;
  --text: #1f1c19;
  --muted: #5a544e;
  --line: #e9ded4;
  --line-strong: #d3c4b6;
  --field-line: #8f8173;
  --serif: "Bellefair", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --wrap: 1360px;
  --narrow: 46rem;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --hh: 140px;
  --hh-s: 110px;
  --gold-text: #7d5f32;
  --tile-gap: clamp(1rem, 1.8vw, 1.6rem);
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Ancorele din pagină se opresc sub antet; focusul din antet nu mai derulează pagina */
:target, main [id], main :is(a, button, summary, input, select, textarea, [tabindex]), .site-footer :is(a, button) { scroll-margin-top: calc(var(--hh) + 1rem); }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-nav-open { overflow: hidden; }
::selection { background: var(--gold); color: var(--ink); }
img, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1.05em; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.005em;
  line-height: 1.16;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
/* Bellefair are o singură grosime: fără îngroșări false */
h1, h2, h3, h4, .sub, .brand, .nav-label, .acc-item summary, .foot-h, .tile-title { font-synthesis: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1 { font-size: clamp(2.35rem, 4.4vw, 3.9rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 2.9vw, 2.55rem); }
h3 { font-size: clamp(1.3rem, 1.6vw, 1.5rem); }

:focus-visible { outline: none; box-shadow: var(--focus); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 80;
  background: var(--ink); color: #fff; padding: 0.7rem 1rem;
}
.skip:focus { top: 0.7rem; }

.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.wrap.narrow, .narrow { width: min(var(--narrow), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.align-center { text-align: center; }
.align-center .actions { justify-content: center; }
.align-left { text-align: left; }
.wrap.prose { width: min(var(--narrow), calc(100% - 2 * var(--gutter))); }

.kicker {
  font: 600 0.72rem/1.5 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.15rem;
}
.meta { font-weight: 500; color: var(--ink); }
.lede { font-size: 1.2rem; }

/* Rândurile care încep cu „•”: liniuță agățată, textul rămâne cel scris */
.bullets > span { display: block; }
.bullets .bl { position: relative; padding-left: 1.15em; margin: 0.22em 0; }
.bullets .bl-m {
  position: absolute;
  left: 0;
  top: 0.18em;
  font-size: 1.45em;
  font-weight: 600;
  line-height: calc(1.75em / 1.45);
  white-space: pre;
  width: calc(1.15em / 1.45);
  overflow: hidden;
  pointer-events: none;
  color: var(--gold-text);
}
.bullets .bl-lead { font-weight: 500; color: var(--ink); margin-bottom: 0.4em; }
.bullets .bl-text { margin: 0.4em 0; }
.align-center .bullets { text-align: left; display: inline-block; }
/* Rândurile scurte, fără punct, din textele Getei: subtitluri */
.sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.75vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 1.7em 0 0.45em;
}
.sub:first-child, .kicker + .sub, h1 + .sub, h2 + .sub, h3 + .sub { margin-top: 0; }

/* ---------- Butoane ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 2rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 0;
  font: 600 0.74rem/1.25 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #34302c; box-shadow: 0 14px 24px -18px rgba(0, 0, 0, 0.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: var(--blush); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.85); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-compact { min-height: 44px; padding: 0.82rem 1.55rem 0.76rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.9rem 0 0; }

.text-link {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.55em;
  min-height: 44px;
  padding: 0.6rem 0 0.4rem;
  font: 600 0.72rem/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.25s ease;
}
.text-link::after { content: "→"; content: "→" / ""; letter-spacing: 0; transition: transform 0.3s var(--ease); }
.text-link:hover { color: var(--gold-text); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Antet ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  transition: box-shadow 0.35s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 14px 30px -26px rgba(0, 0, 0, 0.45); }
.hdr-top {
  display: grid;
  grid-template-columns: 1fr minmax(0, auto) 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem var(--gutter) 0.5rem;
  transition: padding 0.35s var(--ease);
}
.site-header.is-scrolled .hdr-top { padding-top: 0.75rem; padding-bottom: 0.25rem; }
.util { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; row-gap: 0.5rem; justify-self: start; min-width: 0; }
.util a, .nav-extra a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 600 0.7rem/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.util a:hover { color: var(--gold-text); }
/* Pagina sau secțiunea în care ești: subliniată, ca în meniul de dedesubt */
.util a[aria-current], .nav-extra a[aria-current] { text-decoration: underline; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; text-underline-offset: 0.55em; }
.util .util-social { display: inline-flex; gap: 0.6rem; }
/* Pe calculator, linkurile mutate sus nu se mai repetă în meniul de dedesubt */
@media not all and (max-width: 1099px) {
  .nav > .nav-top { display: none; }
  /* Când rândul de sus se rupe în două (multe linkuri sus), ui.js pune în --util-extra cât a crescut antetul */
  :root { --hh: calc(140px + var(--util-extra, 0px)); --hh-s: calc(110px + var(--util-extra, 0px)); }
}
.brand {
  justify-self: center;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.35rem 0 0.25rem 0.16em;
  transition: font-size 0.35s var(--ease);
}
.site-header.is-scrolled .brand { font-size: clamp(1.45rem, 2.1vw, 1.95rem); }
.hdr-actions { justify-self: end; display: flex; align-items: center; gap: 0.75rem; }

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 clamp(1.4rem, 2.2vw, 2.4rem);
  padding: 0 var(--gutter) 0.35rem;
}
.nav-group { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 0;
  font: 400 1.16rem/1 var(--serif);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  font-synthesis: none;
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.nav-link:hover::before, .nav-link.is-section::before { transform: scaleX(1); }
.nav-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 0;
  border: 0;
  background: none;
  font: 400 1.16rem/1 var(--serif);
  letter-spacing: 0.01em;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.nav-label::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}
.nav-label::after {
  content: "";
  width: 0.36rem;
  height: 0.36rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.18rem) rotate(45deg);
  opacity: 0.55;
  transition: transform 0.3s var(--ease);
}
.nav-group.is-open .nav-label::before,
.nav-group.is-section .nav-label::before { transform: scaleX(1); }
@media (hover: hover) and (min-width: 1100px) {
  .nav-group:hover:not(.is-dismissed) .nav-label::before { transform: scaleX(1); }
  .nav-group:hover:not(.is-dismissed) .nav-label::after { transform: translateY(0.05rem) rotate(225deg); }
  .nav-group:hover .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
  .nav-group.is-dismissed .subnav { opacity: 0; visibility: hidden; transform: translate(-50%, 10px); }
}
.subnav {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 16rem;
  padding: 0.7rem 0;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 26px 44px -30px rgba(0, 0, 0, 0.45);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  z-index: 30;
}
.nav-group.is-open .subnav {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.nav-group.is-open .nav-label::after { transform: translateY(0.05rem) rotate(225deg); }
.subnav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 1.4rem;
  font-size: 0.97rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, padding-left 0.25s var(--ease);
}
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--sand); padding-left: 1.65rem; }
.subnav a[aria-current="page"] { font-weight: 500; }
.nav-extra { display: none; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 50;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before {
  display: block;
  width: 1.45rem;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  position: relative;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span { top: -4px; }
.nav-toggle span::before { content: ""; position: absolute; left: 0; top: 8px; }
.nav-toggle[aria-expanded="true"] span { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(-90deg); }
.nav-overlay { position: fixed; inset: 0; background: rgba(17, 17, 17, 0.4); z-index: 44; }
.nav-overlay[hidden] { display: none; }

/* ---------- Fundaluri ---------- */

.tone-crem { background: var(--bg); }
.tone-nisip { background: var(--sand); }
.tone-piersica { background: var(--peach); }
.tone-auriu { background: var(--gold); }
.tone-auriu { --muted: #3f3a35; --gold-text: #4e3a1b; --gold-deep: #5e4520; }
.tone-piersica { --gold-text: #745730; }
.tone-bleumarin {
  --gold-text: #e9cf9f;
  --ink: #ffffff;
  --text: #efe8e1;
  --muted: #d9d1c8;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.32);
  --gold-deep: #e2c592;
  --sand: rgba(255, 255, 255, 0.07);
  background: var(--navy);
  color: var(--text);
}
.tone-bleumarin .btn-primary { background: var(--blush); color: #111; }
.tone-bleumarin .btn-primary:hover { background: #fff; color: #111; }
.tone-bleumarin .btn-ghost:hover { background: #fff; color: #111; }
.tone-bleumarin ::selection { color: #111; }

.blk { position: relative; }

/* ---------- Începutul paginii: panou colorat cu poza alături ---------- */

.hero-panel { padding: clamp(0.25rem, 1vw, 0.75rem) var(--gutter) 0; }
.panel-in {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(80vh, 720px);
  overflow: clip;
}
.hero-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 6.5vw, 6rem) clamp(1.5rem, 5.5vw, 5.5rem);
}
.hero-copy .copy-in { max-width: 33rem; width: 100%; }
.hero-copy h1 { font-size: clamp(2.2rem, 3.7vw, 3.4rem); }
.hero-copy p:not(.kicker):not(.sub) { font-size: 1.06rem; }
.hero-media { margin: 0; position: relative; overflow: clip; min-height: 26rem; }
.hero-media .media-in, .hero-media picture { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-panel.is-long .hero-copy { align-items: flex-start; }
.hero-panel.is-long .hero-media .media-in {
  inset: auto;
  position: sticky;
  top: var(--hh-s);
  height: min(calc(100vh - var(--hh-s) - 1rem), 64rem);
}
.blk.hero-panel:last-child { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.media-left .hero-media { order: -1; }
.hero-panel .tone-auriu .kicker { color: var(--ink); }

/* Poza pe toată lățimea, cu textul deasupra */
.hero-full {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(86vh, 820px);
  padding: clamp(5rem, 10vw, 8rem) 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-full .hero-media { position: absolute; inset: 0; min-height: 0; z-index: -2; }
.hero-full .hero-media img { object-position: center 35%; }
.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(25, 22, 19, 0.62) 0%, rgba(25, 22, 19, 0.5) 55%, rgba(25, 22, 19, 0.55) calc(100% - 4rem), var(--bg) 100%);
}
.hero-full .hero-inner { position: relative; }
.hero-full :is(h1, h2, h3, .kicker, p, .bl-lead, .bl-m) { color: #fff; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35); }
.hero-full h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.hero-full p:not(.kicker):not(.sub) { font-size: 1.12rem; max-width: 40rem; margin-inline: auto; }
.hero-full .align-left p { margin-inline: 0; }

/* Titlul unei pagini, fără poză */
.intro-blk { padding: clamp(3.75rem, 8vw, 6.75rem) 0 clamp(2.5rem, 5vw, 4rem); }
.intro-blk h1 { margin-bottom: 0.5em; }
.intro-blk p:not(.kicker):not(.sub) { font-size: 1.08rem; }
.intro-blk .narrow::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin-top: 2.4rem;
  background: var(--gold-deep);
}
.intro-blk.align-center .narrow::after { margin-inline: auto; }

/* ---------- Casete cu poză ---------- */

.cards-blk { padding: clamp(3.75rem, 7vw, 6.25rem) 0; }
.intro-blk + .cards-blk, .page-blog + .blog-blk, .page-evenimente + .blog-blk { padding-top: clamp(0.5rem, 2vw, 1.5rem); }
.blk-head { max-width: 46rem; margin: 0 auto clamp(2.25rem, 4vw, 3.25rem); }
.blk-head.align-left { margin-left: 0; }
.blk-head p:last-child { margin-bottom: 0; }
.blk-head .actions { margin-top: 1.2rem; }
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--tile-gap);
}
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 56rem; margin-inline: auto; }
.tiles-1 { grid-template-columns: minmax(0, 28rem); justify-content: center; }
.tile { display: flex; flex-direction: column; text-align: center; }
.tile-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
  color: #fff;
  text-decoration: none;
}
.tile-media picture, .tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile-media img { object-fit: cover; transition: transform 1.4s var(--ease); }
.tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.3) 0%, rgba(20, 16, 12, 0.55) 50%, rgba(20, 16, 12, 0.5) 100%);
}
.tile-media.is-link:hover img { transform: scale(1.06); }
.tile-title {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1.25rem;
  font-size: clamp(1.2rem, 1.55vw, 1.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}
.tile-title span { position: relative; padding-bottom: 0.45rem; }
.tile-title span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2rem;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%) scaleX(0.6);
  transition: transform 0.45s var(--ease);
}
.tile-media.is-link:hover .tile-title span::after { transform: translateX(-50%) scaleX(1.6); }
.tile-link { color: inherit; text-decoration: none; }
.tile-link::before { content: ""; position: absolute; inset: 0; }
.tile-link:focus-visible { box-shadow: none; }
.tile-link:focus-visible::before { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--ink); }
.tile-body { display: flex; flex-direction: column; align-items: center; flex: 1; padding: 1.35rem 0.4rem 0; }
.tile-body p { color: var(--muted); font-size: 0.98rem; line-height: 1.7; }
.tile-body .sub { font-size: 1.15rem; margin-top: 1em; }
.tile-body .meta { color: var(--ink); font-size: 0.92rem; margin-bottom: 0.25rem; text-wrap: balance; }
.meta .nw { white-space: nowrap; }
.tiles.tiles-many { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--tile-gap); }
.tiles-many > .tile { flex: 0 1 calc((100% - 3 * var(--tile-gap)) / 4); }
.tile-body .text-link { margin-top: auto; }
.tile.no-photo { background: var(--sand); padding: 2.25rem 1.5rem 1.75rem; }
.tile.no-photo .tile-body { padding-top: 0; }

/* ---------- Text și poză, pe o bandă ---------- */

.split-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(30rem, 46vw, 44rem);
}
.split-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.5rem, 6vw, 6.5rem);
}
.split-copy .copy-in { max-width: 34rem; width: 100%; }
.split-media { margin: 0; position: relative; overflow: clip; min-height: 22rem; }
.split-media .media-in { position: absolute; inset: 0; }
.split-media picture, .split-media img { width: 100%; height: 100%; }
.split-media img { object-fit: cover; }
.media-left .split-media { order: -1; }
/* Poza se topește în fundalul benzii, ca în tema de referință */
.media-right .split-media .media-in { -webkit-mask-image: linear-gradient(270deg, #000 82%, transparent); mask-image: linear-gradient(270deg, #000 82%, transparent); }
.media-left .split-media .media-in { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
/* La textele lungi, poza rămâne pe loc cât timp citești */
.split-blk.is-long .split-copy { align-items: flex-start; }
.split-blk.is-long .split-media .media-in {
  inset: auto;
  position: sticky;
  top: var(--hh-s);
  height: min(calc(100vh - var(--hh-s) - 1rem), 64rem);
}
.split-blk.is-long .split-media img, .hero-panel.is-long .hero-media img { object-position: center 18%; }
.no-media .split-in { grid-template-columns: minmax(0, 1fr); min-height: 0; }

/* ---------- Pași și citat ---------- */

.steps-blk { padding: clamp(3.75rem, 7vw, 6.25rem) 0; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps-1 { grid-template-columns: minmax(0, 1fr); }
.steps li { padding: 2rem clamp(1rem, 2vw, 1.75rem) 0.5rem; border-left: 1px solid var(--line); }
.steps li:first-child, .steps-4 li:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
.steps h3 { font-size: 1.4rem; }
.steps p { color: var(--muted); font-size: 0.98rem; }
.quote {
  max-width: 50rem;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  line-height: 1.5;
  color: var(--ink);
}
.quote::before {
  content: "//";
  content: "//" / "";
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.9rem;
  font-style: italic;
  letter-spacing: -0.04em;
}
.quote p:last-child { margin-bottom: 0; }

/* ---------- Text ---------- */

.prose-blk { padding: clamp(3.25rem, 6vw, 5rem) 0; }
.prose-blk.is-follow { padding-top: 0; }
.prose-blk.is-follow .narrow { border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 5vw, 3.75rem); }
.prose-blk h2 { margin-bottom: 0.55em; }

.photo-blk { padding: clamp(2rem, 4vw, 3rem) 0; }
.photo-wide { margin: 0 auto; max-width: 64rem; }
.photo-wide img { width: 100%; }

/* ---------- Tarife: carduri ---------- */

.price-blk { padding: clamp(3.25rem, 6vw, 5rem) 0; }
.price-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  align-items: start;
  gap: clamp(1rem, 2vw, 1.75rem);
}
.price-card { background: var(--sand); padding: clamp(1.9rem, 3.2vw, 3rem); border-top: 2px solid var(--gold); }
.price-card :is(h1, h2) { font-size: clamp(1.75rem, 2.1vw, 1.9rem); }
.price-card .actions { margin-top: 1.4rem; }

/* ---------- Acordeoane: formare și întrebări ---------- */

.acc-blk { padding: 0.5rem 0 clamp(3.5rem, 6vw, 5rem); }
.acc { border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line-strong); }
.acc-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4rem;
  padding: 1.15rem 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.2s ease;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--gold-text); }
.acc-i {
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}
.acc-item[open] .acc-i { transform: rotate(45deg); }
.acc-k { display: block; margin-bottom: 0.3rem; font: 600 0.68rem/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.acc-body { padding: 0 0 1.6rem; max-width: 40rem; color: var(--muted); }
.acc-body .actions { margin-top: 1.2rem; }

/* ---------- Pagini simple, formular ---------- */

.page { display: block; }
.page-hero { padding: clamp(3.75rem, 8vw, 6.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero.wrap, .page-body.wrap { width: min(var(--narrow), calc(100% - 2 * var(--gutter))); }
.page-hero h1 { margin-bottom: 0.5em; }
.page-hero.prose, .page-hero .prose, .page-atelier + .page-body { text-align: center; }
:is(.page-hero.prose, .page-hero .prose, .page-atelier + .page-body) .actions { justify-content: center; }
.page-programare + .page-body > p:first-child { text-align: center; }
.page-body { padding-bottom: clamp(3.5rem, 6vw, 5rem); }
.page-body .meta { font-size: 1.05rem; }

.form { display: grid; gap: 1.15rem; margin-top: 2rem; padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--sand); }
.field { display: grid; gap: 0.45rem; }
.field > span:first-child, .check span {
  font: 600 0.72rem/1.4 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.check span { font: 400 0.95rem/1.6 var(--sans); letter-spacing: 0; text-transform: none; }
input, select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: #fffdfb;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:hover, select:hover, textarea:hover { border-color: #6f6255; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
textarea { min-height: 8rem; resize: vertical; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; }
.check input { width: 1.15rem; height: 1.15rem; min-height: 0; margin-top: 0.3rem; accent-color: var(--ink); flex: none; }
.form .btn { justify-self: start; }
.hint { color: var(--muted); font-size: 0.92rem; }
.error { color: #8a2a1f; font-size: 0.92rem; font-weight: 500; }
.alert { border: 1px solid #8a2a1f; border-left-width: 4px; background: #fffdfb; padding: 0.9rem 1.1rem; margin: 1.5rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Subsol ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 4rem); }
.foot-col p { margin-bottom: 0.3rem; text-wrap: balance; }
.foot-motto { margin-top: 0.75rem; font-family: var(--serif); font-size: 1.15rem; font-style: normal; color: var(--ink); font-synthesis: none; }
.foot-col p a:not(.text-link):not(.btn) { display: inline-block; padding: 0.55rem 0; margin: -0.55rem 0; }
.foot-col .foot-h {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
.site-footer a { color: var(--ink); text-underline-offset: 3px; }
.foot-cta { margin-top: 0.9rem; }
.site-footer .foot-cta .btn { color: #fff; }
.foot-social, .util-social { display: flex; gap: 0.6rem; justify-content: center; margin-top: 0.6rem; }
.util-social { justify-content: flex-start; margin-top: 0; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink); border-radius: 50%; transition: background-color 0.2s ease, color 0.2s ease; }
.social:hover { background: var(--sand); color: var(--gold-text); }
.social svg { width: 1.25rem; height: 1.25rem; }
.footer-links { display: flex; flex-direction: column; align-items: center; margin-top: 0.2rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 600 0.7rem/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.footer-links a:hover { color: var(--gold-text); }
.foot-bottom { margin-top: clamp(1.75rem, 4vw, 2.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); }
.disclaimer { max-width: 52rem; margin: 0 auto; font-size: 0.85rem; color: var(--muted); }
.copyright { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- Încadrarea pozelor ---------- */

.focus-top :is(.hero-media, .split-media, .photo-wide) img, .tile-media.focus-top img { object-position: center 12%; }
.focus-center :is(.hero-media, .split-media, .photo-wide) img, .tile-media.focus-center img { object-position: center center; }
.focus-bottom :is(.hero-media, .split-media, .photo-wide) img, .tile-media.focus-bottom img { object-position: center 88%; }
/* Poza întreagă: se vede toată, pe fundalul benzii */
.fit-contain .split-media .media-in, .fit-contain .hero-media .media-in { -webkit-mask-image: none; mask-image: none; }
.fit-contain .split-media img, .fit-contain .hero-media img { object-fit: contain; height: 100%; }
.split-blk.fit-contain .split-media .media-in { padding: clamp(1rem, 3vw, 2.5rem); }
/* Poza întreagă de lângă un text lung (Despre mine): cât mai mare, tot în ecran */
.split-blk.fit-contain.is-long .split-media .media-in {
  top: max(var(--hh-s), calc(var(--hh) - 0.5rem));
  padding: 0.5rem 0 0;
  height: min(calc(100vh - var(--hh) - 1rem), 64rem);
  height: min(calc(100svh - var(--hh) - 1rem), 64rem);
}
.fit-contain .tile-media img { object-fit: contain; height: 100%; padding: 8%; }
.fit-contain .tile-media { background: #fff; }

/* Casetele cu titlul sub poză (produse) */
.tiles-below .tile-media::after { display: none; }
.tiles-below .tile-name { margin: 0.2rem 0 0.4rem; font-size: 1.3rem; }
.tiles-below .tile-name a { color: inherit; text-decoration: none; }
.tiles-below .tile-name a::before { content: ""; position: absolute; inset: 0; }
.tiles-below .tile { position: relative; }
.tiles-below .tile-media { aspect-ratio: 1; }

/* ---------- Blog și evenimente ---------- */

.blog-blk { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.cat-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.cat-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem 0.5rem;
  border: 1px solid var(--line-strong);
  font: 600 0.72rem/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cat-tabs a:hover { border-color: var(--ink); }
.cat-tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.post-grid {
  --pg-gap: clamp(1.25rem, 2.5vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, calc((100% - 2 * var(--pg-gap)) / 3));
  justify-content: center;
  column-gap: var(--pg-gap);
  row-gap: clamp(2.5rem, 5vw, 3.5rem);
}
/* Un articol sau eveniment fără poză: card cu fundal, ca cardurile de preț */
.post-card:not(:has(> .post-media)) { background: var(--sand); border-top: 2px solid var(--gold); padding: clamp(1.5rem, 2.5vw, 2.25rem); }
.post-card:not(:has(> .post-media)) .post-body { padding-top: 0; }
.tone-nisip .post-card:not(:has(> .post-media)) { background: var(--bg); }
.post-card { display: flex; flex-direction: column; position: relative; }
.post-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.post-media picture, .post-media img { width: 100%; height: 100%; }
.post-media img { object-fit: cover; object-position: center 22%; transition: transform 1.2s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; flex: 1; padding-top: 1.1rem; }
.post-body .kicker { margin-bottom: 0.5rem; color: var(--muted); }
.post-title { font-size: clamp(1.35rem, 1.8vw, 1.6rem); margin-bottom: 0.5rem; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a::after { content: ""; position: absolute; inset: 0; }
.post-title a:hover { color: var(--gold-text); }
.post-title a:focus-visible { box-shadow: none; }
.post-title a:focus-visible::after { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.post-body p:not(.kicker):not(.meta) { color: var(--muted); font-size: 0.98rem; }
.post-body .meta { color: var(--ink); font-size: 0.92rem; margin-bottom: 0.4rem; }
.post-body .text-link { margin-top: auto; align-self: flex-start; }
.empty-note { text-align: center; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: clamp(2rem, 4vw, 3rem); }
.pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink); font-weight: 500; }
.pager a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
details.past { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line-strong); }
details.past > summary { display: flex; align-items: center; justify-content: center; gap: 0.7rem; min-height: 3.5rem; cursor: pointer; list-style: none; font: 600 0.74rem/1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
details.past > summary::-webkit-details-marker { display: none; }
details.past > summary::after { content: ""; width: 0.42rem; height: 0.42rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-0.15rem) rotate(45deg); transition: transform 0.3s var(--ease); }
details.past[open] > summary::after { transform: translateY(0.1rem) rotate(225deg); }
details.past[open] > summary { margin-bottom: 1.5rem; }
.event-card.is-past .post-media img { filter: grayscale(0.4); }

.post-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.post-head .kicker a { color: inherit; text-decoration: none; }
.post-head .kicker a:hover { text-decoration: underline; }
.post-date { color: var(--muted); font-size: 0.95rem; }
.post-cover { margin: 0 auto clamp(1rem, 3vw, 2rem); max-width: 64rem; text-align: center; }
.post-cover img { width: auto; max-width: 100%; height: auto; max-height: 38rem; margin-inline: auto; object-fit: contain; }
.post .prose-blk, .event .prose-blk { padding-block: clamp(1.25rem, 3vw, 2.25rem); }
.post-foot, .event > .post-foot { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem); }
.post-foot .actions { justify-content: center; }

.event-top { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); justify-items: center; margin-bottom: clamp(1rem, 3vw, 2rem); }
.event-top.has-photo { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; justify-items: stretch; max-width: 64rem; }
.event-photo { margin: 0; }
.event-photo img { width: auto; max-width: 100%; height: auto; max-height: 32rem; margin-inline: auto; object-fit: contain; }
.facts { margin: 0; display: grid; gap: 0.8rem; min-width: min(100%, 18rem); }
.facts > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); align-items: baseline; gap: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 0.72rem/1.9 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.event-top .actions { margin-top: 0; }
.event-top.has-photo .actions, .event-top.has-photo .event-note { grid-column: 2; align-self: start; }
.event-top.has-photo:has(> .actions, > .event-note) .event-photo { grid-row: 1 / span 2; align-self: center; }
.event-top.has-photo:has(> .actions, > .event-note) .facts { align-self: end; }
#inscriere .form { background: var(--bg); }
.event-note { color: var(--muted); font-style: italic; }
.post-head .lede { margin-top: 0.4rem; color: var(--muted); font-size: 1.1rem; }
.kicker .nw { white-space: nowrap; }
/* Cardurile de preț de pe Tarife: același aer ca restul cardurilor */
.page-tarife .tile.no-photo { border-top: 2px solid var(--gold); }
.page-tarife .tile.no-photo .tile-head { text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.35rem; }
.tile .tile-head, .tile .tile-name { font-size: clamp(1.3rem, 1.6vw, 1.5rem); }
.tile-body .sub { font-size: 1.15rem; margin-top: 1em; }
/* Produse: categoriile fără produse nu lasă benzi goale */
.page-produse .cards-blk + .cards-blk { padding-top: 0; }
.cards-blk .wrap > .blk-head:last-child { margin-bottom: 0; }
.cards-blk .empty-note { margin-top: -0.5rem; }
/* Butonul Programare apare în meniul de telefon */
.nav-book { display: none; }
.ok-note { border-color: var(--gold-deep); }
.section-title:empty { display: none; }

/* Unele poze au o dungă închisă de câțiva pixeli jos: rămâne sub marginea cadrului */
.hero-media img, .split-media img, .tile-media img { height: calc(100% + 8px); }

/* ---------- Mișcare ---------- */

.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.tiles .reveal:nth-child(2), .steps .reveal:nth-child(2), .price-cards .reveal:nth-child(2) { transition-delay: 0.1s; }
.tiles .reveal:nth-child(3), .steps .reveal:nth-child(3), .price-cards .reveal:nth-child(3) { transition-delay: 0.2s; }
.tiles .reveal:nth-child(4), .steps .reveal:nth-child(4), .price-cards .reveal:nth-child(4) { transition-delay: 0.3s; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: slow-zoom 16s var(--ease) both; }
  .hero-full .hero-inner > * { animation: rise 1.1s var(--ease) both; }
  .hero-full .hero-inner > :nth-child(2) { animation-delay: 0.12s; }
  .hero-full .hero-inner > :nth-child(3) { animation-delay: 0.24s; }
  .hero-full .hero-inner > :nth-child(n + 4) { animation-delay: 0.36s; }
}
@keyframes slow-zoom { from { transform: scale(1.07); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1099px) {
  #nav, #nav * { transition: none !important; }
}

/* ---------- Ecrane mai mici ---------- */

@media (max-width: 1180px) {
  .tiles-many > .tile { flex-basis: calc((100% - var(--tile-gap)) / 2); }
  .hero-copy { padding-inline: clamp(1.25rem, 3.5vw, 3rem); }
  .tile-title { font-size: 1.6rem; }
  .tiles:not(.tiles-1) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; margin-inline: auto; }
  .steps:not(.steps-1) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 1099px) {
  :root { --hh: 64px; --hh-s: 62px; }
  .hdr-top, .site-header.is-scrolled .hdr-top { grid-template-columns: minmax(0, 1fr) auto; padding: 0.55rem var(--gutter); }
  .util { display: none; }
  .brand, .site-header.is-scrolled .brand { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 1.5rem; letter-spacing: 0.13em; padding-left: 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(25rem, 88vw);
    height: 100dvh;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 5.25rem 1.6rem 2.5rem;
    background: var(--bg);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    visibility: hidden;
    overflow-y: auto;
    z-index: 45;
    transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .nav.open { transform: none; visibility: visible; transition-delay: 0s; }
  .nav { padding-top: 0; scroll-padding-top: 5.25rem; }
  .nav::before { content: ""; position: sticky; top: 0; z-index: 1; flex: none; height: 5.25rem; margin: 0 -1.6rem; background: var(--bg); }
  .nav-label { width: 100%; justify-content: space-between; gap: 1rem; text-align: left; padding: 1rem 0; font-size: 1.5rem; border-bottom: 1px solid var(--line); }
  .nav-label::before { display: none; }
  .nav-group.is-section .nav-label { text-decoration: underline; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
  .subnav, .nav-group:hover .subnav, .nav-group:focus-within .subnav {
    position: static;
    display: none;
    min-width: 0;
    padding: 0.4rem 0 0.9rem;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: inherit;
    transform: none;
  }
  .nav-group.is-open .subnav { display: block; transform: none; visibility: inherit; }
  .nav-group:hover .nav-label::after { transform: translateY(-0.18rem) rotate(45deg); }
  .nav-group.is-open .nav-label::after { transform: translateY(0.05rem) rotate(225deg); }
  .subnav a { padding: 0.4rem 0.2rem; font-size: 1.05rem; white-space: normal; line-height: 1.35; }
  .subnav a:hover, .subnav a[aria-current="page"] { background: transparent; padding-left: 0.2rem; }
  .subnav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .nav-extra { display: flex; gap: 1.6rem; margin-top: 1.75rem; }
  .nav-link { width: 100%; padding: 1rem 0; font-size: 1.5rem; border-bottom: 1px solid var(--line); }
  .nav > .nav-link, .nav > .nav-group, .nav > .nav-extra, .nav > .nav-book { flex-shrink: 0; }
  .nav-book { display: inline-flex; align-self: flex-start; margin-top: 1.75rem; }
  .nav-link::before { display: none; }
  .nav-link.is-section { text-decoration: underline; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
}

@media (max-width: 1023px) {
  .panel-in, .split-in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-panel { padding: 0.25rem var(--gutter) 0; }
  .hero-panel .hero-media, .hero-panel.media-left .hero-media { order: 2; min-height: 0; aspect-ratio: 4 / 4.4; }
  .hero-panel.is-long .hero-media .media-in { position: absolute; inset: 0; height: auto; }
  .hero-copy { padding: 3.25rem 1.5rem 3rem; }
  .split-media, .media-left .split-media { order: 2; min-height: 0; aspect-ratio: 4 / 3; }
  .split-blk .split-media .media-in, .split-blk.is-long .split-media .media-in {
    position: absolute;
    inset: 0;
    height: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%);
    mask-image: linear-gradient(180deg, transparent 0, #000 18%);
  }
  .split-copy { padding: 3.25rem 1.5rem; }
  .hero-full { min-height: 78vh; }
  .split-blk.fit-contain .split-media { aspect-ratio: auto; }
  .split-blk.fit-contain .split-media .media-in, .split-blk.fit-contain.is-long .split-media .media-in { position: static; height: auto; padding: 0 var(--gutter) 2.5rem; -webkit-mask-image: none; mask-image: none; }
  .split-blk.fit-contain .split-media img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - var(--hh) - 2rem); max-height: calc(100svh - var(--hh) - 2rem); margin-inline: auto; }
  .split-blk.fit-contain.is-long .split-media .media-in { padding-inline: 0; }
  .split-blk.fit-contain.is-long .split-media img { max-height: calc(100vh - var(--hh) - 1rem); max-height: calc(100svh - var(--hh) - 1rem); }
  .event-top.has-photo:has(> .actions, > .event-note) .event-photo { grid-row: auto; }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .hero-panel .hero-media, .hero-panel.media-left .hero-media { aspect-ratio: 16 / 11; }
}

@media (max-width: 1023px) {
  .post-grid { grid-template-columns: repeat(auto-fit, calc((100% - var(--pg-gap)) / 2)); }
  .event-top.has-photo { grid-template-columns: minmax(0, 1fr); }
  .event-top.has-photo .actions, .event-top.has-photo .event-note { grid-column: auto; }
}

@media (max-width: 720px) {
  body { font-size: 1.02rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .site-footer { padding-top: 2rem; }
  .foot-col .foot-h { margin-bottom: 0.4rem; }
  .footer-links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 1.1rem; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); margin-top: -4px; padding: 4px var(--gutter); scrollbar-width: none; }
  .cat-tabs a { flex: none; white-space: nowrap; }
  .tiles:not(.tiles-1) { grid-template-columns: minmax(0, 1fr); max-width: 26rem; }
  .tile-media { aspect-ratio: 5 / 4; }
  .tiles-many > .tile { flex-basis: 100%; }
  .steps:not(.steps-1) { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li:nth-child(odd) { border-left: 0; padding: 1.5rem 0 0.25rem; }
  .steps li + li { border-top: 1px solid var(--line); }
  .actions { display: grid; grid-template-columns: minmax(0, max-content); justify-content: start; }
  .align-center .actions { justify-content: center; }
  .actions .btn { width: 100%; }
  .hdr-actions .btn-compact { padding: 0.75rem 1rem 0.7rem; letter-spacing: 0.12em; }
  .form .btn { justify-self: stretch; }
}

@media (max-width: 420px) {
  .hdr-top, .site-header.is-scrolled .hdr-top { gap: 0.5rem; }
  .brand, .site-header.is-scrolled .brand { font-size: 1.22rem; letter-spacing: 0.1em; }
  .hdr-actions { gap: 0.3rem; }
  .hdr-actions .btn-compact { font-size: 0.66rem; padding: 0.7rem 0.75rem 0.65rem; }
}
@media (max-width: 350px) {
  .brand, .site-header.is-scrolled .brand { font-size: 1.05rem; letter-spacing: 0.07em; }
  .hdr-actions .btn-compact { font-size: 0.6rem; letter-spacing: 0.06em; padding: 0.65rem 0.55rem 0.6rem; }
}

@media print {
  .site-header, .nav-overlay, .site-footer .footer-links, .hero-media, .split-media { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Modul cu contrast ridicat (Windows): la final, ca să aibă ultimul cuvânt */
@media (forced-colors: active) {
  :focus-visible { outline: 2px solid CanvasText; outline-offset: 2px; }
  .nav-toggle span, .nav-toggle span::before { forced-color-adjust: none; background: CanvasText; }
  .acc-i { forced-color-adjust: none; background: linear-gradient(CanvasText, CanvasText) center / 100% 1px no-repeat, linear-gradient(CanvasText, CanvasText) center / 1px 100% no-repeat; }
  .cat-tabs a[aria-current="page"], .pager a[aria-current="page"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .nav-link::before, .nav-label::before { forced-color-adjust: none; background: CanvasText; }
}
