/* ==========================================================================
   Rheinsystems — site nou
   Sistem de design: neutru + un singur accent (#ff1269, culoarea de brand),
   scară de spațiere 4px, tipografie fluidă, side rails + spine nodes.
   ========================================================================== */

/* ---- Fonturi (self-hosted, variable, latin + latin-ext pt. diacritice) ---- */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens ---- */
:root {
  /* culori de rol */
  --accent:        #ff1269;   /* brand — doar text mare / grafic (3.8:1) */
  --accent-deep:   #d4004f;   /* linkuri & text mic pe alb (5.3:1, AA) */
  --accent-dark:   #b10043;   /* hover */
  --accent-soft:   #fff0f5;   /* fundal tentă accent */
  --ink:           #0c0f14;
  --ink-2:         #363c46;
  --muted:         #5d6570;
  --bg:            #fbfbfc;
  --surface:       #ffffff;
  --surface-2:     #f4f5f7;
  --border:        #e6e8ee;
  --border-strong: #d4d8e0;
  --success:       #16a34a;

  /* tipografie */
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl:  clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  --text-3xl:  clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);

  /* spațiere (scara 4px) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-6: 1.5rem;  --s-8: 2rem;   --s-12: 3rem;   --s-16: 4rem; --s-24: 6rem;
  --section: clamp(3.25rem, 2rem + 2.5vw, 5.5rem);

  /* formă & adâncime */
  --radius-sm: 8px; --radius: 12px; --radius-lg: 18px; --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(12, 15, 20, .05);
  --shadow:    0 1px 2px rgba(12, 15, 20, .05), 0 10px 28px rgba(12, 15, 20, .07);
  --shadow-lg: 0 2px 4px rgba(12, 15, 20, .05), 0 28px 60px rgba(12, 15, 20, .13);

  /* layout */
  --frame: 1400px;
  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 72px;

  /* mișcare */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: 220ms;

  /* accente derivate */
  --accent-border: #ffd2e2;
  color-scheme: light;
}

/* ---- Tema întunecată (comutator în header + prefers-color-scheme la prima vizită) ---- */
:root[data-theme="dark"] {
  --bg:            #0b0e14;
  --surface:       #131722;
  --surface-2:     #1b2130;
  --border:        #242b3a;
  --border-strong: #333c50;
  --ink:           #f2f4f8;
  --ink-2:         #edf0f5;
  --muted:         #d6dce5;
  --accent-deep:   #ff7aa8;
  --accent-dark:   #ff9dbd;
  --accent-soft:   rgba(255, 18, 105, .14);
  --accent-border: rgba(255, 18, 105, .4);
  color-scheme: dark;
}
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .footer__certs img { filter: grayscale(1) invert(1); opacity: .8; }

/* ---- Reset & bază ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
p { margin: 0 0 var(--s-4); }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(12, 15, 20, .14); color: var(--ink); }
:root[data-theme="dark"] ::selection { background: rgba(255, 255, 255, .22); color: var(--ink); }

.skip-link {
  position: absolute; left: 50%; top: 8px; transform: translate(-50%, -300%);
  background: var(--ink); color: #fff; padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-sm); z-index: 200; transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); color: #fff; }

/* ---- Cadru cu side rails (ca la santier360.ro) ---- */
.frame {
  max-width: var(--frame);
  margin-inline: auto;
  border-inline: 1px solid var(--border);
  position: relative;
  background: var(--bg);
  overflow: clip;
}
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: none; padding-inline: clamp(1.25rem, 2.5vw, 2.5rem); }

/* separatoare discrete: doar linia fină dintre secțiuni */
.section { position: relative; padding-block: var(--section); }
.section--line { border-top: 1px solid var(--border); }

/* ---- Utilitare mici ---- */
.eyebrow {
  display: inline-block;
  font: 600 0.72rem/1 var(--font-body);
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-4);
}
.lead { font-size: var(--text-lg); color: var(--ink-2); max-width: 58ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.accent { color: var(--accent); }

.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--text-sm); color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 6px 14px;
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 8px var(--success);
}

