/* Czcionki serwowane lokalnie (SIL OFL 1.1) – bez łączenia z Google Fonts */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'), url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations'), url(/fonts/inter-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(/fonts/space-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations'), url(/fonts/space-grotesk-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(/fonts/space-grotesk-latin-wght-normal.woff2) format('woff2-variations'), url(/fonts/space-grotesk-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* =========================================================
   Addytywa – pracownia druku 3D
   ========================================================= */
:root {
  --bg: #0a0b0d;
  --bg-2: #0e1013;
  --surface: #13161a;
  --surface-2: #191d22;
  --surface-3: #20252b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceded;
  --muted: #9aa1a9;
  --dim: #6b727b;
  --accent: #ff6a1a;
  --accent-2: #ffb547;
  --grad: linear-gradient(100deg, #ff5a1f 0%, #ff8a2a 45%, #ffb547 100%);
  --ok: #3ddc97;
  --warn: #ffc145;
  --err: #ff5a5f;
  --info: #5ab4ff;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 72px;
  --max: 1220px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-d: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --line-3: rgba(255, 255, 255, 0.26);
  --text-2: #d3d6da;
  --hover: rgba(255, 255, 255, 0.05);
  --header-bg: rgba(10, 11, 13, 0.78);
  --menu-bg: rgba(10, 11, 13, 0.97);
  --glass: rgba(19, 22, 26, 0.78);
  --glass-strong: rgba(19, 22, 26, 0.96);
  --overlay: rgba(5, 6, 8, 0.72);
  --viewer-bg: radial-gradient(ellipse at 50% 30%, #1b1f25, #0c0e11 70%);
  --dz-bg: rgba(10, 11, 13, 0.55);
  --inset: rgba(10, 11, 13, 0.5);
  --cta-bg: linear-gradient(140deg, #1a1210, #121418);
  --warn-text: #ffe1a3;
  --ok-text: #b9f5d9;
  --err-text: #ffb3b5;
  --info-text: #8fd3ff;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f7f6f3;
  --bg-2: #efede9;
  --surface: #ffffff;
  --surface-2: #f5f4f1;
  --surface-3: #e9e7e2;
  --line: rgba(20, 22, 26, 0.09);
  --line-2: rgba(20, 22, 26, 0.15);
  --line-3: rgba(20, 22, 26, 0.3);
  --text: #14161a;
  --text-2: #2c3036;
  --muted: #565c64;
  --dim: #858b92;
  --accent-2: #c85a12;
  --ok: #12a066;
  --warn: #b7791f;
  --err: #d63a40;
  --info: #1f78d1;
  --hover: rgba(20, 22, 26, 0.05);
  --header-bg: rgba(247, 246, 243, 0.82);
  --menu-bg: rgba(247, 246, 243, 0.98);
  --glass: rgba(255, 255, 255, 0.84);
  --glass-strong: rgba(255, 255, 255, 0.97);
  --overlay: rgba(20, 22, 26, 0.45);
  --viewer-bg: radial-gradient(ellipse at 50% 30%, #ffffff, #e4e2dd 75%);
  --dz-bg: rgba(255, 255, 255, 0.62);
  --inset: rgba(20, 22, 26, 0.04);
  --cta-bg: linear-gradient(140deg, #fff1e6, #ffffff);
  --warn-text: #7a4d06;
  --ok-text: #0b6b44;
  --err-text: #a3262b;
  --info-text: #175fa8;
  --shadow: 0 24px 60px -28px rgba(20, 22, 26, 0.3);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(255, 106, 26, 0.35); }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 72px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--font-d); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- przyciski ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface-2);
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.3s, opacity 0.2s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-3); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); border: 0; color: #160a03; box-shadow: 0 10px 30px -10px rgba(255, 106, 26, 0.7); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(255, 106, 26, 0.85); }
.btn-ghost { background: transparent; }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { background: rgba(255, 90, 95, 0.12); border-color: rgba(255, 90, 95, 0.35); color: var(--err-text); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.icon-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.active { border-color: var(--accent); color: var(--accent-2); }

/* ---------- nagłówek ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: var(--header-bg); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 38px; height: 38px; }
.brand-mark rect { transform-box: fill-box; transform-origin: left center; transition: transform 0.5s var(--ease); }
.brand:hover .brand-mark rect:first-child { animation: layer-print 1s var(--ease); }
@keyframes layer-print { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 600 17px/1 var(--font-d); letter-spacing: 0.2em; text-transform: uppercase; }
.brand-sub { font: 500 9.5px/1 var(--font); letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14.5px; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--hover); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--grad); color: #1a0b02; font: 700 11px/20px var(--font); text-align: center;
  transform: scale(0); transition: transform 0.35s var(--ease);
}
.cart-badge.show { transform: scale(1); }
.cart-badge.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.account-btn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px 0 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 500; }
.account-btn.guest { padding: 0 16px; }
.menu-toggle { display: none; }
@media (max-width: 980px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0; padding: 12px 16px 20px;
    background: var(--menu-bg); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.3s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 12px; font-size: 16px; border-radius: 10px; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .account-btn span.label { display: none; }
  .account-btn { padding: 0 5px; }
  .account-btn.guest { padding: 0 14px; }
}
@media (max-width: 420px) { .brand-sub { display: none; } .brand-name { font-size: 15px; letter-spacing: 0.14em; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
  opacity: 0.55;
}
.hero-bg .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; animation: float 16s ease-in-out infinite; }
.hero-bg .g1 { width: 560px; height: 560px; right: -120px; top: 4%; background: radial-gradient(circle, rgba(255, 106, 26, 0.55), transparent 65%); }
.hero-bg .g2 { width: 420px; height: 420px; left: -160px; bottom: -80px; background: radial-gradient(circle, rgba(90, 120, 255, 0.28), transparent 65%); animation-delay: -6s; }
@keyframes float { 50% { transform: translate(-30px, 40px) scale(1.08); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 13.5px; color: var(--muted); margin-bottom: 26px;
}
.hero-badge b { color: var(--text); font-weight: 600; }
.pulse-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(61, 220, 151, 0.15); }
.pulse-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: none; } }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 540px; margin: 24px 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 34px; margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); max-width: 600px; }
.stat b { display: block; font: 600 1.7rem/1 var(--font-d); letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 620px; justify-self: end; }
.hero-visual canvas { width: 100% !important; height: 100% !important; }
.hero-hud {
  position: absolute; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(10px); font-size: 12.5px; color: var(--muted);
  animation: hud-in 1s 0.8s var(--ease) both;
}
.hero-hud b { color: var(--text); font: 600 15px/1.2 var(--font-d); }
.hud-1 { left: 0; top: 16%; }
.hud-2 { right: 2%; bottom: 14%; animation-delay: 1s; }
.hud-bar { width: 140px; height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.hud-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 5px; }
@keyframes hud-in { from { opacity: 0; transform: translateY(16px); } }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--line-2); }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: scrolly 2s infinite; }
@keyframes scrolly { 60% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 32px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; justify-self: center; order: -1; margin: -20px auto -30px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .scroll-hint { display: none; }
  .hud-1 { left: -4px; }
}

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 14px; font: 500 15px/1 var(--font-d); color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; }
.marquee-item i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-3); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- karty / siatki ---------- */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } .section { padding: 84px 0; } }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px;
  transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s;
}
.card.hover:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card-glow { overflow: hidden; }
.card-glow::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 138, 42, 0.12), transparent 45%);
}
.card-glow:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(140deg, rgba(255, 106, 26, 0.2), rgba(255, 181, 71, 0.06)); border: 1px solid rgba(255, 138, 42, 0.28); color: var(--accent-2);
}
.feature-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* kroki */
.steps { counter-reset: step; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 46px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--line-2) 10%, var(--line-2) 90%, transparent);
}
.steps .progress-line { position: absolute; top: 46px; left: 12%; height: 2px; width: 0; background: var(--grad); transition: width 1.6s var(--ease); box-shadow: 0 0 12px rgba(255, 106, 26, 0.7); }
.steps.in .progress-line { width: 76%; }
.step { text-align: center; padding: 0 12px; position: relative; }
.step-num {
  width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line-2); position: relative; z-index: 1;
}
.step-num::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); }
.step-num svg { width: 30px; height: 30px; position: relative; color: var(--accent-2); }
.step-num span { position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #1a0b02; font: 700 13px/28px var(--font-d); }
.step p { color: var(--muted); max-width: 300px; margin: 0 auto; }
@media (max-width: 980px) { .steps::before, .steps .progress-line { display: none; } }

/* materiały */
.mat-tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 36px; flex-wrap: wrap; }
.mat-tabs button { border: 0; background: none; padding: 10px 20px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; transition: 0.25s; }
.mat-tabs button.active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.mat-card { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center; }
.mat-card .spool { width: 150px; height: 150px; }
.mat-card h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 11.5px/1.3 var(--font); letter-spacing: 0.04em; background: var(--surface-3); color: var(--muted); border: 1px solid var(--line); }
.tag.premium { color: var(--accent-2); border-color: rgba(255, 181, 71, 0.3); background: rgba(255, 181, 71, 0.08); }
.tag.budget { color: var(--info-text); border-color: rgba(90, 180, 255, 0.3); background: rgba(90, 180, 255, 0.08); }
.tag.ok { color: var(--ok); border-color: rgba(61, 220, 151, 0.3); background: rgba(61, 220, 151, 0.08); }
.tag.warn { color: var(--warn); border-color: rgba(255, 193, 69, 0.3); background: rgba(255, 193, 69, 0.08); }
.tag.err { color: var(--err); border-color: rgba(255, 90, 95, 0.3); background: rgba(255, 90, 95, 0.08); }
.tag.info { color: var(--info); border-color: rgba(90, 180, 255, 0.3); background: rgba(90, 180, 255, 0.08); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 14px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.25); position: relative; cursor: default; transition: transform 0.2s; }
.swatch:hover { transform: scale(1.18); }
.swatch[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--surface-3); border: 1px solid var(--line-2); padding: 4px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; z-index: 5;
}
.mat-props { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); }
.mat-props b { color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .mat-card { grid-template-columns: 1fr; } .mat-card .spool { width: 110px; height: 110px; } }

