/* ==========================================================================
   Embalatges Prats · Public site
   Mobile-first. Palette derived from the logo (EP blue + slate grey frame)
   with a warm timber accent.
   ========================================================================== */
:root {
  --navy-950: #070d18;
  --navy-900: #0b1526;
  --navy-800: #10203a;
  --navy-700: #16305a;
  --blue-600: #1f5aa6;  /* logo EP blue */
  --blue-500: #2a6fd1;
  --blue-400: #4d93f0;
  --blue-300: #8dbcff;
  --steel-700: #3b4452; /* logo frame */
  --steel-500: #5e6b7c;
  --steel-300: #aab4c2;
  --steel-100: #e6eaf0;
  --wood-500: #d9a35b;
  --wood-400: #e8bd7f;
  --paper: #f5f7fa;
  --white: #fff;
  --ink: #0f1a2b;
  --ink-soft: #4a5566;
  --ok: #22c55e;
  --danger: #ef4444;

  --font-head: 'Exo 2', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: 16px;
  --max: 1240px;
  --header-h: 64px;
  --shadow: 0 20px 50px -20px rgba(7, 13, 24, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; position: relative; }
@media (min-width: 1024px) { .section { padding: 120px 0; } }
.section--dark { background: var(--navy-900); color: #dfe7f3; }
.section--dark .h2 { color: #fff; }
.section--dark .lead { color: var(--steel-300); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--blue-500);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: var(--blue-300); }
.h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 6vw, 54px); line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 16px; color: var(--navy-900); }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); max-width: 640px; margin: 0; }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 0 auto; }
.grad-text { background: linear-gradient(100deg, var(--blue-400), var(--blue-300) 40%, var(--wood-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--blue-600); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s; overflow: hidden; isolation: isolate;
}
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%); transform: translateX(-120%); transition: transform .7s var(--ease); z-index: -1; }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(42, 111, 209, .7); }
.btn svg { width: 18px; height: 18px; }
.btn--ghost { --bg: rgba(255,255,255,.08); --fg: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.btn--ghost:hover { box-shadow: none; background: rgba(255,255,255,.16); }
.btn--wood { --bg: var(--wood-500); --fg: var(--navy-950); }
.btn--wood:hover { box-shadow: 0 14px 30px -10px rgba(217, 163, 91, .7); }
.btn--light { --bg: #fff; --fg: var(--navy-900); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; background: var(--navy-950); display: grid; place-items: center; transition: opacity .6s, visibility .6s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader svg { width: 140px; }
.loader .lf { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.4s var(--ease) forwards; }
.loader .le { opacity: 0; animation: pop .6s .8s var(--ease) forwards; }
.loader-bar { width: 140px; height: 2px; background: rgba(255,255,255,.1); margin: 26px auto 0; border-radius: 2px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--blue-400); animation: load 1.3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes load { to { width: 100%; } }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo svg { width: 46px; height: auto; flex: none; }
.logo-word { font-family: var(--font-head); font-weight: 500; font-size: 20px; letter-spacing: .01em; line-height: 1; color: #fff; }
.logo-word b { font-weight: 700; color: var(--blue-400); }
.logo-word small { display: block; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--steel-300); margin-top: 5px; font-weight: 500; }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background .4s, box-shadow .4s, transform .4s var(--ease); }
.header.scrolled { background: rgba(7, 13, 24, .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header.hide { transform: translateY(-100%); }
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav { display: none; }
.nav a { position: relative; white-space: nowrap; color: #cfd8e6; font-size: 14.5px; font-weight: 500; padding: 8px 2px; transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--blue-400); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.active { color: #fff; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; border: 1px solid rgba(255,255,255,.12); }
.lang button { border: 0; background: none; color: var(--steel-300); font-size: 12px; font-weight: 600; padding: 6px 9px; border-radius: 999px; min-width: 34px; transition: .2s; }
.lang button.on { background: var(--blue-600); color: #fff; }
.header .btn { display: none; }
.burger { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); display: grid; place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: .3s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }
@media (min-width: 1180px) {
  .nav { display: flex; gap: clamp(14px, 1.6vw, 26px); }
  .header .btn { display: inline-flex; }
  .burger { display: none; }
}
@media (max-width: 400px) { .logo-word small { display: none; } .logo-word { font-size: 17px; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(7,13,24,.97); backdrop-filter: blur(10px);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; overflow-y: auto;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--font-head); font-size: 28px; font-weight: 600; color: #fff; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); transform: translateY(20px); opacity: 0; transition: .5s var(--ease); }
body.menu-open .mobile-menu a { transform: none; opacity: 1; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: .04s; } body.menu-open .mobile-menu a:nth-child(3) { transition-delay: .08s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: .12s; } body.menu-open .mobile-menu a:nth-child(5) { transition-delay: .16s; }
body.menu-open .mobile-menu a:nth-child(6) { transition-delay: .2s; } body.menu-open .mobile-menu a:nth-child(7) { transition-delay: .24s; }
.mobile-menu .btn { margin-top: 20px; }
.mobile-menu .mm-contact { margin-top: auto; padding-top: 24px; color: var(--steel-300); font-size: 15px; }
.mobile-menu .mm-contact a { font-size: 18px; border: 0; padding: 2px 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; background: var(--navy-950); color: #fff; overflow: hidden; display: flex; flex-direction: column; }
.hero-bg { position: absolute; inset: -6% 0 0; background: url('../assets/img/hero-port.jpg') center 60% / cover no-repeat; transform-origin: center; will-change: transform; }
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,13,24,.55) 0%, rgba(7,13,24,.35) 40%, rgba(7,13,24,.9) 88%, var(--navy-950) 100%),
              linear-gradient(90deg, rgba(7,13,24,.85) 0%, rgba(7,13,24,.2) 70%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(141,188,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(141,188,255,.06) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 60%, #000 10%, transparent 70%); }
.hero-inner { position: relative; z-index: 2; flex: 1; display: grid; align-items: center; gap: 8px; padding-top: calc(var(--header-h) + 28px); padding-bottom: 28px; }
.hero-copy { max-width: 640px; }
.hero .eyebrow { color: var(--wood-400); }
.hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 10.5vw, 70px); line-height: 1; letter-spacing: -.03em; margin: 16px 0 20px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; }
.hero p.lead { color: #c6d2e3; font-size: clamp(16px, 2.2vw, 19px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-3d { position: relative; height: 300px; margin: 0 calc(var(--gutter) * -1); }
.hero-3d canvas { width: 100% !important; height: 100% !important; display: block; }
.hero-3d .chip { position: absolute; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgba(11,21,38,.72); border: 1px solid rgba(141,188,255,.25); backdrop-filter: blur(8px); color: #dfe9f7; white-space: nowrap; pointer-events: none; animation: floaty 5s ease-in-out infinite; }
.hero-3d .chip b { color: var(--wood-400); }
.hero-3d .chip.c1 { top: 12%; left: 8%; } .hero-3d .chip.c2 { bottom: 16%; right: 6%; animation-delay: -2s; } .hero-3d .chip.c3 { top: 44%; right: 2%; animation-delay: -3.5s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.3fr 1fr; gap: 12px; }
  .hero h1 { font-size: clamp(44px, 4.9vw, 72px); }
  .hero-3d { height: min(620px, 70vh); margin: 0; }
}
.hero-stats { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.08); background: rgba(7,13,24,.5); backdrop-filter: blur(10px); }
.hero-stats .container { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 18px 8px; text-align: center; border-right: 1px solid rgba(255,255,255,.07); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.07); }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(26px, 5vw, 40px); font-weight: 700; color: #fff; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--steel-300); }
@media (min-width: 768px) {
  .hero-stats .container { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0 !important; border-right: 1px solid rgba(255,255,255,.07) !important; padding: 24px 8px; }
  .stat:last-child { border-right: 0 !important; }
}
.scroll-hint { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 3; display: none; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel-300); }
.scroll-hint i { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.35); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(12px); } }
@media (min-width: 1024px) and (min-height: 760px) { .scroll-hint { display: flex; } }