/* ---- Butoane ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font: 600 var(--text-base)/1.2 var(--font-body);
  padding: 13px 26px; border-radius: var(--radius-full);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(135deg, #ff1269, #ff4c86); color: #fff; box-shadow: 0 8px 20px rgba(255, 18, 105, .32); }
.btn--primary:hover { background: linear-gradient(135deg, #e50f5e, #ff3578); color: #fff; box-shadow: 0 10px 26px rgba(255, 18, 105, .4); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--ink-2); color: var(--bg); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--on-dark { background: #fff; color: var(--ink); }
.btn--on-dark:hover { background: var(--surface-2); color: var(--ink); }
.btn--outline-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-dark:hover { border-color: #fff; color: #fff; }
.btn .arr { transition: transform var(--dur) var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: var(--text-sm); color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.link-arrow:hover { color: var(--accent-deep); }
.link-arrow .arr { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .arr { transform: translateX(3px); }

/* ---- Header ---- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
:root[data-theme="dark"] .header {
  background: #0a0d13;
  border-bottom-color: rgba(255, 255, 255, .08);
}
.header__in {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(12px, 1vw, 18px); }
.nav a {
  font: 500 0.9rem/1 var(--font-body); color: var(--ink-2);
  padding: var(--s-2) 0; position: relative;
  white-space: nowrap;
}
:root[data-theme="dark"] .nav a { color: rgba(255, 255, 255, .92); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--accent); transition: right var(--dur) var(--ease);
}
.nav a:hover { color: var(--ink); }
:root[data-theme="dark"] .nav a:hover { color: #fff; }
.nav a:hover::after { right: 0; }
.header .btn { padding: 10px 22px; font-size: var(--text-sm); }
.nav-toggle {
  display: none; background: none; border: 0; padding: var(--s-2); cursor: pointer; color: var(--ink);
}
.theme-toggle {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  background: none; border: 1px solid var(--border-strong);
  border-radius: var(--radius-full); color: var(--ink); cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); background: var(--surface-2); }
:root[data-theme="dark"] .theme-toggle { border-color: rgba(255, 255, 255, .22); color: #fff; }
:root[data-theme="dark"] .theme-toggle:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav-toggle svg { display: block; }

/* ---- Hero (urmează tema: luminos pe light, întunecat pe dark) ---- */
.hero {
  position: relative;
  background: var(--bg); color: var(--ink);
  padding-block: clamp(3rem, 5vw, 5.5rem) clamp(4.5rem, 6vw, 6.5rem);
  --hero-grid:     rgba(12, 15, 20, .045);
  --hero-glow-a:   rgba(255, 18, 105, .035);
  --hero-glow-b:   rgba(255, 18, 105, .02);
}
:root[data-theme="dark"] .hero {
  background: #0b0e14; color: #fff;
  --hero-grid:     rgba(255, 255, 255, .05);
  --hero-glow-a:   rgba(255, 18, 105, .2);
  --hero-glow-b:   rgba(255, 18, 105, .1);
}
.hero::before {
  /* caroiaj „blueprint" discret */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hero-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hero-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 70% at 84% 18%, var(--hero-glow-a), transparent 70%),
    radial-gradient(42% 55% at 6% 96%, var(--hero-glow-b), transparent 70%);
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1.25fr;
  gap: clamp(var(--s-6), 3.5vw, var(--s-12)); align-items: center;
}
.hero h1 { font-size: var(--text-3xl); margin-bottom: var(--s-6); color: inherit; }
.hero .lead { color: var(--ink-2); margin-bottom: var(--s-8); }
:root[data-theme="dark"] .hero .lead { color: rgba(255, 255, 255, .92); }
.hero .btn--outline-dark { color: var(--ink); border-color: var(--border-strong); }
.hero .btn--outline-dark:hover { color: var(--ink); border-color: var(--ink); }
:root[data-theme="dark"] .hero .btn--outline-dark { color: #fff; border-color: rgba(255, 255, 255, .35); }
:root[data-theme="dark"] .hero .btn--outline-dark:hover { color: #fff; border-color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: clamp(var(--s-8), 4vw, var(--s-12)); }
.hero__stats {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: var(--s-4) var(--s-8);
  border-top: 1px solid var(--border-strong);
  margin-top: clamp(var(--s-8), 4vw, var(--s-12));
  padding-top: clamp(var(--s-6), 2.5vw, var(--s-8));
}
.hero__stat { display: flex; align-items: baseline; gap: var(--s-3); }
.hero__stat b {
  font: 700 clamp(2rem, 2.4vw, 2.6rem)/1 var(--font-display);
  letter-spacing: -0.02em; color: var(--ink);
}
.hero__stat b .accent { color: var(--accent); }
.hero__stat > span { font-size: 1.02rem; color: var(--muted); white-space: nowrap; }
:root[data-theme="dark"] .hero__stat b { color: #fff; }
:root[data-theme="dark"] .hero__stat > span { color: rgba(255, 255, 255, .85); }

/* fereastră de browser pentru screenshot-uri */
.browser {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.browser__bar {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.browser__dots i:first-child { background: var(--accent); opacity: .8; }
.browser__url {
  flex: 1; text-align: center;
  font-size: 0.75rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 4px 12px;
  max-width: 260px; margin-inline: auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; }
.hero__vis { position: relative; }
/* pe ecrane late colajul iese controlat din container, spre marginea liberă din dreapta */
@media (min-width: 1025px) {
  .hero__vis {
    margin-right: calc(-1 * clamp(0px, (100vw - var(--container)) / 2 - 24px, 140px));
  }
}

/* ==========================================================================
   Hero — colaj de produs: containere reale, pregătite pentru capturi de ecran.
   Înlocuirea unui placeholder = se schimbă doar .sk cu <img>; layout-ul rămâne.
   ========================================================================== */
.showcase {
  position: relative; aspect-ratio: 62 / 56;
  list-style: none; margin: 0; padding: 0;
  --card-line: #ececec;
  --sk-a: #fcfdff; --sk-b: #f4f7fb;
  --sk-1: #eaeef4; --sk-2: #e1e7f0; --sk-3: #d6dde8;
}
:root[data-theme="dark"] .showcase { --card-line: rgba(255, 255, 255, .14); }

.shot { position: absolute; animation: shotIn .62s var(--ease) backwards; }
.shot__card {
  position: relative; overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--card-line);
  box-shadow:
    0 1px 2px rgba(12, 18, 32, .04),
    0 8px 20px rgba(12, 18, 32, .06),
    0 24px 48px rgba(12, 18, 32, .07),
    inset 0 1px 0 #ffffff;
  translate: 0 0;
  transition: translate 250ms var(--ease), box-shadow 250ms var(--ease);
}
.shot__card { cursor: pointer; }
.shot__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shot__card:hover {
  translate: 0 -4px;
  box-shadow:
    0 2px 4px rgba(12, 18, 32, .05),
    0 14px 30px rgba(12, 18, 32, .09),
    0 34px 66px rgba(12, 18, 32, .10),
    inset 0 1px 0 #ffffff;
}
.shot__name {
  margin: 0 0 .55em;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #4a515c; white-space: nowrap;
}
.shot--s360 .shot__name::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); margin-right: 7px; margin-top: -2px;
}
.shot__frame {
  position: relative; overflow: hidden;
  border-radius: 9px; background: var(--sk-a);
}
/* rama primește imaginea reală fără nicio altă modificare */
.shot__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot__frame::after {           /* micro-reflexie: sticlă foarte discretă */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(157deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 42%);
}

/* ---- teanc de cărți aruncate pe masă ----
   Stratificarea curge dinspre spate (stânga-sus) spre față, Șantier360 fiind
   cardul din față. Regula compoziției: un card poate fi acoperit doar pe muchia
   de jos sau pe colțurile de jos — colțul din stânga-sus, unde stă denumirea
   produsului, rămâne mereu liber. */
.shot--s360 { left: 8%; top: 50%; width: 58%; z-index: 6; }
.shot--s360 .shot__card { border-radius: 22px; padding: 3.6%; }
.shot--s360 .shot__name { font-size: .78rem; }
.shot--s360 .shot__frame { aspect-ratio: 16 / 10; }

.shot--approvals { left: 58%; top: 2%;  width: 40%; z-index: 2; }
.shot--pontaj    { left: 57%; top: 28%; width: 41%; z-index: 4; }
.shot--approvals .shot__card, .shot--pontaj .shot__card { border-radius: 18px; padding: 4%; }
.shot--approvals .shot__name, .shot--pontaj .shot__name { font-size: .68rem; }
.shot--approvals .shot__frame, .shot--pontaj .shot__frame { aspect-ratio: 16 / 10; }
.shot--approvals .shot__card { rotate: 0deg; }   /* înclinat: 2deg */
.shot--pontaj .shot__card { rotate: 0deg; }      /* înclinat: -2deg */

.shot--seap { left: 0;   top: 4%;  width: 30%; z-index: 1; }
.shot--rez  { left: 27%; top: 0;   width: 30%; z-index: 2; }
.shot--hr   { left: 68%; top: 58%; width: 30%; z-index: 5; }
.shot--seap .shot__card, .shot--rez .shot__card, .shot--hr .shot__card { border-radius: 16px; padding: 5%; }
.shot--seap .shot__name, .shot--rez .shot__name, .shot--hr .shot__name { font-size: .57rem; letter-spacing: .07em; }
.shot--seap .shot__frame, .shot--hr .shot__frame { aspect-ratio: 16 / 10; }
.shot--rez .shot__frame { aspect-ratio: 4 / 3; }
.shot--seap .shot__card { rotate: 0deg; }        /* înclinat: -3deg */
.shot--rez .shot__card  { rotate: 0deg; }        /* înclinat: 3.5deg */
.shot--hr .shot__card   { rotate: 0deg; }        /* înclinat: -3deg */

/* SSPS are ecran split (panou roz + formular pe fundal închis): îi păstrăm
   proporția reală a paginii de login, pe un card lat, altfel se citește ca o pată. */
.shot--ssps { left: 2%; top: 26%; width: 53%; z-index: 3; }
.shot--ssps .shot__card { border-radius: 16px; padding: 3.4%; rotate: 0deg; }  /* înclinat: 2.5deg */
.shot--ssps .shot__name { font-size: .62rem; letter-spacing: .07em; }
.shot--ssps .shot__frame { aspect-ratio: 1887 / 794; }

/* efect de sticlă pe cele două containere din planul secund */
.shot--approvals .shot__card, .shot--rez .shot__card {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(9px) saturate(1.08);
  -webkit-backdrop-filter: blur(9px) saturate(1.08);
}

/* ---- schelet de conținut (substituent elegant pentru captura reală) ---- */
.sk { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sk-a), var(--sk-b)); }
.sk__top {
  position: absolute; inset: 0 0 auto 0; height: 16%; min-height: 13px;
  display: flex; align-items: center; gap: 3px;
  padding-inline: 5%; border-bottom: 1px solid var(--sk-1);
}
.sk__top i { width: 4px; height: 4px; border-radius: 50%; background: var(--sk-3); flex: none; }
.sk__top em { margin-left: auto; width: 32%; height: 5px; border-radius: 3px; background: var(--sk-1); }
.sk__aside {
  position: absolute; left: 0; top: 16%; bottom: 0; width: 21%;
  border-right: 1px solid var(--sk-1);
  display: flex; flex-direction: column; justify-content: center; gap: 12%;
  padding-inline: 13%;
}
.sk__aside i { display: block; height: 4px; border-radius: 2px; background: var(--sk-2); }
.sk__aside i:nth-child(2) { background: var(--sk-3); }
.sk__main {
  position: absolute; left: 21%; right: 0; top: 16%; bottom: 0;
  display: flex; flex-direction: column; padding: 6%;
}
.sk__lead { width: 48%; height: 6px; border-radius: 3px; background: var(--sk-3); }
.sk__bars { margin-top: auto; display: flex; align-items: flex-end; gap: 5%; height: 52%; }
.sk__bars i { flex: 1; border-radius: 3px 3px 2px 2px; background: var(--sk-2); }
.sk__bars i:nth-child(1) { height: 40%; }
.sk__bars i:nth-child(2) { height: 66%; }
.sk__bars i:nth-child(3) { height: 48%; }
.sk__bars i:nth-child(4) { height: 100%; }
.sk__bars i:nth-child(5) { height: 58%; }
.sk__rows { margin-top: 7%; display: flex; flex-direction: column; gap: 5px; }
.sk__rows u { display: block; height: 4px; border-radius: 2px; background: var(--sk-1); }
.sk__rows u:last-child { width: 58%; }

