/* ==========================================================================
   CONNECT CABIN — a place for real connection
   Design system: "editorial forest field-notes"
   Paper cream · forest-green ink · hairline rules · squared caps · vertical
   Palette locked to client brief: verde închis, bej, crem, negru, alb.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* colour — nothing outside the brief */
  --paper:      #F2EDE3;
  --paper-2:    #E9E1D2;
  --paper-3:    #DED3BF;
  --forest:     #1C3125;
  --forest-mid: #26402F;
  --forest-deep:#0F1B14;
  /* fixed copies used as backgrounds inside .band, where --forest is remapped */
  --band-bg:      #1C3125;
  --band-bg-deep: #0F1B14;
  --ink:        #14170F;
  --ink-soft:   #4A4F42;
  --white:      #FFFFFF;

  --line:       color-mix(in srgb, var(--ink) 16%, transparent);
  --line-soft:  color-mix(in srgb, var(--ink) 9%, transparent);
  --line-forest:color-mix(in srgb, var(--paper) 22%, transparent);

  /* type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:    "Archivo", "Helvetica Neue", Helvetica, sans-serif;

  --step--2: clamp(.66rem, .63rem + .12vw, .72rem);
  --step--1: clamp(.78rem, .74rem + .18vw, .875rem);
  --step-0:  clamp(.95rem, .91rem + .22vw, 1.06rem);
  --step-1:  clamp(1.13rem, 1.05rem + .38vw, 1.35rem);
  --step-2:  clamp(1.42rem, 1.26rem + .78vw, 1.95rem);
  --step-3:  clamp(1.85rem, 1.5rem + 1.72vw, 3rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.4vw, 4.6rem);
  --step-5:  clamp(2.3rem, 1.35rem + 4.7vw, 5.4rem);

  /* space */
  --gutter: clamp(1.15rem, .7rem + 2.2vw, 3.25rem);
  --sect:   clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --maxw:   1560px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: .002em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
/* width/height attributes are there to reserve space; CSS owns the final box */
img { height: auto; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--forest); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

/* paper grain — atmosphere, not decoration for its own sake */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 900;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* ---------- 3. PRIMITIVES ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 940px; }
.wrap--mid { max-width: 1220px; }

.section { padding-block: var(--sect); position: relative; }
/* anchor links must clear the fixed header */
section[id], div[id] { scroll-margin-top: clamp(4.5rem, 9vw, 6rem); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
/* fundal bej — treaptă de ton între două secțiuni deschise la culoare,
   ca să nu curgă una în alta (crem → bej → verde închis) */
.section--sand { background: var(--paper-2); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* letterspaced squared caps — the workhorse label */
.label {
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  line-height: 1;
}

/* section header: numbered like an architectural drawing set */
.shead {
  display: flex;
  align-items: baseline;
  gap: clamp(.9rem, 2vw, 2rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 1rem + 3vw, 4rem);
}
.shead__num { color: var(--ink-soft); flex: none; }
.shead__title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 28, "WONK" 1;
  font-weight: 400;
  font-size: var(--step-3);
  line-height: .98;
  letter-spacing: -.018em;
  color: var(--forest);
  margin-right: auto;
}
.shead__note {
  flex: none;
  color: var(--ink-soft);
  max-width: 30ch;
  text-align: right;
  font-size: var(--step--1);
  line-height: 1.5;
}
/* O listă cu linie proprie sus, pusă imediat sub titlul secțiunii, dubla linia
   acestuia. Păstrăm o singură linie și lăsăm titlul să fie chiar capul tabelului. */
.shead:has(+ .facts), .shead:has(+ .llist), .shead:has(+ .optlist),
.shead:has(+ .near), .shead:has(+ .amen), .shead:has(+ .checks) {
  margin-bottom: 0;
}
.shead + .facts, .shead + .llist, .shead + .optlist,
.shead + .near, .shead + .amen, .shead + .checks { border-top: 0; }

@media (max-width: 720px) {
  .shead { flex-wrap: wrap; gap: .55rem 1rem; }
  .shead__title { flex-basis: 100%; order: 2; }
  .shead__note { order: 3; text-align: left; max-width: none; flex-basis: 100%; }
  /* rail arrows belong after the heading, not between the number and the title */
  .shead .railnav { order: 4; margin-top: .4rem; }
}

.display {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--forest);
}

.lede {
  font-family: var(--display);
  font-variation-settings: "SOFT" 40, "WONK" 0;
  font-size: var(--step-2);
  line-height: 1.36;
  letter-spacing: -.012em;
  color: var(--forest);
}

.prose p + p { margin-top: 1.15em; }
.prose { max-width: 68ch; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- 4. WORDMARK + FINGERPRINT ---------- */
/* "font pătrățos cu amprentă în loc de O" — client brief */
.mark {
  display: inline-flex;
  align-items: center;
  gap: .06em;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .17em;
  line-height: 1;
  font-stretch: 112%;
  white-space: nowrap;
  color: var(--forest);
}
.mark__print {
  width: .86em; height: .86em;
  margin-inline: -.01em .02em;
  translate: 0 .055em;
  flex: none;
}
.mark__print path, .mark__print circle { stroke: currentColor; }
.mark--sm { font-size: .78rem; letter-spacing: .2em; }
.mark--hero {
  font-size: var(--step-5);
  letter-spacing: .055em;
  font-weight: 500;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 .3em;
  max-width: 100%;
}
.mark__w { display: inline-flex; align-items: center; gap: .06em; white-space: nowrap; }

/* ---------- 5. BUTTONS ---------- */
.btn {
  --bc: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  padding: 1.05em 2.3em;
  border: 1px solid var(--bc);
  color: var(--bc);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--bc);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s var(--slow);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--paper); }