/* ---------- marquee ---------- */
.marquee { background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marq 36s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 14px; color: var(--steel-300); font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.marquee span::before { content: ''; width: 8px; height: 8px; background: var(--blue-500); transform: rotate(45deg); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }
.about-media { position: relative; }
.about-media .img-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.2; box-shadow: var(--shadow); }
.about-media .img-main img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.about-media .img-float { position: absolute; width: 46%; right: -4%; bottom: -10%; border-radius: var(--radius-sm); overflow: hidden; border: 5px solid var(--paper); box-shadow: var(--shadow); aspect-ratio: 1; }
.about-media .img-float img { width: 100%; height: 100%; object-fit: cover; }
.about-media .since { position: absolute; left: 16px; top: 16px; background: rgba(7,13,24,.78); backdrop-filter: blur(8px); color: #fff; border-radius: 14px; padding: 12px 16px; font-family: var(--font-head); }
.about-media .since b { font-size: 34px; display: block; line-height: 1; }
.about-media .since small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--wood-400); }
@media (max-width: 600px) { .about-media .img-float { right: 8px; bottom: -28px; } }
.about-text p { color: var(--ink-soft); margin: 0 0 16px; }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 8px; }
.badge-card { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 6px 24px -14px rgba(7,13,24,.35); border: 1px solid var(--steel-100); }
.badge-card .ico { width: 42px; height: 42px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #eaf2ff; color: var(--blue-600); }
.badge-card img { width: 30px; }
.badge-card b { display: block; font-family: var(--font-head); font-size: 15px; line-height: 1.2; }
.badge-card small { color: var(--ink-soft); font-size: 12px; line-height: 1.3; display: block; }
@media (max-width: 420px) { .badges { grid-template-columns: 1fr; } }

.timeline { margin-top: 64px; display: grid; gap: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue-500), var(--wood-500)); }
.tl-item { position: relative; padding: 0 0 26px 44px; }
.tl-item::before { content: ''; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--blue-500); }
.tl-item b { font-family: var(--font-head); font-size: 22px; color: var(--navy-900); display: block; line-height: 1.2; }
.tl-item p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .timeline::before { left: 0; right: 0; top: 11px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--blue-500), var(--wood-500)); }
  .tl-item { padding: 40px 0 0; }
  .tl-item::before { top: 3px; left: 0; }
}

