/* =========================================================
   Meditații de engleză
   Hârtie, cerneală și câteva piese de sticlă.
   ========================================================= */

:root {
  /* paletă: hârtie, cerneală, roșu de corectură, alamă */
  --paper:        #f3ebda;
  --paper-2:      #ebe0c9;
  --paper-3:      #dfd1b3;
  --ink:          #2a1f18;
  --ink-soft:     #5b4a3d;
  --oxblood:      #7c2a2a;
  --oxblood-deep: #5d1d1f;
  --brass:        #b5883a;
  --brass-text:   #7f5a18;
  --ivory:        #fffaf0;
  --hair:         rgb(42 31 24 / .16);

  --font: "Times New Roman", Times, "Liberation Serif", Tinos, "Noto Serif", serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.45, .5, 1);

  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1120px;

  /* granulație fină de hârtie */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .12 0 0 0 .4 -.12'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  font-size: clamp(17px, .5vw + 14px, 20px);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--grain);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.1; letter-spacing: -.012em; text-wrap: balance; }
p { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }

::selection { background: var(--oxblood); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }
.band :focus-visible { outline-color: #e3c07c; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: .6rem 1rem; border-radius: 999px;
  background: var(--ink); color: var(--ivory); text-decoration: none;
}
.skip:focus { top: 12px; }

[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* ---------- Text ---------- */
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-bottom: 1.3rem;
  font-size: .78rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--brass-text);
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: clamp(24px, 6vw, 56px); height: 1px; background: currentColor; opacity: .55;
}

.title { font-size: clamp(2rem, 4.6vw, 3.3rem); text-align: center; }
.lead {
  max-width: 34em; margin-inline: auto;
  font-size: 1.22rem; line-height: 1.55; color: var(--ink-soft); text-align: center;
}
/* ---------- Iconițe ---------- */
.ic { --ic: 2.4rem; display: inline-block; width: var(--ic); height: var(--ic); flex: none; color: var(--ink); }
.ic svg { width: 100%; height: 100%; overflow: visible; }
.ic__fill { fill: var(--brass); fill-opacity: .4; stroke: none; }
.ic__line {
  fill: none; stroke: currentColor; stroke-width: var(--sw, 1.5);
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Semnul (R scris cu pana) și numele ---------- */
.mark { --m: 46px; display: block; width: var(--m); height: var(--m); flex: none; }
.wordmark { font-style: italic; }
.wordmark b { font-weight: 400; color: var(--oxblood); }

/* =========================================================
   Sticla lichidă
   ========================================================= */
.glass {
  --g-tint: 255 249 238;
  --g-a: .40;
  --g-edge: 104 66 28;
  --sat: 1.45;
  position: relative;
  isolation: isolate;
  background: rgb(var(--g-tint) / var(--g-a));
  -webkit-backdrop-filter: blur(14px) saturate(var(--sat)) brightness(1.04);
          backdrop-filter: blur(14px) saturate(var(--sat)) brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .85),
    inset 0 0 0 1px rgb(255 255 255 / .30),
    inset 0 -12px 20px -14px rgb(var(--g-edge) / .30),
    0 0 0 1px rgb(var(--g-edge) / .16),
    0 1px 2px rgb(var(--g-edge) / .16),
    0 18px 34px -16px rgb(var(--g-edge) / .50);
}

/* muchia: lumină sus-stânga, reflex jos-dreapta */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg,
    rgb(255 255 255 / .95), rgb(255 255 255 / .12) 30%,
    rgb(255 255 255 / 0) 55%, rgb(255 255 255 / .32) 85%, rgb(255 255 255 / .8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* reflexia care urmărește cursorul */
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none; opacity: 0;
  transition: opacity .35s;
  background: radial-gradient(circle 130px at var(--mx, 50%) var(--my, 0%),
    rgb(255 255 255 / .5), rgb(255 255 255 / 0) 70%);
}
.glass:hover::after { opacity: 1; }

@media (prefers-reduced-transparency: reduce) {
  .glass { background: rgb(var(--g-tint) / .95); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .glass { --g-a: .86; }
}

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8rem 1.7rem;
  border: 0; border-radius: 999px;
  font: inherit; font-size: 1.05rem; letter-spacing: .02em;
  color: var(--ink); text-decoration: none; cursor: pointer;
  transition: transform .5s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px) scale(1.025); } }
.btn:active { transform: scale(.97); transition-duration: .12s; }
.btn .ic { --ic: 1.35em; --sw: 3; color: currentColor; }

