/* ==========================================================================
   Căsuța de sub cer — sistem de design
   Jetoanele normative stau în DESIGN.md. Aici e implementarea lor.
   Motivele se generează cu: python3 tools/motive.py
   Verificare: node .claude/skills/impeccable/scripts/detect.mjs *.html css/style.css
   ========================================================================== */

/* ---------- 0. Fonturi (self-host, subset latin + latin-ext) -------------- */
/* Descărcate de pe Google Fonts și servite local: fără blocaj de randare,
   fără transfer de IP către Google. Reîmprospătare: python3 tools/fonturi.py */
@font-face {
  font-family: 'Archivo'; font-style: normal;
  font-weight: 400 700; font-stretch: 62% 125%; font-display: swap;
  src: url(../assets/fonturi/archivo-latinext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo'; font-style: normal;
  font-weight: 400 700; font-stretch: 62% 125%; font-display: swap;
  src: url(../assets/fonturi/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo'; font-style: italic;
  font-weight: 400 700; font-stretch: 62% 125%; font-display: swap;
  src: url(../assets/fonturi/archivo-it-latinext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo'; font-style: italic;
  font-weight: 400 700; font-stretch: 62% 125%; font-display: swap;
  src: url(../assets/fonturi/archivo-it-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vollkorn'; font-style: normal;
  font-weight: 400 700; font-display: swap;
  src: url(../assets/fonturi/vollkorn-latinext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vollkorn'; font-style: normal;
  font-weight: 400 700; font-display: swap;
  src: url(../assets/fonturi/vollkorn-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vollkorn'; font-style: italic;
  font-weight: 400 600; font-display: swap;
  src: url(../assets/fonturi/vollkorn-it-latinext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vollkorn'; font-style: italic;
  font-weight: 400 600; font-display: swap;
  src: url(../assets/fonturi/vollkorn-it-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Jetoane ---------------------------------------------------- */
:root {
  /* culoare — fără color-mix, fără alfa inventată; fiecare suprafață are jeton */
  --verde-adanc: #052C19;
  --verde: #0F492E;
  --verde-bordura: #467C5E;
  --galben: #F1B12B;
  --os: #F4F0E7;
  --os-2: #EAE2D4;
  --cerneala: #101E16;
  --crem-text: #F8E9CF;

  /* suprafețe derivate, explicite */
  --linie-hartie: #D6CCB8;
  --text-dezactivat: #757D78;
  --foto-sus: #123B26;
  --foto-mijloc: #0C3420;
  --foto-jos: #061F13;
  --rosu-eroare: #8E2B20;
  --linie-verde: #2A5540;
  --text-hartie-secundar: #455B4E;
  --text-verde-secundar: #AFCCBA;

  /* rol curent, rescris de clasele de lume */
  --fond: var(--verde-adanc);
  --text: var(--crem-text);
  --text-2: var(--text-verde-secundar);
  --linie: var(--linie-verde);
  --accent: var(--galben);

  /* tipografie */
  --f-display: Archivo, "Helvetica Neue", Arial, sans-serif;
  --f-text: Vollkorn, Georgia, "Times New Roman", serif;

  --t-display: clamp(2.5rem, 1.6rem + 4.2vw, 5.5rem);
  --t-titlu: clamp(1.75rem, 1.3rem + 2.2vw, 3rem);
  --t-lead: clamp(1.15rem, 1.05rem + .5vw, 1.45rem);
  --t-corp: 1.0625rem;   /* 17px */
  --t-micro: .75rem;     /* 12px, pragul de jos; nimic sub el */

  /* spațiere, bază de 4px */
  --s-xs: 4px;  --s-sm: 8px;  --s-md: 16px; --s-lg: 24px;
  --s-xl: 32px; --s-2xl: 48px; --s-3xl: 64px; --s-4xl: 96px; --s-5xl: 128px;

  --gutiera: clamp(1.25rem, 4vw, 5rem);
  --lat-max: 1400px;
  --lat-text: 66ch;

  --iesire: 620ms cubic-bezier(.16,.84,.28,1);
}

/* ---------- 2. Bază ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--verde-adanc);
  color: var(--text);
  font-family: var(--f-text);
  font-size: var(--t-corp);
  line-height: 1.65;
  font-kerning: normal;
  font-optical-sizing: auto;
}

img, svg, video { display: block; max-width: 100%; }
/* controalele de formular nu moștenesc tipografia de la sine */
button, input, select, textarea { font: inherit; line-height: 1.4; color: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--galben); color: var(--cerneala); }
:focus-visible { outline: 3px solid var(--galben); outline-offset: 3px; }

/* ---------- 3. Cele două lumi --------------------------------------------- */
/* Verde: poveste, casă, atmosferă. Hârtie: preț, calendar, decizie. */
.lume-verde {
  --fond: var(--verde-adanc);
  --text: var(--crem-text);
  --text-2: var(--text-verde-secundar);
  --linie: var(--linie-verde);
  background: var(--verde-adanc);
  color: var(--crem-text);
  /* litera deschisă pe fond închis se citește mai subțire: corectăm pe trei axe */
  line-height: 1.71;
  letter-spacing: .015em;
  font-weight: 500;
}
.lume-verde--adanc { background: var(--verde); --fond: var(--verde); }

.lume-hartie {
  --fond: var(--os);
  --text: var(--cerneala);
  --text-2: var(--text-hartie-secundar);
  --linie: var(--linie-hartie);
  background: var(--os);
  color: var(--cerneala);
  line-height: 1.65;
  letter-spacing: normal;
  font-weight: 400;
}
.lume-hartie--2 { background: var(--os-2); --fond: var(--os-2); }

/* ---------- 4. Structură -------------------------------------------------- */
.sectiune { padding: var(--s-4xl) var(--s-lg); }
@media (min-width: 640px) { .sectiune { padding-inline: clamp(2rem, 4vw, 5rem); } }
.sectiune--stransa { padding-block: var(--s-2xl); }   /* ritm variat, nu monoton */
.sectiune--larga { padding-block: var(--s-5xl); }
.invelis { width: 100%; max-width: var(--lat-max); margin-inline: auto; }
.masura { max-width: var(--lat-text); }

.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; line-height: 1.5;
}

/* cap de secțiune: titlu mare plus lead. Fără etichetă mică deasupra. */
.cap { display: grid; gap: var(--s-lg); margin-bottom: var(--s-2xl); }
@media (min-width: 900px) { .cap { grid-template-columns: 1.15fr 1fr; gap: var(--s-4xl); align-items: end; } }
.cap h2 { font-size: var(--t-titlu); }
.cap p { font-size: var(--t-lead); color: var(--text-2); margin: 0; }

/* accentul din titlu: greutate și culoare, niciodată cursiv serif */
.acc { color: var(--accent); font-variation-settings: "wdth" 125; font-weight: 700; }
.lume-hartie .acc { color: var(--verde); }

/* ---------- 5. Butoane ---------------------------------------------------- */
/* Umplerea de la hover are jeton propriu. Dacă ar folosi currentColor, ar deveni
   exact culoarea textului în momentul hover-ului, iar textul ar dispărea. */
.buton {
  --umplere: var(--crem-text);
  --text-umplut: var(--verde-adanc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: var(--s-md) var(--s-xl);
  border: 1.5px solid var(--crem-text);
  background: none;
  color: inherit;
  font-family: var(--f-display);
  font-size: var(--t-corp);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.35;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 320ms ease;
}
.buton::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  /* la repaus nu are culoare: altfel ar sta o suprafață crem în spatele
     unui text crem, chiar dacă e comprimată la zero */
  background: transparent;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 420ms cubic-bezier(.16,.84,.28,1), background-color 0s linear 420ms;
}
.buton:hover::before, .buton:focus-visible::before {
  background: var(--umplere);
  transform: scaleY(1);
  transition: transform 420ms cubic-bezier(.16,.84,.28,1), background-color 0s linear 0s;
}
.buton:hover, .buton:focus-visible { color: var(--text-umplut); }

/* pe verde: umplere crem, text verde */
.lume-verde .buton { --umplere: var(--crem-text); --text-umplut: var(--verde-adanc); border-color: var(--crem-text); }
/* pe hârtie: umplere verde, text hârtie */
.lume-hartie .buton { --umplere: var(--verde); --text-umplut: var(--os); color: var(--cerneala); border-color: var(--verde); }
/* pe galben: umplere cerneală, text galben */
.chemare .buton { --umplere: var(--cerneala); --text-umplut: var(--galben); color: var(--cerneala); border-color: var(--cerneala); }

/* butonul plin: pornește galben, se umple cu cerneală */
.buton--plin {
  background: var(--galben);
  border-color: var(--galben);
  color: var(--cerneala);
  --umplere: var(--cerneala);
  --text-umplut: var(--galben);
}

:focus-visible { outline: 3px solid var(--galben); outline-offset: 3px; }
.lume-hartie :focus-visible, .chemare :focus-visible { outline-color: var(--verde); }

/* ---------- 6. Antet ------------------------------------------------------ */
.antet {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: var(--s-md) var(--s-lg);
  color: var(--crem-text);
  transition: background 380ms ease, box-shadow 380ms ease;
}
.antet.e-lipit { background: var(--verde-adanc); box-shadow: 0 1px 0 var(--linie-verde); }
.antet__grid { display: flex; align-items: center; justify-content: space-between; gap: var(--s-lg); max-width: var(--lat-max); margin-inline: auto; }

.marca { display: flex; align-items: center; gap: var(--s-sm); min-height: 44px; }
.marca__spirala { width: 34px; height: 34px; color: var(--galben); flex: none; transition: transform 900ms cubic-bezier(.16,.84,.28,1); }
.marca:hover .marca__spirala { transform: rotate(140deg); }
.marca__nume { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; font-variation-settings: "wdth" 108; line-height: 1.35; }
.marca__loc { display: block; font-family: var(--f-display); font-size: var(--t-micro); font-weight: 500; line-height: 1.4; letter-spacing: .04em; color: var(--text-verde-secundar); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: clamp(.75rem, 1.8vw, 1.75rem); }
.nav a {
  font-family: var(--f-display);
  font-size: var(--t-corp);
  font-weight: 500;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--s-xs);
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute; left: var(--s-xs); right: var(--s-xs); bottom: 10px;
  height: 2px; background: var(--galben);
  transform: scaleX(0); transform-origin: right;
  transition: transform 380ms cubic-bezier(.16,.84,.28,1);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--galben); }

.nav-buton { display: none; background: none; border: 0; padding: var(--s-sm); cursor: pointer; color: inherit; min-width: 44px; min-height: 44px; }
.nav-buton svg { width: 26px; height: 26px; }

@media (max-width: 920px) {
  .nav-buton { display: block; }
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: var(--s-lg);
    background: var(--verde-adanc);
    clip-path: circle(0% at calc(100% - 3rem) 3rem);
    transition: clip-path 640ms cubic-bezier(.76,0,.24,1);
  }
  .nav[data-deschis="true"] { clip-path: circle(150% at calc(100% - 3rem) 3rem); }
  .nav a { font-size: var(--t-lead); line-height: 1.4; }
}

/* ---------- 7. Erou ------------------------------------------------------- */
.erou { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; padding: var(--s-4xl) var(--s-lg) var(--s-3xl); }
.erou > .fundal { position: absolute; inset: 0; z-index: -1; }
.erou > .fundal::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(178deg, rgba(5,44,25,.46) 0%, rgba(5,44,25,.08) 34%, rgba(5,44,25,.74) 68%, rgba(5,44,25,.95) 100%);
}
.erou__continut { position: relative; z-index: 1; max-width: var(--lat-max); margin-inline: auto; width: 100%; }
.erou__titlu {
  font-size: var(--t-display);
  font-variation-settings: "wdth" 122;
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.025em;
  margin: 0;
}
.erou__deviza {
  font-family: var(--f-display);
  font-size: clamp(1.05rem, .95rem + .6vw, 1.5rem);
  font-weight: 500;
  font-variation-settings: "wdth" 90;
  line-height: 1.35;
  color: var(--galben);
  margin: var(--s-md) 0 0;
}
.erou__jos { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-xl); margin-top: var(--s-2xl); }
.erou__lead { max-width: 46ch; font-size: var(--t-lead); margin: 0; }
.erou__actiuni { display: flex; flex-wrap: wrap; gap: var(--s-md); }

/* ---------- 8. Sloturi de fotografie -------------------------------------- */
/* Provizorat până intră imaginile reale. Nu se publică așa. */
.fundal, .foto {
  position: relative;
  overflow: hidden;
  background: linear-gradient(158deg, var(--foto-sus) 0%, var(--foto-mijloc) 58%, var(--foto-jos) 100%);
  background-color: var(--foto-mijloc);
  color: var(--crem-text);
  isolation: isolate;
}
.foto::before, .fundal::before {
  content: "";
  position: absolute; inset: -8%;
  background: var(--galben);
  opacity: .07;
  -webkit-mask: url("../assets/motive/spirala.svg") center / 55% no-repeat;
  mask: url("../assets/motive/spirala.svg") center / 55% no-repeat;
}
.foto::after {
  content: attr(data-eticheta);
  position: absolute; left: var(--s-md); bottom: var(--s-md);
  font-family: var(--f-display);
  font-size: var(--t-micro);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-verde-secundar);
  max-width: calc(100% - var(--s-xl));
}
picture { display: contents; }
.foto img, .fundal img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 9. Banda-registru --------------------------------------------- */
.banda { height: 72px; background: url("../assets/motive/registru-verde.svg") left center / auto 72px repeat-x; }
.banda--hartie { background-image: url("../assets/motive/registru-hartie.svg"); }
.banda--stransa { height: 48px; background-size: auto 48px; }

/* ---------- 10. Fișa casei ------------------------------------------------ */
/* Nu „cifră mare, etichetă mică". Un rând de fapte, toate la aceeași greutate. */
.fisa {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 1rem + 1.8vw, 2.4rem);
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  line-height: 1.35;
  letter-spacing: -.01em;
  margin: var(--s-3xl) 0 0;
  padding: var(--s-xl) 0 0;
  border-top: 1px solid var(--linie);
}
.fisa b { font-weight: 700; color: var(--accent); font-variation-settings: "wdth" 118; }
.lume-hartie .fisa b { color: var(--verde); }
.fisa i { font-style: normal; color: var(--text-2); }

