@import url("../assets/fonts/a/fonts.css");

/* Karta techniczna z fabryki — arkusz rysunkowy: papier, tusz, jedna pieczęć. */
:root {
  --paper: #f1f2ee;
  --paper-2: #e8e9e4;
  --ink: #16181d;
  --ink-2: #464a52;
  --ink-3: #5d6169;
  --hair: #c3c6c0;
  --seal: #d23a1e;
  --seal-press: #b02f15;
  --kraft: #c9a77b;
  --kraft-ink: #2a2118;

  /* Grubości linii wg ISO 128: jedyna zmienna hierarchii. */
  --lw-1: 1px;
  --lw-2: 1.5px;
  --lw-3: 2px;
  --lw-4: 3px;

  --frame: 10px;
  --pad: 14px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --cjk: "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
  accent-color: var(--ink);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--paper-2);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  caret-color: var(--seal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: var(--lw-1); text-underline-offset: 0.22em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: var(--lw-3) solid var(--ink);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.cjk {
  font-family: var(--cjk);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- arkusz: ramka biegnąca przez całą stronę ---------- */
.sheet {
  margin: 0 var(--frame);
  border-left: var(--lw-3) solid var(--ink);
  border-right: var(--lw-3) solid var(--ink);
  min-height: 100vh;
}

/* ---------- pasek tytułowy ---------- */
.strip {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 56px;
  padding: 0 4px 0 var(--pad);
  background: var(--paper);
  border-bottom: var(--lw-3) solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  text-decoration: none;
}

.brand__name {
  display: block;
  width: min-content;
  font-size: 13.5px;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.98;
}

.brand__cjk {
  writing-mode: vertical-rl;
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  padding-left: 7px;
  border-left: var(--lw-1) solid var(--ink);
}

.tools { display: flex; align-items: center; }

.tool {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  text-decoration: none;
}

.tool svg { width: 22px; height: 22px; }
.tool:hover { background: var(--paper-2); }

.tool__count {
  position: absolute;
  top: 5px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border: var(--lw-1) solid var(--ink);
  background: var(--paper);
  font-size: 11px;
  font-weight: 700;
  font-stretch: 87%;
  line-height: 16px;
  text-align: center;
  overflow: hidden;
}

.icon { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }

/* rozwijane panele: menu i szukaj */
.drop {
  border-bottom: var(--lw-2) solid var(--ink);
  background: var(--paper);
  padding: 12px var(--pad) 16px;
}
.drop[hidden] { display: none; }

.search-field {
  display: flex;
  align-items: stretch;
  border: var(--lw-2) solid var(--ink);
  background: #fff;
}
.search-field input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  outline: none;
}
.search-field:focus-within { outline: var(--lw-3) solid var(--ink); outline-offset: 2px; }
.search-field svg { width: 20px; margin: 0 12px; align-self: center; }

/* ---------- typografia ---------- */
h1, h2, h3 { margin: 0; text-wrap: balance; }

.h1 {
  font-size: clamp(34px, 9.4vw, 72px);
  line-height: 0.98;
  font-weight: 760;
  font-stretch: 100%;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: 21px;
  line-height: 1.15;
  font-weight: 720;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}

.lede {
  margin: 14px 0 0;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.5;
}

.lbl {
  display: block;
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lbl .cjk { text-transform: none; letter-spacing: 0.1em; margin-left: 4px; font-size: 10.5px; }

/* ---------- sekcje ---------- */
.sec { border-top: var(--lw-3) solid var(--ink); }

.sec__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 26px var(--pad) 14px;
}

.sec__meta {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  font-stretch: 87%;
  white-space: nowrap;
}

.sec__body { padding: 0 var(--pad) 28px; }
.sec__body p { margin: 0 0 12px; max-width: 38em; color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { padding: 28px 0 0; }
.hero__copy { padding: 0 var(--pad); }

.dimfig { margin: 22px 0 0; }

.draw {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1720 / 1180;
  background: var(--paper);
}

.draw svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.draw .photo { mix-blend-mode: multiply; }

.ln { fill: none; stroke: var(--ink); vector-effect: non-scaling-stroke; }
.ln--ext { stroke-width: 1; }
.ln--dim { stroke-width: 1; }
.ln--vis { stroke-width: 2; }
.ln--hid { stroke-width: 1; stroke-dasharray: 5 4; }
.ln--ctr { stroke-width: 1; stroke-dasharray: 14 3 2 3; }
.arrow { fill: var(--ink); }
.dimtxt {
  fill: var(--ink);
  font-family: var(--font);
  font-style: italic;
  font-stretch: 75%;
  font-weight: 500;
}

/* poziomy wymiar z cyfrą w skali plakatu (przerwa w linii jak w ANSI) */
.dimline {
  position: absolute;
  left: 6.047%;
  right: 12.965%;
  top: 87.29%;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
}

.dimline__seg {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--ink);
}
.dimline__seg::before {
  content: "";
  position: absolute;
  top: -3px;
  width: 11px;
  height: 7px;
  background: var(--ink);
}
.dimline__seg--l { transform-origin: right center; }
.dimline__seg--r { transform-origin: left center; }
.dimline__seg--l::before { left: 0; clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.dimline__seg--r::before { right: 0; clip-path: polygon(100% 50%, 0 0, 0 100%); }

.bigfig {
  display: inline-flex;
  align-items: baseline;
  gap: 0.06em;
  padding: 0 0.12em;
  font-size: 17.4cqw;
  line-height: 0.8;
  font-style: italic;
  font-weight: 560;
  font-stretch: 70%;
  letter-spacing: -0.01em;
}
.bigfig__unit { font-size: 0.26em; font-weight: 500; font-stretch: 87%; letter-spacing: 0; }

/* cyfry w stałych slotach (przewijane przy zmianie) */
.roll { display: inline-flex; }
.roll__slot {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  line-height: 1;
}
.roll__strip { display: flex; flex-direction: column; transform: translateY(calc(var(--to, 0) * -1em)); }
.roll__strip > span { display: block; height: 1em; text-align: center; }
.roll.is-rolling .roll__strip { transition: transform var(--roll-ms, 900ms) var(--ease); }

/* tabliczka z danymi pod rysunkiem */
.ticket {
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 10px 0 0;
  border-top: var(--lw-2) solid var(--ink);
  border-bottom: var(--lw-2) solid var(--ink);
}
.ticket > div { padding: 9px var(--pad) 10px; }
.ticket > div + div { border-left: var(--lw-1) solid var(--ink); }
.ticket > .ticket__wide { grid-column: 1 / -1; border-left: 0; border-top: var(--lw-1) solid var(--ink); }
.ticket .val { display: block; margin-top: 3px; font-size: 15.5px; font-weight: 560; }
.ticket .val--price { font-size: 20px; font-weight: 760; font-stretch: 87%; }
.ticket .val--ship { font-weight: 450; color: var(--ink); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px var(--pad) 30px;
}

/* ---------- przyciski ---------- */
.seal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  background: var(--seal);
  color: #fff;
  font-size: 14px;
  font-weight: 760;
  font-stretch: 125%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms var(--ease);
}
/* wewnętrzna ramka pieczęci */
.seal::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: var(--lw-1) solid rgb(255 255 255 / 0.75);
  pointer-events: none;
}
.seal:hover { background: var(--seal-press); }
.seal:active { transform: scale(0.985); }
.seal:focus-visible { outline-color: var(--seal); }
.seal svg { width: 18px; height: 18px; }

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border: var(--lw-2) solid var(--ink);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-line svg { width: 18px; height: 18px; }

