/* infoMedics — adaptat din stylesheet-ul agroPuls.
   Structura si spatierile sunt identice; difera doar paleta. */
/* ============================================================
   agroPuls — sistem de design (modern minimalist)
   O singură sursă de stil pt toate paginile. Fonturi self-hosted
   (fără CDN). Light + dark prin tokens.
   ============================================================ */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/roboto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #FCFBFB;
  --surface: #FFFFFF;
  --surface-2: #F7F3F3;
  --ink: #191516;
  --muted: #645B5C;
  --line: #ECE5E6;
  --accent: #CE1B22;
  --accent-2: #A31217;
  --on-accent: #FFFFFF;
  --pin-blue: #2E6BD6;

  --maxw: 1120px;
  --docw: 760px;
  --radius: 14px;

  --sans: 'Roboto', system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", "Cascadia Code", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0D0D; --surface: #181516; --surface-2: #211D1E;
    --ink: #ECE8E9; --muted: #A69D9E; --line: #2C2627;
    --accent: #FF6B6B; --accent-2: #FF9090; --on-accent: #240A0B;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0D0D; --surface: #181516; --surface-2: #211D1E;
  --ink: #ECE8E9; --muted: #A69D9E; --line: #2C2627;
  --accent: #FF6B6B; --accent-2: #FF9090; --on-accent: #240A0B;
}
:root[data-theme="light"] {
  --bg: #FCFBFB; --surface: #FFFFFF; --surface-2: #F7F3F3;
  --ink: #191516; --muted: #645B5C; --line: #ECE5E6;
  --accent: #CE1B22; --accent-2: #A31217; --on-accent: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow, .section-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; gap: 18px;
}
.brand {
  font-weight: 700; font-size: 1.16rem; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink);
}
.brand .puls { color: var(--accent); }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a {
  font-size: 0.9rem; color: var(--muted); text-decoration: none; font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
/* Subpagina curentă: linie gri închis sub cuvânt */
.nav-links a.active { color: var(--ink); border-bottom: 2px solid #3f3f46; padding-bottom: 4px; }
:root[data-theme="dark"] .nav-links a.active { border-bottom-color: #a1a1aa; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Buton hamburger (doar mobil) */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  width: 40px; height: 40px; flex: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Selector limbă (dropdown) */
.lang-switch { position: relative; font-family: var(--mono); }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); font-family: var(--mono); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.04em; padding: 7px 9px; cursor: pointer; transition: border-color 0.15s;
}
.lang-trigger:hover { border-color: var(--accent); }
.lang-trigger svg { transition: transform 0.15s; flex: none; }
.lang-switch.open .lang-trigger svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 92px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.16); padding: 5px; display: none; z-index: 40;
}
.lang-switch.open .lang-menu { display: block; }
.lang-opt {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em; padding: 8px 10px; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.lang-opt:hover { background: var(--surface-2); color: var(--ink); }
.lang-opt.active { color: var(--accent); }

.theme-toggle {
  width: 34px; height: 34px; flex: none;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--ink);
  cursor: pointer; display: grid; place-items: center;
  transition: border-color 0.15s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun,
:root:not([data-theme="light"]) .theme-toggle .sun { }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .moon { display: none; } :root:not([data-theme="light"]) .theme-toggle .sun { display: block; } }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 600; font-size: 0.92rem; padding: 11px 18px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Navigație pagini (doc tabs) ---------- */
.page-nav {
  max-width: var(--docw); margin: 0 auto; padding: 20px 24px 0;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.page-nav a {
  font-size: 0.86rem; font-weight: 500; color: var(--muted); text-decoration: none;
  padding: 7px 12px; border-radius: 8px; transition: background 0.15s, color 0.15s;
}
.page-nav a:hover { background: var(--surface-2); color: var(--ink); }
.page-nav a.active { background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* ---------- Conținut (pagini doc) ---------- */
main { max-width: var(--docw); margin: 0 auto; padding: 40px 24px 88px; }
main.landing { max-width: none; margin: 0; padding: 0; }

.doc-title {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 10px;
  text-wrap: balance;
}
.doc-meta {
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
  letter-spacing: 0.03em; margin-bottom: 40px; padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.section { margin-bottom: 34px; }
.section h2 {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 12px; line-height: 1.3;
}
.section p { color: var(--ink); margin-bottom: 14px; white-space: pre-line; text-align: justify; text-justify: inter-word; }
.section p:last-child { margin-bottom: 0; }
.section-eyebrow {
  display: inline-block; margin-bottom: 10px; padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
}

/* Callout / steps / email (ștergere cont) */
.callout {
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0;
  padding: 18px 22px; margin: 24px 0;
}
.callout strong { color: var(--ink); }
.steps { list-style: none; counter-reset: step; margin: 24px 0; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 18px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; background: var(--accent); color: var(--on-accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; font-family: var(--mono);
}
.email-link {
  display: inline-block; background: var(--accent); color: var(--on-accent);
  text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 10px;
  margin-top: 8px; transition: background 0.15s;
}
.email-link:hover { background: var(--accent-2); }

/* ---------- Landing ---------- */
.hero { padding: 66px 0 44px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 700; margin: 18px 0 0; text-wrap: balance;
}
.hero h1 .thin { color: var(--muted); font-weight: 600; }
.hero-lead { font-size: 1.14rem; color: var(--muted); max-width: 46ch; margin: 20px 0 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 22px; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; }

/* Cluster telefoane / capturi portrait */
.phones { position: relative; height: 500px; display: grid; place-items: center; }
.phone {
  position: absolute; width: 208px; aspect-ratio: 9 / 20; background: #0d0b0b;
  border-radius: 30px; padding: 7px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.06);
}
.phone.left { transform: translateX(-118px) translateY(26px) rotate(-6deg) scale(0.9); z-index: 1; }
.phone.right { transform: translateX(118px) translateY(26px) rotate(6deg) scale(0.9); z-index: 1; }
.phone.center { z-index: 3; transform: translateY(-8px); }
.phone .shot { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; display: block; }
.screen { position: relative; height: 100%; border-radius: 24px; overflow: hidden; background: var(--surface-2); }
.scr-top { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.scr-brand { font-size: 0.62rem; font-weight: 700; }
.scr-brand b { color: var(--accent); }
.scr-search { flex: 1; height: 15px; margin: 0 10px; border-radius: 8px; background: var(--surface-2); }
.scr-map { position: absolute; inset: 42px 0 66px; }
.scr-map.field {
  background:
    radial-gradient(120px 90px at 30% 25%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(140px 100px at 75% 60%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 26px, color-mix(in srgb, var(--line) 60%, transparent) 26px 27px),
    repeating-linear-gradient(90deg, transparent 0 26px, color-mix(in srgb, var(--line) 60%, transparent) 26px 27px),
    var(--surface-2);
}
.scr-map.heat {
  background:
    radial-gradient(90px 90px at 38% 34%, rgba(79,181,121,0.85), rgba(79,181,121,0) 70%),
    radial-gradient(120px 120px at 62% 58%, rgba(36,121,74,0.9), rgba(36,121,74,0) 68%),
    radial-gradient(70px 70px at 30% 70%, rgba(46,107,214,0.7), rgba(46,107,214,0) 70%),
    var(--surface-2);
}
.pin { position: absolute; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); box-shadow: 0 3px 6px rgba(0,0,0,0.25); }
.pin.blue { background: var(--pin-blue); }
.pin::after { content: ""; position: absolute; inset: 3.5px; background: #fff; border-radius: 50%; }
.scr-card { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 46px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.scr-line { height: 7px; border-radius: 4px; background: var(--surface-2); }
.scr-line.a { width: 62%; background: color-mix(in srgb, var(--accent) 40%, var(--surface-2)); }
.scr-line.b { width: 40%; }
.rows { position: absolute; inset: 42px 0 10px; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.row-item { display: flex; gap: 9px; align-items: center; }
.row-ic { width: 30px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); flex: none; }
.row-tx { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.cap { text-align: center; margin-top: 6px; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.04em; }

/* Secțiuni landing */
.block { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.block h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.03em; margin: 12px 0 0; font-weight: 700; max-width: 60ch; text-wrap: balance; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.feat .fi { position: relative; width: 76px; height: 76px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); margin-bottom: 16px; }
.feat .fi svg { width: 38px; height: 38px; }
.feat-badge { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: #E02424; border: 2px solid var(--surface-2); box-shadow: 0 0 0 3px rgba(224,36,36,0.22); }
.feat h3 { font-size: 1.02rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.feat p { color: var(--muted); font-size: 0.92rem; }

.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin-top: 22px; }
.doc-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: padding-left 0.15s; }
.doc-link:hover { padding-left: 8px; }
.doc-link .t { font-weight: 600; }
.doc-link .a { color: var(--accent); }

/* ---------- Subsol ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 26px 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.86rem; color: var(--muted);
}
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }
.footer-inner .muted { display: inline-flex; gap: 16px; }

/* ---------- Stări ---------- */
.state { padding: 60px 0; text-align: center; color: var(--muted); }
.state.error { color: var(--accent-2); }

/* ---------- Responsiv ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .phones { height: 440px; order: -1; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  /* nav devine panou vertical care coboară de sub header */
  .nav-links {
    display: flex; flex-direction: column; gap: 0; margin-left: 0;
    position: fixed; top: 64px; left: 0; right: 0; z-index: 25;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(0,0,0,0.16); padding: 6px 0;
    opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  body.nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 24px; font-size: 1rem; }
  .nav-links a.active { border-bottom: none; color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .header-inner { padding: 0 18px; }
  main { padding: 28px 18px 64px; }
  .page-nav { padding: 14px 18px 0; }
}

/* ---------- Accesibilitate ---------- */
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Cookie consent (banner + modal)
   ============================================================ */
.ck-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.12);
}
.ck-banner-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.ck-text { flex: 1 1 340px; font-size: 0.9rem; line-height: 1.5; color: var(--ink); }
.ck-text a { color: var(--accent); font-weight: 600; }
.ck-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-btn { font-family: var(--sans); font-size: 0.88rem; font-weight: 600; padding: 10px 16px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.ck-primary { background: var(--accent); color: var(--on-accent); }
.ck-primary:hover { background: var(--accent-2); }
.ck-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.ck-ghost:hover { border-color: var(--accent); }
.ck-overlay { position: fixed; inset: 0; z-index: 1001; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ck-modal { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; max-width: 540px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 22px 24px 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.ck-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ck-modal-head h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
.ck-x { background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.ck-cat { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.ck-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.ck-cat-head strong { font-size: 1rem; }
.ck-cat p { font-size: 0.86rem; color: var(--muted); line-height: 1.45; }
.ck-always { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.ck-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.ck-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.ck-switch input { opacity: 0; width: 0; height: 0; }
.ck-slider { position: absolute; inset: 0; cursor: pointer; background: var(--line); border-radius: 26px; transition: background 0.2s; }
.ck-slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.ck-switch input:checked + .ck-slider { background: var(--accent); }
.ck-switch input:checked + .ck-slider::before { transform: translateX(20px); }
@media (max-width: 560px) { .ck-actions { width: 100%; } .ck-actions .ck-btn { flex: 1 1 auto; } }

/* ============================================================
   Lightbox / carusel capturi (prim-plan, fundal estompat)
   ============================================================ */
.phones .shot { cursor: zoom-in; }
.lb-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8, 12, 10, 0.72);
  backdrop-filter: blur(7px) saturate(120%);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
  display: flex; align-items: center; justify-content: center;
  padding: 44px 16px;
  animation: lb-fade 0.18s ease;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-img {
  max-width: min(92vw, 420px); max-height: 86vh;
  border-radius: 22px; object-fit: contain; background: #0d0b0b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.lb-close, .lb-nav {
  position: fixed; border: none; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, 0.14); line-height: 1;
  display: grid; place-items: center; transition: background 0.15s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.26); }
.lb-close { top: 16px; right: 18px; width: 44px; height: 44px; border-radius: 50%; font-size: 1.7rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-dots { position: fixed; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.lb-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); cursor: pointer; }
.lb-dot.on { background: #fff; }
@media (max-width: 560px) { .lb-nav { width: 42px; height: 42px; font-size: 1.7rem; } }
@media (prefers-reduced-motion: reduce) { .lb-overlay { animation: none; } }

/* ---------- Pagina descărcare ---------- */
.download { max-width: 520px; margin: 0 auto; text-align: center; padding-top: 8px; }
.download .hero-lead { color: var(--muted); }
.store-badge { display: inline-block; margin-top: 10px; }
.store-badge img { height: 58px; width: auto; }
.store-badge:hover img { opacity: 0.9; }
.platform-note { margin-top: 28px; font-size: 0.9rem; color: var(--muted); }
.app-id { margin-top: 6px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

/* ---------- Pagina Funcționalități (scroll cu imagine fixă) ---------- */
.fx { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.fx-intro { padding: 60px 0 10px; max-width: 62ch; }
.fx-intro h1 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -0.03em; font-weight: 700; margin: 14px 0 12px; text-wrap: balance; }
.fx-intro p { color: var(--muted); font-size: 1.12rem; }
.fx-block { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 56px; align-items: start; padding: 28px 0 64px; }
.fx-media { position: sticky; top: 88px; align-self: start; }
.fx-media .phone { position: relative; transform: none; width: 250px; margin: 0 auto; }
.fx-copy { min-height: 92vh; padding-bottom: 8vh; }
.fx-copy h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em; font-weight: 700; margin: 12px 0 18px; text-wrap: balance; }
.fx-copy p { color: var(--ink); margin-bottom: 16px; max-width: 56ch; text-align: justify; text-justify: inter-word; }
.fx-copy p.muted { color: var(--muted); }
@media (max-width: 860px) {
  .fx-block { grid-template-columns: 1fr; gap: 18px; padding: 16px 0 44px; }
  .fx-media { position: static; top: auto; }
  .fx-media .phone { width: 208px; }
  .fx-copy { min-height: 0; padding-bottom: 0; }
}

/* ---------------------------------------------------------------
   Grilă de carduri pentru pagina de funcționalități.
   Imaginile sunt materiale de store: conțin deja rama telefonului
   și subtitrarea, deci NU se pun în .phone (s-ar dubla rama).
   --------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.card-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card-item:hover,
.card-item:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}
.card-item img {
  display: block;
  width: 100%;
  height: auto;
}
@media (prefers-reduced-motion: reduce) {
  .card-item { transition: none; }
  .card-item:hover, .card-item:focus-visible { transform: none; }
}

/* Notă sub galerie */
.grid-note { margin-top: 26px; font-size: 0.88rem; color: var(--muted); }

/* Pagina de contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 34px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.contact-card .lbl {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 8px;
}
.contact-card .val { font-size: 1.04rem; font-weight: 500; }
.contact-card a { color: var(--accent); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