/* drukarki */
.printer { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.printer-visual { position: relative; min-height: 340px; background: radial-gradient(circle at 50% 70%, rgba(255, 106, 26, 0.18), transparent 60%), var(--bg-2); border-right: 1px solid var(--line); display: grid; place-items: center; }
.printer-body { padding: 36px; }
.spec-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.spec-list li { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.spec-list b { display: block; color: var(--text); font: 600 16px/1.3 var(--font-d); }
@media (max-width: 860px) { .printer { grid-template-columns: 1fr; } .printer-visual { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* maszyna – ilustracja SVG */
.machine { width: 78%; max-width: 280px; }
.machine .head { animation: head-move 3.2s ease-in-out infinite; }
.machine .layer-grow { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 6s ease-in-out infinite; }
@keyframes head-move { 50% { transform: translateX(46px); } }
@keyframes grow { 0% { transform: scaleY(0.1); } 90%, 100% { transform: scaleY(1); } }

/* formuła ceny */
.formula { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; font: 600 clamp(1rem, 2vw, 1.25rem)/1 var(--font-d); }
.formula .term { padding: 18px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; align-items: center; min-width: 150px; }
.formula .term small { font: 500 12.5px/1.2 var(--font); color: var(--muted); letter-spacing: 0; }
.formula .op { color: var(--accent); font-size: 1.6em; }
.formula .term.total { background: linear-gradient(140deg, rgba(255, 106, 26, 0.18), rgba(255, 181, 71, 0.05)); border-color: rgba(255, 138, 42, 0.4); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font: 600 1.08rem/1.4 var(--font-d); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-75%) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { color: var(--muted); padding: 0 40px 24px 0; animation: fade-down 0.4s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }

/* CTA */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 72px 56px; border: 1px solid rgba(255, 138, 42, 0.3);
  background: radial-gradient(600px circle at 85% 20%, rgba(255, 106, 26, 0.35), transparent 60%), var(--cta-bg);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.25;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 7px);
  mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-band h2 { margin: 0 0 10px; max-width: 620px; }
.cta-band p { color: var(--muted); margin: 0; }
@media (max-width: 640px) { .cta-band { padding: 44px 26px; } }

/* ---------- stopka ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 72px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font: 600 13px/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-grid a { color: var(--text); opacity: 0.82; font-size: 14.5px; transition: opacity 0.2s, color 0.2s; }
.footer-grid a:hover { opacity: 1; color: var(--accent-2); }
.footer-about p { color: var(--muted); font-size: 14.5px; max-width: 320px; margin-top: 18px; }
.footer-company { font-size: 13px; color: var(--dim); line-height: 1.7; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--dim); }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badges span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- formularze ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.input, select.input, textarea.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s; font-size: 15px;
}
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.16); }
.input::placeholder { color: var(--dim); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; margin-bottom: 12px; line-height: 1.5; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--bg-2); cursor: pointer; display: grid; place-items: center; transition: 0.2s; }
.check input:checked { background: var(--grad); border-color: transparent; }
.check input:checked::after { content: ''; width: 5px; height: 10px; border: solid #1a0b02; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.check a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); gap: 4px; }
.seg button { border: 0; background: none; padding: 10px 8px; border-radius: 9px; cursor: pointer; color: var(--muted); font-size: 13.5px; font-weight: 600; line-height: 1.25; transition: 0.2s; }
.seg button small { display: block; font-weight: 500; font-size: 11.5px; color: var(--dim); }
.seg button.active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 15%), var(--surface-3) var(--p, 15%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: grab; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: grab; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); height: 44px; }
.stepper button { width: 40px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--muted); }
.stepper button:hover { color: var(--text); }
.stepper input { width: 64px; text-align: center; border: 0; background: none; outline: none; font-weight: 600; height: 100%; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper .unit { padding-right: 12px; color: var(--muted); font-size: 13px; }
.form-error { color: var(--err-text); background: rgba(255, 90, 95, 0.1); border: 1px solid rgba(255, 90, 95, 0.3); padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.notice { padding: 14px 16px; border-radius: 12px; font-size: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); }
.notice.warn { border-color: rgba(255, 193, 69, 0.35); background: rgba(255, 193, 69, 0.07); color: var(--warn-text); }
.notice.ok { border-color: rgba(61, 220, 151, 0.35); background: rgba(61, 220, 151, 0.07); color: var(--ok-text); }

/* ---------- podstrony ---------- */
.page-hero { padding: calc(var(--header-h) + 64px) 0 40px; position: relative; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.4;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(#000, transparent); -webkit-mask-image: linear-gradient(#000, transparent);
}
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.page-hero p { color: var(--muted); max-width: 640px; font-size: 1.08rem; }
.breadcrumbs { display: flex; gap: 8px; font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--text); }

/* ---------- produkty ---------- */
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-media { aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 60%, rgba(255, 106, 26, 0.14), transparent 60%), var(--bg-2); position: relative; overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product:hover .product-media img { transform: scale(1.06); }
.product-media .placeholder { width: 46%; opacity: 0.9; transition: transform 0.7s var(--ease); }
.product:hover .product-media .placeholder { transform: translateY(-6px) rotate(-4deg); }
.product-media .tag { position: absolute; top: 14px; left: 14px; }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { margin: 0; font-size: 1.12rem; }
.product-body p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.price { font: 600 1.35rem/1 var(--font-d); }
.price small { font: 500 12.5px var(--font); color: var(--muted); }
.addon { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; }
.addon-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.addon h4 { margin: 0 0 2px; font: 600 15.5px/1.3 var(--font-d); }
.addon p { font-size: 13px; }
.addon-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .addon { grid-template-columns: auto 1fr; } .addon-actions { grid-column: 1 / -1; justify-content: space-between; } }

/* ---------- koszyk ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; }
@media (max-width: 1020px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; padding: 20px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { width: 64px; height: 64px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { margin: 0 0 4px; font: 600 15.5px/1.35 var(--font-d); word-break: break-word; }
.cart-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.cart-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-right .price { font-size: 1.1rem; }
.link-btn { border: 0; background: none; color: var(--dim); font-size: 13px; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--err); }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--muted); font-size: 14.5px; }
.summary-row b { color: var(--text); font-weight: 600; }
.summary-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.summary-total .price { font-size: 1.8rem; }
.ship-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); margin-bottom: 10px; cursor: pointer; transition: 0.2s; }
.ship-opt:hover { border-color: var(--line-3); }
.ship-opt.active { border-color: var(--accent); background: rgba(255, 106, 26, 0.06); }
.ship-opt input { accent-color: var(--accent); }
.ship-opt .grow { flex: 1; }
.empty { text-align: center; padding: 72px 20px; }
.empty svg { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--dim); }

/* ---------- konto ---------- */
.order { padding: 0; overflow: hidden; margin-bottom: 16px; }
.order-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 18px 22px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.order-head .grow { flex: 1; }
.order-body { padding: 8px 22px 18px; }
.order-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.order-line:last-child { border-bottom: 0; }
.timeline { display: flex; gap: 6px; margin: 14px 0 6px; }
.timeline i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); }
.timeline i.on { background: var(--grad); }