/* densitate de conținut pe mărimi */
.shot--approvals .sk__rows, .shot--pontaj .sk__rows { display: none; }
.shot--seap .sk__aside, .shot--ssps .sk__aside, .shot--rez .sk__aside { display: none; }
.shot--seap .sk__main, .shot--ssps .sk__main, .shot--rez .sk__main { left: 0; }
.shot--seap .sk__bars, .shot--ssps .sk__bars, .shot--rez .sk__bars { display: none; }
.shot--seap .sk__rows, .shot--ssps .sk__rows, .shot--rez .sk__rows { margin-top: 9%; }

/* cele două accente roz permise în interiorul conținutului */
.shot--s360 .sk__aside i:nth-child(2) { background: var(--accent); opacity: .9; }
.shot--ssps .sk__top i:first-child { background: var(--accent); }

/* pe ecrane înguste colajul suprapus devine grilă: toate cele 7 produse rămân
   vizibile, cu numele lizibil (Șantier360 pe toată lățimea, primul) */
@media (max-width: 560px) {
  .showcase {
    position: static; aspect-ratio: auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; align-items: start;
  }
  .shot { position: static; width: auto; }
  .shot--s360 { grid-column: 1 / -1; order: -1; }
  .shot .shot__card { border-radius: 14px; padding: 10px; animation: none; }
  .shot--s360 .shot__card { border-radius: 16px; padding: 12px; }
  .shot .shot__frame { aspect-ratio: 16 / 10; }
  .shot .shot__name { font-size: .55rem; letter-spacing: .06em; }
  .shot--s360 .shot__name { font-size: .64rem; letter-spacing: .1em; }
}