/* ---------- products ---------- */
.products-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.pcard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); color: #fff; aspect-ratio: 4/4.4; cursor: pointer; transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s var(--ease); box-shadow: 0 16px 40px -24px rgba(7,13,24,.6); isolation: isolate; border: 0; padding: 0; text-align: left; width: 100%; }
@media (min-width: 600px) { .pcard { aspect-ratio: 4/4.8; } }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); z-index: -2; }
.pcard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,13,24,.15) 0%, rgba(7,13,24,0) 25%, rgba(7,13,24,.55) 55%, rgba(7,13,24,.96) 100%); }
.pcard .glare { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.22), transparent 45%); opacity: 0; transition: opacity .4s; }
.pcard:hover .glare { opacity: 1; }
.pcard:hover img { transform: scale(1.07); }
.pcard .pc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; transform: translateZ(40px); }
.pcard .pc-num { position: absolute; top: 18px; left: 20px; font-family: var(--font-head); font-size: 13px; letter-spacing: .15em; color: rgba(255,255,255,.7); transform: translateZ(30px); }
.pcard h3 { text-shadow: 0 2px 12px rgba(0,0,0,.5); font-family: var(--font-head); font-size: 26px; margin: 0 0 6px; line-height: 1.1; }
.pcard p { margin: 0; color: #c8d3e3; font-size: 14.5px; line-height: 1.45; }
.pcard .pc-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--wood-400); }
.pcard .pc-more svg { width: 16px; transition: transform .3s; }
.pcard:hover .pc-more svg { transform: translateX(4px); }