.btn--light { --bc: var(--paper); }
.btn--light:hover, .btn--light:focus-visible { color: var(--forest); }
.btn--big { padding: 1.2em 3em; font-size: var(--step-0); letter-spacing: .22em; }
.btn--solid { background: var(--forest); color: var(--paper); }
.btn--solid::before { background: var(--paper-3); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--forest); }

/* text link with a rule that draws itself */
.tlink {
  display: inline-block;
  position: relative;
  font-weight: 500;
  padding-bottom: .12em;
}
.tlink::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform .5s var(--slow);
}
.tlink:hover::after, .tlink:focus-visible::after { transform: scaleX(0); transform-origin: left; }

/* ---------- 5b. COMUTATOR DE LIMBĂ ---------- */
.langsw {
  display: flex;
  align-items: center;
  gap: .5em;
  flex: none;
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
}
.langsw__sep { opacity: .38; }
.langsw button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .45em .1em;
  opacity: .5;
  transition: opacity .3s var(--ease);
  letter-spacing: inherit;
  font: inherit;
}
.langsw button:hover { opacity: .85; }
.langsw button[aria-pressed="true"] { opacity: 1; }
/* steagul limbii inactive stă în tonuri de gri, ca pagina să rămână necolorată */
.langsw__flag {
  height: 11px;
  width: auto;
  flex: none;
  display: block;
  outline: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  outline-offset: -.5px;
  filter: grayscale(1) contrast(.85);
  transition: filter .35s var(--ease);
}
.langsw button[aria-pressed="true"] .langsw__flag,
.langsw button:hover .langsw__flag { filter: none; }
.langsw button[aria-pressed="true"]::after {
  content: "";
  position: absolute; left: 0; right: .1em; bottom: .1em;
  height: 1px; background: currentColor;
}

/* ---------- 6. HEADER / NAV ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  /* above .nav (800) so the close button stays clickable while the menu is open */
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(.85rem, 1.5vw, 1.35rem) var(--gutter);
  transition: background .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--paper);
  mix-blend-mode: normal;
}
.hdr--solid {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
  color: var(--forest);
}
.hdr__mark .mark { color: currentColor; }
.hdr__right { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.8rem); }
.hdr__cta {
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: .72em 1.5em;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.hdr__cta:hover { background: currentColor; }
.hdr__cta:hover span { color: var(--paper); mix-blend-mode: normal; }
.hdr--solid .hdr__cta:hover span { color: var(--paper); }
@media (max-width: 640px) { .hdr__cta { display: none; } }

/* hamburger — "meniul în dreapta sus cu liniuțe" */
.burger {
  width: 46px; height: 30px;
  display: grid;
  align-content: center;
  gap: 7px;
  flex: none;
  position: relative;
  z-index: 810;
}
.burger span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .5s var(--slow), opacity .3s var(--ease), width .5s var(--slow);
  transform-origin: right center;
}
.burger span:nth-child(1) { width: 100%; }
.burger span:nth-child(2) { width: 68%; margin-left: auto; }
.burger:hover span:nth-child(2) { width: 100%; }
/* pivot from the centre when forming the X, or the bars splay into a chevron */
body.nav-open .burger span { transform-origin: center; width: 100%; }
body.nav-open .burger span:nth-child(1) { transform: translateY(4.25px) rotate(-45deg); }
body.nav-open .burger span:nth-child(2) { transform: translateY(-4.25px) rotate(45deg); }

/* while the menu is open the header goes transparent and inverts to paper */
body.nav-open .hdr {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  color: var(--paper);
}

/* full-screen menu */
.nav {
  position: fixed; inset: 0;
  z-index: 800;
  background: var(--forest-deep);
  color: var(--paper);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(5.5rem, 12vh, 9rem) var(--gutter) clamp(2rem, 5vh, 3.5rem);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .85s var(--slow);
  visibility: hidden;
  overflow-y: auto;
}
body.nav-open .nav { clip-path: inset(0 0 0 0); visibility: visible; }
.nav__list { display: grid; align-content: center; gap: clamp(.1rem, 1vh, .5rem); }
.nav__item { border-bottom: 1px solid var(--line-forest); }
.nav__item:first-child { border-top: 1px solid var(--line-forest); }
.nav__link {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.6rem);
  padding: clamp(.75rem, 1.8vh, 1.35rem) 0;
  font-family: var(--display);
  font-variation-settings: "SOFT" 30, "WONK" 1;
  font-size: clamp(1.75rem, 1rem + 4.2vw, 4rem);
  line-height: 1;
  letter-spacing: -.02em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .7s var(--slow), color .35s var(--ease);
}
body.nav-open .nav__link { opacity: 1; transform: none; }
.nav__link:hover, .nav__link:focus-visible { color: var(--paper-3); }
.nav__link span:first-child {
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: .22em;
  opacity: .5;
  flex: none;
}
.nav__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-forest);
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}

