/* ==========================================================================
   Dorian Sosu — The Body Architect
   Toate culorile, fonturile și spațierile sunt definite aici, în :root.
   ========================================================================== */

/* Fonturi de rezervă calibrate pe lățimea Bricolage Grotesque / Figtree: textul nu „sare” când se încarcă fonturile */
@font-face { font-family: "Bricolage Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"), local("Arimo Bold"), local("Roboto Bold"); font-weight: 500 900; size-adjust: 100%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("Arimo"), local("Roboto"); font-weight: 100 499; size-adjust: 97%; }
@font-face { font-family: "Figtree Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("Arimo"), local("Roboto"); size-adjust: 99.2%; }

:root {
  color-scheme: dark;
  /* Culori: negru profund + „flacără” (portocaliu cald cu gradient) */
  --bg: #090909;
  --bg-2: #0F0F11;
  --bg-footer: #070707;
  --text: #F6F2EC;
  --text-2: #E0DAD2;
  --text-3: #C2BCB4;
  --muted: #A09A92;
  --accent: #FF6B2C;          /* schimbă accentul aici (și --accent-2 pentru gradient) */
  --accent-2: #FFA24D;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --on-accent: #1A0C03;
  --line: rgba(255, 255, 255, 0.10);
  --glass: rgba(22, 22, 24, 0.62);
  --glass-strong: rgba(30, 27, 26, 0.78);
  --field: rgba(0, 0, 0, 0.35);
  --field-line: rgba(255, 255, 255, 0.2);
  --glow: rgba(255, 107, 44, 0.16);

  /* Tipografie */
  --font-display: 'Bricolage Grotesque', 'Bricolage Fallback', system-ui, sans-serif;
  --font-body: 'Figtree', 'Figtree Fallback', system-ui, sans-serif;

  /* Layout */
  --container: 1240px;
  --section-pad: 128px;
  --radius: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; width: 100%; }

/* ---------- Componente ---------- */
.glass {
  background: rgba(22, 22, 24, .86);   /* fără backdrop-filter: blur-ul pe zeci de carduri încetinea scroll-ul */
  border: 1px solid var(--line);
}
.accent { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.03em; }
.lead { font-size: 18px; color: #D6D1CA; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 16px 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px; border: 0; cursor: pointer;
  transition: transform .2s var(--ease), filter .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: var(--on-accent); box-shadow: 0 10px 30px -10px rgba(255, 107, 44, .7); }
.btn--primary:hover { color: var(--on-accent); filter: brightness(1.08); box-shadow: 0 14px 36px -10px rgba(255, 107, 44, .9); }
.btn--glass { font-weight: 500; }
.btn--outline { border: 1px solid rgba(255,255,255,.3); background: transparent; color: var(--text); }
.btn--outline:hover { border-color: var(--accent-2); }
.btn--sm { min-height: 44px; padding: 12px 20px; font-size: 15px; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.icon-box {
  width: 54px; height: 54px; border-radius: 16px; flex: none;
  background: var(--grad); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
}
.icon-box--soft { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--accent-2); }

.check-list { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: #E9E5DF; }
.check-list li { display: flex; gap: 10px; align-items: center; }
.check-list svg { flex: none; color: var(--accent-2); }

.chip {
  min-height: 44px; padding: 12px 18px; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 500; color: #EDE9E3;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.22);
  transition: background .15s ease, color .15s ease;
}
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: var(--on-accent); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #E4DFD8; }
.field input, .field select, .field textarea {
  background: var(--field); border: 1px solid var(--field-line); border-radius: 14px;
  padding: 13px 16px; color: var(--text); font-size: 16px; min-height: 50px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #8F8A84; }
option { background: #232224; color: var(--text); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 14px; color: #E4DFD8; margin-bottom: 12px; padding: 0; }

/* ---------- Cadru foto: fața și corpul rămân mereu libere ---------- */
.frame {
  position: relative; border-radius: 28px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.9), 0 0 80px -30px rgba(255, 107, 44, .35);
  background: #151517;
}
.frame img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.12) contrast(1.06) saturate(1.06); }
.frame::after { /* margine luminoasă fină */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 190, 140, .18), inset 0 -80px 80px -60px rgba(0,0,0,.55);
}
.frame__cap {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: flex; flex-direction: column; padding: 12px 18px; border-radius: 16px; line-height: 1.3;
}
.frame__cap strong { font-family: var(--font-display); font-size: 17px; }
.frame__cap span { font-size: 13px; color: var(--text-3); }