/* ---- mișcare: intrare decalată, plutire lentă, ridicare la hover ---- */
@keyframes shotIn { from { opacity: 0; transform: translateY(18px); } }
.shot--seap    { animation-delay: .05s; }
.shot--approvals { animation-delay: .13s; }
.shot--rez     { animation-delay: .21s; }
.shot--pontaj      { animation-delay: .29s; }
.shot--ssps    { animation-delay: .37s; }
.shot--hr      { animation-delay: .45s; }
.shot--s360    { animation-delay: .53s; }

/* ---- Secțiunea produs vedetă ---- */
.flagship__panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 3rem);
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(var(--s-8), 4vw, var(--s-12)); align-items: center;
}
.flagship__panel .browser { box-shadow: var(--shadow); }
.flagship h2 { font-size: var(--text-2xl); }
.flagship .name360 b { color: var(--accent); }
.em-line { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.checks { list-style: none; margin: 0 0 var(--s-8); padding: 0; display: grid; gap: var(--s-3); }
.checks li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--ink-2); }
.checks svg { flex: none; margin-top: 3px; color: var(--ink); }
.checks b { color: var(--ink); font-weight: 600; }
.flagship__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }

/* ---- Grid produse ---- */
.products__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); margin-bottom: var(--s-8); }
.products__head h2 { font-size: var(--text-2xl); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--border);
}
.card__tag {
  font: 600 0.7rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-full); padding: 5px 10px;
}
.card__media {
  width: 100%; aspect-ratio: 16 / 9;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: grid; place-items: center;
  cursor: pointer; padding: 0;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card__media:hover { border-color: var(--accent); background: var(--accent-soft); }
.card__media span { font: 600 var(--text-sm)/1 var(--font-body); color: var(--accent); }
.card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-sm) - 2px); }
/* cu fotografie: bordura punctată de substituent devine ramă discretă */
.card__media:has(img) {
  border: 1px solid var(--border); background: var(--surface);
  overflow: hidden; position: relative;
}
.card__media:has(img):hover { border-color: var(--accent); }
.card__media:has(img) img { transition: scale 300ms var(--ease); }
.card__media:has(img):hover img { scale: 1.03; }

