/* Pagina manualului herniei de disc · „Cartea” (23 nov. 2026)
   Se încarcă după hub-hernie-v3.css: de acolo vin tokenii paginii (--hh-*), eticheta (.hh-k), titlurile, formularul, cartea (.hh-book*),
   autorii, întrebările, scena de final și sursele. Aici doar ce e al paginii manualului; clasele noi încep cu .mh-.
   Direcția, verificarea și critica: docs/design/hub-hernie-v3-2026-11-23/JURNAL.md */

/* ── 0. Tokenii paginii ───────────────────────────────────────────────────────────────────── */
:root {
  --mh-book-w: clamp(280px, 27vw, 430px);     /* cartea fixată din dreapta (≥ 1024 px) */
  --mh-book-pad: clamp(2rem, 1rem + 3vw, 4rem); /* cât coboară cartea față de începutul coloanei */
  --mh-line: color-mix(in srgb, var(--color-foreground) 13%, transparent);   /* firele de pe hârtia cărții */
  --mh-turn: 640ms;                            /* întoarcerea unei pagini (mișcare rară, de prezentare) */
  /* easeInOutCubic (easings.net): pagina se ridică imediat (cu 0,77/0/0,175/1 stătea ~250 ms pe loc după derulare), trece repede prin mijloc,
     dispare pe muchie la ~70% din durată */
  --mh-ease-turn: cubic-bezier(0.65, 0, 0.35, 1);
  --mh-back: 620ms;                            /* pagina care revine, la derularea în sus */
  --mh-shadow: 0 0 0 1px rgb(60 45 20 / .06), 0 2px 4px rgb(60 45 20 / .06), 0 18px 36px -18px rgb(60 45 20 / .34);
}
.dark { --mh-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 2px 4px rgb(0 0 0 / .3), 0 22px 40px -18px rgb(0 0 0 / .6); }

/* ── 1. Coperta + cuprinsul: hârtia cărții; pe desktop cartea stă în dreapta cât citești cuprinsul ── */
.mh-top { position: relative; padding-bottom: var(--hh-sec-y); background: var(--hh-man-bg); scroll-margin-top: var(--hh-hdr); }
.mh-grid { display: grid; column-gap: clamp(2rem, 0rem + 5vw, 7rem); }
.mh-bookcol { display: none; }
@media (min-width: 1024px) {
  .mh-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .mh-hero { grid-column: 1; grid-row: 1; }
  .mh-toc { grid-column: 1; grid-row: 2; }
  .mh-bookcol { display: block; grid-column: 2; grid-row: 1 / span 2; }
}
.mh-hero { padding-top: clamp(1.25rem, .75rem + 1.5vw, 2.25rem); }
.mh-k { margin-top: clamp(1.75rem, .5rem + 2.5vw, 3.25rem); }   /* sub 390 px se rupe în „Gratuit · PDF,” / „62 de pagini” (spații fixe în sursă; „balance” rupea după „·”) */
.mh-h1 { margin-top: var(--space-4); font: 500 clamp(2.625rem, 1.55rem + 3.9vw, 4.875rem)/1.02 var(--font-display); letter-spacing: var(--v8-track-display); text-wrap: balance; }
.mh-sub { margin-top: var(--space-4); font: 500 clamp(1.25rem, 1.05rem + .75vw, 1.75rem)/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--color-eyebrow); }
.mh-by { display: flex; align-items: center; gap: 14px; max-width: 34rem; margin-top: var(--space-6); font-size: 1rem; line-height: 1.45; color: var(--color-muted-foreground); }
.mh-by-av { display: flex; flex: none; }
.mh-by-av img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--hh-man-bg); }
.mh-by-av img + img { margin-left: -10px; }
.mh-lead { max-width: 38rem; margin-top: var(--space-6); font-size: var(--text-lead); line-height: 1.55; text-wrap: pretty; }
.mh-hero .hh-form, .mh-hero .hh-form-ok { margin-top: var(--space-8); }
.mh-hero .hh-form-ok { background: var(--color-card); }
/* pe ecranele late, cele trei câmpuri pe un rând: butonul intră în primul ecran (1440 × 900) */
@media (min-width: 1280px) {
  .mh-hero .hh-form { max-width: 44rem; }
  .mh-hero .hh-form-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mh-hero .hh-f-full:not(.hh-f-chk) { grid-column: auto; }
}