/* ---------- Secțiuni ---------- */
.section { position: relative; overflow: clip; isolation: isolate; padding: var(--section-pad) 24px; }
.section:nth-of-type(even) { background: var(--bg-2); }
.section::before { /* lumină ambientală, o poziție diferită în fiecare secțiune */
  content: ""; position: absolute; z-index: -1; width: 70vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%;
  top: var(--gy, -20%); left: var(--gx, auto); right: var(--gr, -20%);
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.section:nth-of-type(3n)::before { --gx: -22%; --gr: auto; --gy: 30%; }
.section:nth-of-type(3n+1)::before { --gy: 55%; }
.section::after { /* linie fină de separare */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 162, 77, .35), transparent);
}
.section > .container { transform-origin: 50% 0; }

.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 64px; }
.section__head > div { display: flex; flex-direction: column; gap: 18px; max-width: 700px; }
.section__head .lead { max-width: 380px; }
.section__head--center { justify-content: center; text-align: center; }
.section__head--center > div { align-items: center; max-width: 680px; }

/* ---------- Progres + perdea între secțiuni ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.curtain { position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; overflow: hidden; }
.curtain.on { visibility: visible; pointer-events: all; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(9,9,9,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--grad); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand__tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav__link { position: relative; color: #D6D1CA; font-size: 15px; padding: 12px 4px; }
.nav__link::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 6px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ease); }
.nav__link:hover, .nav__link.active { color: #fff; }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__link--cta { display: none; }
.burger { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; position: relative; }
.burger i { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger i:first-child { top: 18px; }
.burger i:last-child { top: 26px; }
.menu-open .burger i:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; background: var(--bg); min-height: min(900px, calc(100svh - 64px)); display: flex; padding: 0 24px; }
.hero__glow {
  position: absolute; z-index: -2; right: -5%; bottom: -10%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 44, .34), rgba(255, 107, 44, .08) 60%, transparent);
  transform: translate3d(calc(var(--mx, 0) * -30px), calc(var(--my, 0) * -20px), 0);
}
.hero__ghost {
  position: absolute; z-index: -1; left: 50%; bottom: 4%; translate: -50% 0; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; line-height: .8;
  font-size: clamp(90px, 18vw, 300px); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08);
  transform: translate3d(calc(var(--mx, 0) * 24px), calc(var(--sy, 0) * -60px), 0);
  user-select: none;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 24px; align-items: center; padding-top: 56px; }
.hero__content { display: flex; flex-direction: column; gap: 30px; padding-bottom: 64px; position: relative; z-index: 2; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: #E4DFD8; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,107,44,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255,107,44,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,44,0); } }
.hero h1 { font-size: clamp(42px, 5.6vw, 82px); line-height: 1; letter-spacing: -.035em; }
.hero__lead { font-size: 20px; line-height: 1.65; color: var(--text-2); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__perks { display: flex; flex-direction: column; gap: 14px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.perk { display: flex; gap: 14px; align-items: center; font-size: 15px; color: #E9E5DF; }

/* Fotografia din hero: decupaj PNG transparent. Nu mai e nimic negru în jurul lui,
   iar obiectul 3D și haloul portocaliu apar direct în spatele figurii. */