/* ---------- 7. HERO ---------- */
/* every photo in the set is portrait 3:4 — the hero is built from that grain */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; color: var(--paper); }
.hero__stage { position: absolute; inset: 0; overflow: hidden; background: var(--forest-deep); }
.hero__panels { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero__panels { grid-template-columns: repeat(3, 1fr); } }
.hero__panel { position: relative; overflow: hidden; }
.hero__panel:nth-child(n+2) { display: none; }
@media (min-width: 900px) {
  .hero__panel:nth-child(n+2) { display: block; }
  .hero__panel + .hero__panel::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
    background: color-mix(in srgb, var(--paper) 28%, transparent); z-index: 3;
  }
}
.hero__panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroDrift 26s var(--ease) infinite alternate;
}
.hero__panel:nth-child(2) img { animation-delay: -9s; }
.hero__panel:nth-child(3) img { animation-delay: -17s; }
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 1.2%, 0); }
  to   { transform: scale(1.15) translate3d(0, -1.6%, 0); }
}
@media (prefers-reduced-motion: reduce) { .hero__panel img { animation: none; transform: scale(1.02); } }

.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(15,27,20,.62) 0%, rgba(15,27,20,.18) 34%, rgba(15,27,20,.30) 62%, rgba(15,27,20,.80) 100%);
}

.hero__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: clamp(1.4rem, 3vh, 2.4rem);
  padding: clamp(6.5rem, 16vh, 9rem) var(--gutter) clamp(1.5rem, 4vh, 2.5rem);
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}
.hero .mark { color: var(--paper); }
.hero__wordmark {
  display: grid;
  gap: clamp(.7rem, 1.6vh, 1.2rem);
  justify-items: center;
}
.hero__tag {
  font-family: var(--display);
  font-variation-settings: "SOFT" 44, "WONK" 1;
  font-style: italic;
  font-size: clamp(1.02rem, .8rem + 1.35vw, 1.85rem);
  letter-spacing: .01em;
  color: color-mix(in srgb, var(--paper) 92%, transparent);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .55em 1.15em;
  max-width: 68ch;
  color: color-mix(in srgb, var(--paper) 86%, transparent);
}
.hero__meta li { display: flex; align-items: center; gap: 1.15em; }
.hero__meta li:not(:last-child)::after {
  content: ""; width: 4px; height: 4px; background: currentColor; border-radius: 50%; opacity: .6;
}
.hero__badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
}
.hero__badges li {
  border: 1px solid color-mix(in srgb, var(--paper) 46%, transparent);
  padding: .58em 1.05em;
}

/* social strip on beige — client brief: "simbolurile mici pe bej" */
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.35rem, 1.5vw, 1rem);
  background: var(--paper-2);
  color: var(--ink);
  padding: .5rem clamp(.7rem, 2vw, 1.1rem);
}
.social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.social a:hover { background: var(--forest); color: var(--paper); }
.social svg { width: 19px; height: 19px; }
.social__sep { width: 1px; height: 20px; background: var(--line); }

.hero__foot {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
  padding: 0 var(--gutter) clamp(1.4rem, 4vh, 2.6rem);
}
.hero__foot .social { grid-column: 2; }
.hero__foot .scrollcue { grid-column: 3; justify-self: end; }
@media (max-width: 560px) {
  .hero__foot { grid-template-columns: 1fr; justify-items: center; }
  .hero__foot .social, .hero__foot .scrollcue { grid-column: 1; justify-self: center; }
  .hero__foot .scrollcue { display: none; }
}

.scrollcue { display: grid; justify-items: center; gap: .55rem; color: color-mix(in srgb, var(--paper) 74%, transparent); }
.scrollcue__line { width: 1px; height: 46px; background: currentColor; transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.25); opacity: .3; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scrollcue__line { animation: none; } }

/* ---------- 8. WELCOME LETTER ---------- */
/* Ideea: scrisoarea nu mai stă într-o grilă cu poza înghesuită alături.
   Textul e o coloană liniștită, iar fotografia e un plan vertical care iese
   din ecran în dreapta — o suprafață, nu un obiect cu lucruri în jurul lui. */
.wel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper);
  overflow: clip;
  /* muchia de jos a fotografiei continuă ca linie peste toată lățimea,
     ca să se vadă unde se termină scrisoarea și unde începe secțiunea următoare */
  border-bottom: 1px solid var(--line);
}

.wel__text {
  display: grid;
  align-content: center;
  gap: clamp(1.6rem, 3.2vh, 2.6rem);
  padding-block: clamp(3.5rem, 8vh, 6.5rem);
  padding-inline: var(--gutter);
}
@media (min-width: 1000px) {
  /* marginea din stânga rămâne aliniată cu restul site-ului */
  .wel__text {
    padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    padding-right: clamp(2rem, 4.5vw, 5rem);
  }
}

.wel__num { color: var(--ink-soft); }

/* „Dragi prieteni,” devine primul rând al frazei mari, nu o etichetă rătăcită */
.wel__open { display: grid; gap: .3em; }
/* salutul poartă greutatea, fraza de deschidere îl urmează în italic */
.wel__salut {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 32, "WONK" 1;
  font-size: clamp(1.45rem, 1.05rem + 1.65vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--forest);
}
.wel__lede {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 52, "WONK" 1;
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + .95vw, 2rem);
  line-height: 1.3;
  color: var(--forest);
  max-width: 21em;
  text-wrap: balance;
}