/* ---------- modal / toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: var(--overlay); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity 0.3s; }
.modal-back.show { opacity: 1; }
.modal {
  width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 22px; padding: 30px; box-shadow: var(--shadow); transform: translateY(18px) scale(0.98); transition: transform 0.4s var(--ease);
}
.modal.wide { max-width: 640px; }
.modal-back.show .modal { transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.modal-head h3 { font-size: 1.4rem; margin: 0; }
.modal-close { flex: none; }
.toasts { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 40px); }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14.5px; animation: toast-in 0.45s var(--ease); max-width: 400px; }
.toast.out { animation: toast-out 0.35s var(--ease) forwards; }
.toast i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.toast.error i { background: var(--err); box-shadow: 0 0 10px var(--err); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
.cookie-bar {
  position: fixed; left: 20px; bottom: 20px; z-index: 90; max-width: 440px; padding: 20px 22px; border-radius: 18px;
  background: var(--glass-strong); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(10px);
  font-size: 13.5px; color: var(--muted); animation: toast-in 0.6s 1s var(--ease) both;
}
.cookie-bar p { margin: 0 0 14px; }
.cookie-bar a { color: var(--accent-2); text-decoration: underline; }
@media (max-width: 520px) { .cookie-bar { left: 12px; right: 12px; bottom: 12px; } }
.google-btn-wrap { display: flex; justify-content: center; min-height: 44px; margin: 18px 0; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--dim); font-size: 12.5px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- animacje wejścia ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal='left'] { transform: translateX(-36px); }
[data-reveal='right'] { transform: translateX(36px); }
[data-reveal='zoom'] { transform: scale(0.94); }
[data-reveal].in { opacity: 1; transform: none; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.15); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- dokumenty prawne ---------- */
.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; padding-bottom: 60px; }
.doc-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.doc-nav a { padding: 10px 14px; border-radius: 10px; color: var(--muted); font-size: 14.5px; border: 1px solid transparent; }
.doc-nav a:hover { color: var(--text); background: var(--surface); }
.doc-nav a.active { color: var(--text); background: var(--surface); border-color: var(--line-2); }
.doc { max-width: 820px; color: var(--text-2); font-size: 15.5px; line-height: 1.75; }
.doc h2 { font-size: 1.45rem; margin: 2.2em 0 0.7em; padding-top: 0.4em; color: var(--text); }
.doc h2:first-of-type { margin-top: 0.6em; }
.doc h3 { font-size: 1.1rem; margin: 1.6em 0 0.6em; color: var(--text); }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { margin-bottom: 0.5em; }
.doc li::marker { color: var(--accent-2); }
.doc a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.doc .meta { color: var(--dim); font-size: 14px; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; font-size: 13px; }
.doc .box { padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); margin: 1.2em 0; }
.doc .form-template { background: #f4f2ee; color: #1b1b1b; border-radius: 12px; padding: 28px 32px; font-size: 14.5px; }
.doc .form-template h3 { color: #111; margin-top: 0; }
.missing { color: var(--warn); background: rgba(255, 193, 69, 0.1); border-radius: 4px; padding: 0 4px; font-style: normal; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 24px; } .doc-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .doc-nav a { white-space: nowrap; } }
@media print { .site-header, .site-footer, .doc-nav, .cookie-bar { display: none !important; } body { background: #fff; color: #000; } .doc { color: #000; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- wycena 3D ---------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); gap: 24px; align-items: start; padding-bottom: 40px; }
@media (max-width: 1020px) { .quote-layout { grid-template-columns: 1fr; } }
.viewer-card { position: sticky; top: calc(var(--header-h) + 16px); padding: 0; overflow: hidden; height: min(72vh, 680px); min-height: 420px; }
@media (max-width: 1020px) { .viewer-card { position: relative; top: 0; height: 56vh; min-height: 340px; } }
.viewer { position: absolute; inset: 0; background: var(--viewer-bg); }
.viewer canvas { width: 100% !important; height: 100% !important; touch-action: none; }
.viewer-tools { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 3; }
.viewer-tools .icon-btn { background: var(--glass); backdrop-filter: blur(8px); }
.viewer-info { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 3; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(8px); font-size: 12.5px; color: var(--muted); }
.chip b { color: var(--text); font-weight: 600; }
.chip.err { border-color: rgba(255, 90, 95, 0.5); color: var(--err-text); }
.dropzone {
  position: absolute; inset: 16px; z-index: 4; border-radius: 18px; border: 2px dashed var(--line-2); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 10px; cursor: pointer; padding: 24px;
  background: var(--dz-bg); backdrop-filter: blur(2px); transition: border-color 0.25s, background 0.25s, opacity 0.3s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: rgba(255, 106, 26, 0.07); }
.dropzone.hidden { opacity: 0; pointer-events: none; }
.dropzone .dz-icon { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(255, 106, 26, 0.25), rgba(255, 181, 71, 0.06)); border: 1px solid rgba(255, 138, 42, 0.35); color: var(--accent-2); margin-bottom: 8px; animation: dz-float 3s ease-in-out infinite; }
.dropzone .dz-icon svg { width: 34px; height: 34px; }
@keyframes dz-float { 50% { transform: translateY(-8px); } }
.dropzone h3 { margin: 0; font-size: 1.35rem; }
.dropzone p { margin: 0; color: var(--muted); font-size: 14px; }
.viewer-loading { position: absolute; inset: 0; z-index: 5; display: none; place-items: center; background: var(--dz-bg); backdrop-filter: blur(4px); }
.viewer-loading.show { display: grid; }
.viewer-loading > div { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.panel { padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-title h3 { margin: 0; font-size: 1.05rem; }
.panel-title .hint { font-size: 13px; color: var(--muted); }
.file-row { display: flex; align-items: center; gap: 14px; }
.file-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent-2); flex: none; font: 700 11px/1 var(--font-d); letter-spacing: 0.05em; }
.file-row .grow { flex: 1; min-width: 0; }
.file-row h4 { margin: 0; font: 600 15px/1.3 var(--font-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-group { margin-bottom: 14px; }
.brand-group:last-child { margin-bottom: 0; }
.brand-group .label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.color-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.color-btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line-2); cursor: pointer; position: relative; transition: transform 0.2s var(--ease), box-shadow 0.2s; box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.25); padding: 0; }
.color-btn:hover { transform: scale(1.12); }
.color-btn.active { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.color-btn.active::after { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 13px; border: solid var(--ck, #111); border-width: 0 2.5px 2.5px 0; transform: translate(-50%, -60%) rotate(45deg); }
.selected-mat { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; margin-top: 14px; }
.selected-mat i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-3); flex: none; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.opt-row:first-child { margin-top: 0; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.range-head b { font: 600 18px/1 var(--font-d); }
.price-card { position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(255, 106, 26, 0.12), var(--surface) 45%); border-color: rgba(255, 138, 42, 0.3); }
.price-big { font: 600 clamp(2.3rem, 4vw, 3rem)/1 var(--font-d); letter-spacing: -0.03em; margin: 6px 0 4px; }
.price-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.price-meta div { padding: 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); }
.price-meta span { display: block; font-size: 12px; color: var(--muted); }
.price-meta b { font: 600 15px/1.4 var(--font-d); }
.price-card .muted { font-size: 13.5px; }
.added-box { display: none; gap: 10px; margin-top: 12px; }
.added-box.show { display: flex; }

/* ---------- gwarancja ---------- */
.guarantee-mini { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px; border-radius: 12px; background: rgba(61, 220, 151, 0.06); border: 1px solid rgba(61, 220, 151, 0.25); font-size: 13px; color: var(--muted); line-height: 1.5; }
.guarantee-mini svg { width: 22px; height: 22px; flex: none; color: var(--ok); }
.guarantee-mini b { color: var(--text); }
.guarantee { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; padding: 56px; border-radius: 28px; position: relative; overflow: hidden;
  background: radial-gradient(500px circle at 0% 0%, rgba(61, 220, 151, 0.16), transparent 60%), var(--surface); border: 1px solid rgba(61, 220, 151, 0.28); }
.seal { width: 190px; height: 190px; position: relative; display: grid; place-items: center; }
.seal svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.seal-core { width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: linear-gradient(140deg, rgba(61, 220, 151, 0.25), rgba(61, 220, 151, 0.05)); border: 1px solid rgba(61, 220, 151, 0.45); color: var(--ok); font: 700 13px/1.15 var(--font-d); letter-spacing: 0.04em; text-transform: uppercase; }
.seal-core svg { width: 34px; height: 34px; margin: 0 auto 6px; }
.g-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.g-steps div { padding: 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.g-steps b { display: block; color: var(--text); font: 600 15px/1.3 var(--font-d); margin-bottom: 4px; }
.g-steps span.n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(61, 220, 151, 0.15); color: var(--ok); font: 700 12px/1 var(--font-d); margin-bottom: 10px; }
@media (max-width: 860px) { .guarantee { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; justify-items: start; } .g-steps { grid-template-columns: 1fr; } .seal { width: 150px; height: 150px; } }

/* ---------- motyw / logo ---------- */
.brand-mark { color: var(--text); }
.theme-btn .i-sun { display: none; }
:root[data-theme='light'] .theme-btn .i-sun { display: block; }
:root[data-theme='light'] .theme-btn .i-moon { display: none; }
:root[data-theme='light'] .hero-bg .g1 { opacity: 0.35; }
:root[data-theme='light'] .hero-bg .g2 { opacity: 0.25; }
:root[data-theme='light'] .tag.premium { background: rgba(255, 138, 42, 0.1); }
:root[data-theme='light'] .site-footer { background: var(--bg-2); }
:root[data-theme='light'] .printer-visual { background: radial-gradient(circle at 50% 70%, rgba(255, 106, 26, 0.16), transparent 60%), #e9e7e2; }
:root[data-theme='light'] .product-media { background: radial-gradient(circle at 50% 60%, rgba(255, 106, 26, 0.12), transparent 60%), var(--surface-2); }
html.theme-anim, html.theme-anim * { transition: background-color 0.4s, border-color 0.4s, color 0.3s !important; }

/* ---------- media 3D w sklepie ---------- */
.product-media canvas { width: 100%; height: 100%; display: block; }
.media-hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--glass); border: 1px solid var(--line); }
.media-hint svg { width: 14px; height: 14px; }
.addon { grid-template-columns: 112px 1fr auto; }
.addon-media { width: 112px; height: 112px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(255, 106, 26, 0.12), transparent 65%), var(--bg-2); border: 1px solid var(--line); }
.addon-media canvas, .addon-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.addon-media svg { width: 34px; height: 34px; }
.addon.compact { grid-template-columns: 84px 1fr auto; padding: 14px; }
.addon.compact .addon-media { width: 84px; height: 84px; }
.variants { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.variant { width: 24px; height: 24px; border-radius: 50%; padding: 0; cursor: pointer; background: var(--c); border: 2px solid var(--line-2); box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.25); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.variant:hover { transform: scale(1.15); }
.variant.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.variant-name { font-size: 12.5px; color: var(--muted); margin-left: 4px; }
@media (max-width: 640px) {
  .addon, .addon.compact { grid-template-columns: 84px 1fr; }
  .addon-media, .addon.compact .addon-media { width: 84px; height: 84px; }
}
.item-note { margin-top: 8px; height: 36px; font-size: 13.5px; max-width: 420px; }

/* ---------- karta produktu ---------- */
.modal.xl { max-width: 940px; }
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start; }
.pd-media { aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; position: relative; background: radial-gradient(circle at 50% 60%, rgba(255, 106, 26, 0.14), transparent 62%), var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; }
.pd-media canvas, .pd-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-media .placeholder { width: 50%; }
.pd-info { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 760px) { .pd { grid-template-columns: 1fr; gap: 18px; } .pd-media { aspect-ratio: 4 / 3; } }
.mini-swatches { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.mini-swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-2); }
.mini-swatches span { font-size: 12px; margin-left: 6px; }
/* akcesoria: zdjęcie | opis, akcje pod opisem */
.addon, .addon.compact { grid-template-columns: 112px 1fr; align-items: start; }
.addon.compact { grid-template-columns: 84px 1fr; }
.addon .addon-actions { grid-column: 2; justify-content: flex-start; margin-top: 2px; }
.addon h4 { font-size: 16px; }
@media (max-width: 640px) { .addon .addon-actions { grid-column: 1 / -1; justify-content: space-between; } }
.variant.chip { width: auto; height: auto; padding: 5px 11px; border-radius: 999px; background: var(--bg-2); color: var(--text); font: 600 12.5px/1.2 var(--font); box-shadow: none; border: 1px solid var(--line-2); }
.variant.chip:hover { transform: none; border-color: var(--line-3); }
.variant.chip.active { border-color: var(--accent); background: rgba(255, 106, 26, 0.1); box-shadow: none; }
.photo-note { font-size: 12.5px; color: var(--dim); display: flex; gap: 8px; align-items: center; }
.photo-note svg { width: 15px; height: 15px; flex: none; }
.account-btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 980px) {
  .hero-hud { padding: 8px 11px; font-size: 11px; gap: 2px; border-radius: 11px; }
  .hero-hud b { font-size: 13px; }
  .hud-1 { top: 2%; left: 0; }
  .hud-2 { right: 0; bottom: 4%; }
  .hud-bar { width: 96px; }
}
@media (max-width: 480px) {
  .site-header .container { gap: 10px; padding: 0 14px; }
  .header-actions { gap: 6px; }
  .header-actions .icon-btn, .header-actions .account-btn { width: 38px; height: 38px; }
  .header-actions .account-btn { padding: 0; justify-content: center; }
  .header-actions .account-btn .avatar { width: 28px; height: 28px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 14px; letter-spacing: 0.12em; }
}