.hero__photo { position: relative; align-self: end; display: flex; justify-content: center; align-items: flex-end; }
.hero__stage {
  filter: drop-shadow(0 0 36px rgba(255, 107, 44, .30));   /* pe container, ca să urmeze silueta mascată */
  transform: translate3d(calc(var(--mx, 0) * 14px), calc(var(--sy, 0) * 36px), 0);
  will-change: transform;
}
.hero__stage img {
  width: auto; max-width: 100%; height: min(calc(100svh - 124px), 820px); min-height: 520px; object-fit: contain; object-position: 50% 100%;
  filter: brightness(1.06) contrast(1.04);
}
.hero__tag { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text); animation: float 6s ease-in-out infinite; }
.hero__tag svg { color: var(--accent-2); }
.hero__tag--a { left: 0; top: 22%; }
.hero__tag--b { right: 0; top: 40%; animation-delay: -3s; }
@keyframes float { 50% { translate: 0 -10px; } }

/* ---------- Ticker ---------- */
.ticker-wrap { background: var(--grad); color: var(--on-accent); padding: 18px 0; overflow: hidden; position: relative; z-index: 2; }
.ticker {
  display: flex; gap: 48px; width: max-content; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: .04em; text-transform: uppercase;
  animation: tick calc(38s / var(--speed, 1)) linear infinite;
}
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Revelare 3D (perspectiva e pe containerele de grilă) ---------- */
.services, .plans, .results, .exercises, .steps, .process, .about__inner, .faq { perspective: 1300px; }
.js [data-reveal] {
  opacity: 0; translate: 0 56px; rotate: x 18deg;
  transition: opacity .5s ease var(--d, 0ms), translate .6s var(--ease) var(--d, 0ms), rotate .6s var(--ease) var(--d, 0ms),
              transform .25s ease-out 0s, border-color .2s ease;
}
.js [data-reveal].in { opacity: 1; translate: none; rotate: none; }
[data-tilt] { transform: perspective(900px) translate3d(0, var(--lift, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
[data-tilt].is-hover { --lift: -8px; will-change: transform; }

/* ---------- Servicii ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service { border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.service:hover { border-color: rgba(255,162,77,.45); }
.service--featured { border-color: var(--accent); background: var(--glass-strong); }
.service__top { display: flex; justify-content: space-between; align-items: center; }
.service__num { font-family: var(--font-display); color: var(--muted); font-size: 15px; }
.service h3 { font-size: 25px; letter-spacing: -.02em; }
.service p { color: #D6D1CA; font-size: 16px; }
.service .link-arrow { margin-top: auto; }

/* ---------- Despre ---------- */
.about__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: center; }
.about__photo { aspect-ratio: 3 / 4; max-height: 760px; width: 100%; }
.about__photo img { object-position: 42% 30%; }
.about__content { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.about__content > p { font-size: 18px; color: var(--text-2); line-height: 1.75; }
.quote { margin: 4px 0; padding: 26px 30px; border-radius: 20px; font-family: var(--font-display); font-size: 23px; line-height: 1.4; letter-spacing: -.01em; border-left: 3px solid var(--accent); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.principle { border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.principle svg { color: var(--accent-2); }
.principle strong { font-size: 17px; }
.principle span { font-size: 14px; color: #C9C3BB; }
.certs { border-radius: 18px; padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.certs__label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.placeholder { background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.22); border-radius: 8px; width: 110px; height: 34px; }
.cert { border-radius: 18px; padding: 14px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; }
.cert__thumb { padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; transition: transform .25s var(--ease), border-color .2s; }
.cert__thumb:hover { transform: translateY(-3px) rotate(-1deg); border-color: var(--accent-2); }
.cert__thumb img { width: 100%; height: auto; display: block; }
.cert__info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.cert__info strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.25; }
.cert__info span { font-size: 14px; color: var(--text-3); }
.cert__info .cert__meta { font-size: 12.5px; color: var(--muted); }
.cert__btn { margin-top: 10px; }
.cert__btn svg { color: var(--accent-2); }
@media (max-width: 600px) { .cert { grid-template-columns: 1fr; } .cert__thumb { max-width: 220px; } }

/* Fereastra cu adeverința */
.cert-dialog { width: min(92vw, 760px); max-height: 92vh; padding: 0; border: 1px solid var(--line); border-radius: 22px; background: #121214; color: var(--text); overflow: hidden; }
.cert-dialog[open] { display: flex; flex-direction: column; animation: cert-in .35s var(--ease); }
.cert-dialog::backdrop { background: rgba(0,0,0,.82); }
@keyframes cert-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.cert-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px 16px 22px; border-bottom: 1px solid var(--line); }
.cert-dialog__head strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.cert-dialog__head span { font-size: 13px; color: var(--muted); }
.cert-dialog__close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.cert-dialog__close:hover { border-color: var(--accent-2); }
.cert-dialog__body { overflow: auto; overscroll-behavior: contain; padding: 16px; background: #1b1b1e; }
.cert-dialog__body img { width: 100%; height: auto; border-radius: 8px; background: #fff; }
.cert-dialog__note { margin: 0; padding: 12px 22px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.cert-dialog__note a { color: var(--accent-2); text-decoration: underline; }

/* ---------- Execuție + galerie ---------- */
.exercises { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.exercise { border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 12px; }
.exercise img, .exercise .exercise__ph { width: 100%; height: auto; aspect-ratio: 9 / 14; object-fit: cover; object-position: 50% 30%; border-radius: 14px; filter: brightness(1.1) contrast(1.05); }
.exercise__ph { background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; filter: none !important; }
.exercise figcaption { padding: 0 8px 8px; font-weight: 600; font-size: 15px; }
.gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 96px 0 8px; }
.gallery-head h3 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -.02em; }
.gallery-head a { color: var(--accent-2); }

/* Galerie 3D (coverflow) */
.cover {
  --w: clamp(230px, 26vw, 330px);
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; perspective: 1200px;
  padding: 36px calc(50% - var(--w) / 2) 56px; margin: 0 -24px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
}
.cover::-webkit-scrollbar { display: none; }
.cover.drag { cursor: grabbing; scroll-snap-type: none; }
.cover img {
  flex: none; width: var(--w); height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 24px; scroll-snap-align: center;
  filter: brightness(1.12) contrast(1.05); user-select: none; -webkit-user-drag: none;
  transform: rotateY(var(--ry, 0deg)) scale(var(--s, .88)); opacity: var(--o, .7);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.9);
}

/* ---------- Rezultate ---------- */
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.result { border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; }
.result__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.result__photo { aspect-ratio: 3 / 4; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.22); display: flex; align-items: flex-end; padding: 12px; font-size: 13px; color: var(--text-3); }
.result figcaption { padding: 24px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.badge { align-self: flex-start; background: var(--grad); color: var(--on-accent); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.result p { font-size: 17px; }
.result__who { font-size: 14px; color: var(--text-3); }

/* ---------- Calculator ---------- */
.calc { display: flex; flex-wrap: wrap; gap: 24px; }
.calc__form, .calc__result { border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.calc__form { flex: 1 1 480px; }
.calc__result { flex: 1 1 380px; background: var(--glass-strong); }
.calc__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.calc__label { font-size: 14px; color: var(--text-3); }
.calc__kcal { display: flex; align-items: baseline; gap: 10px; }
.calc__kcal strong { font-family: var(--font-display); font-size: 76px; font-weight: 600; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc__kcal span { font-size: 18px; color: var(--text-2); }
.calc__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: rgba(255,255,255,.06); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 13px; color: var(--text-3); }
.stat strong { font-size: 22px; font-weight: 600; }
.macros { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.macros__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.macro { display: flex; flex-direction: column; gap: 2px; }
.macro strong { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.macro span { font-size: 14px; color: var(--text-3); }
.calc__note { font-size: 13px; color: #B5AFA8; }
.calc__result .btn { margin-top: auto; }

/* ---------- Pachete ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; align-items: stretch; }
.plan { border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 24px; position: relative; }
.plan--featured { border: 1.5px solid var(--accent); background: var(--glass-strong); box-shadow: 0 30px 80px -40px rgba(255,107,44,.6); }
.plan__flag { position: absolute; top: -14px; left: 36px; background: var(--grad); color: var(--on-accent); font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.plan__head { display: flex; flex-direction: column; gap: 8px; }
.plan__head h3 { font-size: 24px; }
.plan__head span { font-size: 15px; color: #C9C3BB; }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__price strong { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -.03em; }
.plan__price span { color: var(--text-3); font-size: 15px; }
.plan__offer { display: flex; align-items: center; gap: 8px; margin-top: -8px; padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--text); background: linear-gradient(135deg, rgba(255, 107, 44, .2), rgba(255, 162, 77, .08)); border: 1px solid rgba(255, 162, 77, .45); }
.plan__offer svg { flex: none; color: var(--accent-2); }
.plan .check-list { padding-top: 24px; border-top: 1px solid var(--line); }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 40px; text-align: center; font-size: 15px; color: var(--text-3); }

/* ---------- Pași (cronologie) ---------- */
.process { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px; align-items: start; }
.process__photo { aspect-ratio: 4 / 5; align-self: stretch; }
.process__photo img { position: absolute; inset: 0; }
.steps { position: relative; display: flex; flex-direction: column; gap: 14px; }
.steps::before { /* linia care leagă pașii */
  content: ""; position: absolute; left: 31px; top: 36px; bottom: 120px; width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 162, 77, .12));
}
.step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: center; border-radius: 20px; padding: 20px 26px 20px 20px; }
.step__num {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text); line-height: 1;
  background: #1a1a1d; border: 1.5px solid rgba(255, 162, 77, .45);
}
.step--first .step__num { background: var(--grad); color: var(--on-accent); border-color: transparent; box-shadow: 0 10px 30px -10px rgba(255, 107, 44, .8); }
.step h3 { font-size: 21px; margin-bottom: 4px; }
.step p { color: #D6D1CA; font-size: 16px; }
.process__cta { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; margin-top: 10px; padding: 22px 26px; border-radius: 20px; border: 1px solid rgba(255, 162, 77, .4); background: linear-gradient(135deg, rgba(255, 107, 44, .16), rgba(255, 162, 77, .05)); }
.process__cta strong { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.process__cta span { color: var(--text-3); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-wrap: wrap; gap: 64px; }
.faq__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.faq__photo { width: min(100%, 320px); aspect-ratio: 3 / 4; margin-top: 18px; }
.faq__list { flex: 2 1 560px; min-width: 0; border-radius: var(--radius); padding: 8px 36px; align-self: flex-start; }
.faq details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; min-height: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-display); font-size: 20px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--accent-2); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin-top: 14px; color: #D6D1CA; font-size: 17px; max-width: 640px; }

/* ---------- Contact ---------- */
.contact { border-radius: 32px; padding: 64px; display: flex; flex-wrap: wrap; gap: 64px; background: var(--glass-strong); }
.contact__info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact__list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; font-size: 16px; color: #E9E5DF; }
.contact__list a, .contact__list > span { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.contact__list svg { flex: none; color: var(--accent-2); }
.contact__maps { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__note { font-size: 14px; color: #B5AFA8; }
.contact__form { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-footer); border-top: 1px solid rgba(255,255,255,.06); padding: 56px 24px 40px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; color: var(--muted); }

/* ---------- Bară fixă pe telefon ---------- */
.mbar { display: none; }

/* ---------- Tablete ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 16px; }
  .nav__link { font-size: 14px; }
  .brand__tag { display: none; }
  .nav__wa span { display: none; }
  .nav__wa { padding: 0; width: 46px; min-height: 46px; }
  .about__inner { gap: 48px; }
  .process { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; }
}

/* ---------- Telefon și tabletă îngustă ---------- */
@media (max-width: 900px) {
  :root { --section-pad: 80px; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .nav { padding: 10px 20px; gap: 12px; }
  .nav__wa { margin-left: auto; }
  .burger { display: block; }
  .brand__tag { display: none; }
  .nav__links {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0; margin: 0;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; padding: 24px 28px 80px;
    background: rgba(9,9,9,.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s ease, transform .35s var(--ease), visibility .3s;
  }
  .menu-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__link { font-family: var(--font-display); font-size: 28px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav__link::after { display: none; }
  .nav__link--cta { display: block; color: var(--accent-2); }
  .menu-open { overflow: hidden; }

  /* Hero: fotografia deasupra textului, deci nimic nu se suprapune peste el */
  .hero { padding: 0 20px; min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .hero__photo { order: -1; margin: 0 -20px; align-self: auto; }
  .hero__stage { -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
  .hero__stage img { height: auto; width: min(100%, 420px); max-height: 54svh; min-height: 0; object-fit: contain; }
  .hero__tag { display: none; }
  .hero__content { gap: 24px; padding: 0 0 56px; margin-top: -28px; }
  .hero__lead { font-size: 18px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__ghost { bottom: auto; top: 8%; font-size: 26vw; }

  .section { padding-left: 20px; padding-right: 20px; }
  .section__head { margin-bottom: 40px; gap: 18px; }
  .about__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__photo { aspect-ratio: 4 / 5; max-height: none; }
  .process { grid-template-columns: 1fr; gap: 32px; }
  .process__photo { aspect-ratio: 4 / 3; }
  .process__photo img { object-position: 60% 35% !important; }
  .step { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 16px 18px 16px 14px; }
  .step__num { width: 52px; height: 52px; font-size: 18px; }
  .steps::before { left: 25px; top: 30px; bottom: 130px; }
  .process__cta { padding: 18px; }
  .process__cta .btn { width: 100%; }
  .faq { gap: 32px; }
  .faq__photo { display: none; }
  .faq__list { padding: 4px 22px; }
  .calc__form, .calc__result { padding: 26px; }
  .contact { padding: 28px; gap: 40px; border-radius: 26px; }
  .gallery-head { margin-top: 64px; }
  .cover { margin: 0 -20px; gap: 14px; }
  .footer { padding-bottom: 32px; }
  .service, .plan { padding: 26px; }

  .mbar {
    display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
    padding: 8px; border-radius: 999px; background: rgba(14,14,15,.86); border: 1px solid var(--line);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    transform: translateY(160%); transition: transform .45s var(--ease);
  }
  .mbar.show { transform: none; }
  .mbar .btn { flex: 1; min-height: 48px; padding: 12px 18px; }
}

@media (max-width: 600px) {
  .nav__wa span { display: none; }
  .nav__wa { padding: 0; width: 46px; min-height: 46px; }
  .hero h1 { font-size: 40px; }
  .calc__row { grid-template-columns: 1fr; }
  .calc__kcal strong { font-size: 56px; }
  .macro strong { font-size: 24px; }
  .quote { font-size: 20px; padding: 22px; }
  .plan__flag { left: 26px; }
  .cover { --w: 66vw; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker, .hero__tag, .pill__dot { animation: none; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; translate: none; rotate: none; transition: none; }
  [data-tilt] { transform: none; }
  .curtain { display: none; }
}

/* ==========================================================================
   UPGRADE CINEMATIC — fiecare bloc corespunde unui efect din js/main.js
   ========================================================================== */
:root { --mi: 1; --speed: 1; }

/* ---------- Lenis (smooth scroll) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: radial-gradient(60% 50% at 50% 60%, rgba(255,107,44,.12), transparent 70%), var(--bg);
  clip-path: inset(0 0 0 0);
  animation: preloader-failsafe .01s 5s forwards; /* dacă JS nu pornește, dispare singur */
}
@keyframes preloader-failsafe { to { visibility: hidden; opacity: 0; } }
/* telefon: fără intro, pagina (și poza principală) apar imediat */
@media (max-width: 900px) { .js .preloader { display: none; } }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.preloader__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 9vw, 128px); letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.pl-c { display: inline-block; overflow: hidden; padding: .06em 0; vertical-align: top; }
.pl-c > span { display: inline-block; }
.pl-c:nth-child(n+8) > span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-sp { display: inline-block; width: .28em; }
.preloader__tag { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.preloader__foot { position: absolute; left: 24px; right: 24px; bottom: 32px; display: flex; align-items: center; gap: 20px; max-width: var(--container); margin: 0 auto; }
.preloader__bar { flex: 1; height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.preloader__bar i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.preloader__count { font-family: var(--font-display); font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text-2); min-width: 4ch; text-align: right; }

/* ---------- Hero 3D (canvas Three.js) + fallback static ---------- */
.hero__webgl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.hero__webgl.is-ready { opacity: 1; }
.hero--static::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(55% 50% at 78% 62%, rgba(255,107,44,.20), transparent 70%),
              radial-gradient(35% 30% at 88% 18%, rgba(255,162,77,.10), transparent 70%);
}

/* ---------- Text împărțit (cuvinte / litere cu mască) ---------- */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em 0 .14em; margin: -.1em 0 -.14em; }
.sw-i, .sc { display: inline-block; will-change: transform; }
.accent.is-split { background: none; }
.accent.is-split .sw-i { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Banda cu cifre ---------- */
.stats { padding: 44px 24px; border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat-v { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; border-left: 1px solid var(--line); }
.stat-v strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-v > span { font-size: 14px; color: var(--text-3); }

/* ---------- Marquee conturat ---------- */
.marquee { overflow: hidden; padding: 28px 0; border-block: 1px solid var(--line); position: relative; z-index: 1; background: var(--bg); }
.marquee__track { display: flex; align-items: center; gap: .45em; width: max-content; white-space: nowrap; will-change: transform;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(64px, 11vw, 168px); line-height: .9; letter-spacing: -.04em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.22); }
.marquee__fill { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; }
.marquee__dot { font-size: .4em; -webkit-text-stroke: 0; color: var(--accent); }
.marquee.is-static .marquee__track { animation: tick calc(60s / var(--speed, 1)) linear infinite; }
.marquee[data-dir="right"].is-static .marquee__track { animation-direction: reverse; }

/* ---------- Perdea: un singur panou care urcă (Web Animations, GPU) ---------- */
.curtain__panel {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1A0C03 0%, #3a1606 40%, var(--accent) 120%);
  transform: translate3d(0, 100%, 0); will-change: transform; backface-visibility: hidden;
}
.curtain__label {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 8vw, 120px); letter-spacing: -.04em; text-transform: uppercase;
  color: var(--text); white-space: nowrap; opacity: 0;
}

/* ---------- Cum lucrăm: cronologie simplă (fără pin, fără animații pe scroll) ---------- */
/* ---------- Carduri: reflexie care urmărește cursorul ---------- */
.glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 210, 170, .20), rgba(255, 140, 60, .06) 30%, transparent 55%);
  opacity: 0; transition: opacity .35s ease; mix-blend-mode: screen;
}
.is-hover > .glare { opacity: 1; }
.service.is-hover, .plan.is-hover { box-shadow: 0 40px 70px -34px rgba(0,0,0,.85), 0 0 70px -24px rgba(255,107,44,.35); }

/* ---------- Galerie: carusel 3D tras cu mouse-ul / degetul ---------- */
.cover.cover--3d {
  display: block; position: relative; overflow: visible; height: calc(var(--w) * 4 / 3 + 90px);
  padding: 0; margin: 0; perspective: 1400px; scroll-snap-type: none; touch-action: pan-y; user-select: none;
}
.cover--3d img { position: absolute; left: 50%; top: 50%; margin: 0; opacity: 1; will-change: transform, filter; transition: none; cursor: grab; }
.cover--3d.drag img { cursor: grabbing; }
.cover-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.cover-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cover-nav button:hover { border-color: var(--accent-2); }
.cover-nav button:first-child svg { transform: rotate(180deg); }
.cover-nav output { font-family: var(--font-display); font-variant-numeric: tabular-nums; color: var(--text-3); min-width: 7ch; text-align: center; }

/* ---------- Înainte / după ---------- */
.ba { --pos: 50%; position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.ba .result__photo { aspect-ratio: auto; border-radius: 0; }
.ba__layer { position: absolute; inset: 0; }
.ba__after { justify-content: flex-end; background: rgba(255,162,77,.08); clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -1px 0; background: var(--grad); pointer-events: none; }
.ba__handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: var(--on-accent); background: var(--grad);
  box-shadow: 0 8px 24px -6px rgba(255,107,44,.7);
}
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba:has(.ba__range:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ---------- Butoane magnetice + undă luminoasă ---------- */
.fx-btn { position: relative; overflow: hidden; isolation: isolate; }
.fx-btn.is-magnetic { transition: filter .2s ease, box-shadow .2s ease; }
.ripple {
  position: absolute; z-index: -1; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 236, 214, .6), rgba(255, 140, 60, 0) 65%);
  transform: translate(-50%, -50%) scale(0); animation: ripple .75s ease-out forwards;
}
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }

/* ---------- Header: se ascunde la scroll în jos ---------- */
.header { transition: transform .45s var(--ease); }
.header.is-hidden { transform: translateY(calc(-100% - 4px)); }

/* ---------- Ambianță: granulație + lumini care plutesc ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- FAQ: acordeon animat ---------- */
.faq details.is-closing summary svg { transform: none; }

/* ---------- Panou Tweaks (?tweaks în URL sau Shift+T) ---------- */
.tweaks {
  position: fixed; left: 16px; bottom: 16px; z-index: 150; width: 260px; padding: 16px 18px; border-radius: 18px;
  display: none; flex-direction: column; gap: 14px; font-size: 13px; color: var(--text-2);
}
.tweaks.is-open { display: flex; }
.tweaks__head { display: flex; justify-content: space-between; align-items: center; }
.tweaks__head strong { font-family: var(--font-display); font-size: 15px; color: var(--text); }
.tweaks__head button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.tweaks label { display: flex; flex-direction: column; gap: 6px; }
.tweaks label span { display: flex; justify-content: space-between; }
.tweaks input[type="range"] { accent-color: var(--accent); width: 100%; }

/* ---------- Telefon: efecte mai ușoare ---------- */
@media (max-width: 900px) {
  .stats { padding: 32px 20px; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .stat-v { padding-left: 14px; }
  .marquee { padding: 18px 0; }
  .marquee__track { -webkit-text-stroke-width: 1px; }
  .grain { display: none; }   /* granulația pe tot ecranul costă mult la desenare pe telefon */
  .cover.cover--3d { height: calc(var(--w) * 4 / 3 + 60px); }
  .tweaks { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Telefon: fără blur de fundal și fără umbră pe poză (scumpe la desenare; umbra + masca dădeau dreptunghiuri în Safari) ---------- */
@media (max-width: 900px) {
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(9, 9, 9, .96); }
  .nav__links { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14, 14, 15, .97); }
  .hero__stage { filter: none; will-change: auto; }
  /* lățime fixă înainte să se încarce poza: altfel zona are 0 px și tot textul coboară când apare poza */
  .hero__stage { width: min(100%, 420px); }
  .hero__stage img { width: 100%; }
}

/* ---------- Mișcare redusă: totul static ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .preloader { display: none; }
  .grain, .section::before, .marquee__track, .marquee.is-static .marquee__track { animation: none; }
  .hero__webgl { display: none; }
  .header { transition: none; }
  .ripple { display: none; }
}

/* ==========================================================================
   CORECȚII (după analiză)
   ========================================================================== */

/* Bucle fără salt: spațiul de după ultimul element = gap-ul, deci -50% = exact o perioadă */
.ticker { padding-right: 48px; }
.marquee__track { padding-right: .45em; }

/* Elemente rămase în urma unui salt: apar instant, fără tranziție */
.no-anim, .no-anim * { transition: none !important; }


/* ---------- Accesibilitate: link „Sari la conținut” ---------- */
.skip { position: absolute; left: 12px; top: -80px; z-index: 400; padding: 12px 18px; border-radius: 12px; background: var(--grad); color: var(--on-accent); font-weight: 600; transition: top .2s ease; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