.btn--solid { --g-tint: 124 42 42; --g-a: .84; --g-edge: 60 12 12; color: var(--ivory); text-shadow: 0 1px 0 rgb(0 0 0 / .25); }
.btn--solid .ic__fill { fill: #ffe9b8; fill-opacity: .0; }
.btn--dark  { --g-tint: 255 255 255; --g-a: .13; --g-edge: 0 0 0; color: var(--ivory); }
.btn--flat {
  background: var(--oxblood); color: var(--ivory);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 6px 14px -6px rgb(60 12 12 / .6);
}
.btn--sm { min-height: 42px; padding: .5rem 1.15rem; font-size: .95rem; }

/* ---------- Navigare ---------- */
.nav-wrap {
  position: fixed; z-index: 50; top: 16px; left: 0; right: 0;
  display: flex; justify-content: center;
  padding-inline: var(--gutter); pointer-events: none;
}
.nav {
  --g-a: .52; --lens-blur: 9px;
  pointer-events: auto; display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px;
}

.nav__pill {
  position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0;
  border-radius: 999px; opacity: 0; pointer-events: none;
  background: rgb(255 255 255 / .62);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(var(--g-edge) / .12), 0 3px 8px -2px rgb(var(--g-edge) / .35);
  transition: transform .55s var(--spring), width .55s var(--spring), height .55s var(--spring), opacity .3s;
}
.nav__pill.is-ready { opacity: 1; }

.nav__link {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  min-width: 6.4rem; padding: .62rem 1.1rem; border-radius: 999px;
  font-size: .98rem; letter-spacing: .02em; text-decoration: none;
  color: var(--ink-soft); transition: color .25s;
}
.nav__link .ic { display: none; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
/* cinci legături: pastila e mai lată, deci sub ~1240px legăturile se strâng puțin ca să nu atingă sigla */
@media (min-width: 761px) and (max-width: 1239px) {
  .nav__link { min-width: 5.3rem; padding-inline: .8rem; }
}

/* ---------- Sigla, sus în stânga (nu rămâne fixă: se derulează odată cu pagina) ---------- */
/* centrul vertical = centrul pastilei: 16px (top) + jumătate din înălțimea ei (padding 2×6px + 2×.62rem + linia de .98rem × 1.6) */
.brand {
  position: absolute; z-index: 40; top: calc(16px + (12px + 2.808rem) / 2); left: clamp(16px, 3vw, 44px);
  transform: translateY(-50%);
  display: flex; align-items: center; gap: .7rem;
  color: var(--ink); text-decoration: none;
}
.brand .wordmark { font-size: 1.6rem; line-height: 1; }
/* sub ~1240px numele ar atinge pastila de navigare: rămâne doar semnul */
@media (min-width: 761px) and (max-width: 1239px) {
  .brand .wordmark { display: none; }
}

/* ---------- Animații de intrare ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.rise { animation: rise .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }

.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Bandă de încheiere (Tarife, Locație, Despre) ---------- */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(4rem, 8vw, 6.5rem) var(--gutter);
  background: var(--oxblood-deep); color: var(--ivory); text-align: center;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to bottom,
    transparent 0 30px, rgb(255 250 240 / .08) 30px 31px,
    transparent 31px 45px, rgb(255 250 240 / .12) 45px 46px,
    transparent 46px 74px, rgb(255 250 240 / .2) 74px 75px,
    transparent 75px 87px, rgb(255 250 240 / .08) 87px 88px,
    transparent 88px 100%);
  background-size: 100% 150px;
}
.band .eyebrow { color: #e3c07c; }
.band .title { color: var(--ivory); }
.band .lead { color: rgb(255 250 240 / .8); margin-top: .9rem; }
.band .btn { margin-top: 2rem; }
.wrap + .band { margin-top: clamp(4.5rem, 9vw, 8rem); }

/* =========================================================
   Pagini interioare
   ========================================================= */
.page-head { padding: 8rem var(--gutter) 2.4rem; text-align: center; }
.page-head h1 { font-size: clamp(2.5rem, 9vw, 6rem); margin-bottom: 1.3rem; }

/* titlul "scris" pe liniatura de caligrafie: baza literelor pe linia roșie */
.staffed { position: relative; isolation: isolate; line-height: 1; }
.staffed::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; top: 0; height: 1.1em;
  background:
    linear-gradient(rgb(42 31 24 / .16), rgb(42 31 24 / .16)) 0 .1545em / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgb(181 136 58 / .85) 0 7px, transparent 7px 14px) 0 .3895em / 100% 1px no-repeat,
    linear-gradient(rgb(124 42 42 / .55), rgb(124 42 42 / .55)) 0 .8375em / 100% 1px no-repeat,
    linear-gradient(rgb(42 31 24 / .16), rgb(42 31 24 / .16)) 0 1.0545em / 100% 1px no-repeat;
}
.staffed::before {
  left: 50%; width: 100vw; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

/* ---------- Tarife ---------- */
.tiers {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 30px); margin: 3.2rem auto 0; max-width: 800px;
}
.tier { position: relative; isolation: isolate; display: grid; }
.tier__ghost {
  position: absolute; z-index: 0; left: 50%; top: 47%;
  transform: translate(-50%, -50%);
  font-size: clamp(10rem, 19vw, 15rem); line-height: 1; font-style: italic; white-space: nowrap;
  color: rgb(181 136 58 / .24); -webkit-text-stroke: 1.3px rgb(181 136 58 / .55);
  pointer-events: none; user-select: none;
  transition: transform .8s var(--ease);
}
@media (hover: hover) { .tier:hover .tier__ghost { transform: translate(-50%, -54%) scale(1.04); } }

.tier__card {
  --g-tint: 255 251 242; --g-a: .34; --sat: 1.15; --lens-blur: 5px;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2.2rem 1.6rem 1.9rem; border-radius: 30px;
  transition: transform .6s var(--spring);
}
@media (hover: hover) { .tier:hover .tier__card { transform: translateY(-5px); } }
.tier__icon { --ic: 3.6rem; color: var(--oxblood); margin-bottom: 1rem; }
.tier__kicker {
  display: grid; align-content: center; gap: .15rem; min-height: 2.9em;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-text);
}
.tier__kicker span:last-child { color: var(--ink-soft); }
.tier__name { margin: .35rem 0 .8rem; font-size: 2.15rem; font-style: italic; }
.tier__desc { font-size: 1.02rem; line-height: 1.5; color: var(--ink-soft); }
.tier__price { margin-top: auto; padding-top: 1.5rem; width: 100%; }
.tier__price::before { content: ""; display: block; width: 3rem; height: 1px; margin: 0 auto 1.1rem; background: var(--brass); }
.price { font-size: 3.5rem; line-height: 1; color: var(--oxblood); font-variant-numeric: lining-nums tabular-nums; }
.price__cur { margin-left: .3em; font-size: 1.1rem; color: var(--ink-soft); }
.price__unit { margin-top: .35rem; font-size: .9rem; color: var(--ink-soft); }
.price__packs {
  display: grid; gap: .2rem; margin-top: 1rem; padding-top: .9rem;
  border-top: 1px dotted var(--hair); font-size: .95rem; color: var(--ink-soft);
}
.price__packs li { display: flex; justify-content: space-between; gap: 1rem; }
.price__packs b { font-weight: 400; color: var(--ink); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }

.facts {
  --g-tint: 255 251 242; --g-a: .34; --sat: 1.15; --lens-blur: 8px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 3.2rem; padding: 1.6rem 1rem; border-radius: 30px;
}
.facts__item { display: grid; justify-items: center; align-content: start; gap: .55rem; padding-inline: 1.2rem; text-align: center; }
.facts__item + .facts__item { border-left: 1px solid var(--hair); }
.facts__item .ic { --ic: 2.5rem; color: var(--oxblood); }
.facts__item p { font-size: 1.02rem; }
.note { margin-top: 1.6rem; text-align: center; color: var(--ink-soft); font-style: italic; }

/* ---------- Locație ---------- */
.map {
  position: relative; overflow: hidden; border-radius: 34px;
  aspect-ratio: 5 / 2; background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.map__svg { width: 100%; height: 100%; }
.map__blocks rect { fill: var(--paper-3); fill-opacity: .85; }
.map__blocks .park { fill: url(#hatch); fill-opacity: 1; stroke: rgb(181 136 58 / .55); stroke-width: 1; }
.map__blocks .home { fill: rgb(124 42 42 / .14); fill-opacity: 1; stroke: rgb(124 42 42 / .55); stroke-width: 1.5; }
.map__names text { font-family: var(--font); font-style: italic; font-size: 13px; letter-spacing: .3em; fill: var(--brass-text); }
.map__compass circle { fill: none; stroke: var(--brass); stroke-width: 1.2; }
.map__compass path { fill: none; stroke: var(--brass-text); stroke-width: 1.2; stroke-linejoin: round; }
.map__compass .north { fill: var(--oxblood); stroke: var(--oxblood); }
.map__compass text { font-family: var(--font); font-size: 14px; fill: var(--brass-text); }
.map__pin-body { fill: var(--oxblood); stroke: var(--oxblood-deep); stroke-width: 1.2; }
.map__pin-eye { fill: var(--ivory); }
.map__ripple {
  fill: none; stroke: var(--oxblood); stroke-width: 1.6; opacity: 0;
  transform-box: fill-box; transform-origin: center;
  animation: ripple 3.2s var(--ease) infinite;
}
.map__ripple--2 { animation-delay: 1.6s; }
@keyframes ripple { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }

.map__card {
  --lens-blur: 6px;
  position: absolute; left: 50%; bottom: clamp(14px, 3vw, 30px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem .9rem .85rem 1.3rem; border-radius: 999px; white-space: nowrap;
}
.map__card .ic { --ic: 2.2rem; color: var(--oxblood); }
.map__addr { display: grid; line-height: 1.25; }
.map__addr strong { font-weight: 700; }
.map__addr span { font-size: .92rem; color: var(--ink-soft); }

.cols { display: grid; grid-template-columns: 1fr 1fr; margin-top: 4.5rem; }
.col { padding-inline: clamp(1rem, 4vw, 3rem); text-align: center; }
.col + .col { border-left: 1px solid var(--hair); }
.col .ic { --ic: 2.8rem; color: var(--oxblood); margin-bottom: .7rem; }
.col h2 { margin-bottom: .8rem; font-size: 1.8rem; }
.col p { color: var(--ink-soft); }
.col .small { margin-top: 1rem; font-size: .95rem; font-style: italic; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.2rem; }
.chip {
  --g-tint: 255 255 255; --g-a: .13; --g-edge: 0 0 0;
  --lens-blur: 2px;
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .8rem 1.5rem .8rem 1.1rem; border-radius: 999px;
  color: var(--ivory); text-decoration: none; font-size: 1.05rem;
  transition: transform .5s var(--spring);
}
@media (hover: hover) { a.chip:hover { transform: translateY(-2px) scale(1.025); } }
.chip .ic { --ic: 1.9rem; --sw: 1.9; color: var(--ivory); }
.chip .ic__fill { fill: #ffe9b8; fill-opacity: .3; }

/* ---------- Despre ---------- */
.about { display: grid; justify-items: center; }
.about__name { display: grid; justify-items: center; gap: .4rem; margin-bottom: 2rem; text-align: center; }
.about__title { font-size: clamp(2.2rem, 5.2vw, 4rem); font-style: italic; letter-spacing: -.015em; }

/* portretul, într-un cadru cu partea de sus rotunjită și un fir de alamă pe interior */
.portrait {
  position: relative; width: min(300px, 72vw); aspect-ratio: 3 / 4; margin: 0 0 3rem;
  border-radius: 999px 999px 22px 22px; overflow: hidden; background: var(--paper-2);
  box-shadow: 0 18px 40px -22px rgb(60 30 10 / .55), inset 0 0 0 1px var(--hair);
}
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait::after {
  content: ""; position: absolute; inset: 11px; border-radius: 999px 999px 12px 12px;
  border: 1px solid rgb(255 250 240 / .8); pointer-events: none;
}

.about__text { max-width: 36em; text-align: center; display: grid; gap: 1.1rem; }
.about__text p:first-child { font-size: 1.4rem; line-height: 1.5; font-style: italic; }
.about__text p:not(:first-child) { color: var(--ink-soft); font-size: 1.1rem; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4.5rem; }
.pillar { display: grid; justify-items: center; align-content: start; gap: .5rem; padding-inline: clamp(1rem, 3vw, 2.6rem); text-align: center; }
.pillar + .pillar { border-left: 1px solid var(--hair); }
.pillar .ic { --ic: 3rem; color: var(--oxblood); }
.pillar h2 { font-size: 1.55rem; }
.pillar p { font-size: 1.02rem; color: var(--ink-soft); }

/* ---------- Recenzii ---------- */
.rv-cta { display: flex; justify-content: center; margin-top: 1.7rem; }
.rv { display: grid; justify-items: center; padding-top: 1.5rem; }
.rv-note { margin: 1.2rem auto 0; max-width: 34em; text-align: center; font-style: italic; color: var(--ink-soft); }
.rv-note--err { color: var(--oxblood); }
.rv-needjs { margin-bottom: 1.4rem; }
html:not(.rv-ready) #rv-form, html:not(.rv-ready) #rv-thanks { display: none; }

/* stelele (iconița .ic cu data-icon="star"): goale în repaus, pline când sunt aprinse */
.rv-s { --ic: 1.4rem; color: var(--ink-soft); }
.rv-s .ic__fill { fill-opacity: .1; transition: fill-opacity .25s; }
.rv-s .ic__line { opacity: .8; transition: opacity .25s; }
.rv-s.is-on { color: var(--oxblood); }
.rv-s.is-on .ic__fill { fill-opacity: .55; }
.rv-s.is-on .ic__line { opacity: 1; }

.rv-summary { display: grid; justify-items: center; gap: .5rem; text-align: center; }
.rv-summary__n { font-size: clamp(3.4rem, 8vw, 5.2rem); font-style: italic; line-height: .95; color: var(--oxblood); font-variant-numeric: lining-nums; }
.rv-summary__stars { display: flex; gap: .2rem; }
.rv-summary__stars .rv-s { --ic: 1.9rem; }
.rv-summary__meta { margin: 0; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-text); }

.rv-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px);
  width: min(100%, 60rem); margin: 3rem auto 0; padding: 0; list-style: none;
}
/* o recenzie rămasă singură pe ultimul rând stă la mijloc */
.rv-list > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - clamp(8px, 1.1vw, 14px)); }
.rv-card {
  --g-tint: 255 251 242; --g-a: .34; --sat: 1.15; --lens-blur: 5px;
  display: grid; grid-template-rows: auto 1fr auto; gap: .8rem;
  padding: 1.6rem 1.7rem 1.4rem; border-radius: 28px;
}
.rv-card__stars { display: flex; gap: .1rem; }
.rv-card__stars .ic__line polygon:nth-child(2), .adm-item .ic__line polygon:nth-child(2) { display: none; }   /* la mărimea asta steaua mică din mijloc devine o pată */
.rv-card__text { margin: 0; font-size: 1.07rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.rv-card__by { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .15rem 1rem; margin: .2rem 0 0; color: var(--ink-soft); }
.rv-card__by strong { flex: 1 1 9rem; min-width: 0; font-weight: 400; font-style: italic; font-size: 1.12rem; color: var(--ink); overflow-wrap: anywhere; }
.rv-card__by time { flex: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-text); white-space: nowrap; }

