/* =============================================================
   NovaWebDesign — /mentenanta · hero-ul cu teme de sezon
   Un laptop și un telefon (stilul dispozitivelor din css/concepte.css: ramă subțire, reflexie, umbră)
   în care site-ul unui client își schimbă tema la derulare: Nova → Halloween → Crăciun → Nova.
   Straturile sunt capturi WebP pre-randate (/img/mentenanta/); tema nouă intră ca o perdea trasă de la stânga
   la dreapta (doar transform), cu o dungă de lumină pe margine; lumina din spate și eticheta: opacitate.
   Progresul îl dă js/mt-hero.js (NovaTick), care scrie direct transform / opacity.

   .mth           secțiunea: 100svh + derularea fixată (sticky, scurtă)
   .mth-pin       ecranul fixat (sticky); totul încape în el
   .mth-devs-box  zona dispozitivelor (container de mărime: compoziția se scalează să încapă)
   Mișcare redusă (sau ecran prea scund / Safari fără overflow: clip): fără sticky, o singură temă, fără animații.
   ============================================================= */

.mth {
  --mth-nav: 86px;          /* meniul fix de sus (85 px) */
  --mth-tag: 54px;          /* înălțimea etichetei de deasupra dispozitivelor */
  --mth-ticks: 46px;        /* cele trei bife de sub dispozitive */
  --mth-bot: 0px;           /* bara de jos de pe telefon */
  --mth-extra: 110svh;      /* derularea fixată în care se schimbă temele */
  position: relative;
  /* banda următoare urcă peste zona de sub dispozitive (rezervată barei de jos cât e fixat): fără gol la ieșire */
  margin-bottom: calc(-1 * var(--mth-bot));
  height: calc(100vh + 110vh);
  height: calc(100svh + var(--mth-extra));
  /* fără fundal propriu: frunzele de Halloween (stratul comun din sezoane/halloween.js, sub conținut) se văd prin hero,
     fără un al doilea canvas doar pentru el */
}
.mth-pin {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: calc(var(--mth-nav) + 8px) 0 calc(var(--mth-bot) + 12px);
  box-sizing: border-box;
}

/* fonturi de rezervă cu lățimea apropiată de Fraunces (cât se încarcă fontul): titlul nu își schimbă rândurile.
   Puțin mai late decât Fraunces: la sosirea fontului textul se strânge (nu crește), deci LCP rămâne prima pictare. */