/* restul scrisorii: mic, calm, pe două coloane despărțite de o linie subțire */
.wel__cols {
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.6;
  max-width: 80ch;
}
.wel__cols p + p { margin-top: 1em; }
.wel__cols strong { color: var(--ink); font-weight: 600; }
@media (min-width: 1000px) {
  .wel__cols { max-width: none; }
}
@media (min-width: 1250px) {
  .wel__cols {
    column-count: 2;
    column-gap: clamp(1.9rem, 2.6vw, 3.2rem);
    column-rule: 1px solid var(--line);
  }
  .wel__cols p { orphans: 3; widows: 3; }
  .wel__cols > *:first-child { margin-top: 0; }
}

.wel__sig {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 1.6rem);
  color: var(--forest);
  padding-top: .4rem;
}
.wel__rule { flex: 1; height: 1px; background: var(--line); }

/* planul fotografic: iese din ecran sus, jos și în dreapta */
.wel__slab { position: relative; margin: 0; background: var(--paper-2); }
.wel__slab img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 999px) {
  .wel__slab { aspect-ratio: 4 / 3; }
}
@media (min-width: 1000px) {
  .wel { grid-template-columns: minmax(0, 1fr) clamp(340px, 42vw, 920px); min-height: 86svh; }
  .wel__slab img { position: absolute; inset: 0; }
}

/* pe ecrane scunde strângem discret, ca blocul să rămână pe un ecran */
@media (min-width: 1000px) and (max-height: 900px) {
  .wel__text { padding-block: clamp(2rem, 4.5vh, 4rem); gap: clamp(1.1rem, 2.4vh, 1.9rem); }
  .wel__cols { font-size: .89rem; line-height: 1.52; }
  .wel__cols p + p { margin-top: .85em; }
}

/* ---------- 8b. WEL — varianta „poză de articol" (Despre noi) ---------- */
/* Aceeași scrisoare ca pe prima pagină, dar fotografia nu mai e un panou pe
   toată înălțimea secțiunii: e o imagine încadrată, centrată pe verticală
   față de text, cu marginea din dreapta aliniată la gutter-ul site-ului. */
.wel--news .wel__slab { aspect-ratio: 3 / 4; }
@media (min-width: 1000px) {
  .wel--news {
    grid-template-columns: minmax(0, 1fr) clamp(230px, 24vw, 380px);
    min-height: 0;
    /* inset-ul dreapta stă pe grilă, nu pe imagine: altfel marginea se scade
       din coloana de 380px și fotografia se micșorează pe ecrane late */
    padding-right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  }
  .wel--news .wel__slab {
    align-self: center;
    max-height: 62svh;
  }
  .wel--news .wel__slab img { position: static; }
}

/* ---------- 9. FACT LIST (verde închis, două coloane) ---------- */
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 5rem); } }
.fact {
  display: flex; align-items: center; gap: clamp(.85rem, 1.6vw, 1.15rem);
  padding: 1.05rem .2rem;
  border-bottom: 1px solid var(--line);
  color: var(--forest);
}
.fact__k { font-weight: 500; margin-right: auto; }
.fact__v { font-family: var(--display); font-variation-settings: "SOFT" 20; font-size: var(--step-1); letter-spacing: -.01em; text-align: right; }
/* iconița proprie fiecărui element, nu o bifă generică */
.fact__ico { flex: none; width: clamp(24px, 2.4vw, 28px); height: clamp(24px, 2.4vw, 28px); color: var(--ink); }
.fact__tick { flex: none; width: 15px; height: 15px; }

/* Atenționare: fără casetă și fără fundal — se citește ca un rând al tabelului
   de deasupra. Semnalul vine din linia de sus, verde închis, din triunghi și din
   titlul cu majuscule spațiate; restul rămâne la fel de discret ca pagina. */
.alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .5rem clamp(.9rem, 1.8vw, 1.35rem);
  width: 100%;
  margin-top: clamp(1.8rem, 3.5vw, 3rem);
  padding-block: clamp(1.05rem, 2vw, 1.5rem);
  border-top: 1px solid var(--forest);
  border-bottom: 1px solid var(--line);
}
.alert__ico {
  grid-row: span 2;
  align-self: start;
  flex: none;
  width: clamp(21px, 2.1vw, 25px);
  height: clamp(21px, 2.1vw, 25px);
  color: var(--forest);
  translate: 0 -.1em;
}
.alert__t { color: var(--forest); line-height: 1.3; }
.alert__d {
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.6;
  max-width: 96ch;
}