/* indiciu discret la hover: „Click pentru detalii" peste fotografie */
.card__media:has(img)::before,
.card__media:has(img)::after {
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.card__media:has(img)::before {         /* voal fin, ca textul să rămână lizibil */
  content: ""; position: absolute; inset: 0;
  background: rgba(12, 15, 20, .32);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}
.card__media:has(img)::after {
  content: "Click pentru detalii";
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  font: 600 0.78rem/1 var(--font-body);
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff; white-space: nowrap;
  padding: 10px 18px; border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .12);
}
.card__media:has(img):hover::before,
.card__media:has(img):hover::after,
.card__media:has(img):focus-visible::before,
.card__media:has(img):focus-visible::after { opacity: 1; }
@media (hover: none) {                  /* pe touch nu există hover: se arată permanent, discret */
  .card__media:has(img)::after { opacity: .92; padding: 7px 14px; font-size: .7rem; }
  .card__media:has(img)::before { opacity: .55; }
}
/* al 7-lea card stă singur pe ultimul rând: centrat pe coloana din mijloc */
.cards .card--solo { grid-column: 2; }
@media (max-width: 1024px) { .cards .card--solo { grid-column: auto; } }

.card h3 {
  font-size: 1.2rem; margin: var(--s-2) 0 0;
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
}
/* domeniul aplicației: chip neutru (negru), accent roz la hover; filă nouă */
.card__url {
  display: inline-flex; align-items: center; gap: 5px;
  font: 600 0.72rem/1 var(--font-body);
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 5px 11px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card__url svg { flex: none; }
.card__url:hover { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-deep); }
/* chipurile de domenii sunt ASCUNSE temporar (domeniile nu sunt încă înregistrate);
   markup-ul și JS-ul rămân pe loc — pentru reactivare ștergeți regula de mai jos
   și perechea ei de la .appmodal__url */
.card__url { display: none; }
.card p { color: var(--muted); font-size: var(--text-sm); margin: 0; flex: 1; }
.card .link-arrow { margin-top: var(--s-2); }

/* ---- Soluții custom ---- */
.custom__grid {
  display: grid; grid-template-columns: 1fr 1.25fr;
  gap: clamp(var(--s-8), 5vw, var(--s-16)); align-items: center;
}
.custom h2 { font-size: var(--text-2xl); }
.custom h2 .accent { color: var(--accent); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin: var(--s-8) 0; }
.feature { display: flex; gap: var(--s-3); }
.feature svg { flex: none; color: var(--muted); margin-top: 2px; }
.feature b { display: block; font-weight: 600; margin-bottom: 2px; }
.feature p { margin: 0; font-size: var(--text-sm); color: var(--muted); }
.diagram { display: block; width: 100%; height: auto; }
/* pe dark, hubul negru s-ar pierde în fundalul secțiunii — primește un gri-albăstrui
   deschis, distinct și de casetele albe; inelul punctat trece pe alb transparent */
:root[data-theme="dark"] .diagram .hubstop-a { stop-color: #39414f; }
:root[data-theme="dark"] .diagram .hubstop-b { stop-color: #5a6478; }
:root[data-theme="dark"] .diagram__ring { stroke: rgba(255, 255, 255, .22); }

/* ---- Colaborare (transparență & control) ---- */
.collab { padding-block: calc(var(--section) * 1.2); }
.collab h2 { font-size: var(--text-2xl); max-width: none; }
.collab .lead { max-width: none; }
.collab h2 .accent { color: var(--accent); }
.collab__grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(var(--s-12), 6vw, var(--s-24)); align-items: start;
  margin-top: clamp(var(--s-12), 5vw, var(--s-16));
}
.flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(var(--s-8), 4vw, var(--s-12));
  position: relative;
}
.flow::before {
  content: ""; position: absolute; top: 12px; bottom: 12px; left: 5px;
  width: 1px; background: var(--border-strong);
}
.flow__step { display: flex; align-items: flex-start; gap: clamp(var(--s-4), 2vw, var(--s-6)); }
.flow__dot {
  flex: none; width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--muted); background: var(--bg);
  position: relative; z-index: 1; margin-top: 5px;
}
.flow__num {
  display: block; font: 600 var(--text-sm)/1 var(--font-display);
  letter-spacing: .08em; color: var(--muted); margin-bottom: var(--s-2);
}
.flow__step h3 { font-size: var(--text-lg); margin: 0 0 var(--s-2); }
.flow__step p { margin: 0; font-size: var(--text-sm); color: var(--muted); max-width: 46ch; }
.collab__panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(var(--s-6), 3vw, var(--s-12));
}
.collab__panel > h3 { font-size: var(--text-xl); margin: 0 0 var(--s-6); }
.collab__checks { list-style: none; margin: 0 0 var(--s-8); padding: 0; display: grid; gap: var(--s-6); }
.collab__checks li { display: flex; align-items: flex-start; gap: var(--s-3); }
.collab__checks .check { color: var(--ink); font-weight: 700; flex: none; }
.collab__checks b { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.collab__checks p { margin: 0; font-size: var(--text-sm); color: var(--muted); }
.collab__quote {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600;
  color: var(--ink); line-height: 1.5;
  border-left: 2px solid var(--accent); padding-left: var(--s-4);
  margin-bottom: var(--s-8);
}

/* ---- Industrii ---- */
.industries h2 { font-size: var(--text-2xl); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: var(--s-8); }
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-2);
  box-shadow: var(--shadow);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.tile svg { color: var(--muted); margin-bottom: var(--s-2); }