@font-face { font-family: 'Fraunces Rezerva G'; src: local('Georgia'); size-adjust: 112%; }
@font-face { font-family: 'Fraunces Rezerva T'; src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'), local('Tinos'); size-adjust: 123%; }
@font-face { font-family: 'Fraunces Rezerva N'; src: local('Noto Serif'), local('NotoSerif-Regular'); size-adjust: 98%; }

/* ---------- atmosfera (decor, aria-hidden) ---------- */
.mth-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* lumina din spatele dispozitivelor: trei straturi (tema de bază / Halloween / Crăciun), schimbate prin opacitate */
.mth-glow {
  position: absolute;
  right: -6%;
  top: 8%;
  width: 72%;
  height: 92%;
  opacity: 0;
  will-change: opacity;
}
.mth-glow--0 { opacity: 1; background: radial-gradient(closest-side, rgba(var(--nv-acc-rgb), .2), rgba(var(--nv-acc-rgb), .07) 55%, transparent); }
.mth-glow--1 { background: radial-gradient(closest-side, rgba(226, 122, 46, .24), rgba(170, 70, 30, .08) 55%, transparent); }
.mth-glow--2 { background: radial-gradient(closest-side, rgba(201, 53, 61, .22), rgba(216, 180, 101, .08) 58%, transparent); }
/* un val discret de lumină sus, în stânga (în spatele textului) */
.mth-scene::before {
  content: '';
  position: absolute;
  left: -20%;
  top: -30%;
  width: 80%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(var(--nv-acc-rgb), .09), transparent);
}
/* luna mică: Nova = o sferă palidă, smarald; Halloween = luna caldă */
.mth-moon {
  position: absolute;
  top: calc(var(--mth-nav) + 1.6svh);
  right: 5%;
  width: clamp(38px, 4.2vw, 64px);
  aspect-ratio: 1;
  border-radius: 50%;
  /* Nova: o stea palidă, smarald, cu halou (gradient, fără blur) */
  background: radial-gradient(circle, #F4FBF7 0, #CDEBDD 9%, rgba(var(--nv-acc-hi-rgb), .35) 20%, rgba(var(--nv-acc-rgb), .1) 42%, rgba(var(--nv-acc-rgb), 0) 70%);
  opacity: .8;
}
html[data-sezon="halloween"] .mth-moon {
  background: radial-gradient(circle at 38% 36%, #FFF6DD, var(--nv-moon) 55%, #CDAE72);
  box-shadow: 0 0 0 12px rgba(var(--nv-moon-rgb), .05), 0 0 60px 10px rgba(255, 200, 130, .2);
  opacity: .92;
}
/* licuricii: puțini, doar transform + opacity, opriți în afara ecranului (script.js → .anim-off) */
.mth-flies i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(var(--nv-acc-hi-rgb), .95);
  box-shadow: 0 0 8px 2px rgba(var(--nv-acc-rgb), .45);
  opacity: 0;
  animation: mthFly 9s ease-in-out infinite, mthBlink 4.5s ease-in-out infinite;
}
html[data-sezon="halloween"] .mth-flies i { background: var(--nv-ember); box-shadow: 0 0 9px 2px rgba(var(--nv-ember-rgb), .5); }
.mth-flies i:nth-child(1) { left: 8%;  top: 72%; animation-delay: -1s, -.5s; }
.mth-flies i:nth-child(2) { left: 22%; top: 88%; animation-delay: -4s, -2s; animation-duration: 11s, 5.2s; }
.mth-flies i:nth-child(3) { left: 44%; top: 30%; animation-delay: -6s, -3.4s; }
.mth-flies i:nth-child(4) { left: 58%; top: 84%; animation-delay: -2s, -1.2s; animation-duration: 10s, 3.8s; }
.mth-flies i:nth-child(5) { left: 76%; top: 22%; animation-delay: -7s, -4s; animation-duration: 12s, 4.8s; }
.mth-flies i:nth-child(6) { left: 92%; top: 64%; animation-delay: -3s, -2.6s; }
.mth-flies i:nth-child(7) { left: 36%; top: 56%; animation-delay: -5s, -.8s; animation-duration: 13s, 5.6s; }
@keyframes mthFly {
  0%, 100% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(18px, -22px, 0); }
  66% { transform: translate3d(-12px, -10px, 0); }
}
@keyframes mthBlink { 0%, 100% { opacity: 0; } 45%, 60% { opacity: .9; } }
.mth.anim-off .mth-flies i { animation-play-state: paused; }