/* ---------- 10. AMENITY GRID (iconițe minimaliste, linii negre) ---------- */
.amen {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 620px) { .amen { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .amen { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1300px) { .amen { grid-template-columns: repeat(6, 1fr); } }
.amen__i {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .95rem;
  padding: clamp(1.5rem, 3vw, 2.4rem) .9rem clamp(1.4rem, 2.6vw, 2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  position: relative;
  transition: background .45s var(--ease);
}
.amen__i:hover { background: var(--paper-2); }
.amen__i svg { width: clamp(34px, 5vw, 46px); height: clamp(34px, 5vw, 46px); color: var(--ink); }
.amen__i span { font-size: var(--step--1); line-height: 1.35; color: var(--ink-soft); max-width: 16ch; }

/* ---------- 11. RAIL (swipe) ---------- */
.rail {
  display: flex;
  gap: clamp(.7rem, 1.5vw, 1.15rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  padding-inline: var(--gutter);
  padding-bottom: 1.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { height: 3px; }
.rail::-webkit-scrollbar-track { background: var(--line-soft); }
.rail::-webkit-scrollbar-thumb { background: var(--forest); }
.rail > * { scroll-snap-align: start; flex: none; }

.railhead {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.3rem;
}
.railnav { display: flex; gap: .4rem; flex: none; }
.railnav button {
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.railnav button:hover:not(:disabled) { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.railnav button:disabled { opacity: .3; cursor: default; }
.railnav svg { width: 16px; height: 16px; }

/* photo card in a rail */
.shot {
  width: clamp(230px, 62vw, 380px);
  cursor: zoom-in;
  position: relative;
  background: var(--paper-2);
}
.shot img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: opacity .4s var(--ease); }
.shot:hover img { opacity: .88; }
.shot figcaption {
  padding: .8rem .95rem .95rem;
  font-size: var(--step--2);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.tab {
  position: relative;
  padding: .5rem 0;
  color: var(--ink-soft);
  transition: color .3s var(--ease);
}
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--forest);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--slow);
}
.tab:hover { color: var(--forest); }
.tab[aria-selected="true"] { color: var(--forest); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

/* ---------- 12. VIDEO CARDS ---------- */
.vcard {
  width: clamp(230px, 62vw, 330px);
  position: relative;
  background: var(--forest-deep);
}
.vcard video, .vcard img { width: 100%; height: auto; aspect-ratio: 9/16; object-fit: cover; }
.vcard__btn {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(to top, rgba(15,27,20,.72), rgba(15,27,20,.05) 55%);
  color: var(--paper);
  transition: background .4s var(--ease);
}
.vcard__btn:hover { background: linear-gradient(to top, rgba(15,27,20,.82), rgba(15,27,20,.2) 55%); }
.vcard__play {
  width: 62px; height: 62px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .5s var(--slow), background .35s var(--ease), color .35s var(--ease);
}
.vcard__btn:hover .vcard__play { transform: scale(1.09); background: var(--paper); color: var(--forest); }
.vcard__play svg { width: 17px; height: 17px; margin-left: 3px; }
.vcard__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.1rem;
  text-align: left;
  font-size: var(--step--2);
  letter-spacing: .17em;
  text-transform: uppercase;
}
.vcard.is-playing .vcard__btn { opacity: 0; pointer-events: none; }

/* ---------- 13. DARK BAND ---------- */
.band {
  background: var(--band-bg);
  color: var(--paper);
  --line: var(--line-forest);
  --ink: var(--paper);
  --ink-soft: color-mix(in srgb, var(--paper) 72%, transparent);
  --forest: var(--paper);
  --paper-2: color-mix(in srgb, var(--paper) 8%, transparent);
}
.band .shead__title, .band .display, .band .lede { color: var(--paper); }
.band .amen__i svg { color: var(--paper); }
.band--deep { background: var(--band-bg-deep); }

/* ---------- 14. REVIEWS ---------- */
.rev {
  width: clamp(272px, 78vw, 430px);
  display: grid;
  gap: 1.1rem;
  align-content: start;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 40%, transparent);
}
.rev__stars { display: flex; gap: .22rem; color: var(--forest); }
.rev__stars svg { width: 14px; height: 14px; }
.rev__q {
  font-family: var(--display);
  font-variation-settings: "SOFT" 44, "WONK" 0;
  font-size: var(--step-1);
  line-height: 1.42;
  letter-spacing: -.008em;
  color: var(--forest);
}
.rev__by { display: flex; align-items: baseline; gap: .7rem; color: var(--ink-soft); font-size: var(--step--1); }
.rev__by b { font-weight: 600; color: var(--ink); letter-spacing: .08em; text-transform: uppercase; font-size: var(--step--2); }
.rev--todo { border-style: dashed; }
.rev--todo .rev__q { color: var(--ink-soft); font-style: italic; }

/* ---------- 15. PRICING ---------- */
.rates { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 800px) { .rates { grid-template-columns: 1fr 1fr; } }
.rate { background: var(--paper); padding: clamp(1.6rem, 3vw, 2.6rem); display: grid; gap: 1.4rem; align-content: start; }
.band .rate { background: var(--band-bg); }
.band--deep .rate { background: var(--band-bg-deep); }
.rate__h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.rate__rows { display: grid; gap: 1rem; }
.rate__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.rate__when { color: var(--ink-soft); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; }
.rate__price { font-family: var(--display); font-variation-settings: "SOFT" 18, "WONK" 1; font-size: var(--step-2); line-height: 1; letter-spacing: -.02em; color: var(--forest); white-space: nowrap; }
.rate__price small { font-family: var(--sans); font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-left: .5em; }
.rate__note { font-size: var(--step--2); color: var(--ink-soft); line-height: 1.5; }

.optlist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1rem clamp(1rem, 3vw, 2rem);
  padding: 1.4rem .2rem 2.1rem;
  border-bottom: 1px solid var(--line);
}
.opt__ico { grid-row: span 2; width: 30px; height: 30px; color: var(--ink); align-self: center; }
.opt__n { font-family: var(--display); font-size: var(--step-1); color: var(--forest); letter-spacing: -.01em; }
.opt__p { font-family: var(--display); font-size: var(--step-1); color: var(--forest); white-space: nowrap; }
.opt__d { grid-column: 2 / -1; color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 720px) {
  .opt { grid-template-columns: auto 1fr; gap: .35rem 1.1rem; }
  .opt__ico { grid-row: 1; grid-column: 1; align-self: start; }
  .opt__n, .opt__p, .opt__d { grid-column: 2; }
  .opt__p { justify-self: start; }
}

/* ---------- 16. CHECKLIST (bifă, ca pe Booking) ---------- */
.checks { display: grid; gap: .1rem clamp(1.5rem, 4vw, 3.5rem); }
@media (min-width: 680px) { .checks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1150px) { .checks--3 { grid-template-columns: repeat(3, 1fr); } }
.checks li {
  display: flex; gap: .85rem; align-items: baseline;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: var(--step--1);
}
.checks svg { flex: none; width: 13px; height: 13px; color: var(--forest); translate: 0 1px; }

/* ---------- 17. EDITORIAL SPLIT ---------- */
.split { display: grid; gap: clamp(1.8rem, 4vw, 4rem); align-items: center; }
/* coloanele pornesc de la aceeași linie de sus, nu centrate una față de alta */
.split--top { align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide { grid-template-columns: 1.15fr .85fr; } .split--rev > :first-child { order: 2; } }
/* bandă îngustă de fotografii lângă text — pozele rămân mici, textul primește lățimea */
@media (min-width: 900px) {
  .split--strip { grid-template-columns: minmax(0, 1fr) clamp(240px, 30vw, 430px); }
}
.split__fig { position: relative; }
.split__fig img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.split__fig figcaption { padding-top: .8rem; font-size: var(--step--2); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.split__stack { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.6rem, 1.4vw, 1rem); }
.split__stack img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.split__stack > *:first-child { grid-column: span 2; }

/* mosaic of tall portraits */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.6rem, 1.4vw, 1.1rem); }
@media (min-width: 760px) { .mosaic { grid-template-columns: repeat(4, 1fr); } }
.mosaic img { width: 100%; aspect-ratio: 3/4; object-fit: cover; cursor: zoom-in; transition: opacity .4s var(--ease); }
.mosaic img:hover { opacity: .87; }
.mosaic--offset > *:nth-child(even) { transform: translateY(clamp(1rem, 4vw, 3.2rem)); }

