/* ==========================================================================
   ImplantMarket — B2B dental supplies
   Design system v4 — temă deschisă, paleta oficială JDentalCare
   light-blue-jd #0091B3 · toxic-green-jd #76D55F · vanila-jd #F5F5F7 · gray-jd #616265
   ========================================================================== */

:root {
  /* Brand JD — albastru-petrol primar */
  --blue-50:  #E8F6FA;
  --blue-100: #D0EDF5;
  --blue-200: #A3DCEA;
  --blue-300: #5FC3DC;
  --blue-400: #21A8CB;
  --blue-500: #0091B3;   /* light-blue-jd */
  --blue-600: #007A99;
  --blue-700: #00637D;
  --blue-900: #063947;

  /* Accent JD — verde toxic */
  --green-100: #E9F9E4;
  --green-200: #C9F0BC;
  --green-300: #A1E48C;
  --green-400: #76D55F;  /* toxic-green-jd */
  --green-500: #57C13E;
  --green-700: #35892A;

  /* Neutrals */
  --ink:     #16272D;
  --ink-2:   #3C4A50;
  --muted:   #616265;    /* gray-jd */
  --line:    #E3EBEE;
  --line-2:  #EEF4F6;
  --surface: #FFFFFF;
  --bg:      #F5F5F7;    /* vanila-jd */

  --amber:    #F5A524;
  --amber-bg: #FEF4E4;

  /* Radii — generos, stil n8n */
  --r-xs: 12px;
  --r-sm: 16px;
  --r-md: 22px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-2xl: 44px;
  --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(6,57,71,.05);
  --sh-sm: 0 2px 8px rgba(6,57,71,.07), 0 1px 2px rgba(6,57,71,.04);
  --sh-md: 0 14px 36px rgba(6,57,71,.1);
  --sh-lg: 0 36px 80px rgba(6,57,71,.16);
  --sh-glow: 0 16px 40px -12px rgba(0,145,179,.5);
  --ring: 0 0 0 4px rgba(0,145,179,.22);

  --container: 1280px;
  --ease: cubic-bezier(.22,1,.36,1);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.64;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
img { border-radius: var(--r-md); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1rem; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
::selection { background: var(--blue-200); color: var(--blue-900); }

h1, h2, h3, h4 {
  color: var(--ink); margin: 0 0 .5em; font-weight: 800;
  line-height: 1.06; letter-spacing: -.04em; text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); letter-spacing: -.05em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -.025em; line-height: 1.3; }

.serif { font-family: var(--font-display); font-weight: 400; font-style: italic; letter-spacing: -.02em; }
.grad {
  background: linear-gradient(100deg, var(--blue-500) 0%, var(--blue-400) 52%, var(--green-500) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 28px; }
.section { position: relative; padding: 118px 0; }
.section--tight { padding: 80px 0; }
.section--raised { background: var(--surface); }
.section__head { max-width: 700px; margin-bottom: 58px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 54px; flex-wrap: wrap; }
.section__bar .section__head { margin-bottom: 0; }
.grid { display: grid; gap: 20px; }

/* Grain pe suprafețele colorate mari */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: .35; mix-blend-mode: overlay; border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

/* ---------- Reveal la scroll (stagger via --d) ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .85s var(--ease), transform .85s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue-600); background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: 8px 17px; border-radius: var(--r-pill); margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 10px rgba(118,213,95,.8); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--r-pill);
  font-weight: 700; font-size: .96rem; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); color: #fff; box-shadow: var(--sh-glow); }
.btn--primary:hover { box-shadow: 0 24px 54px -14px rgba(0,145,179,.62); }
.btn--outline { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(10px); }
.btn--outline:hover { background: rgba(255,255,255,.22); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-xs); }
.btn--ghost:hover { border-color: var(--blue-300); background: var(--blue-50); }
.btn--white { background: #fff; color: var(--blue-700); box-shadow: 0 14px 32px -12px rgba(6,57,71,.35); }
.btn--green { background: linear-gradient(135deg, var(--green-400), var(--green-500)); color: var(--blue-900); box-shadow: 0 16px 40px -12px rgba(118,213,95,.55); }
.btn--sm { padding: 10px 20px; font-size: .875rem; }
.btn--lg { padding: 19px 36px; font-size: 1.03rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-600); font-weight: 700; font-size: .95rem; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

.badge {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--blue-900); color: #fff;
}
.badge--solid { background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); }
.badge--green { background: var(--green-400); color: var(--blue-900); }
.badge--amber { background: var(--amber-bg); color: #8A5A06; }

/* Placeholder foto — deschis; se înlocuiește cu <img>, colțuri identice */
.ph {
  position: relative; display: grid; place-items: center;
  border-radius: var(--r-md); overflow: hidden;
  background:
    radial-gradient(110% 85% at 18% 8%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 56%),
    linear-gradient(145deg, var(--blue-50) 0%, var(--blue-100) 48%, var(--green-100) 100%);
  border: 1px solid var(--line-2);
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(6,57,71,.05) 1px, transparent 1px);
  background-size: 18px 18px;
}
.ph svg { position: relative; z-index: 1; width: 42%; max-width: 120px; height: auto; opacity: .85; color: var(--blue-500); }
.ph--glow { background: radial-gradient(120% 100% at 50% 0%, rgba(0,145,179,.2) 0%, rgba(0,145,179,0) 60%), linear-gradient(150deg, var(--blue-100) 0%, var(--blue-200) 100%); }
.ph--green { background: linear-gradient(145deg, var(--green-100) 0%, var(--green-200) 60%, var(--blue-100) 100%); }
.ph--green svg { color: var(--green-700); }

/* ==========================================================================
   Nav — transparent peste video, solid la scroll
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.nav.is-stuck { background: rgba(255,255,255,.86); backdrop-filter: blur(20px) saturate(160%); border-bottom-color: var(--line); box-shadow: 0 6px 28px rgba(6,57,71,.07); }
.nav__in { display: flex; align-items: center; gap: 32px; min-height: 86px; }

/* Peste video: alb. După scroll: culorile normale. */
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.24rem; color: #fff; letter-spacing: -.045em; transition: color .3s ease; }
.nav.is-stuck .logo { color: var(--ink); }
.logo__mark {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-600));
  box-shadow: 0 8px 22px -6px rgba(0,145,179,.55);
}
.logo__mark svg { width: 23px; height: 23px; }
.logo em { font-style: normal; color: var(--green-400); transition: color .3s ease; }
.nav.is-stuck .logo em { color: var(--blue-500); }