/* ---------- 11. Blocuri editoriale ---------------------------------------- */
.doua { display: grid; gap: var(--s-2xl); }
@media (min-width: 900px) { .doua { grid-template-columns: 5fr 6fr; gap: var(--s-4xl); align-items: start; } }
.deschidere { font-size: var(--t-lead); line-height: 1.5; }

/* ---------- 12. Galerie --------------------------------------------------- */
.galerie { display: grid; gap: var(--s-md); grid-template-columns: repeat(6, 1fr); }
.galerie .foto { grid-column: span 6; aspect-ratio: 4/3; }
@media (min-width: 820px) {
  .galerie .foto:nth-child(1) { grid-column: span 4; aspect-ratio: 16/10; }
  .galerie .foto:nth-child(2) { grid-column: span 2; aspect-ratio: 3/4; align-self: end; }
  .galerie .foto:nth-child(3) { grid-column: span 2; aspect-ratio: 1; }
  .galerie .foto:nth-child(4) { grid-column: span 4; aspect-ratio: 16/10; }
  .galerie .foto:nth-child(5) { grid-column: span 3; aspect-ratio: 5/4; }
  .galerie .foto:nth-child(6) { grid-column: span 3; aspect-ratio: 5/4; }
}

/* ---------- 13. Camere ---------------------------------------------------- */
.camera { display: grid; gap: var(--s-xl); align-items: center; padding-block: var(--s-3xl); border-bottom: 1px solid var(--linie); }
.camera:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .camera { grid-template-columns: 6.5fr 5fr; gap: var(--s-4xl); }
  .camera:nth-of-type(even) { grid-template-columns: 5fr 6.5fr; }
  .camera:nth-of-type(even) .foto { order: 2; }
}
.camera .foto { aspect-ratio: 4/3; }
.camera h3 { font-size: var(--t-titlu); margin-bottom: var(--s-md); }
.fise { list-style: none; margin: var(--s-lg) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.fise li {
  font-family: var(--f-display);
  font-size: var(--t-corp);
  line-height: 1.4;
  border: 1px solid var(--linie);
  padding: var(--s-sm) var(--s-md);
  color: var(--text-2);
}

/* ---------- 14. Grupuri de dotări ----------------------------------------- */
.grupuri { display: grid; gap: var(--s-2xl); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grup h3 { font-family: var(--f-display); font-size: var(--t-corp); font-weight: 700; line-height: 1.4; margin-bottom: var(--s-md); padding-bottom: var(--s-sm); border-bottom: 2px solid var(--accent); }
.lume-hartie .grup h3 { border-bottom-color: var(--verde); }
.grup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-sm); font-size: var(--t-corp); }