/* ---------- rejestr kategorii ---------- */
.register { list-style: none; margin: 0; padding: 0; border-top: var(--lw-1) solid var(--ink); }
.register li + li { border-top: var(--lw-1) solid var(--hair); }
.register a {
  display: grid;
  grid-template-columns: 32px 1fr auto 20px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px var(--pad);
  text-decoration: none;
}
.register a:hover { background: var(--paper-2); }
.register svg.cat { width: 32px; height: 32px; }
.register .icon { stroke-width: 1.4; }
.register__name { font-size: 17px; font-weight: 640; }
.register__name small { display: block; font-size: 12.5px; font-weight: 450; color: var(--ink-3); font-stretch: 87%; }
.register__from { font-size: 14px; font-stretch: 87%; color: var(--ink-2); white-space: nowrap; }
.register svg.chev { width: 18px; height: 18px; }

/* ---------- arkusz ofertowy: siatka liniowana ---------- */
.offer {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--lw-1) solid var(--ink);
}
.offer > li { border-bottom: var(--lw-1) solid var(--ink); }
.offer > li:nth-child(odd) { border-right: var(--lw-1) solid var(--ink); }

.offer a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 0 14px;
  text-decoration: none;
}
.offer__photo {
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: var(--lw-1) solid var(--hair);
  background: #fff;
}
.offer__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 500ms var(--ease);
}
.offer a:hover .offer__photo img { transform: scale(1.03); }
.offer__model { margin: 10px 12px 0; font-size: 11px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.08em; color: var(--ink-3); }
.offer__name { margin: 2px 12px 0; font-size: 16px; font-weight: 680; line-height: 1.25; }
.offer__dims { margin: 4px 12px 0; font-size: 13.5px; font-stretch: 87%; color: var(--ink-2); }
.offer__price { margin: 8px 12px 0; font-size: 18px; font-weight: 760; font-stretch: 87%; }
.offer__ship {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 6px 12px 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-2);
  font-stretch: 87%;
}
.offer__ship svg { flex: none; width: 14px; height: 14px; margin-top: 1px; }