.nav__menu { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav__menu > li > a {
  display: inline-flex; padding: 10px 16px; border-radius: var(--r-pill);
  font-size: .94rem; font-weight: 600; color: rgba(255,255,255,.85);
  transition: background .2s ease, color .2s ease;
}
.nav__menu > li > a:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav.is-stuck .nav__menu > li > a { color: var(--ink-2); }
.nav.is-stuck .nav__menu > li > a:hover { background: var(--blue-50); color: var(--blue-600); }

.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12);
  color: #fff; cursor: pointer; backdrop-filter: blur(10px);
  transition: all .24s var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.nav.is-stuck .icon-btn { border-color: var(--line); background: var(--surface); color: var(--ink); }
.nav.is-stuck .icon-btn:hover { border-color: var(--blue-300); background: var(--blue-50); color: var(--blue-600); }
.icon-btn__count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--green-400);
  color: var(--blue-900); font-size: .68rem; font-weight: 800; display: grid; place-items: center;
}
.nav__toggle { display: none; }
.nav__mobile { border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(20px); padding: 14px 0 22px; }
.nav__mobile .container { display: flex; flex-direction: column; gap: 2px; }
.nav__mobile a { padding: 14px 16px; border-radius: var(--r-sm); font-weight: 600; color: var(--ink-2); }
.nav__mobile a:hover { background: var(--blue-50); color: var(--blue-600); }

/* ==========================================================================
   Hero — video fullscreen (text alb peste scrim, pagina de sub el deschisă)
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__video, .vband__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 0;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,57,71,.55) 0%, rgba(6,57,71,.22) 36%, rgba(6,57,71,.6) 100%),
    radial-gradient(90% 70% at 18% 78%, rgba(6,57,71,.5) 0%, rgba(6,57,71,0) 60%);
}
.hero__in { position: relative; z-index: 2; width: 100%; padding: 190px 0 0; }
.hero__content { max-width: 880px; }
.hero .eyebrow { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; backdrop-filter: blur(8px); }
.hero h1 { color: #fff; margin-bottom: 28px; }
/* Masca de animație taie tot ce iese din line-box, deci și coada lui „g” sau sedila lui „ț”.
   Padding-ul îi dă loc dedesubt, margin-ul negativ anulează efectul asupra layoutului,
   iar startul coboară la 130% ca litera să rămână ascunsă în spațiul nou. */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .18em; margin-bottom: -.18em; }