/* ---------- 15. Sinceritate ----------------------------------------------- */
/* Bloc plin, cu aer generos. Fără bordură colorată pe o singură latură. */
.sincer { background: var(--os-2); color: var(--cerneala); padding: var(--s-2xl); }
.sincer h2 { font-size: var(--t-titlu); margin-bottom: var(--s-md); }
.sincer ul { list-style: none; margin: var(--s-lg) 0 0; padding: 0; display: grid; gap: var(--s-md); }
.sincer li { padding-left: var(--s-lg); position: relative; }
.sincer li::before { content: ""; position: absolute; left: 0; top: .7em; width: 12px; height: 2px; background: var(--verde); }

/* ---------- 16. Zona ------------------------------------------------------ */
.zona { border-top: 1px solid var(--linie); }
.zona__rand {
  display: grid; gap: var(--s-sm) var(--s-xl);
  grid-template-columns: 1fr;
  padding: var(--s-lg) 0;
  border-bottom: 1px solid var(--linie);
  position: relative;
}
@media (min-width: 820px) { .zona__rand { grid-template-columns: 8rem 1fr 26ch; align-items: baseline; } }
.zona__dist { font-family: var(--f-display); font-size: var(--t-corp); font-weight: 700; line-height: 1.4; color: var(--accent); margin: 0; }
.lume-hartie .zona__dist { color: var(--verde); }
.zona__nume { font-size: clamp(1.2rem, 1.05rem + .8vw, 1.75rem); }
.zona__desc { font-size: var(--t-corp); color: var(--text-2); margin: 0; }