/* cartea din primul ecran, pe telefon și tabletă (pe desktop e cea fixată din dreapta) */
.mh-hero-book { display: grid; justify-items: center; margin: var(--space-6) 0 var(--space-2); }
.mh-book-m { width: min(232px, 56vw); }
@media (min-width: 1024px) { .mh-hero-book { display: none; } }
/* la derulare, cartea se întoarce puțin spre tine (doar unde există animațiile legate de derulare) */
@supports (animation-timeline: view()) {
  html.mk-js:not(.rm):not(.mk-shot) .mh-book-m .hh-book-obj { animation: mh-tilt linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
  @keyframes mh-tilt { from { transform: rotateY(-18deg) rotateX(4deg); } to { transform: rotateY(-32deg) rotateX(9deg) translateY(-8px); } }
}

/* cartea fixată: coperta deasupra, sub ea paginile de despărțire ale celor 4 părți; o pagină se întoarce pe cotor */
/* lipită, cartea stă cu mijlocul în mijlocul ecranului de sub antet: înălțimea ei e 1,415 × lățimea (coperta 1600 × 2264), plus spațiul de sus și cei 10 px ai umbrei */
.mh-sticky { position: sticky; top: max(calc(var(--hh-hdr) + 1rem), calc(50vh + var(--hh-hdr) / 2 - var(--mh-book-w) * .7075 - var(--mh-book-pad) - 10px)); padding-top: var(--mh-book-pad); }
.mh-flip { position: relative; width: var(--mh-book-w); margin-inline: auto; padding-block: 10px 44px; perspective: 1800px; }
.mh-flip-obj { position: relative; aspect-ratio: 1600 / 2264; transform-style: preserve-3d; transform: rotateY(-16deg) rotateX(4deg); transition: transform 900ms var(--hh-ease-out); }
@media (hover: hover) and (pointer: fine) { .mh-flip:hover .mh-flip-obj { transform: rotateY(-8deg) rotateX(2deg); } }
.mh-pg { position: absolute; inset: 0; transform-origin: 0 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; pointer-events: none;
  transform: translateZ(calc(var(--k) * -1px)); transition: transform var(--mh-back) var(--hh-ease-out); }
.mh-pg img { display: block; width: 100%; height: 100%; border-radius: 1px 4px 4px 1px; }
/* lumina: fața care se întoarce dinspre tine se întunecă (≈ 30% negru la 90°: ținta .33 e la −100°) */
.mh-pg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0c1a1c; opacity: 0; transition: opacity var(--mh-back) var(--hh-ease-out); }
/* întoarcerea: încet la ridicare, repede la mijloc; fața dispare pe muchie (≈ −70°), pagina de dedesubt rămâne */
.mh-pg.is-turned { transform: translateZ(calc(var(--k) * -1px)) rotateY(-100deg); transition: transform var(--mh-turn) var(--mh-ease-turn) var(--mh-d, 0ms); }
.mh-pg.is-turned::after { opacity: .33; transition: opacity var(--mh-turn) var(--mh-ease-turn) var(--mh-d, 0ms); }
.mh-flip .hh-book-spine { transform: translateZ(1px); }
html.mk-shot .mh-pg, html.mk-shot .mh-pg::after, html.mk-shot .mh-flip-obj { transition: none !important; }
html.rm .mh-pg { transition: opacity 200ms ease; }
html.rm .mh-pg.is-turned { transform: translateZ(calc(var(--k) * -1px)); opacity: 0; transition: opacity 200ms ease; }
html.rm .mh-pg::after { display: none; }

