:root {
  --bg: #f5f6f8;
  --card: #fff;
  --ink: #16181d;
  --ink2: #4a505b;
  --muted: #7a818c;
  --line: #e3e6eb;
  --line2: #d3d8df;
  --accent: #f26b1d;
  --accent-d: #d95a10;
  --accent-soft: #fff1e7;
  --dark: #16181d;
  --ok: #1f9d55;
  --err: #d33a2c;
  --r: 16px;
  --shadow: 0 1px 2px rgba(16, 20, 28, .04), 0 4px 16px rgba(16, 20, 28, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 4vw, 34px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
code { background: #eef0f3; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
[hidden] { display: none !important; }
.ic { flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.section { padding-top: 32px; padding-bottom: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h1, .section-head h2 { margin: 0; }
.page-head { margin-bottom: 24px; }
.page-head p { color: var(--ink2); margin: 0; max-width: 680px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.card > h2:first-child, .card > h3:first-child, .card > h1:first-child { margin-top: 0; }

/* ---------- nagłówek */
.top { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.logo em { font-style: normal; font-weight: 500; opacity: .55; margin-left: 4px; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.logo.small { font-size: 16px; }
.logo.small .logo-mark { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 10px; text-decoration: none; color: rgba(255, 255, 255, .78); font-weight: 550; font-size: 15px; position: relative; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.on { color: #fff; background: rgba(255, 255, 255, .12); }
.cart-count { background: var(--accent); color: #fff; font-size: 12px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
@media (max-width: 720px) {
  .nav a span { display: none; }
  .nav a { padding: 10px; }
  .cart-count { position: absolute; top: 0; right: -2px; }
  .logo { font-size: 17px; }
}

/* ---------- przyciski / formularze */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-weight: 650; padding: 10px 18px; border-radius: 12px; text-decoration: none;
  transition: background .15s, transform .05s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { background: var(--accent-d); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #c8cdd4; cursor: not-allowed; }
.btn-lg { padding: 14px 22px; font-size: 17px; border-radius: 14px; }
.btn-small { padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line2); }
.btn-ghost:hover { background: #f2f4f7; }
.btn-danger { color: var(--err); }
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink2); }
.field > label b { color: var(--ink); }
input, select, textarea {
  font: inherit; width: 100%; padding: 11px 13px; border: 1px solid var(--line2); border-radius: 11px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 107, 29, .15); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
.unit-input { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 11px; background: #fff; overflow: hidden; }
.unit-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 107, 29, .15); }
.unit-input input { border: 0; box-shadow: none !important; min-width: 0; }
.unit-input span { padding: 0 12px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.row2, .row3, .row4, .row2b { display: grid; gap: 0 16px; }
.row2 { grid-template-columns: 1fr 1fr; }
.row2b { grid-template-columns: 2fr 1fr; }
.row3 { grid-template-columns: repeat(3, 1fr); align-items: end; }
.row4 { grid-template-columns: 1.2fr 1fr 1fr 2fr; }
@media (max-width: 720px) { .row2, .row3, .row4 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink2); margin-bottom: 16px; cursor: pointer; }
.check input { margin-top: 3px; }
.hint { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.flash { background: var(--accent-soft); border: 1px solid #ffd4b8; color: #7a3507; padding: 12px 16px; border-radius: 12px; margin-top: 16px; }
.flash.err { background: #fdecea; border-color: #f6c4be; color: #8a1f14; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-col { flex-direction: column; }
.opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line2); border-radius: 12px; padding: 11px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: #b9c0c9; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.opt span { flex: 1; display: flex; flex-direction: column; }
.opt small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.opt em { font-style: normal; font-weight: 650; font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 12px; background: #fff; overflow: hidden; }
.qty button { border: 0; background: none; font-size: 20px; width: 42px; height: 44px; cursor: pointer; color: var(--ink2); }
.qty button:hover { background: #f2f4f7; }
.qty input { border: 0; width: 56px; text-align: center; padding: 8px 0; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); position: relative; }
.sw.on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 0 0 3px #fff, 0 0 0 5px var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line2); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; text-decoration: none; color: var(--ink2); }
.chip:hover { border-color: #b9c0c9; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip b { background: var(--accent); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 12px; margin-left: 4px; }
.tag { display: inline-block; background: #eef0f3; color: var(--ink2); font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 6px; vertical-align: 1px; }
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); font-weight: 550; margin-bottom: 16px; }
.back:hover { color: var(--ink); }

/* ---------- hero */
.hero {
  background: var(--dark); color: #fff; overflow: hidden; position: relative;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 7px), radial-gradient(1000px 420px at 85% 0%, rgba(242, 107, 29, .28), transparent 70%);
}
.hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #ffb47f; font-weight: 650; font-size: 14px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.025em; margin-bottom: 16px; }
.hero p { color: rgba(255, 255, 255, .72); font-size: 18px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-cta.center { justify-content: center; }
.hero .btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .2); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.hero-drop {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; text-decoration: none;
  border: 2px dashed rgba(255, 255, 255, .25); border-radius: 22px; padding: 40px 28px; background: rgba(255, 255, 255, .04); transition: border-color .2s, background .2s;
}
.hero-drop:hover { border-color: var(--accent); background: rgba(242, 107, 29, .08); }
.hero-drop b { font-size: 19px; }
.hero-drop span { color: rgba(255, 255, 255, .65); }
.hero-drop-ic { width: 72px; height: 72px; border-radius: 20px; background: var(--accent); display: grid; place-items: center; margin-bottom: 6px; color: #fff !important; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; gap: 24px; } .hero-drop { padding: 26px 20px; } }

/* ---------- katalog */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; box-shadow: var(--shadow); }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(16, 20, 28, .1); }
.pcard-img { aspect-ratio: 1; background: #eef0f3; position: relative; display: grid; place-items: center; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { color: #b3bac4; display: grid; place-items: center; width: 100%; height: 100%; }
.badge3d { position: absolute; top: 10px; right: 10px; background: rgba(22, 24, 29, .82); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 7px; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pcard-body h3 { font-size: 16px; margin: 2px 0 10px; }
.pcard-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-d); font-weight: 700; }
.pcard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pcard-foot b { font-size: 18px; }
.pcard-foot span { font-size: 13px; color: var(--muted); }
.empty { text-align: center; padding: 48px 24px; color: var(--ink2); }
.empty .ic { color: #b3bac4; margin-bottom: 8px; }
.empty h1, .empty h3 { color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.step span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-d); font-weight: 800; margin-bottom: 12px; }
.step p { color: var(--ink2); margin: 0; font-size: 15px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* ---------- produkt */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 24px; } }
.gallery-main { aspect-ratio: 1; background: #eef0f3; border-radius: var(--r); overflow: hidden; position: relative; display: grid; place-items: center; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .viewer { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #eef0f3; cursor: pointer; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--accent); }
.thumb-3d { flex-direction: column; font-size: 12px; font-weight: 700; color: var(--ink2); gap: 0; align-content: center; }
.pinfo h1 { margin: 6px 0 10px; }
.price-big { font-size: 30px; font-weight: 800; margin-bottom: 20px; letter-spacing: -.02em; }
.specs { margin: 0 0 20px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 0; font-weight: 600; }
.specs small { display: block; font-weight: 400; color: var(--ink2); font-size: 14px; }
.buy { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 24px; }
.buy .btn { flex: 1; }
.desc { color: var(--ink2); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- podgląd 3D */
.viewer { width: 100%; height: 100%; min-height: 300px; background: linear-gradient(180deg, #f7f8fa, #e7eaee); border-radius: var(--r); overflow: hidden; position: relative; touch-action: none; }
.viewer canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 550; padding: 20px; text-align: center; }
.viewer-box { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.viewer-box .viewer { height: min(62vh, 520px); border-radius: 0; }
@media (max-width: 720px) { .viewer-box .viewer { height: min(50vh, 380px); } }
.viewer-box.over { outline: 3px dashed var(--accent); outline-offset: -6px; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.fname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }

/* ---------- wycena */
.quote { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .quote { grid-template-columns: 1fr; } }
.quote-right { position: sticky; top: 84px; }
@media (max-width: 960px) { .quote-right { position: static; } }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 420px;
  border: 2px dashed var(--line2); border-radius: var(--r); background: #fff; cursor: pointer; padding: 32px; transition: border-color .2s, background .2s; color: var(--ink2);
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.busy { opacity: .7; pointer-events: none; }
.drop b { font-size: 19px; color: var(--ink); }
.drop-ic { width: 80px; height: 80px; border-radius: 22px; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 8px; }
@media (max-width: 720px) { .drop { min-height: 240px; } }
.model-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.model-stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.model-stats span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 650; }
.model-stats b { font-size: 15px; }
@media (max-width: 720px) { .model-stats { grid-template-columns: 1fr 1fr; } }
.price-box { background: #f7f8fa; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 4px 0 16px; }
.price-empty { color: var(--muted); text-align: center; padding: 10px 0; }
.price-rows div, .totals div, .sum div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; color: var(--ink2); }
.price-rows b, .totals b, .sum b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.price-total, .sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line2); margin-top: 8px; padding-top: 10px !important; }
.price-total span, .sum-total span { font-weight: 650; color: var(--ink) !important; }
.price-total b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.sum-total b { font-size: 20px; font-weight: 800 !important; }
.price-warn { background: #fdecea; color: #8a1f14; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.price-warn.small { margin-top: 10px; background: #fff6e0; color: #7a5a00; }
.price-ok { margin-top: 10px; background: #e7f6ed; color: #135c33; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; }

/* ---------- koszyk */
.cart { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .cart { grid-template-columns: 1fr; } }
.cart-lines { padding: 6px 22px; }
.line { display: grid; grid-template-columns: 76px 1fr auto auto 32px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-img { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #eef0f3; display: grid; place-items: center; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-main { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink2); min-width: 0; }
.line-main b { font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.line-main b a { text-decoration: none; }
.line-qty button { width: 34px; height: 36px; font-size: 18px; }
.line-qty input { width: 40px; }
.line-price { text-align: right; display: flex; flex-direction: column; }
.line-price b { font-size: 17px; white-space: nowrap; }
.line-price span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.line-del { border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; }
.line-del:hover { background: #fdecea; color: var(--err); }
.line-err .line-main span { color: var(--err); }
@media (max-width: 640px) {
  .line { grid-template-columns: 60px 1fr 32px; gap: 10px 12px; }
  .line-img { width: 60px; height: 60px; }
  .line-qty { grid-column: 2; grid-row: 2; justify-self: start; }
  .line-price { grid-column: 2 / 4; grid-row: 2; justify-self: end; }
  .line-del { grid-column: 3; grid-row: 1; }
}
.checkout h2 { margin-bottom: 18px; }
.totals { background: #f7f8fa; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }

/* ---------- podziękowanie / info */
.thanks { text-align: center; padding: 40px 28px; }
.ok-ic { width: 72px; height: 72px; border-radius: 50%; background: #e7f6ed; color: var(--ok); display: inline-grid; place-items: center; margin-bottom: 12px; }
.thanks .sum { text-align: left; background: #f7f8fa; border-radius: 12px; padding: 14px 18px; margin: 20px 0 24px; }
.prose h3 { margin-top: 1.6em; }
.prose p { color: var(--ink2); }

/* ---------- stopka */
.foot { background: #fff; border-top: 1px solid var(--line); margin-top: 24px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.foot p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.foot-links { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.foot-links a { color: var(--ink2); text-decoration: none; }
.foot-links a:hover { color: var(--accent-d); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50;
  background: var(--dark); color: #fff; padding: 13px 18px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: .25s; max-width: calc(100% - 32px); font-size: 15px;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #ffb47f; font-weight: 650; margin-left: 8px; white-space: nowrap; }

/* ---------- panel */
.top-admin { background: #23262d; }
.login { max-width: 420px; margin: 40px auto; }
.table-wrap { padding: 0; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: #fafbfc; }
.tbl tr.off { opacity: .55; }
.tbl td a { text-decoration: none; }
.tbl small { display: block; color: var(--muted); }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl-img { width: 64px; }
.tbl-img img, .tbl-img .noimg { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #eef0f3; }
.st { display: inline-block; font-size: 13px; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: #eef0f3; color: var(--ink2); white-space: nowrap; }
.st-nowe { background: var(--accent-soft); color: var(--accent-d); }
.st-potwierdzone { background: #e6effd; color: #1d4fb8; }
.st-w_druku { background: #f1e9fd; color: #6031b8; }
.st-gotowe { background: #e7f6ed; color: #135c33; }
.st-wyslane { background: #eef0f3; color: var(--muted); }
.st-anulowane { background: #fdecea; color: #8a1f14; }
.order { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .order { grid-template-columns: 1fr; } }
.order-side { display: flex; flex-direction: column; gap: 20px; }
.order-side p { color: var(--ink2); }
.oline { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.oline:first-child { padding-top: 0; }
.oline-img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #eef0f3; }
.oline-img img { width: 100%; height: 100%; object-fit: cover; }
.oline-main { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink2); }
.oline-main b { font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.oline-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.oline-price { text-align: right; display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.oline-price b { font-size: 17px; color: var(--ink); }
.order .viewer-box { margin: 16px 0; box-shadow: none; }
.order .viewer-box .viewer { height: 420px; }
.order .sum { margin-top: 14px; }
.pform { display: flex; flex-direction: column; gap: 20px; max-width: 920px; }
.pform .viewer-box { margin-bottom: 14px; box-shadow: none; }
.pform .viewer-box .viewer { height: 380px; }
.color-checks { display: flex; gap: 8px; flex-wrap: wrap; }
.cchk { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px 6px 8px; font-size: 14px; cursor: pointer; }
.cchk:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.cchk i, .color-preview i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); display: inline-block; }
.cchk input { display: none; }
.field.inline { margin-bottom: 16px; }
.model-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.model-tools .check { margin: 0 0 0 8px; }
.calc-out { margin-top: 16px; }
.calc-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line2); background: #fff; border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 14px; margin-bottom: 8px; cursor: pointer; }
.calc-row:hover { border-color: var(--accent); background: var(--accent-soft); }
.calc-row span:nth-child(2) { color: var(--muted); }
.photos, .new-photos { display: flex; gap: 12px; flex-wrap: wrap; }
.new-photos:not(:empty) { margin-top: 12px; }
.ph { width: 132px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; font-size: 13px; }
.ph img { width: 132px; height: 132px; object-fit: cover; }
.ph label, .ph-x { display: flex; align-items: center; gap: 6px; padding: 5px 8px; cursor: pointer; color: var(--ink2); }
.ph-x { border: 0; background: none; font: inherit; width: 100%; color: var(--err); }
.ph-del { color: var(--err) !important; border-top: 1px solid var(--line); }
.ph-add { height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--line2); cursor: pointer; color: var(--muted); }
.ph-add:hover { border-color: var(--accent); color: var(--accent-d); }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.settings { display: flex; flex-direction: column; gap: 20px; }
.settings .section-head { margin-bottom: 0; }
.settings .card > .muted { margin-top: -4px; font-size: 14px; }
.rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.row-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 0; background: #fafbfc; }
.row-item .check { margin-top: -6px; }
.row-tpl { display: none; }
.color-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--ink2); }
.color-preview span { display: flex; align-items: center; gap: 5px; }
.xyz { display: flex; align-items: center; gap: 6px; }
.xyz input { padding: 11px 8px; text-align: center; }
.xyz span { color: var(--muted); font-size: 14px; }
.cards2 { gap: 20px; align-items: start; }
@media (max-width: 720px) { .cards2 { gap: 20px; } }

/* ================= MadPrint — wygląd v2 ================= */
.logo { gap: 11px; }
.logo .mark { flex: none; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.logo-txt { font-weight: 800; letter-spacing: -.02em; font-size: 21px; }
.logo-txt b { color: var(--accent); font-weight: 800; }
.logo-txt em { font-size: 15px; }
.logo.small .logo-txt { font-size: 18px; }
.foot .logo-txt { color: var(--ink); }

.hero { background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 6px), radial-gradient(900px 500px at 78% 30%, rgba(242, 107, 29, .32), transparent 65%), radial-gradient(600px 400px at 0% 100%, rgba(80, 110, 255, .10), transparent 70%); }
.hero-in { padding-top: 48px; padding-bottom: 56px; grid-template-columns: 1.05fr 1fr; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 .dot { color: var(--accent); }
.trust { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .6); font-size: 13px; line-height: 1.35; }
.trust li .ic { color: #ffb47f; margin-top: 2px; }
.trust b { display: block; color: #fff; font-size: 14px; font-weight: 650; margin-bottom: 2px; }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; gap: 10px; } }
.hero-stage { position: relative; display: block; aspect-ratio: 1 / 1; max-height: 520px; width: 100%; justify-self: center; border-radius: 28px; overflow: hidden; text-decoration: none; color: #fff;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 62%); border: 1px solid rgba(255, 255, 255, .1); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.hero-stage.live .hero-img { opacity: 0; }
.hero-viewer { position: absolute; inset: 0; background: none; min-height: 0; border-radius: 0; opacity: 0; transition: opacity .6s; }
.hero-stage.live .hero-viewer { opacity: 1; }
.hero-tag { position: absolute; left: 18px; bottom: 18px; display: flex; flex-direction: column; background: rgba(22, 24, 29, .78); backdrop-filter: blur(8px); padding: 10px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); }
.hero-tag span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.hero-tag b { font-size: 20px; }
.hero-hint { position: absolute; right: 16px; top: 16px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .55); }
@media (max-width: 860px) { .hero-stage { max-width: 440px; } }

.cats-section { padding-bottom: 0; }
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.cat { position: relative; display: flex; align-items: flex-end; min-height: 120px; border-radius: var(--r); overflow: hidden; text-decoration: none; background: #e9ecf0; border: 1px solid var(--line); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat:hover img { transform: scale(1.06); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10, 12, 16, .72)); }
.cat span { position: relative; z-index: 1; padding: 12px 14px; color: #fff; display: flex; flex-direction: column; }
.cat b { font-size: 17px; }
.cat small { opacity: .75; }

.band { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r); text-decoration: none; margin-top: 24px; }
.band-xmas { background: linear-gradient(100deg, #12452f, #1d6b47 60%, #b3261e 140%); color: #fff; }
.band-ic { font-size: 30px; }
.band span:nth-child(2) { flex: 1; display: flex; flex-direction: column; color: rgba(255, 255, 255, .8); font-size: 14px; }
.band b { color: #fff; font-size: 18px; }
.band .btn { background: #fff; color: #12452f; }

.pcard-img .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.pcard:hover .pcard-img .alt { opacity: 1; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 7px; z-index: 1; }
.badge3d { z-index: 1; }
.dots { display: inline-flex; align-items: center; gap: 4px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); display: inline-block; }
.dots em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 2px; }
.dots.big { gap: 7px; flex-wrap: wrap; }
.dots.big i { width: 22px; height: 22px; }
.pcard-body h3 { font-size: 16px; line-height: 1.3; }

.custom { background: var(--dark); color: #fff; margin: 24px 0; background-image: radial-gradient(700px 400px at 100% 0%, rgba(242, 107, 29, .25), transparent 60%); }
.custom-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.custom h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.025em; }
.custom p { color: rgba(255, 255, 255, .7); font-size: 17px; }
.steps2 { list-style: none; counter-reset: s; padding: 0; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 14px; }
.steps2 li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.steps2 li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 10px; background: rgba(242, 107, 29, .18); color: #ffb47f; display: grid; place-items: center; font-weight: 800; }
.steps2 span { color: rgba(255, 255, 255, .6); font-size: 14px; }
.custom-drop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; min-height: 300px; justify-content: center; text-decoration: none;
  border: 2px dashed rgba(255, 255, 255, .25); border-radius: 24px; padding: 32px; background: rgba(255, 255, 255, .04); transition: .2s; }
.custom-drop:hover { border-color: var(--accent); background: rgba(242, 107, 29, .08); }
.custom-drop b { font-size: 20px; }
.custom-drop span:last-child { color: rgba(255, 255, 255, .6); }
@media (max-width: 860px) { .custom-in { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; } .custom-drop { min-height: 200px; } }

.mats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.mat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.mat h3 { font-size: 19px; margin-bottom: 6px; }
.mat p { color: var(--ink2); font-size: 14px; min-height: 42px; }

.narrow-faq { max-width: 860px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink2); margin: 0 0 16px; }

.perks { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; color: var(--ink2); font-size: 14px; }
.perks li { display: flex; gap: 8px; align-items: center; }
.perks .ic { color: var(--ok); }
.related { padding-top: 8px; }

.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-in p { max-width: 420px; }
.foot-col { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink2); }
.foot-col h4 { margin: 4px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot-col a { color: var(--ink2); text-decoration: none; }
.foot-col a:hover { color: var(--accent-d); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 20px; font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 36px; gap: 28px; }
  .hero-stage { max-width: 420px; }
}
@media (max-width: 560px) {
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { min-height: 96px; }
  .pcard-body { padding: 12px; }
  .pcard-foot { flex-wrap: wrap; row-gap: 6px; }
  .pcard-foot b { white-space: nowrap; font-size: 16px; }
  .dots i { width: 12px; height: 12px; }
  .band { flex-wrap: wrap; }
  .hero-tag b { font-size: 17px; }
}

/* ================= zamówienia v3 ================= */
.ferr { display: block; color: var(--err); font-size: 13px; margin-top: 5px; }
input.bad, textarea.bad { border-color: var(--err); }
.row2b.rev { grid-template-columns: 1fr 2fr; }
@media (max-width: 720px) { .row2b, .row2b.rev { grid-template-columns: 1fr; } }
.field small.muted { display: block; margin-top: 5px; font-size: 13px; }
.cart-left { display: flex; flex-direction: column; gap: 16px; }
.howto { list-style: none; counter-reset: s; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; }
.howto li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; font-size: 14px; }
.howto li::before { content: counter(s); grid-row: span 2; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-d); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.howto span { color: var(--muted); font-size: 13px; }
@media (max-width: 720px) { .howto { grid-template-columns: 1fr; } }

.ostatus { margin-top: 20px; }
.ostatus .section-head { margin-bottom: 18px; }
.timeline { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; color: var(--muted); position: relative; }
.timeline li::before { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 3px; background: var(--line2); }
.timeline li:first-child::before { display: none; }
.timeline i { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--line2); position: relative; z-index: 1; }
.timeline li.done i, .timeline li.now i { border-color: var(--accent); background: var(--accent); }
.timeline li.done::before, .timeline li.now::before { background: var(--accent); }
.timeline li.now i { box-shadow: 0 0 0 5px rgba(242, 107, 29, .2); }
.timeline li.done, .timeline li.now { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; gap: 10px; } .timeline li { flex-direction: row; text-align: left; } .timeline li::before { display: none; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 18px; }
.facts div { background: #f7f8fa; border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.facts span { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; }
.facts small { color: var(--ink2); font-size: 13px; }
.facts a { font-size: 13px; color: var(--accent-d); font-weight: 600; }
.olines .oline { grid-template-columns: 56px 1fr auto; }
.olines .oline-img { width: 56px; height: 56px; }
.paybox { background: var(--accent-soft); border: 1px solid #ffd4b8; border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.paybox h3 { margin-bottom: 6px; }
.paybox p { margin: 0; color: var(--ink); }
.hist { margin: 16px 0; }
.hist > div { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.hist > div span { color: var(--muted); font-size: 12px; }
.hist > div p { margin: 2px 0 0; color: var(--ink); }
.hist > div small { display: block; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; }
.stats span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 650; }
.stats b { font-size: 20px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:last-child { grid-column: 1 / -1; } }
.search input { width: min(360px, 80vw); padding: 9px 14px; border-radius: 999px; }
section > .chips { margin-bottom: 16px; }
.mini-thumbs { display: flex; gap: 4px; margin-bottom: 3px; }
.mini-thumbs img, .mini-thumbs i { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; background: #eef0f3; display: grid; place-items: center; color: #b3bac4; }
.tbl small { display: block; color: var(--muted); font-size: 12px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section-head h1 .st { font-size: 14px; vertical-align: middle; margin-left: 6px; }
.small-input { width: 120px; }
.small-input input { padding: 7px 8px; text-align: right; }
.small-input span { padding: 0 8px; }
.oline-price .small-input { margin-left: auto; }
.oline-price small { font-size: 12px; margin-top: 4px; }
.sum .small-input { width: 120px; }
.order .sum > div { align-items: center; }
.check.notify { background: #f7f8fa; border-radius: 10px; padding: 10px 12px; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 12, 16, .9); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 20px; cursor: pointer; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; font-size: 14px; }
.toc a { color: var(--accent-d); text-decoration: none; font-weight: 600; }
.prose ul { color: var(--ink2); }
.nav a .cart-count { margin-left: 2px; }

/* ================= zdjęcia produktów: wspólne ciemne „studio” ================= */
:root { --stage: radial-gradient(120% 95% at 50% 32%, #4b515d 0%, #2c3038 48%, #1b1d22 100%); }
.pcard-img, .gallery-main, .thumb, .cat { background: var(--stage); border-color: #2a2e35; }
.pcard-img .noimg, .gallery-main .noimg { color: rgba(255, 255, 255, .22); }
img.cut { object-fit: contain !important; padding: 9%; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .5)); }
.pcard-img img.cut { padding: 11%; transition: transform .35s; }
.pcard:hover .pcard-img img.cut { transform: scale(1.04); }
.thumb img.cut { padding: 8%; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .5)); }
.gallery-main img.cut { padding: 10%; }
.gallery-main .viewer { background: none; }
.thumb { border-color: transparent; }
.thumb.on { border-color: var(--accent); }
.thumb-3d { color: rgba(255, 255, 255, .75); }
.badge3d { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(4px); }
.cat img.cut { left: auto; right: 0; width: 62%; padding: 8% 6% 8% 0; object-fit: contain; }
.cat:hover img.cut { transform: scale(1.06) rotate(-2deg); }
.cat::after { background: linear-gradient(90deg, rgba(10, 12, 16, .55), transparent 70%); }
.hero-img.cut { padding: 12%; }