/* ---------- 17. Poveste --------------------------------------------------- */
.poveste { position: relative; overflow: hidden; }
.poveste::before {
  content: "";
  position: absolute; right: -6%; top: 50%; translate: 0 -50%;
  width: min(56vw, 560px); aspect-ratio: 1;
  background: var(--galben); opacity: .13;
  -webkit-mask: url("../assets/motive/spirala.svg") center / contain no-repeat;
  mask: url("../assets/motive/spirala.svg") center / contain no-repeat;
}
.poveste__continut { position: relative; }
.poveste h2 { font-size: var(--t-titlu); margin-bottom: var(--s-lg); max-width: 20ch; }

/* ---------- 18. Prețuri --------------------------------------------------- */
.preturi { display: grid; gap: 1px; background: var(--linie-hartie); border: 1px solid var(--linie-hartie); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pret { background: var(--os); padding: var(--s-xl); }
.pret__eticheta { font-family: var(--f-display); font-size: var(--t-corp); font-weight: 600; line-height: 1.4; color: var(--text-hartie-secundar); margin-bottom: var(--s-sm); }
.pret b { display: block; font-family: var(--f-display); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 700; font-variation-settings: "wdth" 112; color: var(--verde); line-height: 1.1; }
.pret span { display: block; font-size: var(--t-corp); color: var(--text-hartie-secundar); margin-top: var(--s-xs); }

/* ---------- 19. Calendar -------------------------------------------------- */
.rezervare { display: grid; gap: var(--s-2xl); align-items: start; }
@media (min-width: 1000px) { .rezervare { grid-template-columns: 1.3fr 1fr; gap: var(--s-4xl); } }
.luni { display: grid; gap: var(--s-xl); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.cal__cap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); margin-bottom: var(--s-lg); flex-wrap: wrap; }
.cal__nav { display: flex; gap: var(--s-sm); }
.cal__nav button {
  width: 44px; height: 44px;
  border: 1px solid var(--linie-hartie);
  background: none; cursor: pointer; color: var(--cerneala);
  display: grid; place-items: center;
  transition: background 260ms ease, color 260ms ease;
}
.cal__nav button:hover:not(:disabled) { background: var(--verde); color: var(--os); }
.cal__nav button:disabled { color: var(--text-dezactivat); cursor: not-allowed; }
.cal__nav svg { width: 18px; height: 18px; }