/* ---------- services ---------- */
.services-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(170px, auto); gap: 16px; } }
.scard { position: relative; border-radius: var(--radius); padding: 22px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); overflow: hidden; transition: border-color .3s, transform .4s var(--ease), background .3s; isolation: isolate; }
.scard:hover { border-color: rgba(141,188,255,.4); transform: translateY(-4px); background: rgba(255,255,255,.06); }
.scard::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(42,111,209,.35), transparent 70%); left: var(--mx, -300px); top: var(--my, -300px); transform: translate(-50%, -50%); z-index: -1; pointer-events: none; transition: opacity .3s; }
.scard .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-600), var(--blue-400)); color: #fff; margin-bottom: 16px; box-shadow: 0 10px 24px -10px rgba(42,111,209,.8); }
.scard .ico svg { width: 22px; height: 22px; }
.scard h3 { font-family: var(--font-head); font-size: 19px; margin: 0 0 6px; color: #fff; }
.scard p { margin: 0; color: var(--steel-300); font-size: 14.5px; }
.scard.big { min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
.scard.big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transition: opacity .4s, transform 1s var(--ease); }
.scard.big::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(7,13,24,.95)); }
.scard.big:hover img { opacity: .75; transform: scale(1.05); }
@media (min-width: 1024px) { .scard.big { grid-column: span 2; grid-row: span 2; } }

/* ---------- process ---------- */
.process { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 768px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--steel-100); box-shadow: 0 10px 30px -22px rgba(7,13,24,.4); overflow: hidden; }
.step::before { counter-increment: step; content: '0' counter(step); position: absolute; right: 14px; top: 4px; font-family: var(--font-head); font-weight: 800; font-size: 64px; color: #eef2f8; line-height: 1; }
.step .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--navy-900); color: var(--wood-400); display: grid; place-items: center; margin-bottom: 18px; position: relative; }
.step .ico svg { width: 24px; }
.step h3 { font-family: var(--font-head); font-size: 19px; margin: 0 0 6px; position: relative; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14.5px; position: relative; }
.step .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--blue-500), var(--wood-500)); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.step.in .bar { transform: scaleX(1); }