/* ---------- 17a. LINK CĂTRE O PAGINĂ ---------- */
/* Aceeași structură ca nota de atenționare (iconiță, titlu, explicație),
   dar cu săgeată: se citește ca o continuare a paginii, nu ca o casetă. */
.pagelink {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .45rem clamp(.9rem, 1.8vw, 1.35rem);
  width: 100%;
  margin-top: clamp(1.8rem, 3.5vw, 3rem);
  padding-block: clamp(1.15rem, 2.1vw, 1.6rem);
  padding-inline: 0;
  border-top: 1px solid var(--forest);
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  transition: padding .5s var(--slow), background .4s var(--ease);
}
.pagelink:hover, .pagelink:focus-visible {
  padding-inline: clamp(.6rem, 1.4vw, 1.1rem);
  background: color-mix(in srgb, var(--forest) 6%, transparent);
}
.pagelink__ico {
  grid-row: span 2; align-self: start;
  width: clamp(22px, 2.2vw, 26px); height: clamp(22px, 2.2vw, 26px);
  color: var(--ink); translate: 0 -.1em;
}
.pagelink__t { line-height: 1.3; }
.pagelink__go {
  grid-row: span 2;
  width: clamp(21px, 2vw, 24px); height: clamp(21px, 2vw, 24px);
  flex: none;
  transition: translate .5s var(--slow);
}
.pagelink:hover .pagelink__go { translate: .28rem -.28rem; }
.pagelink__d {
  grid-column: 2 / 3;
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.6;
  max-width: 82ch;
}

/* ---------- 17b. ÎN APROPIERE ---------- */
/* Grila de facilități e făcută pentru 12+ elemente și lasă celule goale
   când sunt doar patru. Aici distanța e informația principală, așa că o
   scriem mare, ca pe o cifră, cu iconița deasupra. */