.luna h3 { font-size: var(--t-corp); margin-bottom: var(--s-md); text-transform: capitalize; }
.cal__grila { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__zi-cap { font-family: var(--f-display); font-size: var(--t-micro); font-weight: 600; line-height: 1.4; color: var(--text-hartie-secundar); text-align: center; padding-bottom: var(--s-sm); }

.zi {
  aspect-ratio: 1; min-height: 44px;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: var(--t-corp); font-weight: 500; line-height: 1.4;
  border: 1px solid transparent;
  background: none; cursor: pointer; color: var(--cerneala);
  position: relative;
  transition: background 200ms ease, color 200ms ease;
}
.zi--goala { visibility: hidden; }
.zi:hover:not(:disabled) { background: var(--os-2); }
.zi:disabled { cursor: not-allowed; color: var(--text-dezactivat); }
.zi--ocupat::after {
  content: ""; position: absolute; left: 20%; right: 20%; top: 50%;
  height: 1.5px; background: var(--text-dezactivat); transform: rotate(-16deg);
}
.zi--intre { background: var(--os-2); }
.zi--capat { background: var(--verde); color: var(--crem-text); font-weight: 700; }
.zi--capat:hover { background: var(--verde); }
.zi--azi { border-color: var(--verde); }

.cal__legenda { display: flex; flex-wrap: wrap; gap: var(--s-lg); margin-top: var(--s-lg); font-size: var(--t-corp); line-height: 1.4; color: var(--text-hartie-secundar); }
.cal__legenda span { display: flex; align-items: center; gap: var(--s-sm); }
.cal__legenda i { width: 18px; height: 18px; border: 1px solid var(--linie-hartie); position: relative; flex: none; }
.cal__legenda i.e-ocupat::after { content: ""; position: absolute; left: 16%; right: 16%; top: 50%; height: 1.5px; background: var(--text-dezactivat); transform: rotate(-16deg); }
.cal__legenda i.e-ales { background: var(--verde); border-color: var(--verde); }

/* ---------- 20. Rezumat de preț ------------------------------------------- */
.rezumat { border: 1.5px solid var(--cerneala); padding: var(--s-xl); background: var(--os); }
@media (min-width: 1000px) { .rezumat { position: sticky; top: 104px; } }
.rezumat h3 { font-size: var(--t-titlu); margin-bottom: var(--s-lg); }
.rezumat__gol { color: var(--text-hartie-secundar); }
.rezumat__linie { display: flex; justify-content: space-between; gap: var(--s-md); padding: var(--s-sm) 0; border-bottom: 1px solid var(--linie-hartie); font-size: var(--t-corp); }
.rezumat__linie span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rezumat__total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-md); padding-top: var(--s-lg); }
.rezumat__total span { font-family: var(--f-display); font-size: var(--t-corp); font-weight: 600; line-height: 1.4; color: var(--text-hartie-secundar); }
.rezumat__total b { font-family: var(--f-display); font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem); font-weight: 700; line-height: 1.2; color: var(--verde); font-variant-numeric: tabular-nums; }
.rezumat__nota { font-size: var(--t-corp); color: var(--text-hartie-secundar); margin-top: var(--s-md); }
.rezumat .buton { width: 100%; margin-top: var(--s-lg); }
.rezumat__eroare { color: var(--rosu-eroare); font-size: var(--t-corp); margin-top: var(--s-md); font-weight: 600; }