.rv-empty { display: grid; justify-items: center; gap: .6rem; margin-top: 2.6rem; text-align: center; }
.rv-empty__gem { width: 10px; height: 10px; margin-bottom: .6rem; background: var(--brass); transform: rotate(45deg); }
.rv-empty__t { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-style: italic; }
.rv-empty__s { margin: 0; max-width: 28em; color: var(--ink-soft); }

.rv-formwrap { display: grid; justify-items: center; margin-top: clamp(4.5rem, 9vw, 7.5rem); }
.rv-formhead { display: grid; justify-items: center; gap: .9rem; margin-bottom: 2.2rem; text-align: center; }
.rv-formhead .eyebrow { margin-bottom: .2rem; }
.rv-form, .rv-thanks { width: min(100%, 40rem); }
.rv-form {
  --g-tint: 255 251 242; --g-a: .34; --sat: 1.15; --lens-blur: 8px;
  display: grid; gap: 1.5rem; padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: 32px;
}
.rv-field { display: grid; gap: .5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.rv-field > label, .rv-field > legend { padding: 0; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-text); text-wrap: balance; }
.rv-input {
  width: 100%; padding: .85rem 1.1rem; font: inherit; font-size: 1.08rem; color: var(--ink);
  background: rgb(255 250 240 / .74); border: 1px solid rgb(42 31 24 / .58); border-radius: 18px;
  box-shadow: inset 0 1px 2px rgb(42 31 24 / .06);
}
.rv-textarea { min-height: 9.5rem; border-radius: 22px; line-height: 1.5; resize: vertical; }
.rv-input[aria-invalid="true"] { border-color: var(--oxblood); box-shadow: 0 0 0 1px var(--oxblood); }
.rv-hint { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.rv-count { text-align: right; font-variant-numeric: tabular-nums; }
.rv-count.is-over { color: var(--oxblood); font-weight: 700; }
.rv-err { margin: 0; font-size: .96rem; font-style: italic; color: var(--oxblood); }

.rv-stars { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .3rem; }
.rv-star { position: relative; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rv-star input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rv-star .rv-s { --ic: 2.6rem; pointer-events: none; transition: transform .35s var(--spring); }
@media (hover: hover) { .rv-star:hover .rv-s { transform: scale(1.12); } }
.rv-star input:focus-visible + .rv-s { outline: 2px solid var(--oxblood); outline-offset: 3px; border-radius: 12px; }
.rv-readout { margin-left: .6rem; font-size: 1.02rem; font-style: italic; color: var(--ink-soft); }

.rv-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.rv-fine { margin: 0; font-size: .88rem; text-align: center; color: var(--ink-soft); }
.rv-submit { display: flex; justify-content: center; margin-top: .2rem; }
.rv-submit .btn.is-busy { opacity: .6; cursor: progress; }
.rv-status { margin: 0; text-align: center; font-style: italic; color: var(--ink-soft); }
.rv-status.is-err { color: var(--oxblood); }

.rv-thanks {
  --g-tint: 255 251 242; --g-a: .34; --sat: 1.15; --lens-blur: 8px;
  display: grid; justify-items: center; gap: .6rem; padding: 2.4rem 1.6rem; border-radius: 32px; text-align: center;
}
.rv-thanks .ic { --ic: 3rem; color: var(--oxblood); }
.rv-thanks h3 { font-size: 2rem; font-style: italic; }
.rv-thanks p { margin: 0; max-width: 26em; color: var(--ink-soft); }

@media (max-width: 760px) {
  .rv-list { grid-template-columns: 1fr; margin-top: 2.2rem; }
  .rv-list > li:last-child:nth-child(odd) { grid-column: auto; width: auto; }
  .rv-card { padding: 1.4rem 1.4rem 1.2rem; }
  .rv-star { width: 3rem; }
  .rv-readout { flex-basis: 100%; margin: .2rem 0 0; }
}
@media (max-width: 400px) {
  .rv-stars { display: grid; grid-template-columns: repeat(5, minmax(0, 3rem)); justify-content: start; column-gap: .3rem; }
  .rv-star { width: auto; }
  .rv-star .rv-s { --ic: 2.3rem; }
  .rv-readout { grid-column: 1 / -1; margin: .2rem 0 0; }
}

/* ---------- Panoul de aprobare (admin-recenzii.html) ---------- */
.adm { display: grid; justify-items: center; padding-bottom: clamp(3rem, 6vw, 5rem); }
.adm-panel { width: min(100%, 52rem); }
.adm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.4rem; }
.adm-summary { margin: 0; font-size: 1.15rem; font-style: italic; color: var(--ink-soft); }
.adm-bar__btns { display: flex; gap: .6rem; }
.adm-summary:focus { outline: none; }
.adm-title { font-size: clamp(2.2rem, 8vw, 4.2rem); }
.adm-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1rem; margin: 2.4rem 0 1.2rem; }
.adm-head .adm-h { margin: 0; }
.adm-count { font-size: 1rem; color: var(--ink-soft); }
.adm-note { margin-left: 0; text-align: left; }
.adm-more { display: flex; justify-content: center; margin-top: 1.2rem; }
.btn.is-danger { color: var(--oxblood); box-shadow: inset 0 0 0 1px var(--oxblood); }
.adm-h { font-size: 1.6rem; font-style: italic; }
.adm-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.adm-item__rate { margin: 0; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-text); }
.adm-item__rate strong { font-weight: 400; }
.adm-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }

/* ---------- Subsol ---------- */
.footer { padding: 3.2rem 0 2.6rem; border-top: 1px solid var(--hair); }
.footer__grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.footer__side { display: grid; gap: .1rem; font-size: .98rem; color: var(--ink-soft); }
.footer__side a { text-decoration: none; }
.footer__side a:hover { color: var(--oxblood); }
.footer__side--l { text-align: right; }
.footer__side--r { text-align: left; }
.footer__label { margin-bottom: .3rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-text); }
.footer__mid { display: grid; justify-items: center; gap: .6rem; text-align: center; font-size: .88rem; color: var(--ink-soft); }

/* =========================================================
   Ecrane mici
   ========================================================= */
@media (max-width: 980px) {
  .tier__ghost { font-size: clamp(9rem, 26vw, 14rem); }
}

/* subsolul în trei coloane nu încape sub ~960px (adresa ar fi strivită), deci se așază pe rând mai devreme */
@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__side--l, .footer__side--r { text-align: center; }
  .footer__mid { order: 1; }
}

@media (max-width: 760px) {
  body { padding-bottom: 6.4rem; }

  .brand {
    position: static; transform: none; gap: .65rem;
    padding: max(16px, env(safe-area-inset-top)) var(--gutter) 0;
  }
  .brand .mark { --m: 38px; }
  .brand .wordmark { font-size: 1.3rem; }

  /* bara devine un dock de sticlă în partea de jos */
  .nav-wrap { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .nav { width: min(100%, 420px); padding: 5px; }
  .nav__link {
    flex: 1 1 0; min-width: 0; flex-direction: column; gap: 1px;
    padding: .5rem .2rem .42rem; font-size: .8rem; letter-spacing: .03em;
  }
  .nav__link .ic { display: block; --ic: 1.8rem; --sw: 2; }

  html { scroll-padding-top: 1.5rem; scroll-padding-bottom: calc(7rem + env(safe-area-inset-bottom)); }
  .page-head { padding-top: 2.4rem; }
  .facts { grid-template-columns: 1fr; gap: 1.2rem; padding-block: 1.8rem; }
  .facts__item + .facts__item { border-left: 0; border-top: 1px solid var(--hair); padding-top: 1.2rem; }

  .map { aspect-ratio: 4 / 5; border-radius: 28px; }
  .map__card { flex-wrap: wrap; justify-content: center; border-radius: 28px; width: calc(100% - 28px); white-space: normal; text-align: center; }
  .cols, .pillars { grid-template-columns: 1fr; }
  .col + .col, .pillar + .pillar { border-left: 0; border-top: 1px solid var(--hair); margin-top: 2.4rem; padding-top: 2.4rem; }

}

@media (max-width: 560px) {
  .tiers { grid-template-columns: 1fr; }
  .eyebrow { font-size: .72rem; letter-spacing: .14em; gap: .7rem; }
  .eyebrow::before, .eyebrow::after { width: 18px; }
}

/* cardurile de tarife, pe lățimi medii: text mai strâns ca titlurile să stea pe aceeași linie */
@media (min-width: 561px) and (max-width: 760px) {
  .tier__card { padding: 2.2rem 1.1rem 1.9rem; }
  .tier__kicker { letter-spacing: .16em; }
  .tier__name { font-size: 1.8rem; }
}

/* ecrane foarte înguste (320-380px): adresa de email și numele întreg trebuie să încapă */
@media (max-width: 380px) {
  .nav-wrap { padding-inline: 10px; }
  .nav__link { font-size: .72rem; letter-spacing: 0; }
  .chip { max-width: 100%; padding: .7rem 1rem .7rem .85rem; gap: .55rem; font-size: .95rem; overflow-wrap: anywhere; }
  .chip .ic { --ic: 1.6rem; }
}
@media (max-width: 359px) {
  .map { aspect-ratio: 2 / 3; }
}

/* ---------- Culori forțate ---------- */
@media (forced-colors: active) {
  .nav__link[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -2px; text-decoration: underline; }
}

/* ---------- Mișcare redusă ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .rise { animation: none; }
}

/* =========================================================
   Acasă · Afișul
   O foaie tipărită: litere italice uriașe, foarte mult aer,
   linii subțiri de alamă și legende mici, cu spațiere largă.

   Un singur gând străbate pagina: CERNEALA URCĂ.
   - pe copertă, un singur cuvânt e dat cu cerneală roșie (vorbind.)
   - treptele A2 B1 B2 C1 se umplu pe rând, un sfert, jumătate, trei sferturi, tot
   - la sfârșit, foaia e plină: panoul de contact
   ========================================================= */

.hm--d {
  --hm-w: 1320px;                 /* lățimea maximă a coloanei de tipar */
  --hm-brass-line: rgb(181 136 58 / .6);
  --hm-ls: .26em;                 /* spațierea legendelor */
}

/* ---------- Legendă: o linie de alamă întreruptă de câteva cuvinte ---------- */
.hm--d .hm-cap {
  display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.4rem);
  width: 100%; margin: 0;
  font-size: .78rem; letter-spacing: var(--hm-ls); text-transform: uppercase; line-height: 1.5;
  color: var(--brass-text);
}
.hm--d .hm-cap::before,
.hm--d .hm-cap::after {
  content: ""; flex: 1 1 1.5rem; height: 1px; background: var(--hm-brass-line);
}
/* spațiul de după ultima literă (letter-spacing) e echilibrat în stânga */
.hm--d .hm-cap > span { flex: 0 1 auto; padding-left: var(--hm-ls); text-align: center; }