.near {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 560px)  { .near { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .near { grid-template-columns: repeat(4, 1fr); } }
.near__i {
  display: grid;
  align-content: start;
  gap: .55rem;
  padding: clamp(1.5rem, 2.8vw, 2.2rem) clamp(1rem, 2vw, 1.6rem) clamp(1.4rem, 2.4vw, 1.9rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 560px) {
  .near__i { padding-inline: clamp(1.2rem, 2.2vw, 2rem); }
  .near__i:first-child { padding-left: 0; }
  .near__i + .near__i { border-left: 1px solid var(--line); }
}
@media (min-width: 560px) and (max-width: 999px) {
  .near__i:nth-child(odd) { padding-left: 0; border-left: 0; }
}
.near__ico { width: clamp(26px, 2.6vw, 32px); height: clamp(26px, 2.6vw, 32px); color: var(--ink); margin-bottom: .35rem; }
.near__v {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 18, "WONK" 1;
  font-size: var(--step-2);
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--forest);
}
.near__k { color: var(--forest); font-weight: 500; line-height: 1.3; }
.near__d { color: var(--ink-soft); font-size: var(--step--2); line-height: 1.45; }

/* ---------- 18. LINK LIST (atracții, surprize) ---------- */
.llist { border-top: 1px solid var(--line); }
.llist__i {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1rem clamp(1rem, 3vw, 2.4rem);
  padding: clamp(1.1rem, 2.4vw, 1.9rem) .2rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--slow), background .4s var(--ease);
}
a.llist__i:hover { padding-left: 1.1rem; background: var(--paper-2); }
.llist__n { color: var(--ink-soft); font-size: var(--step--2); letter-spacing: .2em; }
.llist__t { font-family: var(--display); font-variation-settings: "SOFT" 26, "WONK" 1; font-size: var(--step-2); line-height: 1.1; letter-spacing: -.018em; color: var(--forest); }
.llist__d { grid-column: 2 / -1; color: var(--ink-soft); font-size: var(--step--1); max-width: 62ch; margin-top: .35rem; }
.llist__x { color: var(--ink-soft); font-size: var(--step--2); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
/* butonul de WhatsApp stă pe primul rând al listei, în coloana din dreapta
   (în locul etichetei .llist__x); pe ecrane mici trece sub descriere */
.llist__cta { grid-row: 1; grid-column: 3; align-self: center; white-space: nowrap; }
@media (max-width: 760px) {
  .llist__cta { grid-row: auto; grid-column: 2 / -1; justify-self: start; margin-top: 1.1rem; }
}

/* ---------- 19. RULES ---------- */
.rules { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) { .rules { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.rules__g { display: grid; gap: .2rem; align-content: start; }
.rules__h { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.rules__h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rules li { display: flex; gap: .9rem; padding: .75rem 0; border-bottom: 1px solid var(--line-soft); font-size: var(--step--1); color: var(--ink-soft); line-height: 1.5; }
.rules li svg { flex: none; width: 20px; height: 20px; color: var(--ink); translate: 0 1px; }
.rules li b { color: var(--forest); font-weight: 600; }

/* ---------- 20. CTA BAND ---------- */
.cta {
  display: grid; justify-items: center; text-align: center;
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
.cta__t { font-size: var(--step-4); line-height: .98; max-width: 18ch; }
.cta__s { color: var(--ink-soft); max-width: 52ch; }
/* linkul discret de sub buton — o alternativă, nu o a doua acțiune */
.cta__alt { margin-top: -.5rem; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- 21. FOOTER ---------- */
.ftr { background: var(--forest-deep); color: var(--paper); padding-block: clamp(3rem, 6vw, 5.5rem) 0; }
.ftr__top { display: grid; gap: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line-forest); }
@media (min-width: 860px) { .ftr__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.ftr .mark { color: var(--paper); }
.ftr__tag { font-family: var(--display); font-style: italic; font-variation-settings: "SOFT" 44; font-size: var(--step-1); color: color-mix(in srgb, var(--paper) 80%, transparent); margin-top: 1rem; }
.ftr__h { color: color-mix(in srgb, var(--paper) 55%, transparent); margin-bottom: 1.2rem; }
.ftr__l { display: grid; gap: .65rem; color: color-mix(in srgb, var(--paper) 82%, transparent); }
.ftr__bot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding-block: 1.6rem;
  color: color-mix(in srgb, var(--paper) 52%, transparent);
  font-size: var(--step--2);
}
.ftr .social { background: color-mix(in srgb, var(--paper) 92%, transparent); }

/* ---------- 21b. MODAL (lista completă de facilități) ---------- */
.modal {
  width: min(100% - 2 * var(--gutter), 1180px);
  max-height: min(88svh, 60rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal::backdrop {
  background: color-mix(in srgb, var(--forest-deep) 72%, transparent);
  backdrop-filter: blur(3px);
}
.modal:not([open]) { display: none; }
/* rezervă pentru browserele fără suport <dialog>: dialogul nu e în top layer */
.modal--fallback {
  position: fixed;
  z-index: 960;
  inset: 0;
  margin: auto;
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--forest-deep) 72%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modalIn .45s var(--slow); }
  .modal[open]::backdrop { animation: fadeIn .35s var(--ease); }
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes fadeIn  { from { opacity: 0; } }

.modal__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.3rem, 2.4vw, 2.1rem) clamp(1.3rem, 2.6vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.modal__kicker { color: var(--ink-soft); margin-bottom: .55rem; }
.modal__t {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 28, "WONK" 1;
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.02;
  letter-spacing: -.018em;
  color: var(--forest);
}
.modal__x {
  flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--forest);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.modal__x svg { width: 15px; height: 15px; }
.modal__x:hover { background: var(--forest); color: var(--paper); border-color: var(--forest); }

.modal__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 clamp(1.3rem, 2.6vw, 2.4rem) clamp(1.5rem, 3vw, 2.4rem);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.modal__group + .modal__group { margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.modal__gh {
  display: flex; align-items: center; gap: 1rem;
  padding: clamp(1.3rem, 2.4vw, 1.9rem) 0 .9rem;
  color: var(--forest);
}
.modal__gh::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.modal__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 1.6rem;
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1.3rem, 2.6vw, 2.4rem);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: var(--step--2);
}

/* aceeași grilă de iconițe ca pe pagina principală, doar mai compactă */
.amen--modal { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px)  { .amen--modal { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .amen--modal { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .amen--modal { grid-template-columns: repeat(5, 1fr); } }
.amen--modal .amen__i { padding: clamp(1.05rem, 1.8vw, 1.5rem) .7rem clamp(.95rem, 1.5vw, 1.25rem); gap: .7rem; }
.amen--modal .amen__i svg { width: clamp(28px, 3vw, 34px); height: clamp(28px, 3vw, 34px); }
.amen--modal .amen__i span { max-width: 20ch; font-size: var(--step--2); line-height: 1.4; }
.amen__opt { display: block; margin-top: .3rem; color: var(--forest); opacity: .75; font-style: italic; }

/* declanșatorul: arată ca un link-text, dar e buton */
.linkbtn {
  font: inherit;
  color: inherit;
  display: inline-block;
  position: relative;
  font-weight: 500;
  padding-bottom: .12em;
  cursor: pointer;
}
.linkbtn::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform-origin: right;
  transition: transform .5s var(--slow);
}
.linkbtn:hover::after, .linkbtn:focus-visible::after { transform: scaleX(0); transform-origin: left; }

/* ---------- 22. LIGHTBOX ---------- */
.lb {
  position: fixed; inset: 0; z-index: 950;
  background: var(--forest-deep);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: clamp(.8rem, 2vw, 1.6rem);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--paper); }
.lb__meta { display: flex; align-items: baseline; gap: 1rem; min-width: 0; }
.lb__cap {
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--paper) 74%, transparent);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 560px) { .lb__meta { flex-direction: column; gap: .3rem; align-items: flex-start; } }
.lb__fig { display: grid; place-items: center; min-height: 0; }
.lb__fig img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.lb__nav { display: flex; justify-content: center; gap: .6rem; }
.lb__nav button, .lb__close {
  width: 52px; height: 52px;
  border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent);
  color: var(--paper);
  display: grid; place-items: center;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lb__nav button:hover, .lb__close:hover { background: var(--paper); color: var(--forest-deep); }
.lb svg { width: 17px; height: 17px; }

/* ---------- 23. PAGE HEAD (interior pages) ---------- */
.phead {
  position: relative;
  min-height: clamp(58vh, 40vw, 78vh);
  display: grid;
  align-items: end;
  color: var(--paper);
  overflow: hidden;
  background: var(--forest-deep);
}
.phead__bg { position: absolute; inset: 0; }
/* every source photo is portrait 3:4, so the banner crop needs steering per page */
.phead__bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 30%); opacity: .82; }
.phead__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,27,20,.66), rgba(15,27,20,.18) 42%, rgba(15,27,20,.86)); }
.phead__in { position: relative; z-index: 2; padding-block: clamp(2rem, 5vw, 4rem); display: grid; gap: 1rem; }
.phead__t { font-size: var(--step-4); color: var(--paper); max-width: 16ch; }
.phead__s { color: color-mix(in srgb, var(--paper) 80%, transparent); max-width: 56ch; }
.crumbs { display: flex; gap: .7rem; align-items: center; color: color-mix(in srgb, var(--paper) 66%, transparent); }