/* ---------- 21. Condiții -------------------------------------------------- */
.conditii { border-top: 1px solid var(--linie); }
.conditie { display: grid; gap: var(--s-xs); padding: var(--s-lg) 0; border-bottom: 1px solid var(--linie); }
@media (min-width: 720px) { .conditie { grid-template-columns: 17rem 1fr; gap: var(--s-xl); align-items: baseline; } }
.conditie dt { font-family: var(--f-display); font-size: var(--t-corp); font-weight: 700; line-height: 1.4; }
.conditie dd { margin: 0; color: var(--text-2); font-size: var(--t-corp); }

.nota-actualizare { font-size: var(--t-corp); color: var(--text-hartie-secundar); display: flex; align-items: center; gap: var(--s-sm); margin: 0; }
.nota-actualizare::before { content: ""; width: 16px; height: 16px; background: var(--verde); flex: none; -webkit-mask: url("../assets/motive/spirala.svg") center / contain no-repeat; mask: url("../assets/motive/spirala.svg") center / contain no-repeat; }

/* ---------- 22. Chemare --------------------------------------------------- */
.chemare { background: var(--galben); color: var(--cerneala); }
.chemare h2 { font-size: var(--t-titlu); max-width: 18ch; }
.chemare p { font-size: var(--t-lead); max-width: 54ch; margin-top: var(--s-md); }
.chemare .buton { border-color: var(--cerneala); color: var(--cerneala); }
.chemare .buton:hover, .chemare .buton:focus-visible { color: var(--galben); }
.chemare__actiuni { display: flex; flex-wrap: wrap; gap: var(--s-md); margin-top: var(--s-xl); }

/* ---------- 23. Subsol ---------------------------------------------------- */
.subsol { background: var(--verde-adanc); color: var(--crem-text); padding: var(--s-4xl) var(--s-lg) var(--s-xl); line-height: 1.71; }
.subsol__grid { display: grid; gap: var(--s-2xl); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); max-width: var(--lat-max); margin-inline: auto; }
.subsol h2 { font-family: var(--f-display); font-size: var(--t-corp); font-weight: 700; line-height: 1.4; color: var(--galben); margin-bottom: var(--s-md); }
.subsol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-xs); font-size: var(--t-corp); }
.subsol ul a { display: inline-flex; align-items: center; min-height: 44px; }
.subsol ul a:hover { color: var(--galben); }
.subsol__baza { line-height: 1.5; max-width: var(--lat-max); margin: var(--s-2xl) auto 0; padding-top: var(--s-md); border-top: 1px solid var(--linie-verde); display: flex; flex-wrap: wrap; gap: var(--s-md); justify-content: space-between; font-size: var(--t-micro); color: var(--text-verde-secundar); }

/* ---------- 24. Apariție la derulare -------------------------------------- */
/* Se ascunde doar dacă JS-ul chiar rulează. Fără el, totul e vizibil. */
.js [data-apare] { opacity: 0; transform: translateY(24px); transition: opacity 800ms ease, transform 800ms cubic-bezier(.16,.84,.28,1); transition-delay: var(--intarziere, 0ms); }
.js [data-apare].e-vizibil { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-apare] { opacity: 1; transform: none; } }