.hero h1 .w > span { display: inline-block; transform: translateY(130%); animation: word-up .9s var(--ease) forwards; animation-delay: var(--wd, 0s); }
@keyframes word-up { to { transform: translateY(0); } }

.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.9); max-width: 570px; margin-bottom: 40px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 72px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.25);
  padding: 34px 0 44px; gap: 28px;
}
.hero__stats b { display: block; font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -.045em; color: #fff; line-height: 1.05; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.hero__stats b .unit { color: var(--green-400); }
/* Doar eticheta de sub cifră — `.count` și `.unit` stau în <b> și trebuie să rămână mari */
.hero__stats b + span { font-size: .87rem; color: rgba(255,255,255,.72); }

.hero__scroll {
  position: absolute; z-index: 2; right: 40px; bottom: 44px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: rgba(255,255,255,.7); font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__scroll::after { content: ""; width: 1px; height: 56px; background: linear-gradient(180deg, var(--green-400), transparent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { position: relative; padding: 34px 0; background: var(--surface); border-block: 1px solid var(--line); overflow: hidden; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 160px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.marquee__track { display: flex; gap: 72px; width: max-content; animation: slide 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { font-size: 1.35rem; font-weight: 800; letter-spacing: -.035em; color: var(--ink-2); white-space: nowrap; transition: color .25s ease; }
/* Banda are 6 semnale repetate de două ori — nth-child(6n+…) colorează identic ambele jumătăți:
   brandul în albastru JD, originea în verde, restul alternând în paleta site-ului */
.marquee__track li:nth-child(6n + 1) { color: var(--blue-600); }        /* JDentalCare */
.marquee__track li:nth-child(6n + 2) { color: var(--green-500); }       /* Produs în Italia */
.marquee__track li:nth-child(6n + 3) { color: var(--blue-400); }        /* Marcaj CE */
.marquee__track li:nth-child(6n + 4) { color: var(--ink-2); }           /* ISO 13485 */
.marquee__track li:nth-child(6n + 5) { color: var(--blue-500); }        /* Trasabilitate pe lot */
.marquee__track li:nth-child(6n + 6) { color: var(--green-700); }       /* Distribuitor oficial */
.marquee__track li:hover { color: var(--blue-900); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ==========================================================================
   Statement + claims
   ========================================================================== */
.statement { text-align: center; max-width: 980px; margin-inline: auto; }
.statement h2 { font-size: clamp(2.2rem, 5.4vw, 4.3rem); margin-bottom: 28px; }
.statement p { font-size: 1.14rem; color: var(--muted); max-width: 640px; margin: 0 auto; }

.claims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 72px; }
.claim {
  position: relative; overflow: hidden; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 40px 36px; box-shadow: var(--sh-xs);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
}
.claim:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--blue-200); }
.claim::before { content: ""; position: absolute; top: 0; left: 36px; right: 36px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue-400), var(--green-400), transparent); }
.claim b { display: block; font-size: clamp(2.6rem, 4.4vw, 3.8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
/* `>` obligatoriu: cifrele animate sunt tot span-uri, dar în interiorul lui <b>.
   Fără el, „32” se micșora la mărimea etichetei și rămânea doar „%” mare. */
.claim > span { font-size: .95rem; color: var(--muted); }

/* ==========================================================================
   Bento categorii
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 18px; box-shadow: var(--sh-xs);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.section:not(.section--raised) .tile { background: var(--surface); }
.tile:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--blue-200); }
.tile .ph { flex: 1; min-height: 150px; border-radius: var(--r-lg); margin-bottom: 18px; transition: transform .55s var(--ease); }
.tile:hover .ph { transform: scale(1.03); }
.tile__body { padding: 0 8px 8px; }
.tile h3 { margin-bottom: 5px; }
.tile p { font-size: .87rem; color: var(--muted); margin: 0; }
.tile__count {
  position: absolute; top: 32px; right: 32px; z-index: 3;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-pill); padding: 6px 13px;
  font-size: .73rem; font-weight: 800; color: var(--blue-600);
}
.tile--xl { grid-column: span 6; grid-row: span 2; }
.tile--xl .ph { min-height: 300px; }
.tile--xl h3 { font-size: 1.8rem; letter-spacing: -.035em; }
.tile--xl p { font-size: 1rem; max-width: 430px; }
.tile--lg { grid-column: span 6; }
.tile--md { grid-column: span 3; }

/* ==========================================================================
   Produse
   ========================================================================== */
.products { grid-template-columns: repeat(4, 1fr); }
.product {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 17px; box-shadow: var(--sh-xs);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.product:hover { transform: translateY(-7px); box-shadow: var(--sh-md); border-color: var(--blue-200); }
.product__media { position: relative; margin-bottom: 17px; border-radius: var(--r-lg); overflow: hidden; }
.product__media .ph { aspect-ratio: 1 / 1; border-radius: var(--r-lg); transition: transform .55s var(--ease); }
.product:hover .product__media .ph { transform: scale(1.05); }
.product__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  opacity: 0; transform: translateY(12px);
  transition: opacity .34s var(--ease), transform .34s var(--ease);
}
.product:hover .product__quick { opacity: 1; transform: none; }
.product__brand { font-size: .71rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 7px; }
.product h3 { font-size: .99rem; margin-bottom: 9px; font-weight: 700; }
.product h3 a:hover { color: var(--blue-600); }
.product__meta { font-size: .79rem; color: var(--muted); margin-bottom: 15px; }
.product__foot { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price b { display: block; font-size: 1.26rem; color: var(--ink); letter-spacing: -.035em; line-height: 1.2; }
.price span { font-size: .74rem; color: var(--muted); }
.price del { font-size: .8rem; color: #B0BDC3; margin-left: 6px; font-weight: 500; }
.price--locked b { font-size: .94rem; color: var(--blue-600); }
.add-btn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border-radius: 50%; border: none; cursor: pointer;
  background: var(--blue-50); color: var(--blue-600);
  transition: all .28s var(--ease);
}
.add-btn:hover { background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); color: #fff; transform: scale(1.1) rotate(90deg); box-shadow: var(--sh-glow); }

/* Mesaj în locul grilei: „se încarcă”, „niciun produs”, „API-ul nu răspunde” */
.grid-note { grid-column: 1 / -1; color: var(--muted); padding: 8px 0; }
.grid-note a { color: var(--blue-600); font-weight: 600; }
.grid-note a:hover { color: var(--blue-700); }

/* ==========================================================================
   Video band — B2B (services.mp4)
   ========================================================================== */
.vband { position: relative; overflow: hidden; padding: 150px 0; }
.vband__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(6,57,71,.9) 0%, rgba(6,57,71,.68) 46%, rgba(6,57,71,.28) 100%);
}
.vband > .container { position: relative; z-index: 2; }
.vband__content { max-width: 580px; }
.vband__content h2 { color: #fff; margin-bottom: 20px; }
.vband__content .serif { color: var(--green-400); }
.vband .eyebrow { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(8px); }
.vband__content > p { color: rgba(255,255,255,.82); margin-bottom: 36px; }

.vband__list { display: grid; gap: 14px; margin-bottom: 40px; }
.vband__item {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-md);
  padding: 18px 22px;
  transition: border-color .3s ease, background .3s ease, transform .3s var(--ease);
}
.vband__item:hover { border-color: rgba(118,213,95,.55); background: rgba(255,255,255,.16); transform: translateX(6px); }
.vband__item svg { color: var(--green-400); flex: none; margin-top: 2px; }
.vband__item b { display: block; color: #fff; font-size: .99rem; letter-spacing: -.02em; }
.vband__item span { font-size: .86rem; color: rgba(255,255,255,.72); }

/* ==========================================================================
   Pași
   ========================================================================== */
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step {
  position: relative; padding: 36px 32px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl);
  transition: transform .34s var(--ease), box-shadow .34s var(--ease);
}
.section:not(.section--raised) .step { background: var(--surface); }
.step:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 24px;
  border-radius: 16px; font-weight: 800; font-size: 1rem; color: #fff;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-600));
}
.step h3 { font-size: 1.08rem; margin-bottom: 7px; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ==========================================================================
   Blog — asimetric
   ========================================================================== */
.posts { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.posts__side { display: grid; gap: 20px; }
.post {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 17px;
  box-shadow: var(--sh-xs);
  transition: transform .36s var(--ease), box-shadow .36s var(--ease), border-color .3s ease;
}
.post:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--blue-200); }
.post__media { position: relative; margin-bottom: 18px; border-radius: var(--r-lg); overflow: hidden; }
.post__media .ph { aspect-ratio: 16 / 9; border-radius: var(--r-lg); transition: transform .55s var(--ease); }
.post:hover .post__media .ph { transform: scale(1.04); }
.post__tag {
  position: absolute; bottom: 13px; left: 13px; z-index: 3;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-pill); padding: 6px 14px; font-size: .72rem; font-weight: 800; color: var(--blue-600);
}
.post__body { padding: 0 8px 8px; display: flex; flex-direction: column; flex: 1; }
.post__meta { display: flex; gap: 16px; font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.post h3 { font-size: 1.12rem; margin-bottom: 9px; }
.post h3 a:hover { color: var(--blue-600); }
.post p { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.post .link-arrow { margin-top: auto; }
.post--feature .post__media .ph { aspect-ratio: 16 / 11; }
.post--feature h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.04em; }
.post--feature p { font-size: 1rem; }
.post--row { flex-direction: row; gap: 18px; align-items: center; }
.post--row .post__media { width: 168px; flex: none; margin-bottom: 0; }
.post--row .post__media .ph { aspect-ratio: 1 / 1; }
.post--row h3 { font-size: 1.02rem; }
.post--row p { display: none; }

/* Cursurile JD — carduri row în grilă 2×2, generate din calendarul producătorului.
   Coperta vine de pe serverul JD, deci raportul e fixat ca să nu sară layout-ul
   cât se încarcă imaginea. */
.cursuri { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; }
.curs .post__media { width: 150px; border-radius: var(--r-lg); background: var(--blue-50); }
.curs .post__media img {
  display: block; width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--r-lg); transition: transform .55s var(--ease);
}
.curs:hover .post__media img { transform: scale(1.04); }
.curs .post__meta time { font-weight: 800; color: var(--blue-600); font-size: .82rem; }
.curs .curs__loc { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 14px; }

/* ==========================================================================
   CTA — gradient albastru JD
   ========================================================================== */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-2xl); padding: 84px 62px; text-align: center;
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-500) 45%, var(--blue-600) 100%);
  color: rgba(255,255,255,.9); box-shadow: var(--sh-lg);
}
.cta__glow { position: absolute; width: 560px; height: 560px; top: -240px; right: -120px; border-radius: 50%; filter: blur(80px); background: radial-gradient(circle, var(--green-400), transparent 66%); opacity: .4; }
.cta h2, .cta > p, .cta__form, .cta__note { position: relative; z-index: 2; }
.cta h2 { color: #fff; max-width: 720px; margin-inline: auto; }
.cta h2 .serif { color: var(--green-300); }
.cta > p { max-width: 580px; margin: 0 auto 34px; font-size: 1.08rem; }
.cta__form { display: flex; gap: 11px; max-width: 500px; margin: 0 auto 18px; }
.cta__form input {
  flex: 1; padding: 17px 26px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.16); color: #fff;
}
.cta__form input::placeholder { color: rgba(255,255,255,.72); }
.cta__form input:focus-visible { box-shadow: 0 0 0 4px rgba(255,255,255,.28); }
.cta__note { font-size: .84rem; color: rgba(255,255,255,.75); margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--blue-900); color: rgba(255,255,255,.7); padding: 88px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.25fr; gap: 44px; padding-bottom: 60px; }
.footer .logo { color: #fff; }
.footer .logo em { color: var(--green-400); }
.footer__about p { font-size: .92rem; color: rgba(255,255,255,.6); margin: 22px 0 26px; max-width: 310px; }
.footer h4 { font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer__col li { margin-bottom: 12px; }
.footer__col a { font-size: .91rem; color: rgba(255,255,255,.6); transition: color .2s ease; }
.footer__col a:hover { color: var(--green-300); }
.footer__contact li { display: flex; gap: 12px; font-size: .91rem; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.footer__contact svg { color: var(--green-400); flex: none; margin-top: 3px; }
.socials { display: flex; gap: 9px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.65); transition: all .26s var(--ease); }
.socials a:hover { background: var(--green-400); border-color: transparent; color: var(--blue-900); transform: translateY(-3px); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 26px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.5); }
.footer__bottom ul { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--green-300); }