/* ── 2. Cuprinsul ───────────────────────────────────────────────────────────────────────── */
.mh-toc { padding-top: clamp(4.5rem, 3rem + 5vw, 8rem); scroll-margin-top: var(--hh-hdr); }
.mh-toc .hh-head { margin-bottom: var(--space-8); }
/* de unde începi: cele trei casete din manual (p. 3); apăsarea marchează capitolele */
.mh-doors { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--mh-line); }
.mh-door { all: unset; box-sizing: border-box; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k a" "t a";
  gap: 4px 20px; width: 100%; padding: 18px 0 20px; border-bottom: 1px solid var(--mh-line); cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (min-width: 640px) { .mh-door { grid-template-columns: 11.5rem minmax(0, 1fr) auto; grid-template-areas: "k t a"; align-items: start; } }
.mh-door::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--hairline-gold); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 450ms var(--hh-ease-out); }
.mh-door[aria-pressed="true"]::before { transform: scaleX(1); }
.mh-door-k { grid-area: k; font: 500 1.1875rem/1.35 var(--font-display); letter-spacing: -0.005em; transition: color 150ms ease; }
.mh-door-t { grid-area: t; line-height: 1.55; color: var(--color-muted-foreground); text-wrap: pretty; }
.mh-door-a { grid-area: a; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--mh-line); color: var(--color-primary);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--hh-ease-out); }
.mh-door-a svg { transition: transform 300ms var(--hh-ease-out); }
.mh-door[aria-pressed="true"] .mh-door-a { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-foreground); }
.mh-door:active .mh-door-a { transform: scale(.96); }
.mh-door:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 4px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) {
  .mh-door:hover .mh-door-k { color: var(--color-primary); }
  .mh-door:hover .mh-door-a { border-color: var(--color-primary); }
  .mh-door:hover .mh-door-a svg { transform: translateY(2px); }
}
.mh-legend { position: relative; margin-top: var(--space-5); padding-left: 26px; font-size: 1rem; line-height: 1.5; color: var(--color-muted-foreground); }
.mh-legend svg { position: absolute; left: 0; top: .2em; color: var(--color-primary); }
.mh-legend a { color: inherit; text-underline-offset: 3px; }

/* părțile: eticheta și titlul la marginea textului; pe telefon și tabletă, pagina de despărțire stă lângă descriere (textul o ocolește);
   pe desktop o arată cartea din dreapta */
.mh-parts { display: grid; gap: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.mh-part { scroll-margin-top: calc(var(--hh-hdr) + 1.5rem); }
.mh-part-k { font: 500 var(--text-xs)/1.3 var(--font-display); letter-spacing: var(--v8-track-label); text-transform: uppercase; color: var(--color-eyebrow); }
.mh-part-t { margin-top: 8px; font: 500 clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem)/1.1 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
.mh-part-b { display: flow-root; max-width: 40rem; margin-top: var(--space-4); }
.mh-part-i { float: left; width: 64px; height: auto; aspect-ratio: 600 / 849; margin: 5px 16px 6px 0; border-radius: 1px 3px 3px 1px; box-shadow: var(--mh-shadow); }
@media (min-width: 1024px) { .mh-part-i { display: none; } }
.mh-part-d { font-size: 1.0625rem; line-height: 1.6; color: var(--color-muted-foreground); text-wrap: pretty; }
/* rândurile: numărul, titlul și pagina, ca în cuprinsul unei cărți. Punctele de ghidaj stau sub ultimul rând al titlului, aliniate la dreapta
   (aceleași coloane de puncte pe toate rândurile); titlul le acoperă cu hârtia lui, deci se văd doar de la ultimul cuvânt până la pagină */
.mh-cs { margin: var(--space-6) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--mh-line); }
.mh-part-end .mh-cs { margin-top: var(--space-4); }
.mh-c { --mh-row: var(--hh-man-bg); --mh-mark: color-mix(in srgb, var(--color-brand-gold) 42%, var(--hh-man-bg));
  position: relative; isolation: isolate; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 2ch; column-gap: .5rem; align-items: start;
  padding-block: 11px; border-bottom: 1px solid var(--mh-line); font-size: 1.0625rem; line-height: 1.45; }
.mh-c-n { font-variant-numeric: tabular-nums; color: var(--color-eyebrow); transition: color 200ms ease calc(var(--mi, 0) * 35ms); }
.mh-c-t { position: relative; z-index: 0; min-width: 0; text-wrap: pretty; }
.mh-c-x { padding-right: .5em; background: var(--mh-row); -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-color 260ms var(--hh-ease-out) calc(var(--mi, 0) * 35ms); }
.mh-c-d { position: absolute; z-index: -1; left: 0; right: -.3em; bottom: 0; height: 1.45em; overflow: hidden; white-space: nowrap; direction: rtl; letter-spacing: .3em;
  color: color-mix(in srgb, var(--color-muted-foreground) 60%, transparent); user-select: none; pointer-events: none; }