.tile h3 { font-size: 1.05rem; margin: 0; }
.tile p { margin: 0; font-size: var(--text-sm); color: var(--muted); }

/* ---- Tehnologii ---- */
.tech { text-align: center; padding-block: var(--s-8); }
.tech .eyebrow { color: var(--muted); }
.tech__row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); max-width: 820px; margin-inline: auto; }
.tech__row span {
  font: 500 var(--text-sm)/1 var(--font-display);
  color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 10px 18px;
}

/* ---- Echipa (oamenii din spatele proiectului) ---- */
.team h2 { font-size: var(--text-2xl); max-width: none; }
.team h2 .accent { color: var(--accent); }
.team .lead { max-width: none; }
.team__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s-12), 6vw, var(--s-24)); align-items: center;
  margin-top: clamp(var(--s-12), 5vw, var(--s-16));
}

/* diagramă minimalistă: doar linii de 1px, iconițe gri, accent doar pe nodul central;
   panou alb identic cu .collab__panel (cerință user) */
.orgflow {
  width: min(100%, 480px); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(var(--s-6), 3vw, var(--s-12));
}
.orgflow__node {
  display: inline-flex; align-items: center;
  padding-block: 7px;
  font: 500 0.95rem/1.3 var(--font-body); color: var(--ink-2);
  /* iconița stă în afara fluxului: axul diagramei taie centrul TEXTULUI, nu icon+text */
  position: relative;
}
.orgflow__node .orgflow__ico { position: absolute; left: -28px; top: 50%; translate: 0 -50%; }
.orgflow__ico {
  display: grid; place-items: center;
  width: 26px; height: 26px; flex: none;
  color: var(--muted); position: relative;
}
.orgflow__link { width: 1px; height: 20px; background: var(--border-strong); }
.orgflow__split {
  width: 50%; height: 14px;
  border-top: 1px solid var(--border-strong);
  border-inline: 1px solid var(--border-strong);
}
.orgflow__split--merge { border-top: 0; border-bottom: 1px solid var(--border-strong); }
.orgflow__pair {
  display: grid; grid-template-columns: 1fr 1fr;
  width: 100%; justify-items: center;
}
.orgflow__pair .orgflow__node { padding-block: 14px; }
.orgflow__node--hub { color: var(--ink); font-weight: 600; }
.orgflow__node--hub .orgflow__ico { color: var(--ink); }
.orgflow__node--hub .orgflow__ico::after {
  content: ""; position: absolute; inset: 0;
  border: 1.5px solid var(--border-strong); border-radius: 50%;
  animation: hubPulse 2.8s ease-out infinite;
}
@keyframes hubPulse {
  0% { transform: scale(.55); opacity: .7; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

/* trei blocuri editoriale: fără carduri, doar hairline-uri */
.team__block { border-top: 1px solid var(--border); padding-block: var(--s-6); }
.team__block h3 { font-size: var(--text-lg); margin: 0 0 var(--s-2); }
.team__block p { margin: 0; font-size: var(--text-sm); color: var(--muted); max-width: 46ch; }
.team__aside .btn { margin-top: var(--s-4); }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin-inline: auto; }
.faq h2 { font-size: var(--text-2xl); text-align: center; }
.faq .lead { text-align: center; margin: 0 auto var(--s-8); }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: var(--s-3);
  box-shadow: var(--shadow);
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  cursor: pointer; list-style: none;
  font: 600 var(--text-base)/1.4 var(--font-body);
  padding: var(--s-4) var(--s-6);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--accent-deep); transition: transform var(--dur) var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-6) var(--s-6); margin: 0; color: var(--ink-2); }