/* ---------- configurator ---------- */
.config { display: grid; gap: 20px; }
@media (min-width: 1024px) { .config { grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; } }
.viewer { position: relative; border-radius: var(--radius); overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #1b3561, var(--navy-950) 75%); border: 1px solid rgba(255,255,255,.08); aspect-ratio: 1 / .92; touch-action: pan-y; }
@media (min-width: 600px) { .viewer { aspect-ratio: 16 / 11; } }
@media (min-width: 1024px) { .viewer { position: sticky; top: calc(var(--header-h) + 20px); aspect-ratio: auto; height: min(640px, 78vh); } }
.viewer canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer-top { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.viewer-top > * { pointer-events: auto; }
.dims-badge { background: rgba(7,13,24,.7); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 8px 12px; font-size: 12.5px; color: #cfd9e8; line-height: 1.4; }
.dims-badge b { color: #fff; font-family: var(--font-head); font-size: 15px; }
.viewer-tools { display: flex; gap: 6px; }
.vbtn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(255,255,255,.15); background: rgba(7,13,24,.7); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; transition: .2s; }
.vbtn:hover, .vbtn.on { background: var(--blue-600); border-color: var(--blue-500); }
.vbtn svg { width: 18px; }
.viewer-hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--steel-300); background: rgba(7,13,24,.6); padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; }

.panel { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 20px; }
@media (min-width: 600px) { .panel { padding: 26px; } }
.fgroup { margin-bottom: 22px; }
.flabel { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--steel-300); margin-bottom: 10px; }
.flabel output { font-family: var(--font-head); font-size: 16px; color: #fff; text-transform: none; letter-spacing: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg button { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: #dfe7f3; border-radius: 12px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; transition: .25s; min-height: 48px; }
.seg button svg { width: 30px; height: 30px; opacity: .8; }
.seg button.on { background: linear-gradient(135deg, rgba(31,90,166,.55), rgba(42,111,209,.35)); border-color: var(--blue-400); color: #fff; box-shadow: 0 0 0 1px var(--blue-400) inset; }
.seg.seg--compact button { flex-direction: row; justify-content: center; }
.seg.seg--compact button svg { width: 18px; height: 18px; }
.range-row { display: grid; grid-template-columns: 70px 1fr 78px; align-items: center; gap: 12px; margin-bottom: 10px; }
.range-row label { font-size: 14px; color: #cfd9e8; }
.range-row input[type=number] { width: 100%; min-height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(7,13,24,.5); color: #fff; padding: 0 8px; text-align: center; font-weight: 600; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue-500) var(--p, 50%), rgba(255,255,255,.14) var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--blue-500); box-shadow: 0 2px 10px rgba(0,0,0,.4); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--blue-500); cursor: pointer; }
.stepper { display: flex; align-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; overflow: hidden; width: max-content; }
.stepper button { width: 46px; height: 44px; border: 0; background: rgba(255,255,255,.05); color: #fff; font-size: 20px; }
.stepper input { width: 60px; height: 44px; border: 0; background: transparent; color: #fff; text-align: center; font-weight: 700; font-size: 17px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.toggles { display: grid; gap: 8px; }
@media (min-width: 600px) { .toggles { grid-template-columns: 1fr 1fr; } }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; cursor: pointer; font-size: 14px; color: #dfe7f3; transition: .2s; user-select: none; }
.toggle:hover { border-color: rgba(141,188,255,.4); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .sw { width: 38px; height: 22px; border-radius: 22px; background: rgba(255,255,255,.18); position: relative; flex: none; transition: .25s; }
.toggle .sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .25s var(--ease); }
.toggle input:checked + .sw { background: var(--blue-500); }
.toggle input:checked + .sw::after { transform: translateX(16px); }
.toggle input:focus-visible + .sw { outline: 2px solid var(--blue-300); outline-offset: 2px; }

.price-card { margin-top: 6px; border-radius: var(--radius); padding: 22px; background: linear-gradient(135deg, var(--blue-600), #173f7a 60%, var(--navy-800)); position: relative; overflow: hidden; }
.price-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(232,189,127,.35), transparent 70%); }
.price-card .pl { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #bcd3f5; }
.price-card .pv { font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 8vw, 54px); line-height: 1; color: #fff; margin: 6px 0 4px; letter-spacing: -.02em; }
.price-card .pr { font-size: 13.5px; color: #cfe0f8; }
.price-card .pu { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 12px; }
.price-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0 4px; position: relative; z-index: 1; }
@media (min-width: 480px) { .price-kpis { grid-template-columns: repeat(4, 1fr); } }
.price-kpis div { background: rgba(7,13,24,.28); border-radius: 12px; padding: 10px; }
.price-kpis small { display: block; font-size: 11px; color: #a9c2e6; text-transform: uppercase; letter-spacing: .06em; }
.price-kpis b { font-family: var(--font-head); font-size: 17px; color: #fff; }
.breakdown { margin-top: 14px; position: relative; z-index: 1; }
.breakdown summary { cursor: pointer; font-size: 13.5px; color: #dbe7f8; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.breakdown summary::-webkit-details-marker { display: none; }
.breakdown summary::before { content: '+'; width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.breakdown[open] summary::before { content: '−'; }
.breakdown ul { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.breakdown li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.14); color: #dce7f7; }
.price-card .btn { margin-top: 18px; position: relative; z-index: 1; }
.disclaimer { font-size: 12px; color: var(--steel-300); margin: 12px 0 0; }

/* ---------- quote form ---------- */
.qform { display: none; }
.qform.on { display: block; animation: fadeUp .5s var(--ease); }
.calc-controls.off { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.summary-pill { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.summary-pill span { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: rgba(77,147,240,.16); color: #cfe0f8; border: 1px solid rgba(77,147,240,.3); }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--steel-300); }
.field input, .field textarea, .field select { min-height: 48px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(7,13,24,.45); color: #fff; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(77,147,240,.18); outline: none; }
.field.err input, .field.err textarea { border-color: var(--danger); }
.field .emsg { font-size: 12px; color: #fca5a5; min-height: 0; }
.light .field label { color: var(--ink-soft); }
.light .field input, .light .field textarea { background: #fff; color: var(--ink); border-color: #d7dde6; }
.dropzone { border: 2px dashed rgba(141,188,255,.35); border-radius: 14px; padding: 18px; text-align: center; color: var(--steel-300); font-size: 14px; cursor: pointer; transition: .2s; }
.dropzone:hover, .dropzone.over { border-color: var(--blue-400); background: rgba(77,147,240,.08); color: #fff; }
.dropzone svg { width: 28px; margin: 0 auto 6px; color: var(--blue-300); }
.files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.files span { font-size: 12.5px; background: rgba(255,255,255,.08); padding: 4px 10px; border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; }
.files button { border: 0; background: none; color: #fca5a5; padding: 0; font-size: 14px; line-height: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--steel-300); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue-500); margin-top: 2px; flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.form-actions .btn { flex: 1 1 200px; }
.btn.loading { pointer-events: none; opacity: .8; }
.btn.loading::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- tracking ---------- */
.track-box { background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--steel-100); max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .track-box { padding: 40px; } }
.track-form { display: flex; gap: 10px; flex-wrap: wrap; }
.track-form input { flex: 1 1 220px; min-height: 54px; border-radius: 14px; border: 1px solid #d7dde6; padding: 0 18px; font-size: 17px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.track-form input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(42,111,209,.15); }
.track-form .btn { min-height: 54px; }
.track-samples { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.track-samples button { border: 0; background: #eef3fb; color: var(--blue-600); border-radius: 8px; padding: 3px 8px; font-weight: 600; font-size: 12.5px; margin: 2px; }
.track-result { margin-top: 26px; }
.track-head { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--steel-100); }
.track-head h3 { margin: 0; font-family: var(--font-head); font-size: 22px; }
.track-head small { color: var(--ink-soft); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.track-steps { display: grid; gap: 0; margin-top: 22px; }
.tstep { display: grid; grid-template-columns: 34px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.tstep::before { content: ''; position: absolute; left: 16px; top: 30px; bottom: 0; width: 2px; background: var(--steel-100); }
.tstep:last-child::before { display: none; }
.tstep .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--steel-100); color: var(--steel-500); font-size: 14px; font-weight: 700; position: relative; z-index: 1; }
.tstep.done .dot { background: var(--blue-600); color: #fff; }
.tstep.done::before { background: var(--blue-600); }
.tstep.current .dot { background: var(--wood-500); color: var(--navy-950); box-shadow: 0 0 0 6px rgba(217,163,91,.25); }
.tstep b { font-family: var(--font-head); font-size: 16px; display: block; padding-top: 5px; }
.tstep small { color: var(--ink-soft); }
@media (min-width: 768px) {
  .track-steps { grid-template-columns: repeat(7, 1fr); }
  .tstep { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 0 4px; }
  .tstep::before { left: 50%; right: -50%; top: 16px; bottom: auto; width: auto; height: 2px; }
  .tstep b { font-size: 13.5px; line-height: 1.25; }
  .tstep small { font-size: 12px; }
}
.track-empty { color: var(--danger); font-weight: 500; }

/* ---------- standards ---------- */
.std-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 26px; padding-bottom: 4px; }
.std-tabs::-webkit-scrollbar { display: none; }
.std-tabs button { flex: none; border: 1px solid rgba(255,255,255,.14); background: transparent; color: var(--steel-300); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-family: var(--font-head); transition: .25s; }
.std-tabs button.on { background: #fff; color: var(--navy-900); border-color: #fff; }
.std-panel { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .std-panel { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.std-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; position: relative; }
.std-img img { width: 100%; height: 100%; object-fit: cover; }
.std-img .tag { position: absolute; left: 14px; bottom: 14px; background: var(--wood-500); color: var(--navy-950); font-weight: 700; font-family: var(--font-head); padding: 6px 12px; border-radius: 8px; font-size: 14px; }
.std-panel h3 { font-family: var(--font-head); color: #fff; font-size: clamp(24px, 4vw, 34px); margin: 0 0 14px; line-height: 1.15; }
.std-panel p { color: var(--steel-300); margin: 0 0 18px; }
.std-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.std-points li { display: flex; align-items: center; gap: 12px; color: #e3ebf6; }
.std-points li::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.std-fade { animation: fadeUp .5s var(--ease); }

/* ---------- gallery ---------- */
.gallery { columns: 2; column-gap: 10px; }
@media (min-width: 768px) { .gallery { columns: 3; column-gap: 14px; } }
@media (min-width: 1200px) { .gallery { columns: 4; } }
.gallery button { display: block; width: 100%; margin: 0 0 10px; border: 0; padding: 0; border-radius: 14px; overflow: hidden; break-inside: avoid; position: relative; background: #dfe5ee; }
@media (min-width: 768px) { .gallery button { margin-bottom: 14px; } }
.gallery img { width: 100%; height: auto; transition: transform .8s var(--ease), filter .5s; filter: saturate(.9) contrast(1.05); }
.gallery button:hover img { transform: scale(1.06); filter: saturate(1.1) contrast(1.08); }
.gallery button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(7,13,24,.5)); opacity: 0; transition: .4s; }
.gallery button:hover::after { opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 44px 24px; background: url('../assets/img/crane-loading.jpg') center/cover; color: #fff; isolation: isolate; text-align: center; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(11,21,38,.94), rgba(31,90,166,.78)); }
.cta-band h2 { font-family: var(--font-head); font-size: clamp(28px, 5vw, 48px); margin: 0 0 10px; line-height: 1.1; }
.cta-band p { color: #d0dcee; margin: 0 auto 24px; max-width: 520px; }
@media (min-width: 768px) { .cta-band { padding: 72px 48px; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 40px; } }
.cinfo { display: grid; gap: 12px; }
.cinfo-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 16px 18px; border: 1px solid var(--steel-100); transition: transform .3s var(--ease), box-shadow .3s; }
.cinfo-item:hover { transform: translateX(4px); box-shadow: 0 10px 30px -18px rgba(7,13,24,.4); }
.cinfo-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--navy-900); color: var(--blue-300); display: grid; place-items: center; flex: none; }
.cinfo-item .ico svg { width: 20px; }
.cinfo-item small { display: block; color: var(--ink-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.cinfo-item b, .cinfo-item a { font-weight: 600; color: var(--navy-900); display: block; word-break: break-word; }
.map { border-radius: 16px; overflow: hidden; height: 240px; border: 1px solid var(--steel-100); background: #dfe5ee; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }
.cform { background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--steel-100); }
@media (min-width: 768px) { .cform { padding: 34px; } }
.cform h3 { font-family: var(--font-head); font-size: 24px; margin: 0 0 18px; }
.form-ok { display: none; align-items: center; gap: 10px; background: #ecfdf3; color: #15803d; padding: 14px 16px; border-radius: 12px; font-weight: 600; margin-top: 14px; }
.form-ok.on { display: flex; animation: fadeUp .4s var(--ease); }

/* ---------- footer ---------- */
.footer { background: var(--navy-950); color: var(--steel-300); padding: 64px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer h4 { color: #fff; font-family: var(--font-head); font-size: 15px; margin: 0 0 14px; letter-spacing: .04em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer .certs { display: flex; gap: 10px; margin-top: 18px; align-items: center; flex-wrap: wrap; }
.footer .certs img { height: 52px; background: #fff; border-radius: 8px; padding: 4px; }
.footer .certs span { border: 1px solid rgba(255,255,255,.2); padding: 8px 12px; border-radius: 10px; font-size: 12px; font-weight: 600; color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.socials svg { width: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: 13px; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- modal / lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: flex-end; justify-content: center; background: rgba(7,13,24,.7); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.modal.on { opacity: 1; visibility: visible; }
.modal-card { position: relative; background: #fff; width: 100%; max-height: 92svh; overflow-y: auto; border-radius: 24px 24px 0 0; transform: translateY(40px); transition: transform .45s var(--ease); overscroll-behavior: contain; }
.modal.on .modal-card { transform: none; }
@media (min-width: 768px) { .modal { align-items: center; padding: 24px; } .modal-card { max-width: 980px; border-radius: 24px; max-height: 88vh; } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(7,13,24,.65); color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; backdrop-filter: blur(6px); }
.pm-hero { position: relative; aspect-ratio: 16/9; background: var(--navy-900); }
.pm-hero img { width: 100%; height: 100%; object-fit: cover; }
.pm-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,13,24,.85)); }
.pm-hero h3 { position: absolute; left: 22px; bottom: 16px; z-index: 1; color: #fff; font-family: var(--font-head); font-size: clamp(28px, 5vw, 42px); margin: 0; }
.pm-body { padding: 22px; display: grid; gap: 24px; }
@media (min-width: 768px) { .pm-body { padding: 32px; grid-template-columns: 1.4fr 1fr; } }
.pm-body p { margin: 0; color: var(--ink-soft); }
.specs { display: grid; gap: 0; border: 1px solid var(--steel-100); border-radius: 14px; overflow: hidden; align-self: start; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--steel-100); }
.specs div:last-child { border-bottom: 0; }
.specs span { color: var(--ink-soft); }
.specs b { text-align: right; }
.pm-gallery { padding: 0 22px 26px; }
@media (min-width: 768px) { .pm-gallery { padding: 0 32px 32px; } }
.pm-gallery h4 { font-family: var(--font-head); margin: 0 0 12px; }
.pm-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.pm-strip button { flex: none; width: 150px; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; border: 0; padding: 0; scroll-snap-align: start; }
.pm-strip img { width: 100%; height: 100%; object-fit: cover; }
.pm-actions { padding: 0 22px 26px; }
@media (min-width: 768px) { .pm-actions { padding: 0 32px 32px; } }

.lightbox { position: fixed; inset: 0; z-index: 600; background: rgba(4,8,15,.95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: .3s; padding: 16px; }
.lightbox.on { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 84svh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; }
.lightbox .lb-prev { left: 12px; } .lightbox .lb-next { right: 12px; }
.lightbox .modal-close { top: 16px; right: 16px; }

.ok-card { padding: 36px 24px 30px; text-align: center; max-width: 520px; margin: 0 auto; }
.ok-icon { width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%; background: #ecfdf3; display: grid; place-items: center; color: var(--ok); }
.ok-icon svg { width: 40px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .2s var(--ease) forwards; }
.ok-card h3 { font-family: var(--font-head); font-size: 28px; margin: 0 0 8px; }
.ok-card p { color: var(--ink-soft); margin: 0 0 16px; }
.ok-code { font-family: var(--font-head); font-size: 30px; font-weight: 800; letter-spacing: .06em; color: var(--blue-600); background: #eef4fd; border-radius: 14px; padding: 12px; margin: 0 0 20px; user-select: all; }
.ok-card .form-actions .btn { flex: 1 1 160px; }
.ok-card .btn--ghost { --fg: var(--navy-900); border-color: #d7dde6; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 120%); z-index: 700; background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; transition: transform .4s var(--ease); max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); }

/* ---------- floating actions ---------- */
.fab-wa { position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease); }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 28px; }
.demo-ribbon { position: fixed; left: 12px; bottom: 16px; z-index: 80; display: none; align-items: center; gap: 8px; background: rgba(7,13,24,.85); border: 1px solid rgba(255,255,255,.12); color: #dfe7f3; font-size: 12px; padding: 8px 12px; border-radius: 999px; backdrop-filter: blur(8px); }
.demo-ribbon a { color: var(--wood-400); font-weight: 600; }
@media (min-width: 768px) { .demo-ribbon { display: inline-flex; } }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; } .reveal[data-d="2"] { transition-delay: .16s; } .reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; } .reveal[data-d="5"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