/* ---------- czas dostawy zwymiarowany jak długość ---------- */
.lanes { margin: 8px 0 18px; }
.lane { padding: 14px 0 6px; }
.lane + .lane { border-top: var(--lw-1) solid var(--hair); }
.lane__title { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 640; }
.lane__title .num { font-weight: 760; font-stretch: 87%; }
.lane__axis { position: relative; height: 34px; margin-top: 6px; --k: calc(100% / 35); }
.lane__axis .base,
.lane__axis .win { position: absolute; top: 17px; height: 0; }
.lane__axis .base { left: 0; width: calc(var(--min) * var(--k)); border-top: var(--lw-3) solid var(--ink); }
.lane__axis .win { left: calc(var(--min) * var(--k)); width: calc((var(--max) - var(--min)) * var(--k)); border-top: var(--lw-3) dashed var(--ink); }
.lane__axis .tick { position: absolute; top: 8px; height: 18px; border-left: var(--lw-1) solid var(--ink); }
.lane__axis .tick--0 { left: 0; }
.lane__axis .tick--min { left: calc(var(--min) * var(--k)); }
.lane__axis .tick--max { left: calc(var(--max) * var(--k)); top: 4px; height: 26px; border-left-width: var(--lw-3); }
.scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: var(--lw-1) solid var(--ink);
  font-size: 11.5px;
  color: var(--ink-3);
  font-stretch: 87%;
}
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); }
.legend span { display: inline-block; width: 22px; border-top: var(--lw-3) solid var(--ink); }
.legend .legend__dash { border-top-style: dashed; margin-left: 8px; }

.notes { margin: 6px 0 0; padding: 0 0 0 1.4em; }
.notes li { margin: 0 0 10px; color: var(--ink-2); max-width: 38em; }
.notes li::marker { font-weight: 700; font-stretch: 87%; color: var(--ink); }

/* ---------- stopka jako tabliczka rysunkowa ---------- */
.titleblock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: var(--lw-4) solid var(--ink);
  border-bottom: var(--lw-3) solid var(--ink);
}
.titleblock > * { margin: 0; padding: 10px var(--pad) 12px; border-top: var(--lw-1) solid var(--ink); }
.titleblock > :first-child { border-top: 0; }
.titleblock .tb-b { border-left: var(--lw-1) solid var(--ink); }
.titleblock .wide { grid-column: 1 / -1; }
.titleblock .tb-brand .fine { display: block; margin-top: 2px; }
.titleblock .val { display: block; margin-top: 3px; font-size: 15px; font-weight: 600; }
.titleblock nav ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.titleblock nav a { display: inline-flex; min-height: 32px; align-items: center; font-size: 14.5px; }
.titleblock .fine { font-size: 12.5px; color: var(--ink-2); }
.tail { height: calc(var(--frame) + 4px); }

/* ---------- karta produktu ---------- */
.crumbs { padding: 12px var(--pad) 0; font-size: 13px; color: var(--ink-3); font-stretch: 87%; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--hair); }
.crumbs a { display: inline-flex; min-height: 32px; align-items: center; }

.planes-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px var(--pad) 8px;
}