/* ---- Grupul Rheinbrucke (povestea grupului) ---- */
.group__head {
  margin-bottom: clamp(var(--s-8), 3vw, var(--s-12));
  /* logoul: marginea dreaptă pe limita textului, baza pe baza titlului */
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-8); flex-wrap: wrap;
}
.group__head h2 { font-size: var(--text-2xl); margin-bottom: 0; }
.group__grid {
  display: grid; grid-template-columns: minmax(180px, 0.5fr) 1.5fr;
  gap: clamp(var(--s-8), 4vw, var(--s-16));
  align-items: start;
}
.group__lineage { list-style: none; margin: 0; padding: 0; }
.group__lineage li {
  font: 600 0.72rem/1 var(--font-body);
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted);
  padding-block: var(--s-4);
  border-top: 1px solid var(--border);
}
.group__lineage li:last-child { border-bottom: 1px solid var(--border); color: var(--ink); }
.group__story { justify-self: end; }
.group__logo {
  margin: 0 var(--s-4) 0 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.group__logo a { display: inline-block; }
/* chipul se întinde pe toată lățimea logoului, cu textul centrat */
.group__logo .card__url { align-self: stretch; display: inline-flex; justify-content: center; }
.group__logo img { width: 190px; height: auto; transition: opacity var(--dur) var(--ease); }
.group__logo a:hover img { opacity: .75; }
.group__story {
  display: flex; flex-direction: column; gap: var(--s-4);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: clamp(var(--s-6), 3vw, var(--s-12));
}
.group__story p { margin: 0; color: var(--ink-2); }
.group__story strong { font-weight: 600; color: var(--ink); }
.group__story .group__today {
  margin-top: var(--s-2);
  font-family: var(--font-display);
  /* max 16px: peste --text-base fraza nu mai încape pe un singur rând lângă bara accent */
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  border-left: 2px solid var(--accent);
  padding-left: var(--s-4);
}

/* ---- Pagini legale (Confidențialitate / Termeni / GDPR) ---- */
.legal__wrap { max-width: 820px; }
.legal h1 { font-size: var(--text-2xl); margin-bottom: var(--s-2); }
.legal__meta { color: var(--muted); font-size: var(--text-sm); margin-bottom: clamp(var(--s-6), 3vw, var(--s-12)); }
.legal__lead { font-size: var(--text-lg); color: var(--ink-2); margin-bottom: clamp(var(--s-6), 3vw, var(--s-8)); }
.legal__section { margin-bottom: clamp(var(--s-6), 3vw, var(--s-8)); }
.legal__section h2 { font-size: var(--text-xl); margin-bottom: var(--s-3); }
.legal__section p { color: var(--ink-2); }
.legal__list { margin: 0 0 var(--s-4); padding-left: 1.25em; color: var(--ink-2); }
.legal__list li { margin-bottom: var(--s-2); }
.legal__facts {
  list-style: none; margin: var(--s-4) 0; padding: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.legal__facts li {
  display: flex; gap: var(--s-4); align-items: baseline;
  padding: 10px var(--s-4); border-bottom: 1px solid var(--border);
  font-size: var(--text-sm); color: var(--ink-2);
}
.legal__facts li:last-child { border-bottom: 0; }
.legal__facts span { flex: 0 0 170px; color: var(--muted); font-weight: 600; }
.legal__back { margin-top: var(--s-4); }
@media (max-width: 560px) { .legal__facts span { flex-basis: 120px; } }

/* ---- Footer (structură ca la santier360.ro) ---- */
.footer { border-top: 1px solid var(--border); background: var(--surface); position: relative; }
.footer__top {
  display: grid; grid-template-columns: auto auto auto;
  justify-content: space-between;
  gap: clamp(var(--s-6), 3vw, var(--s-12));
  padding-block: var(--s-4);
}
.footer__brand img { height: 30px; width: auto; margin-bottom: var(--s-2); }
.footer__brand p { color: var(--muted); font-size: 0.8rem; max-width: none; margin: 0; }
.footer__certs {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(var(--s-4), 2vw, var(--s-8));
  align-self: center;
}
.footer__certs figure { margin: 0; text-align: center; flex: none; }
.footer__certs img { width: 46px; height: 45px; margin-inline: auto; filter: grayscale(1); opacity: .85; }
.footer__certs figcaption { font-size: 0.58rem; line-height: 1.25; color: var(--muted); margin-top: 3px; }
.footer__col h5 {
  font: 600 0.78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep); margin: 0 0 var(--s-1);
}
.footer__col address { font-style: normal; color: var(--ink-2); font-size: 0.78rem; margin-bottom: 2px; }
.footer__col > a { font-size: 0.78rem; }
.footer__logos { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-1); }
.footer__logos img { height: 24px; width: auto; }
.footer__badges { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-3); }
.footer__badges img { height: 32px; width: auto; }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: var(--s-3);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  font-size: var(--text-sm); color: var(--muted);
}
.footer__legal { display: flex; gap: var(--s-6); }
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--ink); }

/* ---- Lightbox ---- */
.zoom-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in;
}
.zoom-btn img { width: 100%; }
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: rgba(8, 10, 14, .92);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1560px, 96vw); max-height: 90vh;
  width: auto; height: auto;
  border-radius: var(--radius); box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.lightbox__close {
  position: fixed; top: 18px; right: 22px;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .2); }

/* ---- Popup produs (capturi mari + fișă de produs) ---- */
.appmodal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: rgba(8, 10, 14, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: clamp(0.75rem, 2vw, 1.75rem);
  opacity: 0;
  transition: opacity .18s var(--ease);
}
.appmodal.open { opacity: 1; }
.appmodal[hidden] { display: none; }
.appmodal__panel {
  position: relative;
  width: min(1400px, 100%);
  max-height: 92vh; overflow: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
  display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr);
  gap: clamp(var(--s-6), 2.5vw, var(--s-8));
  padding: clamp(var(--s-5, 1.25rem), 2.5vw, var(--s-8));
  opacity: 0;
  transform: translateY(10px) scale(.985);
  transition: transform .24s var(--ease), opacity .2s var(--ease);
}
.appmodal.open .appmodal__panel { opacity: 1; transform: none; }
.appmodal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
}
.appmodal__close:hover { border-color: var(--ink); }
.appmodal__body {
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-3);
  border-left: 1px solid var(--border);
  padding-left: clamp(var(--s-6), 2.5vw, var(--s-8));
  padding-right: var(--s-4);
}
.appmodal__eyebrow { margin-bottom: 0; }
.appmodal__body h3 { font-size: var(--text-2xl); line-height: 1.15; margin: 0; }
.appmodal__url {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 0.8rem/1 var(--font-body);
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 6px 13px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.appmodal__url[hidden] { display: none; }
/* ascuns temporar — vezi comentariul de la .card__url */
.appmodal__url { display: none; }
.appmodal__url svg { flex: none; }
.appmodal__url:hover { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-deep); }
.appmodal__desc { color: var(--ink-2); margin: 0; white-space: pre-line; }
.appmodal__cta { align-self: flex-start; margin-top: var(--s-2); }