/* ---------- 25. Gutiere fluide de la 640px în sus ------------------------- */
@media (min-width: 640px) {
  .erou, .subsol, .antet { padding-inline: clamp(2rem, 4vw, 5rem); }
}

/* ---------- 26. Pagini de document --------------------------------------- */
.doc { max-width: 72ch; }
.doc h2 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.75rem); margin: var(--s-2xl) 0 var(--s-md); }
.doc h2:first-of-type { margin-top: var(--s-xl); }
.doc ul { padding-left: var(--s-lg); display: grid; gap: var(--s-sm); margin: 0 0 1.1em; }
.doc__lipsa {
  background: var(--os-2);
  padding: var(--s-md);
  font-family: var(--f-display);
  font-size: var(--t-corp);
  line-height: 1.4;
  color: var(--text-hartie-secundar);
}

/* butoanele din erou, pe telefon: aceeași lățime, nu două dreptunghiuri diferite */
@media (max-width: 560px) {
  .erou__actiuni, .chemare__actiuni { display: grid; gap: var(--s-sm); }
  .erou__actiuni .buton, .chemare__actiuni .buton { width: 100%; }
}

/* ---------- 27. Pagina de galerie ---------------------------------------- */
.galerie-pagina { display: grid; gap: var(--s-4xl); }
.galerie__grup .cap { margin-bottom: var(--s-lg); }
/* Curgere pe coloane: fotografiile își păstrează proporția și nu rămân goluri,
   spre deosebire de o grilă cu spans, unde 3+2 lasă mereu o coloană liberă. */
.galerie__grila { columns: 1; column-gap: var(--s-md); }
@media (min-width: 620px) { .galerie__grila { columns: 2; } }
@media (min-width: 1040px) { .galerie__grila { columns: 3; } }

.galerie__poza { margin: 0 0 var(--s-md); break-inside: avoid; }
.galerie__poza--lat .foto, .galerie__poza--lat .galerie__buton { aspect-ratio: 16 / 10; }
.galerie__poza--patrat .foto, .galerie__poza--patrat .galerie__buton { aspect-ratio: 1; }
.galerie__poza--inalt .foto, .galerie__poza--inalt .galerie__buton { aspect-ratio: 3 / 4; }

.galerie__buton { aspect-ratio: 16 / 10; }
.galerie__poza--patrat .foto, .galerie__poza--patrat .galerie__buton { aspect-ratio: 1; }
.galerie__poza--inalt .foto, .galerie__poza--inalt .galerie__buton { aspect-ratio: 3 / 4; }

.galerie__buton {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; overflow: hidden;
}
.galerie__buton img { width: 100%; height: 100%; object-fit: cover; transition: opacity 400ms ease; }
.galerie__buton:hover img { opacity: .86; }

/* ---------- 28. Lupa ------------------------------------------------------ */
.lupa { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; }
.lupa.e-deschisa { display: grid; }
.lupa__fundal { position: absolute; inset: 0; background: var(--verde-adanc); opacity: .97; }
.lupa__cadru {
  position: relative;
  width: min(94vw, 1200px);
  max-height: 92svh;
  display: grid;
  gap: var(--s-md);
  justify-items: center;
}
.lupa__img { max-width: 100%; max-height: 78svh; object-fit: contain; }
.lupa__legenda { font-family: var(--f-display); font-size: var(--t-corp); line-height: 1.4; color: var(--text-verde-secundar); margin: 0; text-align: center; }
.lupa__numar { position: absolute; top: calc(-1 * var(--s-xl)); left: 0; font-family: var(--f-display); font-size: var(--t-corp); line-height: 1.4; color: var(--text-verde-secundar); margin: 0; font-variant-numeric: tabular-nums; }
.lupa__buton {
  position: absolute;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1.5px solid var(--verde-bordura);
  background: var(--verde-adanc);
  color: var(--crem-text);
  cursor: pointer;
  transition: background 240ms ease, color 240ms ease;
}
.lupa__buton:hover { background: var(--galben); color: var(--cerneala); border-color: var(--galben); }
.lupa__buton svg { width: 22px; height: 22px; }
.lupa__buton--inchide { top: calc(-1 * var(--s-3xl)); right: 0; }
.lupa__buton--inapoi { left: calc(-1 * var(--s-3xl)); top: 50%; translate: 0 -50%; }
.lupa__buton--inainte { right: calc(-1 * var(--s-3xl)); top: 50%; translate: 0 -50%; }
@media (max-width: 900px) {
  .lupa__buton--inapoi { left: 0; top: auto; bottom: calc(-1 * var(--s-3xl)); translate: none; }
  .lupa__buton--inainte { right: 0; top: auto; bottom: calc(-1 * var(--s-3xl)); translate: none; }
  .lupa__cadru { max-height: 84svh; }
}