/* ---------- așezarea: textul în stânga, dispozitivele în dreapta ---------- */
.mth-grid {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1380px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(1.5rem, 3.5vw, 4rem);
}
.mth-copy { position: relative; z-index: 2; max-width: 36rem; }
.mth-label {
  margin: 0 0 1rem;
  font: 600 .78rem/1.3 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nv-acc-hi);
}
.mth-title {
  margin: 0 0 1.1rem;
  font: 540 clamp(2.3rem, 4.1vw, 4rem)/1.04 var(--font-display);
  font-family: 'Fraunces', 'Fraunces Rezerva G', 'Fraunces Rezerva T', 'Fraunces Rezerva N', Georgia, serif;
  letter-spacing: -.022em;
  color: var(--nv-tx);
  text-wrap: balance;
}
.mth-t1 { white-space: nowrap; }
.mth-title em {
  font-style: italic;
  font-weight: 480;
  color: var(--nv-acc-hi);
  background: linear-gradient(110deg, var(--nv-acc-hi) 10%, var(--nv-acc) 60%, var(--nv-acc2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .06em;
}
.mth-lead {
  margin: 0 0 1.7rem;
  max-width: 31em;
  font: 400 clamp(1rem, 1.2vw, 1.15rem)/1.6 var(--font-body);
  color: var(--nv-tx2);
}
.mth-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.mth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.7rem;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .35s var(--nv-ease), box-shadow .3s ease, background-color .25s ease;
}
.mth-btn--ghost {
  color: var(--nv-tx);
  background: rgba(var(--nv-tx-rgb), .05);
  box-shadow: inset 0 0 0 1px rgba(var(--nv-tx-rgb), .2);
}
.mth-btn--ghost:hover { background: rgba(var(--nv-acc-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--nv-acc-rgb), .6); }
.mth-btn:focus-visible { outline: 2px solid var(--nv-acc-hi); outline-offset: 3px; }
.mth-from { margin: 1.3rem 0 0; font: 400 .98rem/1.4 var(--font-body); color: var(--nv-tx2); }
.mth-from b { font: 560 1.45rem/1 var(--font-display); color: var(--nv-tx); white-space: nowrap; }

/* ---------- scena dispozitivelor ---------- */
.mth-stage {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mth-tag {
  height: var(--mth-tag);
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  justify-content: center;
  gap: .5rem .9rem;
}
.mth-tag__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 32px;
  font: 600 .9rem/1.25 var(--font-body);
  color: var(--nv-tx);
  text-decoration: none;
}
.mth-tag__link svg { flex: none; color: var(--nv-acc-hi); }
.mth-tag__link span { border-bottom: 1px solid rgba(var(--nv-acc-rgb), .45); transition: border-color .25s ease; }
.mth-tag__link:hover span { border-color: var(--nv-acc-hi); }
.mth-tag__link:focus-visible { outline: 2px solid var(--nv-acc-hi); outline-offset: 3px; border-radius: 6px; }
/* eticheta sezonului: patru variante suprapuse (aceeași celulă de grilă → lățime fixă), schimbate prin opacitate */
.mth-season {
  position: relative;
  display: inline-grid;
  margin: 0;
  padding: .42rem .9rem .5rem;
  border-radius: 999px;
  background: rgba(var(--nv-card-rgb), .92);
  box-shadow: inset 0 0 0 1px rgba(var(--nv-tx-rgb), .1);
  font: 600 .8rem/1.2 var(--font-body);
  letter-spacing: .02em;
  color: var(--nv-tx);
  overflow: hidden;
}
.mth-season__s {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  white-space: nowrap;
  opacity: 0;
}
.mth-season__s--0 { opacity: 1; }
/* cu JS: eticheta se schimbă o dată, la mijlocul fiecărei treceri (o singură etichetă vizibilă) */
.mth-season.is-live .mth-season__s { opacity: 0; transform: translate3d(0, 7px, 0); transition: opacity .3s ease, transform .45s var(--nv-ease); }
.mth-season.is-live .mth-season__s.is-past { transform: translate3d(0, -7px, 0); }
.mth-season.is-live .mth-season__s.is-on { opacity: 1; transform: none; }
.mth-season__s i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.mth-season__s--0 i, .mth-season__s--3 i { background: #4DBA8F; box-shadow: 0 0 0 3px rgba(77, 186, 143, .2); }
.mth-season__s--1 i { background: #E27A2E; box-shadow: 0 0 0 3px rgba(226, 122, 46, .22); }
.mth-season__s--2 i { background: #D23C44; box-shadow: 0 0 0 3px rgba(216, 180, 101, .3); }
/* bara de progres: cât din drumul prin teme s-a parcurs (scaleX) */
.mth-season__bar { position: absolute; left: .9rem; right: .9rem; bottom: .18rem; height: 2px; border-radius: 2px; background: rgba(var(--nv-tx-rgb), .1); overflow: hidden; }
.mth-season__bar b { display: block; height: 100%; background: var(--nv-acc-hi); transform: scaleX(0); transform-origin: 0 50%; }

/* trei bife scurte sub dispozitive (afirmații care apar și în restul paginii) */
.mth-ticks {
  height: var(--mth-ticks);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.4rem;
  margin: 0;
  padding: 0 0 2px;
  list-style: none;
  font: 600 .9rem/1.2 var(--font-body);
  color: var(--nv-tx);
  white-space: nowrap;
}
.mth-ticks li { display: inline-flex; align-items: center; gap: .4rem; }
.mth-ticks svg { flex: none; width: 15px; height: 15px; color: var(--nv-acc-hi); }

/* compoziția (eticheta + dispozitivele): laptopul în spate, telefonul în față (dreapta-jos);
   se scalează să încapă în zona liberă (container de mărime → cqw / cqh) */
.mth-devs-box {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mth-comp {
  --r: 1.62;               /* lățime / înălțime pentru dispozitive */
  flex: none;
  width: min(100cqw, (100cqh - var(--mth-tag) - var(--mth-ticks)) * var(--r));
}
.mth-devs {
  --lw: 86%;               /* lățimea laptopului din compoziție */
  --pw: 21%;               /* lățimea telefonului */
  position: relative;
  width: 100%;
  aspect-ratio: var(--r);
}
.mtd { position: absolute; container-type: inline-size; }
.mtd--laptop { left: 0; top: 0; width: var(--lw); will-change: transform; }
.mtd--phone { right: 0; bottom: 0; width: var(--pw); z-index: 2; will-change: transform; }

/* ---------- dispozitivele (după .nd din css/concepte.css) ---------- */
.mtd-lid { position: relative; }
.mtd-screen { position: relative; overflow: hidden; isolation: isolate; background: #050606; }
.mtd-view { position: relative; overflow: hidden; background: #F7F5F0; }
.mtd-l {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  display: block;
}
.mtd-l { -webkit-user-drag: none; user-select: none; }
/* tema de bază a laptopului: patru sferturi din aceeași imagine (vezi HTML) */
span.mtd-l--0 { position: absolute; inset: 0; display: block; }
.mtd-q { position: absolute; width: 50%; height: 50%; overflow: hidden; }
.mtd-q--b, .mtd-q--d { left: 50%; }
.mtd-q--c, .mtd-q--d { top: 50%; }
.mtd-q .mtd-l { inset: auto; left: 0; top: 0; width: 200%; height: 200%; max-width: none; max-height: none; }
.mtd-q--b .mtd-l, .mtd-q--d .mtd-l { left: -100%; }
.mtd-q--c .mtd-l, .mtd-q--d .mtd-l { top: -100%; }
/* telefonul: două jumătăți (sus / jos) din aceeași imagine */
.mtd-h { position: absolute; left: 0; width: 100%; height: 50%; overflow: hidden; top: 0; }
.mtd-h--b { top: 50%; }
.mtd-h .mtd-l { inset: auto; left: 0; top: 0; height: 200%; max-height: none; }
.mtd-h--b .mtd-l { top: -100%; }
/* temele 2 și 3: intră ca o „perdea” de la stânga la dreapta, doar din transform:
   învelișul (overflow: hidden) se mută spre dreapta, iar imaginea din el se mută invers cu aceeași distanță,
   deci rămâne pe loc; se vede doar partea deja „trasă”. Fără opacitate amestecată (nimic tulbure la jumătate). */
.mtd-w {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translate3d(-100%, 0, 0);
  will-change: transform;
}
.mtd-w .mtd-l { transform: translate3d(100%, 0, 0); will-change: transform; }
/* „cortina” de lumină: o dungă caldă pe marginea perdelei (doar transform + opacity) */
.mtd-sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 240, 214, 0) 0%, rgba(255, 240, 214, .16) 35%, rgba(255, 252, 244, .7) 49%, rgba(255, 255, 255, .9) 50%, rgba(255, 240, 214, .2) 58%, rgba(255, 240, 214, 0) 100%);
  transform: translate3d(-200%, 0, 0);
  opacity: 0;
  will-change: transform, opacity;
}
.mtd-glare {
  position: absolute;
  inset: -20% -20%;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse 34% 60% at 50% 50%, rgba(255, 255, 255, .04) 0, rgba(255, 255, 255, .018) 55%, rgba(255, 255, 255, 0) 100%);
}
.mtd-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.mtd-floor {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: -4.6cqi;
  height: 8cqi;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .62), rgba(0, 0, 0, .22) 55%, rgba(0, 0, 0, 0));
}

/* laptop */
.mtd--laptop .mtd-lid {
  margin: 0 6.4cqi;
  padding: 1.85cqi 1.85cqi 2.3cqi;
  border-radius: 3.1cqi 3.1cqi 1cqi 1cqi;
  background: #070808;
  box-shadow: 0 0 0 .3cqi #2c312f, 0 0 0 .42cqi rgba(255, 255, 255, .13), inset 0 0 0 .12cqi rgba(255, 255, 255, .05), 0 4cqi 8cqi -3cqi rgba(0, 0, 0, .55);
}
.mtd--laptop .mtd-lid::before {
  content: '';
  position: absolute;
  top: .62cqi;
  left: 50%;
  width: .62cqi;
  height: .62cqi;
  margin-left: -.31cqi;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #33454f, #0b1013 70%);
}
.mtd--laptop .mtd-screen { border-radius: .5cqi; }
.mtd--laptop .mtd-view { aspect-ratio: 16 / 10; }
.mtd-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 2.85cqi;
  padding: 0 1.2cqi;
  background: linear-gradient(180deg, #202523, #171a19);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .5);
}
.mtd-lights { display: flex; gap: .55cqi; flex: none; width: 9cqi; }
.mtd-lights i { width: .82cqi; height: .82cqi; border-radius: 50%; }
.mtd-lights i:nth-child(1) { background: #ff5f57; }
.mtd-lights i:nth-child(2) { background: #febc2e; }
.mtd-lights i:nth-child(3) { background: #28c840; }
.mtd-url {
  flex: 0 1 50%;
  min-width: 0;
  margin: 0 auto;
  height: 1.8cqi;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5cqi;
  padding: 0 1cqi;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  color: rgba(236, 239, 234, .62);
  font: 500 max(6px, 1.1cqi)/1 var(--font-body);
  white-space: nowrap;
  overflow: hidden;
}
.mtd-url svg { width: max(6px, 1cqi); height: max(6px, 1cqi); flex: none; opacity: .75; }
.mtd-url span { overflow: hidden; text-overflow: ellipsis; }
.mtd-bar::after { content: ''; flex: none; width: 9cqi; }
.mtd-base {
  position: relative;
  height: 2.35cqi;
  border-radius: .25cqi .25cqi 3.4cqi 3.4cqi / .25cqi .25cqi 2cqi 2cqi;
  background: linear-gradient(180deg, #737976 0%, #474c4a 12%, #2a2e2d 48%, #151817 86%, #0c0e0d 100%);
  box-shadow: inset 0 .1cqi 0 rgba(255, 255, 255, .42), inset 0 -.25cqi .3cqi rgba(0, 0, 0, .55);
}
.mtd-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 15cqi;
  height: .85cqi;
  margin-left: -7.5cqi;
  border-radius: 0 0 1.4cqi 1.4cqi;
  background: linear-gradient(180deg, #1a1d1c, #303533);
}

/* telefon */
.mtd--phone .mtd-lid {
  aspect-ratio: 100 / 206;
  padding: 2.4cqi;
  border-radius: 15.5cqi;
  background: linear-gradient(148deg, #6a6f6d 0%, #2a2e2d 14%, #0d0f0e 46%, #151817 78%, #4d5250 100%);
  box-shadow: inset 0 0 0 .45cqi rgba(255, 255, 255, .18), inset 0 0 0 1.45cqi #040505, 0 0 0 .3cqi rgba(0, 0, 0, .55), -6cqi 10cqi 22cqi -6cqi rgba(0, 0, 0, .7);
}
.mtd--phone .mtd-lid::before,
.mtd--phone .mtd-lid::after {
  content: '';
  position: absolute;
  width: 1cqi;
  border-radius: .6cqi;
  background: linear-gradient(90deg, #4a4f4d, #1a1d1c);
}
.mtd--phone .mtd-lid::before { left: -.85cqi; top: 21%; height: 10cqi; box-shadow: 0 13.5cqi 0 #2f3332; }
.mtd--phone .mtd-lid::after { right: -.85cqi; top: 29%; height: 17cqi; background: linear-gradient(270deg, #4a4f4d, #1a1d1c); }
.mtd--phone .mtd-screen {
  -webkit-mask-image: -webkit-radial-gradient(white, black);   /* Safari: colțurile rămân tăiate */
  height: 100%;
  border-radius: 13.1cqi;
}
.mtd--phone .mtd-view { position: absolute; inset: 0; }
.mtd-island {
  position: absolute;
  top: 2.6cqi;
  left: 50%;
  z-index: 5;
  width: 29cqi;
  height: 8.4cqi;
  margin-left: -14.5cqi;
  border-radius: 99px;
  background: #000;
}
.mtd--phone .mtd-glare { inset: -20% -80%; }
.mtd--phone .mtd-floor { left: -4%; right: -4%; bottom: -5.5cqi; height: 12cqi; }

html:not([data-sezon="halloween"]) .mth-moon { width: clamp(70px, 7vw, 120px); }
/* luna stătea lipită de eticheta „Teme de sezon” (și tăiată de margine pe telefon): scoasă, lumina din spate ajunge */
.mth-moon { display: none; }
/* ---------- PC: ecrane mari ---------- */
@media (min-width: 1600px) {
  .mth-grid { max-width: 1560px; }
  .mth-title { font-size: clamp(4rem, 3.6vw, 4.6rem); }
  .mth-copy { max-width: 40rem; }
}
/* ---------- PC: ecrane scunde ---------- */
@media (min-width: 900px) and (max-height: 760px) {
  .mth-title { font-size: clamp(2.2rem, 3.7vw, 3.4rem); margin-bottom: .9rem; }
  .mth-lead { margin-bottom: 1.4rem; }
  .mth-from { margin-top: 1rem; }
  .mth-label { margin-bottom: .75rem; }
}

/* ---------- tabletă și telefon: textul sus, dispozitivele dedesubt ---------- */
@media (max-width: 899.98px) {
  .mth { --mth-extra: 95svh; height: calc(100vh + 95vh); height: calc(100svh + var(--mth-extra)); }
  .mth-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .mth-copy { flex: none; max-width: 40rem; margin: 0 auto; text-align: center; }
  .mth-btns { justify-content: center; }
  .mth-lead { margin-left: auto; margin-right: auto; }
  .mth-stage { flex: 1 1 0; height: auto; margin-top: clamp(.6rem, 2.2svh, 1.6rem); }
  .mth { --mth-tag: 68px; }
  .mth-comp { --r: 1.5; width: min(100cqw, (100cqh - var(--mth-tag) - var(--mth-ticks)) * var(--r), 680px); }
  .mth-devs { --lw: 82%; --pw: 24%; }
  .mth-glow { right: -20%; top: 40%; width: 140%; height: 70%; }
}
@media (max-width: 768px) {
  .mth { --mth-bot: calc(var(--nova-bar-h, 64px) + var(--nova-safe-b, 0px)); }
}
@media (max-width: 600px) {
  .mth-pin { padding-top: calc(var(--mth-nav) + 6px); padding-bottom: calc(var(--mth-bot) + 8px); }
  .mth-label { margin-bottom: .55rem; font-size: .7rem; letter-spacing: .14em; }
  /* două rânduri fixe (fără rupere): când sosește Fraunces, nimic de sub titlu nu se mută */
  .mth-title { margin-bottom: .6rem; font-size: min(8.2vw, 2.3rem, calc((100vw - 34px) / 11.3)); line-height: 1.07; }
  .mth-title em { white-space: nowrap; }   /* rămâne în linie: tot titlul e un singur bloc de text (LCP) */
  .mth-lead { margin-bottom: .95rem; font-size: .95rem; line-height: 1.5; text-wrap: balance; }
  .mth-lead__b { display: block; }   /* a doua propoziție pe rândul ei */
  .mth-btns { flex-wrap: nowrap; gap: .5rem; }
  .mth-btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 .7rem; font-size: .92rem; }
  .mth-from { margin-top: .7rem; font-size: .86rem; }
  .mth-from b { font-size: 1.2rem; }
  .mth { --mth-tag: 62px; --mth-ticks: 38px; }
  /* telefon: compoziția mai înaltă și cât tot ecranul (6 px de margine), telefonul (în față) mult mai mare:
     textul din ecrane se citește */
  .mth-comp { --r: 1.3; width: min(100vw - 12px, (100cqh - var(--mth-tag) - var(--mth-ticks)) * var(--r)); }
  .mth-devs { --lw: 78%; --pw: 33%; }
  .mtd--laptop { top: 7%; }
  .mth-ticks { gap: .9rem; font-size: .8rem; }
  .mth-tag { gap: .3rem .6rem; }
  .mth-tag__link { min-height: 28px; font-size: .8rem; }
  .mth-season { font-size: .72rem; padding: .34rem .75rem .44rem; }
}
/* telefoane înguste (360): butoanele unul sub altul ar împinge dispozitivele; textul plății pe rândul lui */
@media (max-width: 374.98px) {
  .mth-lead { font-size: .9rem; }
  .mth-ticks { gap: .6rem; font-size: .75rem; }
  .mth-ticks svg { width: 13px; height: 13px; }
  .mth-btn { font-size: .86rem; padding: 0 .5rem; }
  .mth-from__x { display: none; }
}
@media (max-width: 600px) and (max-height: 760px) {
  .mth-lead { font-size: .9rem; margin-bottom: .8rem; }
  .mth-title { font-size: min(7.6vw, 2.1rem, calc((100vw - 34px) / 11.3)); }
}

/* ---------- fără fixare: mișcare redusă sau ecran prea scund pentru tot ---------- */
@media (prefers-reduced-motion: reduce), (max-height: 539.98px) {
  .mth { height: auto; margin-bottom: 0; }
  .mth-pin { position: relative; height: auto; min-height: 0; overflow: visible; padding-bottom: 2.5rem; }
  .mth-grid { flex: none; }
  .mth-stage { flex: none; height: auto; }
  .mth-devs-box { flex: none; container-type: inline-size; }
  .mth-comp { width: min(100%, 640px); }
  .mth-scene { overflow: hidden; }
}
/* Safari vechi (fără overflow: clip): body cu overflow-x: hidden oprește sticky → aceeași așezare fără fixare */
@supports not (overflow: clip) {
  .mth { height: auto; margin-bottom: 0; }
  .mth-pin { position: relative; height: auto; min-height: 0; overflow: visible; padding-bottom: 2.5rem; }
  .mth-grid { flex: none; }
  .mth-stage { flex: none; height: auto; }
  .mth-devs-box { flex: none; container-type: inline-size; }
  .mth-comp { width: min(100%, 640px); }
}
@media (prefers-reduced-motion: reduce) {
  .mth-flies { display: none; }
  .mth-season__bar { display: none; }
  .mth-btn { transition: none; }
}

/* Runda 7: țintă de atingere de 44 px (padding + margine negativă: așezarea rămâne aceeași) */
.mth-tag__link { min-height: 44px; padding-block: 8px; margin-block: -8px; }