/* ==========================================================================
   Back to top
   ========================================================================== */
.totop {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 52px; height: 52px; display: grid; place-items: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); color: #fff;
  box-shadow: var(--sh-glow);
  opacity: 0; transform: translateY(18px) scale(.85); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .25s ease;
}
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -12px rgba(0,145,179,.65); }
.totop svg { transform: rotate(-90deg); }

/* ==========================================================================
   Cookie banner (GDPR)
   ========================================================================== */
.cookiebar {
  position: fixed; left: auto; right: 26px; bottom: 26px; z-index: 95;
  max-width: 420px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--sh-lg);
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.cookiebar.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookiebar h3 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; margin-bottom: 8px; }
.cookiebar h3 svg { color: var(--blue-500); flex: none; }
.cookiebar p { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.cookiebar p a { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cookiebar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookiebar__actions .btn { flex: 1; padding: 12px 18px; font-size: .88rem; }

/* Bannerul și butonul „sus" stau amândouă în colțul din dreapta. Butonul apare doar
   după scroll, deci bannerul se ridică peste el doar atunci — 52px buton + 14px gap. */
body:has(.totop.is-visible) .cookiebar { bottom: 92px; }

@media (max-width: 540px) {
  .cookiebar { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .totop { right: 16px; bottom: 88px; }
}

/* ==========================================================================
   Pagini legale (politici)
   ========================================================================== */
.legal-hero {
  padding: 170px 0 74px;
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
  color: rgba(255,255,255,.85);
}
.legal-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 12px; }
.legal-hero p { max-width: 620px; margin: 0; font-size: 1.05rem; }
.legal-hero .eyebrow { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }

.legal { padding: 72px 0 110px; }
.legal__grid { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.legal__toc {
  position: sticky; top: 110px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--sh-xs);
}
.legal__toc b { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.legal__toc a { display: block; padding: 7px 10px; border-radius: var(--r-xs); font-size: .87rem; color: var(--muted); }
.legal__toc a:hover { background: var(--blue-50); color: var(--blue-600); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; letter-spacing: -.03em; margin: 2.4em 0 .6em; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { font-size: .97rem; color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 1rem; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--blue-400); }
.prose a { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose code { font-size: .88em; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 6px; padding: 2px 7px; }
.prose .callout {
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--r-md);
  padding: 20px 24px; margin: 1.4rem 0;
}
.prose .callout p { margin: 0; font-size: .92rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .9rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }

@media (max-width: 900px) {
  .legal__grid { grid-template-columns: 1fr; gap: 36px; }
  .legal__toc { position: static; }
}

/* ==========================================================================
   Catalog — filtre
   ========================================================================== */
.chip-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip-filter {
  padding: 10px 20px; border-radius: var(--r-pill); font-size: .9rem; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  transition: all .22s var(--ease);
}
.chip-filter:hover { border-color: var(--blue-300); color: var(--blue-600); }
.chip-filter.is-active { background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); border-color: transparent; color: #fff; box-shadow: var(--sh-glow); }

/* ==========================================================================
   Checkout — coș + formular
   ========================================================================== */
.checkout-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.checkout-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--sh-xs); }
.checkout-card h2 { font-size: 1.3rem; margin-bottom: 22px; }

.cart-row {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line-2);
}
.cart-row__info b { display: block; font-size: .95rem; color: var(--ink); letter-spacing: -.02em; }
.cart-row__info span { font-size: .8rem; color: var(--muted); }
.cart-row__qty { display: flex; align-items: center; gap: 4px; }
.cart-row__qty button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-size: 1rem; color: var(--ink);
  transition: all .18s ease; display: grid; place-items: center;
}
.cart-row__qty button:hover { border-color: var(--blue-300); background: var(--blue-50); color: var(--blue-600); }
.cart-row__qty span { min-width: 32px; text-align: center; font-weight: 700; }
.cart-row__sum { font-weight: 800; color: var(--ink); white-space: nowrap; font-size: .95rem; }
.cart-row__del {
  width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
  background: transparent; color: var(--muted); font-size: 1.1rem; line-height: 1;
  transition: all .18s ease;
}
.cart-row__del:hover { background: #FDECEC; color: #C0392B; }

.checkout-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 20px; font-weight: 800; color: var(--ink);
}
.checkout-total b { font-size: 1.45rem; letter-spacing: -.03em; color: var(--blue-600); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 17px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--blue-400); box-shadow: var(--ring); outline: none; }
.field textarea { min-height: 84px; resize: vertical; }