/* ---------- Foaia I: coperta ---------- */
.hm--d .hm-cover {
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 6.4rem var(--gutter) 2rem;
}
.hm--d .hm-cover > .hm-cap { width: min(100%, var(--hm-w)); margin-inline: auto; }
.hm--d .hm-cover__body {
  align-self: center;
  display: grid; justify-items: center; text-align: center;
  padding-block: clamp(2rem, 5vh, 4rem);
}

/* titlul: două rânduri pe desktop; al doilea, "vorbind.", stă între două linii de alamă
   care ajung exact până la marginile primului rând */
.hm--d .hm-title {
  display: grid; width: max-content; max-width: 100%;
  margin: 0 0 clamp(1.5rem, 3.4vw, 2.6rem);
  font-size: clamp(3.2rem, 9vw, 11rem);
  font-style: italic; font-weight: 400; line-height: .98; letter-spacing: -.024em;
  color: var(--ink); text-wrap: nowrap;
}
.hm--d .hm-title__top { white-space: nowrap; }
.hm--d .hm-title__end {
  display: flex; align-items: center; gap: .16em;
  color: var(--oxblood);
}
.hm--d .hm-title__end::before,
.hm--d .hm-title__end::after {
  content: ""; flex: 1 1 0; min-width: 0; height: 1px; margin-top: .12em;
  background: var(--brass);
}

/* grup care nu se rupe între rânduri (cifra rămâne lângă cuvântul ei) */
.hm--d .hm-nb { white-space: nowrap; }

.hm--d .hm-lead {
  max-width: 30em; margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.5; color: var(--ink-soft);
}
.hm--d .hm-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem;
  margin-top: clamp(1.4rem, 2.6vw, 2rem);
}

/* ---------- Capete de foaie (II, III) ---------- */
.hm--d .hm-levels,
.hm--d .hm-method {
  padding: clamp(4.5rem, 8vw, 7rem) var(--gutter) 0;
}
.hm--d .hm-head {
  width: min(100%, var(--hm-w)); margin-inline: auto;
  display: grid; justify-items: center; gap: clamp(1rem, 2vw, 1.5rem); text-align: center;
}
.hm--d .hm-h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem); font-style: italic; letter-spacing: -.02em;
}
.hm--d .hm-sub {
  max-width: 30em; margin: 0;
  font-size: clamp(1.08rem, 1.4vw, 1.24rem); line-height: 1.5; color: var(--ink-soft);
}