/* ---------- 29. Selectorul de persoane ------------------------------------ */
/* Nu schimbă ce se închiriază, casa e oricum întreagă. Schimbă doar treapta de preț. */
.cati { border: 0; margin: 0 0 var(--s-lg); padding: 0 0 var(--s-lg); border-bottom: 1px solid var(--linie-hartie); }
.cati__titlu { font-family: var(--f-display); font-size: var(--t-corp); font-weight: 700; line-height: 1.4; padding: 0; margin-bottom: var(--s-sm); }
.cati__optiuni { display: flex; gap: var(--s-xs); flex-wrap: wrap; }
.cati__op {
  position: relative;
  display: grid; place-items: center;
  min-width: 46px; min-height: 46px;
  border: 1px solid var(--linie-hartie);
  font-family: var(--f-display); font-size: var(--t-corp); font-weight: 600; line-height: 1.4;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}
.cati__op:hover { border-color: var(--verde); }
.cati__op input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cati__op.e-ales { background: var(--verde); border-color: var(--verde); color: var(--crem-text); }
.cati__op:has(input:focus-visible) { outline: 3px solid var(--verde); outline-offset: 2px; }
.cati__nota { font-size: var(--t-corp); line-height: 1.5; color: var(--text-hartie-secundar); margin: var(--s-sm) 0 0; }

/* ---------- 30. Harta curții --------------------------------------------- */
/* Desenată din schița gazdelor, generată de tools/harta.py. */
.harta { max-width: 820px; margin-inline: auto; }
.harta svg { width: 100%; height: auto; }

/* suprafețe */
.harta .h-teren { fill: var(--os); stroke: none; }
.harta .h-strada { fill: var(--os-2); }
.harta .h-carare { fill: var(--linie-hartie); stroke: none; }
.harta .h-anexa, .harta .h-poarta { fill: var(--os-2); stroke: var(--cerneala); stroke-width: 2.4; }
.harta .h-casa-cazare { fill: var(--galben); stroke: var(--cerneala); stroke-width: 2.8; }
.harta .h-cerdac { fill: var(--os); stroke: var(--cerneala); stroke-width: 2.2; }
.harta .h-fantana { fill: var(--os-2); stroke: var(--cerneala); stroke-width: 2.4; }
.harta .h-fantana-gura { fill: var(--cerneala); }
.harta .h-copac { fill: var(--verde); fill-opacity: .14; stroke: var(--verde); stroke-width: 2.2; }

/* linii */
.harta .h-coama { stroke: var(--cerneala); stroke-width: 2; }
.harta .h-panta { stroke: var(--cerneala); stroke-width: 1.2; opacity: .55; }
.harta .h-trunchi { stroke: var(--verde); stroke-width: 2.2; }
.harta .h-gard, .harta .h-margine-strada { stroke: var(--cerneala); stroke-width: 1.8; }
.harta .h-strat { stroke: var(--verde); stroke-width: 2; fill: none; opacity: .8; }
.harta .h-hotar { stroke: var(--verde); stroke-width: 2; stroke-dasharray: 14 10; }
.harta .h-loc { fill: none; stroke: var(--cerneala); stroke-width: 1.8; }
.harta .h-tarc { fill: none; stroke: var(--text-hartie-secundar); stroke-width: 1.8; stroke-dasharray: 9 8; }

/* ce e încă în construcție */
.harta .h-santier { fill: none; stroke: var(--text-hartie-secundar); stroke-width: 1.8; stroke-dasharray: 9 8; }

/* etichete */
.harta .h-et {
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 600;
  fill: var(--cerneala);
}
.harta .h-et--mare { font-size: 30px; font-weight: 700; letter-spacing: .04em; }
.harta .h-et--mic { font-size: 18px; font-weight: 500; fill: var(--text-hartie-secundar); }

/* data ultimei actualizări, la finalul documentelor */
.doc__data { margin-top: var(--s-2xl); padding-top: var(--s-md); border-top: 1px solid var(--linie-hartie); font-size: var(--t-corp); color: var(--text-hartie-secundar); }
.harta .h-legatura { stroke: var(--cerneala); stroke-width: 1.6; opacity: .6; }

.harta__legenda { max-width: 62ch; margin: var(--s-lg) auto 0; font-size: var(--t-corp); color: var(--text-hartie-secundar); text-align: center; }