/* Telefon cu prefix fix: clientul scrie doar numărul național, după +40 */
.field .with-prefix { display: flex; align-items: stretch; }
.field .with-prefix .prefix {
  display: flex; align-items: center; padding: 0 13px;
  border: 1px solid var(--line); border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: var(--blue-50); color: var(--ink-2); font-weight: 700;
}
.field .with-prefix input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

.pay-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--r-md);
  padding: 16px 20px; margin: 18px 0; font-size: .87rem; color: var(--ink-2);
}
.pay-note svg { color: var(--blue-500); flex: none; margin-top: 2px; }

.order-success { text-align: center; padding: 60px 20px; }
.order-success h2 { color: var(--blue-600); margin-bottom: 12px; }
.order-success p { max-width: 480px; margin: 0 auto 28px; color: var(--muted); }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .claims { grid-template-columns: 1fr; }
  .tile--xl { grid-column: span 12; grid-row: span 1; }
  .tile--lg, .tile--md { grid-column: span 6; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__toggle { display: grid; }
  .hero__in { padding-top: 150px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__scroll { display: none; }
  .posts { grid-template-columns: 1fr; }
  .cursuri { grid-template-columns: 1fr; }
  .vband { padding: 100px 0; }
  .vband__scrim { background: linear-gradient(180deg, rgba(6,57,71,.88) 0%, rgba(6,57,71,.72) 100%); }
}
@media (max-width: 720px) {
  .section { padding: 84px 0; }
  .cta { padding: 56px 26px; }
  .cta__form { flex-direction: column; }
  .cta__form .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .post--row { flex-direction: column; align-items: stretch; }
  .post--row .post__media { width: 100%; margin-bottom: 16px; }
  .curs .post__media img { aspect-ratio: 16 / 9; }
}
@media (max-width: 540px) {
  .container { padding-inline: 20px; }
  .products, .steps { grid-template-columns: 1fr; }
  .tile--lg, .tile--md { grid-column: span 12; }
  .hero__cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .w > span { transform: none; }
}

/* ==========================================================================
   Formular de ofertă (secțiunea CTA de pe prima pagină)
   ========================================================================== */
.offer-form { max-width: 720px; margin: 28px auto 0; text-align: left; }
.offer-form__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.offer-form .field { margin-bottom: 14px; }
.offer-form label { display: block; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 6px; }
.offer-form input, .offer-form textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12); color: #fff; font: inherit; font-size: .95rem;
}
.offer-form input::placeholder, .offer-form textarea::placeholder { color: rgba(255,255,255,.45); }
.offer-form input:focus, .offer-form textarea:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.18); }
.offer-form .phone-wrap { display: flex; align-items: center; gap: 8px; }
.offer-form .phone-wrap span {
  padding: 12px 12px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); font-weight: 700; font-size: .95rem;
}
.offer-form__cats { border: none; padding: 0; margin: 4px 0 14px; }
.offer-form__cats legend { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 8px; }
.offer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.offer-chip { position: relative; }
.offer-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.offer-chip label {
  display: inline-block; margin: 0; padding: 9px 16px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: .88rem; font-weight: 600;
  transition: background .2s ease, color .2s ease;
}
.offer-chip input:checked + label { background: #fff; color: var(--blue-700); border-color: #fff; }
.offer-chip input:focus-visible + label { box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
.offer-form > .btn { width: 100%; margin-top: 4px; }
@media (max-width: 720px) {
  .offer-form__grid { grid-template-columns: 1fr; }
}

/* Bloc SEO static sub grila de catalog (text indexabil, grila vine din API) */
.catalog-seo { max-width: 760px; margin: 64px auto 0; padding-top: 40px; border-top: 1px solid var(--line); color: var(--muted); }
.catalog-seo h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: 14px; }
.catalog-seo h3 { font-size: 1.05rem; margin: 24px 0 6px; }
.catalog-seo h3 a { color: var(--blue-600); }
.catalog-seo a { color: var(--blue-600); font-weight: 600; }
.catalog-seo p { font-size: .96rem; line-height: 1.7; }