/* ---------- strona produktu ---------- */
.pp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); gap: 48px; align-items: start; margin-top: 18px; }
.pp-media { position: sticky; top: calc(var(--header-h) + 20px); aspect-ratio: 1 / 1; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.pp-media canvas { width: 100%; height: 100%; display: block; }
.pp-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.pp-media .placeholder { width: 46%; }
.pp-info { display: flex; flex-direction: column; gap: 18px; }
.pp-info h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0; }
.pp-price { font: 700 1.9rem/1 var(--font-d); }
.pp-lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.pp-block .label { display: block; margin-bottom: 10px; }
.pp-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pp-facts { list-style: none; margin: 4px 0 0; padding: 18px 0 0; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.pp-facts li { display: flex; gap: 12px; font-size: 14px; color: var(--muted); }
.pp-facts svg { width: 18px; height: 18px; flex: none; color: var(--text); margin-top: 1px; }
.pp-details { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.pp-details h2 { font-size: 1.3rem; }
.pp-details p { color: var(--text-2); }
.pp-specs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pp-specs th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 12px 10px 0; width: 34%; vertical-align: top; border-bottom: 1px solid var(--line); }
.pp-specs td { padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .pp, .pp-details { grid-template-columns: 1fr; gap: 24px; } .pp-media { position: relative; top: 0; } }
a.card.product { color: inherit; }
.product .cat { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- zdjęcia zawsze w całości (miniatury, karty, koszyk, panel) ---------- */
.product-media img, .addon-media img, .cart-thumb img, .tbl .thumb img { object-fit: contain !important; }
.product-media img { padding: 6%; }
.addon-media img { padding: 6px; }
.cart-thumb img { padding: 4px; }

/* =========================================================
   v2 – spokojniejszy, warsztatowy wygląd (bez gradientów, poświat i „szkła”)
   ========================================================= */
:root { --accent: #e8590c; --accent-2: #f08c3a; --btn-bg: #c9480b; --grad: var(--accent); --r: 10px; --r-sm: 8px; --font-d: var(--font); }
:root[data-theme='light'] { --accent: #d9480f; --accent-2: #c2410c; --btn-bg: #c2410c; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; }
.brand-name { font-family: 'Space Grotesk', var(--font); }
.grad-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent); }
.btn { border-radius: 8px; }
.btn:hover { transform: none; }
.btn-primary { background: var(--btn-bg); color: #fff; box-shadow: none; }
.btn-primary:hover { background: color-mix(in srgb, var(--btn-bg) 86%, #000); box-shadow: none; }
.btn-primary::after { display: none; }
.nav a, .tag, .mat-tabs button, .seg button { border-radius: 6px; }
.mat-tabs, .seg, .stepper, .input, .toast, .cookie-bar { border-radius: 8px; }
.modal { border-radius: 14px; }
.card-glow::before, .hero-bg, .scroll-hint, .page-hero::before, .eyebrow::before, .hero-hud { display: none; }
.card.hover:hover { transform: none; border-color: var(--line-3); }
.eyebrow { color: var(--muted); letter-spacing: 0.12em; }
.feature-icon { background: none; border: 0; width: auto; height: auto; margin-bottom: 14px; color: var(--accent); }
[data-reveal] { transform: translateY(8px); transition-duration: 0.5s; }
[data-reveal='left'], [data-reveal='right'], [data-reveal='zoom'] { transform: translateY(8px); }
.cart-badge { background: var(--btn-bg); color: #fff; }
.check input:checked { background: var(--btn-bg); }
.check input:checked::after { border-color: #fff; }
.range { background: linear-gradient(90deg, var(--accent) var(--p, 15%), var(--surface-3) var(--p, 15%)); }
.product-media, .pd-media, .addon-media, :root[data-theme='light'] .product-media { background: var(--surface-2); }
.guarantee-mini { background: var(--surface-2); border-color: var(--line-2); }
.guarantee-mini svg { color: var(--text); }
.price-card { background: var(--surface); border-color: var(--line-2); }
.step-num span { background: var(--btn-bg); color: #fff; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 18px; }
.sec-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: end; margin-bottom: 28px; }
.sec-head p { margin: 0; }
.narrow { max-width: 820px; }
.narrow p { font-size: 1.05rem; color: var(--text-2); }
.link { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* hero */
.hero { min-height: auto; padding: calc(var(--header-h) + 56px) 0 64px; }
.kicker { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.hero h1 { margin-bottom: 0; }
.hero-lead { margin: 20px 0 30px; color: var(--text-2); }
.hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 32px; font-size: 14px; color: var(--muted); }
.hero-facts b { color: var(--text); font-weight: 600; }
.hero-visual { margin: 0; max-width: 540px; aspect-ratio: auto; }
.hero-canvas { aspect-ratio: 1 / 1; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.hero-canvas canvas { width: 100% !important; height: 100% !important; }
.hero-visual figcaption { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.hero-progress { flex: 1; min-width: 80px; height: 3px; background: var(--line-2); border-radius: 2px; overflow: hidden; display: block; }
.hero-progress i { display: block; height: 100%; width: 0; background: var(--accent); }

/* jak zamówić */
.howto { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.howto li { counter-increment: s; border-top: 2px solid var(--text); padding-top: 16px; }
.howto li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.howto b { display: block; font-size: 1.15rem; margin-bottom: 6px; }
.howto span { color: var(--muted); }

/* co drukujemy */
.offer { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.offer a { padding: 26px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; transition: background 0.2s; }
.offer a:last-child { border-right: 0; }
.offer a:hover { background: var(--hover); }
.offer b { font-size: 1.05rem; }
.offer b::after { content: ' →'; color: var(--accent); }
.offer span { color: var(--muted); font-size: 14.5px; }

/* drukarki */
.printer-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.printer-art { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; place-items: center; }
.printer-art .machine { width: 100%; max-width: 340px; }
.machine .bed { animation: bed-move 4s ease-in-out infinite; }
@keyframes bed-move { 50% { transform: translateX(-36px); } }
.specs { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14.5px; }
.specs th { text-align: left; font-weight: 500; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line); width: 42%; }
.specs td { padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 600; }

.cta-plain { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 40px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.cta-plain h2 { font-size: 1.6rem; margin-bottom: 6px; }
.cta-plain p { margin: 0; }

@media (max-width: 980px) {
  .howto, .offer { grid-template-columns: 1fr 1fr; }
  .offer a:nth-child(2) { border-right: 0; }
  .offer a { border-bottom: 1px solid var(--line); }
  .printer-block, .sec-head { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { order: 0; margin: 28px auto 0; justify-self: stretch; max-width: none; }
}
@media (max-width: 640px) {
  .howto, .offer { grid-template-columns: 1fr; }
  .offer a { border-right: 0; }
  .cta-plain { padding: 26px 22px; }
  .hero-facts { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ---------- kalkulator: lista modeli i stoły ---------- */
.model-list { display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.mrow { display: grid; grid-template-columns: 44px 1fr auto 32px; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; }
.mrow:hover { background: var(--hover); }
.mrow.active { border-color: var(--accent); background: var(--hover); }
.mthumb { width: 44px; height: 44px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font-size: 10px; font-weight: 700; color: var(--muted); }
.mthumb img { width: 100%; height: 100%; object-fit: contain; }
.mmeta { min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.mmeta b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmeta span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mprice { font-weight: 600; font-size: 14px; white-space: nowrap; }
.mrm { width: 32px; height: 32px; border-radius: 8px; }
.mrm svg { width: 16px; height: 16px; }
.plate-tabs { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 220px); }
.plate-tabs button { border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(8px); color: var(--text); border-radius: 8px; padding: 6px 10px; font: 600 12.5px/1.2 var(--font); cursor: pointer; text-align: left; }
.plate-tabs button small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.plate-tabs button.active { border-color: var(--accent); }
.plate-tabs button.warn { border-color: var(--err); }
.totals { margin: 0 0 14px; padding: 12px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; display: grid; gap: 4px; }
.totals > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.totals b { font-size: 1.1rem; }
.apply-all { color: var(--accent-2); font-weight: 600; }
.apply-all:hover { color: var(--accent); }

/* ---------- przejście karta → podstrona (View Transitions, Chrome/Edge/Safari 18) ---------- */
@view-transition { navigation: auto; }
::view-transition-group(item-media) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }
.pp-media { view-transition-name: item-media; }
.addon h4 a:hover { color: var(--accent-2); }
a.addon-media { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* zakładki sklepu */
.shop-tabs { margin: 22px 0 0; }
.shop-tabs button.acc { color: var(--text); }
.shop-tabs button.acc:not(.active)::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 1px; }
section[hidden] { display: none !important; }

/* zdjęcie drukarki w sekcji „Drukarki Bambu Lab A1” */
.printer-photo { padding: 0; margin: 0; overflow: hidden; display: block; }
.printer-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.printer-photo figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--dim); border-top: 1px solid var(--line); }

/* strona produktu: bezpieczeństwo (GPSR) */
.pp-safety { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pp-safety h2 { font-size: 1.05rem; margin: 0 0 10px; }
.pp-safety p { margin: 6px 0; font-size: 14.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.pp-safety svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }

/* strona produktu: przełącznik Zdjęcie / 3D */
.pp-media .media-view { position: absolute; inset: 0; display: grid; place-items: center; }
.pp-media .media-view[hidden] { display: none; }
.pp-media .media-view img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.media-switch { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.media-switch button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; }
.media-switch button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.media-switch svg { width: 14px; height: 14px; }
.pp-media canvas[data-interactive] { cursor: grab; }

/* koszyk: kod rabatowy */
.code-box { display: flex; gap: 8px; margin: 12px 0 10px; }
.code-box .input { flex: 1; min-width: 0; text-transform: uppercase; }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; color: inherit; text-decoration: none; transition: border-color .2s; }
.blog-card:hover { border-color: var(--line-2, var(--accent)); }
.blog-cover { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-cover-empty { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(0deg, var(--surface-2) 0 10px, var(--surface) 10px 12px); }
.blog-card-body { padding: 18px 20px 22px; }
.blog-card-body h2 { font-size: 1.2rem; margin: 6px 0 8px; }
.blog-card-body p { margin: 0; font-size: 14.5px; }
.blog-hero-img { margin: 0 0 28px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.blog-hero-img img { display: block; width: 100%; height: auto; }
.blog-body img { max-width: 100%; height: auto; border-radius: var(--r); }
.blog-body figure { margin: 22px 0; }
.blog-body blockquote { margin: 18px 0; padding: 10px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.blog-body code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* logowanie e-mailem */
.auth-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin: 4px 0 16px; }
.auth-tabs button { padding: 7px 16px; border-radius: 999px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.auth-tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.auth-form { text-align: left; }

/* blog: polecane produkty */
.blog-picks { margin-top: 40px; }
.picks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.pick { padding: 0; overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.pick-media { aspect-ratio: 1 / 1; background: var(--surface-2); display: grid; place-items: center; }
.pick-media canvas, .pick-media img { width: 100%; height: 100%; display: block; object-fit: contain; }
.pick-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.pick-body .price { font-weight: 700; }

/* stopka: social media */
.social { display: flex; gap: 10px; margin: 18px 0 4px; }
.social a { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: color .2s, border-color .2s; }
.social a:hover { color: var(--accent); border-color: var(--accent); }
.social svg { width: 18px; height: 18px; }
/* grafika 3D wyłączona */
.no3d { width: 100%; height: 100%; display: grid; place-items: center; background: var(--surface-2); }
.no3d-mark { width: 34%; max-width: 120px; opacity: .35; color: var(--text); }

/* opinie */
.stars { color: #c9c4ba; letter-spacing: 1px; }
.stars i { font-style: normal; }
.stars i.on { color: #f2b01e; }
.stars i.half { background: linear-gradient(90deg, #f2b01e 50%, #c9c4ba 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pp-rating { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; text-decoration: none; color: inherit; margin-top: -6px; }
.pp-reviews { margin-top: 32px; }
.pp-reviews h2 { font-size: 1.3rem; margin-bottom: 12px; }
.review-summary { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 15px; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review p { margin: 6px 0 0; }
.review-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.review-reply { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--surface-2); font-size: 14px; }
.review-form { margin-top: 18px; display: grid; gap: 10px; }
.review-form h3 { margin: 0; font-size: 1.05rem; }
.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { font-size: 30px; color: #c9c4ba; cursor: pointer; line-height: 1; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #f2b01e; }
.rate input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