.seg { display: inline-flex; border: var(--lw-1) solid var(--ink); }
.seg button {
  min-height: 40px;
  min-width: 44px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: 0.02em;
}
.seg button + button { border-left: var(--lw-1) solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.sheetno { font-size: 12px; font-stretch: 87%; color: var(--ink-3); }

.planes { position: relative; aspect-ratio: 1720 / 1180; }
.plane {
  position: absolute;
  inset: 0;
  transition: filter 520ms var(--ease), opacity 520ms var(--ease), transform 520ms var(--ease);
}
.plane[data-off] { filter: blur(12px); opacity: 0; transform: scale(1.015); pointer-events: none; visibility: hidden; transition: filter 520ms var(--ease), opacity 520ms var(--ease), transform 520ms var(--ease), visibility 0s 520ms; }

.gallery {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.crop { overflow: hidden; height: 100%; background: var(--paper); isolation: isolate; }
.crop img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

.ortho { width: 100%; height: 100%; }
.ortho text { font-family: var(--font); font-style: italic; font-stretch: 75%; font-weight: 500; fill: var(--ink); }
.ortho .tag { font-style: normal; font-stretch: 112%; font-weight: 600; letter-spacing: 0.06em; fill: var(--ink-3); }

.pinfo { padding: 18px var(--pad) 8px; border-top: var(--lw-2) solid var(--ink); margin-top: 10px; }
.pinfo__model { font-size: 12px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.08em; color: var(--ink-3); }
.pinfo h1 { margin-top: 6px; font-size: 34px; line-height: 1; font-weight: 760; letter-spacing: -0.02em; }
.pinfo__desc { margin: 10px 0 0; color: var(--ink-2); max-width: 34em; }
.pinfo__price { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; }
.pinfo__price strong { font-size: 30px; font-weight: 780; font-stretch: 87%; letter-spacing: -0.01em; }
.pinfo__price span { font-size: 13px; color: var(--ink-3); }

.swatches { margin: 22px 0 0; padding: 0; border: 0; }
.swatches legend { padding: 0; margin-bottom: 10px; }
.swatches__row { display: flex; gap: 10px; }
.sw { position: relative; }
.sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sw label {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 76px;
  padding: 8px 8px 7px;
  border: var(--lw-1) dashed var(--ink-3);
  font-size: 13px;
  cursor: pointer;
}
.sw label i { width: 44px; height: 28px; border: var(--lw-1) solid var(--ink); background: var(--c); }
.sw input:checked + label { border: var(--lw-4) solid var(--ink); padding: 6px 6px 5px; font-weight: 680; }
.sw input:focus-visible + label { outline: var(--lw-3) solid var(--ink); outline-offset: 3px; }
.sw-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); min-height: 1.5em; }

.spec { margin: 24px 0 0; border-top: var(--lw-2) solid var(--ink); }
.spec > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 11px 0 12px;
  border-bottom: var(--lw-1) solid var(--hair);
}
.spec dt { padding-top: 2px; }
.spec dd { margin: 0; font-size: 15px; line-height: 1.45; }
.spec dd small { display: block; font-size: 13px; color: var(--ink-3); }
.spec dt .cjk { display: block; margin: 3px 0 0; font-size: 11px; }

.door, .pack { margin: 26px 0 0; }
.door p, .pack p { margin: 8px 0 0; color: var(--ink-2); }