.appmodal__slider { position: relative; align-self: center; min-width: 0; }
.slider__viewport {
  overflow: hidden; border-radius: var(--radius);
  aspect-ratio: var(--shot-ratio, 16 / 10);
  max-height: 72vh;
}
.slider__track { display: flex; height: 100%; transition: transform .7s var(--ease); }
.slide {
  flex: 0 0 100%; height: 100%;
  background: var(--surface-2);
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
  display: grid; place-items: center;
}
.slide span { font: 600 var(--text-sm)/1 var(--font-body); color: var(--accent); }
/* capturile de aplicație se văd integral (nu decupate), pe fundal neutru */
.slide--shot { border: 1px solid var(--border); background: var(--surface-2); padding: 0; position: relative; }
/* absolut, ca să ia exact cutia slide-ului: height:100% nu se rezolvă în rândul
   auto al gridului, iar capturile mai înalte decât viewportul ieșeau decupate jos */
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: calc(var(--radius) - 2px); }
/* săgețile stau ascunse până la hover pe zona de imagine (mereu vizibile pe touch) */
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .85); border: 1px solid var(--border);
  color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.appmodal__slider:hover .slider__btn,
.slider__btn:focus-visible { opacity: 1; }
@media (hover: none) { .slider__btn { opacity: 1; } }
.slider__btn:hover { border-color: var(--ink); }
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }
:root[data-theme="dark"] .slider__btn { background: rgba(24, 28, 36, .82); }
.slider__nav {
  display: flex; align-items: center; justify-content: center; gap: var(--s-4);
  margin-top: var(--s-4);
}
/* [hidden] pierde altfel în fața lui display:flex */
.slider__nav[hidden] { display: none; }
.slider__thumbs { display: flex; gap: var(--s-2); }
.slider__thumbs .thumb {
  width: 76px; aspect-ratio: 16 / 10;
  padding: 0; overflow: hidden; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: 6px;
  background: var(--surface-2);
  opacity: .55;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.slider__thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider__thumbs .thumb:hover { opacity: .85; }
.slider__thumbs .thumb.on { opacity: 1; border-color: var(--accent); }
.slider__count {
  font: 500 var(--text-sm)/1 var(--font-body);
  color: var(--muted); font-variant-numeric: tabular-nums;
}

/* ---- Navigare între secțiuni (capsulă fixă, dreapta-mijloc) ---- */
.secnav {
  position: fixed; z-index: 90;
  /* fallback fără JS; poziția exactă pe linia frame-ului o setează JS-ul
     (100vw include scrollbarul, frame-ul se centrează fără el → CSS-ul singur dă decalaj) */
  right: max(6px, calc((100vw - var(--frame)) / 2 - 22px));
  top: 50%; translate: 0 -50%;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
:root[data-theme="dark"] .secnav { background: rgba(19, 23, 34, .78); }
.secnav button {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  color: var(--muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.secnav button + button { border-top: 1px solid var(--border); }
.secnav button:hover { color: var(--ink); background: var(--surface-2); }
.secnav button svg { width: 18px; height: 18px; }
.secnav button[disabled] { opacity: .3; pointer-events: none; }
@media (max-width: 1280px) { .secnav { display: none; } }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__grid, .flagship__panel, .custom__grid { grid-template-columns: 1fr; }
  .hero__grid { gap: var(--s-12); }
  .custom__grid > .custom__vis { order: -1; max-width: 560px; }
  .cards, .tiles { grid-template-columns: repeat(2, 1fr); }
  .results__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-8) var(--s-6); }
  .team__grid { grid-template-columns: 1fr; }
  .group__grid { grid-template-columns: 1fr; }
  .group__story { justify-self: stretch; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .collab__grid { grid-template-columns: 1fr; }
}
@media (max-width: 1300px) {
  /* 10 itemi de meniu nu încap sub ~1300px: hamburger */
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--s-4) var(--gutter) var(--s-6);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: var(--s-4) 0; font-size: var(--text-lg); color: var(--ink-2); border-bottom: 1px solid var(--border); }
  .nav a:last-of-type { border-bottom: 0; }
  .nav a::after { content: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 720px) {
  .header .btn { display: none; }
  .hero__stat b { font-size: 1.8rem; }
  /* popupul devine sheet ancorat jos, pe toată lățimea */
  .appmodal { padding: 0; place-items: end stretch; }
  .appmodal__panel {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 94vh; max-height: 94dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .appmodal__body {
    border-left: 0; padding-left: 0; padding-right: 0;
    border-top: 1px solid var(--border); padding-top: var(--s-5, 1.25rem);
  }
  .slider__viewport { max-height: 52vh; }
  .slider__thumbs .thumb { width: 60px; }
  .cards, .tiles, .features { grid-template-columns: 1fr; }
  .products__head { flex-direction: column; align-items: flex-start; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
}

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