/* varianta fără fotografie: doar titlul pe verde închis. Fondul e identic cu
   .band--deep (#0F1B14), așa că se continuă fără cusătură în secțiunea de reguli.
   padding-top ține titlul sub header-ul fix, care aici nu mai are poză sub el. */
/* variantă fără fotografie: titlul urcă aproape de bara de sus */
.phead--flat { min-height: 0; padding-top: clamp(5.6rem, 5.8vw, 6.4rem); }
.phead--flat .phead__in { padding-top: 0; padding-bottom: clamp(1.3rem, 2.6vw, 2.2rem); }
.phead--flat + .section { padding-top: clamp(1rem, 1.8vw, 2rem); }

/* ---------- 24. REVEAL ---------- */
[data-rev] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform 1.05s var(--slow);
  transition-delay: var(--d, 0ms);
}
[data-rev].is-in { opacity: 1; transform: none; }
/* the wipe is applied to the CHILD, never to the observed element itself —
   a clip-path on the observed node makes IntersectionObserver see zero area */
[data-rev="wipe"] { opacity: 1; transform: none; transition: none; }
[data-rev="wipe"] > img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.15s var(--slow), transform 1.4s var(--slow);
  transition-delay: var(--d, 0ms);
  transform: scale(1.06);
}
[data-rev="wipe"].is-in > img { clip-path: inset(0 0 0 0); transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-rev], [data-rev="wipe"] > img { opacity: 1; transform: none; clip-path: none; transition: none; }
}

/* ---------- 25. MISC ---------- */
.stat { display: grid; gap: .3rem; }
.stat__v { font-family: var(--display); font-variation-settings: "SOFT" 16, "WONK" 1; font-size: var(--step-3); line-height: 1; letter-spacing: -.03em; color: var(--forest); }
.stat__k { color: var(--ink-soft); }
.statrow { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.5rem); }
@media (min-width: 760px) { .statrow { grid-template-columns: repeat(4, 1fr); } }
/* un rând de trei se împarte în trei coloane, nu în patru cu un gol la capăt */
.statrow:has(> :nth-child(3):last-child) { grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .statrow:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
}

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(.6rem, 1.2vw, .95rem); }
.marquee__t { display: flex; gap: 2.2rem; width: max-content; animation: slide 42s linear infinite; }
.marquee__t > span { display: flex; align-items: center; gap: 2.2rem; font-family: var(--display); font-variation-settings: "SOFT" 34, "WONK" 1; font-style: italic; font-size: var(--step-1); color: var(--forest); white-space: nowrap; }
.marquee__t > span::after { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; opacity: .5; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__t { animation: none; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--forest); color: var(--paper); padding: 1rem 1.5rem;
}
.skip:focus { left: var(--gutter); top: .6rem; }

.note {
  font-size: var(--step--2);
  color: var(--ink-soft);
  border-left: 2px solid var(--line);
  padding-left: 1rem;
  max-width: 62ch;
}