.mh-c-d::before { content: "..................................................................................................."; }
.mh-c-p { align-self: end; text-align: right; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }
/* rubricile de la final n-au număr: titlul pornește din aceeași coloană cu titlurile capitolelor */
.mh-c-r { grid-template-columns: minmax(0, 1fr) 2ch; padding-left: 2.75rem; }
/* capitolele care au o versiune scurtă pe pagina herniei */
.mh-c-t a { color: inherit; text-decoration: none; transition: color 150ms ease; }
.mh-c-go { display: inline-block; margin-left: 7px; vertical-align: -2px; color: var(--color-primary); transition: transform 200ms var(--hh-ease-out); }
.mh-nw { white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .mh-c-t a:hover { color: var(--color-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
  .mh-c-t a:hover .mh-c-go { transform: translateX(3px); }
}
.mh-c-t a:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 3px; border-radius: 3px; }
/* marcajul (caseta apăsată): o bandă aurie în spatele rândului; rândurile vin la 35 ms unul după altul.
   Hârtia de sub titlu își schimbă culoarea odată cu banda (aceeași durată, aceeași întârziere), ca să nu rămână un petic */
.mh-c::before { content: ""; position: absolute; z-index: -1; inset: 3px -12px; border-radius: 10px; background: var(--mh-mark);
  opacity: 0; transform: scaleX(.97); transform-origin: 0 50%; transition: opacity 260ms var(--hh-ease-out), transform 380ms var(--hh-ease-out); transition-delay: calc(var(--mi, 0) * 35ms); }
.mh-c.is-mark { --mh-row: var(--mh-mark); }
.mh-c.is-mark::before { opacity: 1; transform: none; }
.mh-c::before { box-shadow: inset 3px 0 0 var(--color-brand-gold); }
.mh-c.is-mark .mh-c-n { color: var(--color-foreground); }
html.rm .mh-c::before { transform: none; transition: opacity 200ms ease; }
html.rm .mh-c-x { transition: background-color 200ms ease; }
html.rm .mh-c-n { transition-delay: 0ms; }
/* pe hârtia închisă, auriul transparent iese măsliniu: rândul marcat se luminează puțin și primește un fir auriu în stânga (ca firul casetei apăsate) */
.dark .mh-c { --mh-mark: color-mix(in srgb, #fff 7%, var(--hh-man-bg)); }
.dark .mh-c::before { border-radius: 8px; box-shadow: inset 3px 0 0 var(--color-brand-gold); }

/* ── 3. De la autor: scrisoarea pe o foaie ─────────────────────────────────────────────── */
.mh-letter-sec { background: var(--color-background); }
.mh-sheet { position: relative; max-width: 50rem; margin-inline: auto; padding: clamp(2.25rem, 1rem + 4.5vw, 5.5rem) clamp(1.5rem, .4rem + 5vw, 6rem);
  border-radius: 4px; background: var(--color-card);
  box-shadow: 0 0 0 1px rgb(60 45 20 / .05), 0 1px 2px rgb(60 45 20 / .05), 0 12px 28px -12px rgb(60 45 20 / .16), 0 40px 80px -40px rgb(60 45 20 / .22); }
.dark .mh-sheet { box-shadow: 0 0 0 1px rgb(255 255 255 / .05), 0 30px 60px -30px rgb(0 0 0 / .6); }
@media (max-width: 559px) { .mh-sheet { margin-inline: calc(var(--gutter) * -1); border-radius: 0; } }
.mh-sheet > .hh-k { margin-bottom: var(--space-4); }
.mh-letter { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.7; text-wrap: pretty; }
.mh-letter p + p { margin-top: 1em; }
.mh-dear, .mh-close { font-family: var(--font-display); font-weight: 500; }
/* fraza-cheie: medicul o subliniază o dată, când ajungi la ea (de la stânga la dreapta, rând după rând) */
.mh-hl { padding: 0 .06em; color: inherit; background: linear-gradient(transparent 50%, color-mix(in srgb, var(--color-brand-gold) 62%, transparent) 50%, color-mix(in srgb, var(--color-brand-gold) 62%, transparent) 96%, transparent 96%) no-repeat 0 0 / 0% 100%; border-radius: 2px;
  transition: background-size 1300ms var(--hh-ease-out) 200ms; }
.mh-hl.is-in, html.rm .mh-hl, html.mk-shot .mh-hl, html:not(.mk-js) .mh-hl { background-size: 100% 100%; }
html.rm .mh-hl { transition: none; }
.mh-sign { display: flex; align-items: center; gap: 16px; margin-top: var(--space-8); }
.mh-sign img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.mh-sign p { display: grid; gap: 3px; }
.mh-sign b { font: 500 1.1875rem/1.3 var(--font-display); }
.mh-sign span { font-size: .9375rem; line-height: 1.45; color: var(--color-muted-foreground); text-wrap: pretty; }

/* ── 4. Câteva pagini din interior ─────────────────────────────────────────────────────── */
.mh-pages { display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 320px); gap: 16px; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 20px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.mh-pages::-webkit-scrollbar { display: none; }
.mh-pages > li { scroll-snap-align: start; }
@media (min-width: 900px) { .mh-pages { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, .5rem + 2.5vw, 3rem); margin: 0; padding: 0; overflow: visible; } }
.mh-pv { margin: 0; }
.mh-pv-b { all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; border-radius: 3px; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.mh-pv-b img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: var(--mh-shadow); transition: transform 300ms var(--hh-ease-out), box-shadow 300ms var(--hh-ease-out); }
/* lupa din colț: arată că pagina se deschide mare (și pe telefon, unde nu există cursor) */
.mh-pv-b::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 6px 16px -6px rgb(0 40 45 / .5); transition: transform 300ms var(--hh-ease-out); }
.dark .mh-pv-b::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306262a' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E"); }
@media (hover: hover) and (pointer: fine) {
  .mh-pv-b:hover img { transform: translateY(-6px); box-shadow: 0 0 0 1px rgb(60 45 20 / .06), 0 4px 8px rgb(60 45 20 / .06), 0 30px 50px -22px rgb(60 45 20 / .42); }
  .mh-pv-b:hover::after { transform: translateY(-6px) scale(1.06); }
}
.mh-pv-b:active img { transform: scale(.985); }
.mh-pv-b:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 6px; }
.mh-pv figcaption { margin-top: 18px; font: 500 1.125rem/1.35 var(--font-display); letter-spacing: -0.005em; text-wrap: balance; }
.mh-pv-n { display: block; margin-bottom: 6px; font: 500 var(--text-xs)/1.3 var(--font-display); letter-spacing: var(--v8-track-label); text-transform: uppercase; color: var(--color-eyebrow); }