/* ---------- Foaia II: treptele ---------- */
.hm--d .hm-rungs {
  width: min(100%, var(--hm-w)); margin: clamp(2.4rem, 6vw, 5rem) auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hm--d .hm-rung + .hm-rung { border-left: 1px solid var(--hair); }

.hm--d .hm-rung__a {
  display: grid; justify-items: center; text-align: center; gap: .35rem;
  padding: .6rem .6rem 1.6rem;
  color: inherit; text-decoration: none; border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}

/* Litera uriașă: contur de cerneală, umplut de jos până la --lvl.
   Cutia are înălțimea 1em; linia de bază cade la .8375em, înălțimea majusculei e .662em
   (metrici Times), deci procentele de mai jos sunt măsurate pe litera însăși. */
.hm--d .hm-rung__n {
  --ink-h: calc(16.25% + var(--lvl, 1) * 66.2%);
  --ink-full: calc(16.25% + 1.05 * 66.2%);
  display: block; margin-bottom: -.06em;
  font-size: clamp(4.2rem, 14.4vw, 11.6rem);   /* plafon: coloana nu crește peste 1320px, literele nu mai au voie să se înghesuie */
  font-style: italic; line-height: 1; letter-spacing: -.03em;
  color: transparent; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .0085em var(--oxblood);
  background: linear-gradient(var(--oxblood), var(--oxblood)) 50% 100% / 100% var(--ink-h) no-repeat;
  -webkit-background-clip: text; background-clip: text;
  transition: background-size .9s var(--ease) calc(var(--i, 0) * 70ms + 100ms);
}
/* fără JS (clasa .js lipsește) literele rămân umplute la nivelul lor; selectorul începe tot cu .hm--d */
.hm--d:where(.js *) .hm-rung:not(.is-in) .hm-rung__n { background-size: 100% 0%; }

@media (hover: hover) {
  .hm--d .hm-rung__a:hover .hm-rung__n { background-size: 100% var(--ink-full); transition-delay: 0s; transition-duration: .6s; }
  .hm--d .hm-rung__a:hover .hm-rung__unit .ic { transform: translateX(4px); }
}
.hm--d .hm-rung__a:focus-visible .hm-rung__n { background-size: 100% var(--ink-full); transition-delay: 0s; transition-duration: .6s; }

.hm--d .hm-rung__exam {
  position: relative; padding-top: 1.1rem; margin-top: .5rem;
  font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-text);
}
.hm--d .hm-rung__exam::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 2.6rem; height: 1px;
  transform: translateX(-50%); background: var(--hm-brass-line);
}
.hm--d .hm-rung__price { display: grid; justify-items: center; gap: .1rem; margin-top: .3rem; }
.hm--d .hm-rung__price b {
  font-weight: 400; font-style: italic; font-size: 1.7rem; line-height: 1.15; color: var(--oxblood);
  font-variant-numeric: lining-nums;
}
.hm--d .hm-rung__unit { display: inline-flex; align-items: center; gap: .35em; font-size: .98rem; color: var(--ink-soft); }
.hm--d .hm-rung__unit .ic { --ic: 1.05em; --sw: 2.6; color: var(--oxblood); transition: transform .5s var(--spring); }

.hm--d .hm-foot {
  width: min(100%, var(--hm-w)); margin: clamp(1.8rem, 3.6vw, 3rem) auto 0;
  text-align: center; font-size: 1rem; font-style: italic; color: var(--ink-soft);
}

/* ---------- Foaia III: colofonul metodei ---------- */
.hm--d .hm-colophon {
  width: min(100%, 64rem); margin: clamp(2.2rem, 5vw, 4rem) auto 0;
}
.hm--d .hm-colophon li {
  display: grid; grid-template-columns: 1fr 3.4rem 1fr; align-items: stretch;
}
/* aerul stă pe celule, nu pe rând, ca axa din mijloc să curgă neîntreruptă de la un romb la altul */
.hm--d .hm-colophon__l,
.hm--d .hm-colophon p { align-self: center; padding-block: clamp(1.5rem, 2.8vw, 2.4rem); }
.hm--d .hm-colophon__l {
  justify-self: end; display: flex; align-items: baseline; gap: 1.1rem; text-align: right;
}
.hm--d .hm-no {
  font-size: 1.05rem; font-style: italic; letter-spacing: .12em; color: var(--brass-text);
}
.hm--d .hm-colophon h3 {
  font-size: clamp(2rem, 3.7vw, 3.1rem); font-style: italic; letter-spacing: -.015em;
}
.hm--d .hm-colophon p {
  justify-self: start; max-width: 22em; margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; color: var(--ink-soft);
}
/* axa din mijloc: o linie de alamă cu câte un romb la fiecare rând */
.hm--d .hm-colophon__mid { position: relative; align-self: stretch; }
.hm--d .hm-colophon__mid::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  transform: translateX(-50%); background: var(--hm-brass-line);
}
.hm--d .hm-colophon__mid::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  transform: translate(-50%, -50%) rotate(45deg); background: var(--brass);
}
.hm--d .hm-colophon li:first-child .hm-colophon__mid::before { top: 50%; }
.hm--d .hm-colophon li:last-child .hm-colophon__mid::before { bottom: 50%; }