.stepper { display: inline-flex; align-items: stretch; margin-top: 12px; border: var(--lw-2) solid var(--ink); background: #fff; }
.stepper button { width: 46px; min-height: 46px; border: 0; background: transparent; display: grid; place-items: center; }
.stepper button:hover { background: var(--paper-2); }
.stepper button svg { width: 18px; height: 18px; }
.stepper input {
  width: 64px;
  border: 0;
  border-left: var(--lw-1) solid var(--ink);
  background: transparent;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  font-stretch: 87%;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: var(--paper-2); }
.stepper .unit { display: grid; place-items: center; padding: 0 10px; border-right: var(--lw-1) solid var(--ink); font-size: 14px; color: var(--ink-3); }

.door__draw { margin-top: 14px; max-width: 420px; }
.door__draw svg { width: 100%; height: auto; overflow: visible; }
.door__result { margin: 8px 0 0; font-weight: 640; display: flex; gap: 8px; align-items: center; }
.door__result svg { width: 18px; height: 18px; flex: none; }
.door__result.is-bad { color: var(--seal-press); }
.door .jamb { fill: var(--ink); }
.door .carton { fill: var(--kraft); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: x 420ms var(--ease), width 420ms var(--ease); }
.door .carton.is-bad { stroke: var(--seal); stroke-dasharray: 6 4; }

.pack__box {
  margin-top: 12px;
  padding: 14px 14px 12px;
  background: var(--kraft);
  color: var(--kraft-ink);
  border: var(--lw-2) solid var(--kraft-ink);
}
.pack__box .lbl { color: var(--kraft-ink); }
.pack__grid { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.pack__grid svg { width: 120px; height: auto; }
.pack__grid .big { display: block; font-size: 26px; font-weight: 780; font-stretch: 87%; line-height: 1.05; }
.pack__grid .sub { display: block; font-size: 14px; margin-top: 4px; }
.pack .stencil { fill: none; stroke: var(--kraft-ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pack .stencil-fill { fill: var(--kraft-ink); }

.more { margin-top: 28px; }

/* pasek zamówienia: tabliczka rysunkowa przyklejona do dołu */
.tbar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: stretch;
  margin-top: 26px;
  background: var(--paper);
  border-top: var(--lw-3) solid var(--ink);
}
.tbar__cell { padding: 8px 12px 9px var(--pad); }
.tbar__cell + .tbar__cell { border-left: var(--lw-1) solid var(--ink); padding-left: 10px; }
.tbar__cell .v { display: block; margin-top: 2px; font-size: 18px; font-weight: 760; font-stretch: 87%; line-height: 1.15; white-space: nowrap; }
.tbar .seal { min-height: 100%; padding: 0 12px; font-size: 13px; font-stretch: 112%; letter-spacing: 0.05em; white-space: nowrap; }

.stamp {
  position: absolute;
  right: 12px;
  bottom: calc(100% + 10px);
  padding: 6px 12px 5px;
  border: var(--lw-3) solid var(--seal);
  color: var(--seal);
  background: rgb(241 242 238 / 0.92);
  font-size: 13px;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-5deg) scale(1.6);
  opacity: 0;
  pointer-events: none;
}
.stamp.is-on { animation: stamp 1600ms var(--ease) both; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-5deg) scale(1.6); }
  14% { opacity: 1; transform: rotate(-5deg) scale(0.96); }
  22% { transform: rotate(-5deg) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: rotate(-5deg) scale(1); }
}

/* ---------- ruch: wymiary rysują się raz, przy wejściu ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .draw--intro .ln--ext,
  .js .draw--intro .ln--dimv { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 700ms var(--ease) 150ms forwards; }
  .js .draw--intro .arrow,
  .js .draw--intro .dimtxt { opacity: 0; animation: fade 400ms ease 650ms forwards; }
  .js .draw--intro .dimline__seg { transform: scaleX(0); animation: grow 760ms var(--ease) 380ms forwards; }
  .js .draw--intro .dimline__seg::before { opacity: 0; animation: fade 240ms ease 1040ms forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes grow { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; }
  .roll.is-rolling .roll__strip { transition: none; }
}

/* ---------- szersze ekrany ---------- */
@media (min-width: 760px) {
  :root { --frame: 20px; --pad: 24px; }
  .offer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offer > li:nth-child(odd) { border-right: 0; }
  .offer > li:not(:nth-child(3n)) { border-right: var(--lw-1) solid var(--ink); }
  .titleblock { grid-template-columns: 2fr 1fr 1fr; }
  .titleblock .tb-brand { grid-column: auto; }
  .titleblock .tb-a, .titleblock .tb-b { border-top: 0; border-left: var(--lw-1) solid var(--ink); }
  .register { display: grid; grid-template-columns: 1fr 1fr; }
  .register li:nth-child(even) { border-left: var(--lw-1) solid var(--hair); }
  .register li:nth-child(2) { border-top: 0; }
}

@media (min-width: 1040px) {
  .sheet { max-width: 1320px; margin: 0 auto; }
  .strip { padding-left: var(--pad); }
  .hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; padding-top: 48px; }
  .hero__copy { padding-bottom: 40px; }
  .dimfig { margin: 0; border-left: var(--lw-1) solid var(--ink); padding-left: 8px; }
  .actions { grid-column: 1; grid-row: 2; padding-top: 0; align-self: start; }
  .dimfig { grid-row: 1 / span 2; grid-column: 2; }
  .offer { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .offer > li { border-right: var(--lw-1) solid var(--ink); }
  .offer > li:nth-child(6n) { border-right: 0; }
  .routewrap { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; }

  .product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-top: var(--lw-2) solid var(--ink); }
  .product__media { position: sticky; top: 58px; align-self: start; border-right: var(--lw-2) solid var(--ink); }
  .pinfo { border-top: 0; margin-top: 0; }
  .tbar { margin: 26px var(--pad) 0; border: var(--lw-3) solid var(--ink); bottom: 16px; }
}