/* pagina mare: dialogul. Fundalul se întunecă, pagina vine de la 96%; închiderea e mai scurtă */
.mh-zoom { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff;
  overflow: auto; overscroll-behavior: contain; opacity: 0; transition: opacity 160ms var(--hh-ease-out), overlay 160ms allow-discrete, display 160ms allow-discrete; }
.mh-zoom[open] { display: block; opacity: 1; transition-duration: 220ms; }
.mh-zoom::backdrop { background: rgb(9 18 20 / .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity 160ms var(--hh-ease-out), overlay 160ms allow-discrete, display 160ms allow-discrete; }
.mh-zoom[open]::backdrop { opacity: 1; transition-duration: 220ms; }
@starting-style { .mh-zoom[open], .mh-zoom[open]::backdrop { opacity: 0; } }
html:has(.mh-zoom[open]) { overflow: hidden; }
.mh-zoom-in { display: grid; justify-items: center; align-content: center; gap: 14px; min-height: 100%; padding: 72px 16px 28px; }
.mh-zoom-f { display: grid; justify-items: center; gap: 14px; margin: 0; }
.mh-zoom-f img { display: block; width: auto; height: auto; max-width: min(100%, 1040px); border-radius: 4px; box-shadow: 0 40px 90px -30px rgb(0 0 0 / .75);
  transition: transform 240ms var(--hh-ease-out); }
@starting-style { .mh-zoom[open] .mh-zoom-f img { transform: scale(.96); } }
html.rm .mh-zoom-f img { transition: none; }
@media (max-width: 559px) { .mh-zoom-f img { width: 100%; max-height: none; } .mh-zoom-in { padding-top: 76px; } }
.mh-zoom-f figcaption { max-width: 40rem; font: 500 1.0625rem/1.4 var(--font-display); color: rgb(255 255 255 / .9); text-align: center; text-wrap: balance; }
.mh-zoom-bar { display: flex; align-items: center; gap: 10px; }
.mh-zoom-btn, .mh-zoom-x { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer;
  transition: background-color 150ms ease, transform 160ms var(--hh-ease-out); -webkit-tap-highlight-color: transparent; }
.mh-zoom-x { position: fixed; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
.mh-zoom-btn:active, .mh-zoom-x:active { transform: scale(.94); }
.mh-zoom-btn:focus-visible, .mh-zoom-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .mh-zoom-btn:hover, .mh-zoom-x:hover { background: rgb(255 255 255 / .22); } }
.mh-zoom-c { min-width: 4.5rem; text-align: center; font: 500 .9375rem/1 var(--font-display); font-variant-numeric: tabular-nums; color: rgb(255 255 255 / .8); }

/* ── 5. Întrebările ─────────────────────────────────────────────────────────────────────── */
.mh-faq .hh-faq-l { max-width: 56rem; }

/* ── 6. Coperta din spate: fraza mare, textul copertei, programarea; manualul, a doua oară ── */
.mh-end .hh-k { margin-bottom: var(--space-5); }
.mh-end-q { font: 500 clamp(2.5rem, 1.35rem + 3.9vw, 4.75rem)/1.03 var(--font-display); letter-spacing: var(--v8-track-display); color: var(--v8-white); text-wrap: balance; }
.mh-end-q span { color: var(--color-brand-gold); }
.mh-end .hh-end-l { margin-top: var(--space-6); max-width: 34rem; }
.mh-end-k { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); font: 500 1.125rem/1.3 var(--font-display); color: var(--v8-white); }
.mh-end .hh-tels { margin: var(--space-4) 0 var(--space-6); }
@media (min-width: 1024px) { .mh-end .hh-end-in { align-items: center; } }