/* ---------- Foaia IV: panoul de încheiere ---------- */
.hm--d .hm-close {
  padding: clamp(4.5rem, 8vw, 7rem) var(--gutter) clamp(2rem, 4vw, 3.5rem);
}
.hm--d .hm-panel {
  position: relative; isolation: isolate;
  width: min(100%, var(--hm-w)); margin-inline: auto;
  display: grid; justify-items: center; text-align: center;
  padding: clamp(3.4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem);
  background: var(--oxblood); color: var(--ivory);
}
/* cadrul fin din interior, ca la un tipar de colecție */
.hm--d .hm-panel::before {
  content: ""; position: absolute; inset: clamp(8px, 1.3vw, 16px); z-index: -1;
  border: 1px solid rgb(227 192 124 / .5); pointer-events: none;
}
.hm--d .hm-panel .hm-cap { width: min(100%, 34rem); color: #e3c07c; }
.hm--d .hm-panel .hm-cap::before,
.hm--d .hm-panel .hm-cap::after { background: rgb(227 192 124 / .6); }
.hm--d .hm-panel__t {
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
  font-size: clamp(2.3rem, 6.4vw, 6.2rem); font-style: italic; line-height: 1.02; letter-spacing: -.022em;
  color: var(--ivory);
}
.hm--d .hm-panel__t em { color: #e3c07c; }
.hm--d .hm-panel__lead {
  max-width: 30em; margin: clamp(1.1rem, 2vw, 1.6rem) 0 0;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.5; color: rgb(255 250 240 / .84);
}
.hm--d .hm-panel .btn { margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.hm--d .hm-panel :focus-visible { outline-color: #e3c07c; }

/* =========================================================
   Lățimi mici
   ========================================================= */

/* sub 900px titlul se așază pe trei rânduri, mai mare; pe ecrane late, dar scunde (tabletă pe orizontală,
   fereastră îngustă) rămâne pe două rânduri, ca butoanele să nu coboare sub marginea de jos */
@media (max-width: 599px), (max-width: 899px) and (min-height: 801px) {
  .hm--d .hm-title { font-size: clamp(3rem, 23vw, 9.5rem); line-height: .94; }
  .hm--d .hm-title__top { display: grid; white-space: normal; }
  .hm--d .hm-title__w { display: block; }
  .hm--d .hm-title__end::before,
  .hm--d .hm-title__end::after { display: none; }
  .hm--d .hm-title__end { justify-content: center; }
}

@media (max-width: 760px) {
  .hm--d .hm-cover {
    min-height: calc(100svh - 6.4rem - 4.2rem);
    padding: 1.4rem var(--gutter) 1.4rem;
  }
  .hm--d .hm-cover__body { padding-block: 1.6rem 1.4rem; }
  .hm--d .hm-levels { padding-top: 6rem; }
  .hm--d .hm-actions { flex-direction: column; align-items: stretch; width: min(100%, 20rem); }

  /* treptele: patru casete 2×2, crucea de linii fine le ține împreună */
  .hm--d .hm-rungs { grid-template-columns: 1fr 1fr; }
  .hm--d .hm-rung + .hm-rung { border-left: 0; }
  .hm--d .hm-rung:nth-child(even) { border-left: 1px solid var(--hair); }
  .hm--d .hm-rung:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .hm--d .hm-rung__n { font-size: clamp(4rem, 22vw, 9rem); }
  .hm--d .hm-rung__a { padding: 1.4rem .4rem 1.5rem; }
  .hm--d .hm-rung__exam { font-size: .72rem; letter-spacing: .18em; }
  .hm--d .hm-rung__price b { font-size: 1.45rem; }
  .hm--d .hm-rung__unit { font-size: .92rem; }
}

@media (max-width: 700px) {
  /* colofonul se așază pe verticală, cu axa de rombi între rânduri */
  .hm--d .hm-colophon li {
    grid-template-columns: 1fr; justify-items: center; text-align: center;
  }
  .hm--d .hm-colophon__l {
    justify-self: center; flex-direction: column; align-items: center; gap: .15rem; text-align: center;
    padding-block: 1.4rem 0;
  }
  .hm--d .hm-colophon p { order: 2; justify-self: center; padding-block: 0; margin-top: .6rem; max-width: 20em; }
  .hm--d .hm-colophon__mid { order: 3; width: 1px; height: 3.6rem; margin-top: 1.4rem; }
  .hm--d .hm-colophon__mid::before { left: 0; transform: none; top: 0; bottom: 50%; }
  .hm--d .hm-colophon__mid::after { left: 0; top: auto; bottom: 0; transform: translate(-50%, 50%) rotate(45deg); }
  .hm--d .hm-colophon li:first-child .hm-colophon__mid::before { top: 0; }
  .hm--d .hm-colophon li:last-child .hm-colophon__mid { display: none; }
  .hm--d .hm-colophon li:last-child p { margin-bottom: 0; }
}

@media (max-width: 560px) {
  .hm--d { --hm-ls: .16em; }
  .hm--d .hm-cap { font-size: .7rem; }
}

@media (max-width: 380px) {
  .hm--d .hm-rung__exam { letter-spacing: .12em; }
  .hm--d .hm-panel__t { font-size: 2.15rem; }
}

/* 320px: legenda de sus încape pe un singur rând */
@media (max-width: 340px) {
  .hm--d { --hm-ls: .08em; }
  .hm--d .hm-cap { font-size: .66rem; gap: .6rem; }
}

/* telefoane scunde (iPhone SE și alte ecrane de ~640-700px): ambele butoane rămân deasupra dockului */
@media (max-width: 599px) and (max-height: 700px) {
  .hm--d .hm-cover { padding-top: .7rem; }
  .hm--d .hm-cover__body { padding-block: 1rem .8rem; }
  .hm--d .hm-cap--foot { display: none; }
  .hm--d .hm-title { font-size: clamp(3rem, min(23vw, 12.5svh), 9.5rem); margin-bottom: 1.1rem; }
  .hm--d .hm-actions { margin-top: 1rem; gap: .6rem; }
  .hm--d .hm-actions .btn { min-height: 48px; }
}

/* contrast forțat: literele conturate nu au voie să dispară */
@media (forced-colors: active) {
  .hm--d .hm-rung__n {
    color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; -webkit-text-stroke: 0;
  }
}