/* ── 7. Sursele + „Despre cifre” ────────────────────────────────────────────────────────── */
.mh-about { max-width: 56rem; margin-top: var(--space-8); padding: 20px 24px 22px; border-radius: 16px; background: var(--color-muted); }
.mh-about-h { margin-bottom: 8px; font: 500 var(--text-xs)/1.3 var(--font-display); letter-spacing: var(--v8-track-label); text-transform: uppercase; color: var(--color-eyebrow); }
.mh-about p { font-size: .9375rem; line-height: 1.6; color: var(--color-muted-foreground); text-wrap: pretty; }

/* ── 8. Mișcarea redusă: nimic nu se întoarce, nu se înclină, nu alunecă ─────────────────── */
/* pagina cărții și banda marcajului nu stau aici: cu html.rm (pus de script când sistemul cere mișcare redusă) ele se estompează în 200 ms */
@media (prefers-reduced-motion: reduce) {
  .mh-flip-obj, .mh-door::before, .mh-pv-b img { transition-duration: 1ms !important; }
}

/* critica 1: pagina mare se citește (până la 1040 px lățime, dialogul derulează); legenda sus, săgețile fixe jos */
.mh-zoom { overflow-y: auto; overscroll-behavior: contain; }
.mh-zoom-in { align-content: start; padding-bottom: 104px; }
.mh-zoom-f figcaption { order: -1; }
.mh-zoom-bar { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); translate: -50% 0; padding: 6px; border-radius: 999px; background: rgb(9 18 20 / .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* critica 1: sub 400 px, „Afecțiuni” iese din firul de navigare, ca „Manualul” să nu rămână singur pe rând (rămâne în schema BreadcrumbList) */
.mh-zoom-f { width: 100%; }
